|
@@ -161,7 +161,7 @@ import basicInfoModal from './basicInfoModal.vue'
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
import getDate from '@/libs/getDate.js'
|
|
import getDate from '@/libs/getDate.js'
|
|
import getTenantList from '@/views/common/getTenantList.js'
|
|
import getTenantList from '@/views/common/getTenantList.js'
|
|
-import { allocLinkageOutList, allocLinkageAudit, allocLinkageOutDel, allocLinkageOutStock } from '@/api/allocLinkageOut'
|
|
|
|
|
|
+import { allocLinkageOutList, allocLinkageAudit, allocLinkageOutDel, allocLinkageOutStock, allocLinkageOutQueryCount } from '@/api/allocLinkageOut'
|
|
export default {
|
|
export default {
|
|
name: 'AllocLinkageOutList',
|
|
name: 'AllocLinkageOutList',
|
|
components: { STable, VSelect, basicInfoModal, rangeDate, stateIcon, getTenantList },
|
|
components: { STable, VSelect, basicInfoModal, rangeDate, stateIcon, getTenantList },
|
|
@@ -194,10 +194,12 @@ export default {
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- return allocLinkageOutList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
|
|
|
+ const params = Object.assign(parameter, this.queryParam)
|
|
|
|
+ return allocLinkageOutList(params).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
|
|
+ this.getCount(params)
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
data.list[i].no = no + i + 1
|
|
data.list[i].no = no + i + 1
|
|
@@ -240,6 +242,16 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 统计
|
|
|
|
+ getCount (params) {
|
|
|
|
+ allocLinkageOutQueryCount(params).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ this.countData = res.data
|
|
|
|
+ } else {
|
|
|
|
+ this.countData = null
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 时间 change
|
|
// 时间 change
|
|
dateChange (date) {
|
|
dateChange (date) {
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.beginDate = date[0]
|