Commit 204bfbd9 authored by hubaoshan's avatar hubaoshan

wcp

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