Commit 5759ccc4 authored by hubaoshan's avatar hubaoshan

wcp

parent 13aefdbb
......@@ -242,7 +242,7 @@ export default {
data() {
return {
dialogVisible: false,
pallet: '0',
pallet: '',
palletList: [],
totalPd: [],
listA: [],
......@@ -353,6 +353,7 @@ export default {
businessId: this.userNew,
page: this.queryPd.page,
rows: this.queryPd.rows,
orderSn: this.moveSn,
pallet: ''
}
for (let i = 0; i < this.palletList.length; i++) {
......@@ -362,11 +363,12 @@ export default {
this.listZero.push(response.data.records)
this.totalPd[item] = Number(response.data.total)
if (Number(response.data.total) > 0) {
if (!this.selectedButton) {
this.selectedButton = String(this.buttonLable(item))
if (!this.pallet) {
this.pallet = Number(item)
console.log('pallet', this.pallet)
this.queryPdDel.PdDelList = response.data.records
} else if (this.selectedButton) {
return this.selectedButton
} else if (this.pallet) {
return this.pallet
}
}
})
......@@ -400,10 +402,13 @@ export default {
},
handleButtonNew(buttonName) {
this.selectedButton = buttonName
this.pallet = this.buttonValue(buttonName)
console.log('this.pallet', this.pallet)
const queryParams = {
businessId: this.userNew,
page: this.queryPdDel.page,
rows: this.queryPdDel.rows,
orderSn: this.moveSn,
pallet: ''
}
queryParams.pallet = this.buttonValue(this.selectedButton)
......@@ -451,9 +456,8 @@ export default {
}
this.userIdNew = response.data.user.businessId
getPdList(data).then(res => {
this.queryForm.totalCount = res.data[0].totalCount
this.queryForm.endCount = res.data[0].endCount
this.queryForm.orderSn = res.data[0].orderSn
this.queryForm.totalCount = res.data[0]
this.queryForm.endCount = res.data[1]
})
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment