Commit 204bfbd9 authored by hubaoshan's avatar hubaoshan

wcp

parent 05a2dab5
......@@ -163,9 +163,9 @@
<!-- </el-button>-->
<div class="button-container">
<el-button
v-for="item in palletList"
v-for="item in palletListDel"
:key="item.dictValue"
:type="buttonLable(pallet) === item.dictLabel ? 'primary' : 'default'"
:type="buttonLable(palletDel) === item.dictLabel ? 'primary' : 'default'"
style="width: 60px;margin-bottom: 10px;margin-left: 10px"
@click="handleButtonNew(item.dictLabel)"
>
......@@ -242,8 +242,10 @@ export default {
data() {
return {
dialogVisible: false,
pallet: '',
pallet: '0',
palletDel: '',
palletList: [],
palletListDel: [],
totalPd: [],
listA: [],
listB: [],
......@@ -315,6 +317,7 @@ export default {
getDicts('WCP_ORDER_PALLET').then(res => {
console.log('dict', res)
this.palletList = res.data
this.palletListDel = res.data
})
},
handleView() {
......@@ -363,13 +366,13 @@ export default {
this.listZero.push(response.data.records)
this.totalPd[item] = Number(response.data.total)
if (Number(response.data.total) > 0) {
if (!this.pallet) {
if (!this.palletDel) {
this.selectedButton = item
this.pallet = Number(item)
console.log('pallet', this.pallet)
this.palletDel = Number(item)
console.log('pallet', this.palletDel)
this.queryPdDel.PdDelList = response.data.records
} else if (this.pallet) {
return this.pallet
} else if (this.palletDel) {
return this.palletDel
}
}
})
......@@ -393,8 +396,7 @@ export default {
},
handleButtonNew(buttonName) {
this.selectedButton = buttonName
this.pallet = this.buttonValue(buttonName)
console.log('this.pallet', this.pallet)
this.palletDel = this.buttonValue(buttonName)
const queryParams = {
businessId: this.userNew,
page: this.queryPdDel.page,
......
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