|
@@ -129,6 +129,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
methods: {
|
|
methods: {
|
|
getDialogList(p) {
|
|
getDialogList(p) {
|
|
return getFrontOrderList(...p)
|
|
return getFrontOrderList(...p)
|
|
@@ -140,6 +141,7 @@ export default {
|
|
console.log(this.dataList,selected,this.$refs.header)
|
|
console.log(this.dataList,selected,this.$refs.header)
|
|
this.details = this.dataList[0]
|
|
this.details = this.dataList[0]
|
|
this.details.id = this.dataList[0].id
|
|
this.details.id = this.dataList[0].id
|
|
|
|
+ this.customerNumber=this.dataList[0].customerNumber
|
|
// this.$refs.header.details.customerName = this.dataList[0].customerName
|
|
// this.$refs.header.details.customerName = this.dataList[0].customerName
|
|
// this.$refs.header.details.customerNumber = this.dataList[0].customerNumber
|
|
// this.$refs.header.details.customerNumber = this.dataList[0].customerNumber
|
|
// this.$refs.header.details.customerNumber = this.dataList[0].pickTime
|
|
// this.$refs.header.details.customerNumber = this.dataList[0].pickTime
|
|
@@ -151,6 +153,12 @@ export default {
|
|
},
|
|
},
|
|
handleDel(item, index) {
|
|
handleDel(item, index) {
|
|
this.dataList.splice(index, 1)
|
|
this.dataList.splice(index, 1)
|
|
|
|
+ if (!this.dataList.length){
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.details = {}
|
|
|
|
+ this.customerNumber = ''
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
delChange() {
|
|
delChange() {
|
|
this.dataList.forEach((k, i) => {
|
|
this.dataList.forEach((k, i) => {
|
|
@@ -161,6 +169,12 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ if (!this.dataList.length){
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
+ this.details = {}
|
|
|
|
+ this.customerNumber = ''
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleSelection(data) {
|
|
handleSelection(data) {
|
|
this.selection = data
|
|
this.selection = data
|