Commit 5759ccc4 authored by hubaoshan's avatar hubaoshan

wcp

parent 13aefdbb
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
pallet: '0', pallet: '',
palletList: [], palletList: [],
totalPd: [], totalPd: [],
listA: [], listA: [],
...@@ -353,6 +353,7 @@ export default { ...@@ -353,6 +353,7 @@ export default {
businessId: this.userNew, businessId: this.userNew,
page: this.queryPd.page, page: this.queryPd.page,
rows: this.queryPd.rows, rows: this.queryPd.rows,
orderSn: this.moveSn,
pallet: '' pallet: ''
} }
for (let i = 0; i < this.palletList.length; i++) { for (let i = 0; i < this.palletList.length; i++) {
...@@ -362,11 +363,12 @@ export default { ...@@ -362,11 +363,12 @@ export default {
this.listZero.push(response.data.records) this.listZero.push(response.data.records)
this.totalPd[item] = Number(response.data.total) this.totalPd[item] = Number(response.data.total)
if (Number(response.data.total) > 0) { if (Number(response.data.total) > 0) {
if (!this.selectedButton) { if (!this.pallet) {
this.selectedButton = String(this.buttonLable(item)) this.pallet = Number(item)
console.log('pallet', this.pallet)
this.queryPdDel.PdDelList = response.data.records this.queryPdDel.PdDelList = response.data.records
} else if (this.selectedButton) { } else if (this.pallet) {
return this.selectedButton return this.pallet
} }
} }
}) })
...@@ -400,10 +402,13 @@ export default { ...@@ -400,10 +402,13 @@ export default {
}, },
handleButtonNew(buttonName) { handleButtonNew(buttonName) {
this.selectedButton = buttonName this.selectedButton = buttonName
this.pallet = this.buttonValue(buttonName)
console.log('this.pallet', this.pallet)
const queryParams = { const queryParams = {
businessId: this.userNew, businessId: this.userNew,
page: this.queryPdDel.page, page: this.queryPdDel.page,
rows: this.queryPdDel.rows, rows: this.queryPdDel.rows,
orderSn: this.moveSn,
pallet: '' pallet: ''
} }
queryParams.pallet = this.buttonValue(this.selectedButton) queryParams.pallet = this.buttonValue(this.selectedButton)
...@@ -451,9 +456,8 @@ export default { ...@@ -451,9 +456,8 @@ export default {
} }
this.userIdNew = response.data.user.businessId this.userIdNew = response.data.user.businessId
getPdList(data).then(res => { getPdList(data).then(res => {
this.queryForm.totalCount = res.data[0].totalCount this.queryForm.totalCount = res.data[0]
this.queryForm.endCount = res.data[0].endCount this.queryForm.endCount = res.data[1]
this.queryForm.orderSn = res.data[0].orderSn
}) })
}) })
}, },
......
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