判断
This commit is contained in:
@@ -84,7 +84,7 @@ export default {
|
||||
val1: '',
|
||||
val2: '',
|
||||
date: [new Date((new Date().getTime() - 6 * 24 * 60 * 60 * 1000)), new Date((new Date().getTime()))],
|
||||
dataList: [{sale_code: '030301010037', checked: false}, {sale_code: '030301010038', checked: false}],
|
||||
dataList: [],
|
||||
checkArr: []
|
||||
}
|
||||
},
|
||||
@@ -130,8 +130,13 @@ export default {
|
||||
if (this.checkArr.length === 0) {
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('setMaterArr', this.checkArr)
|
||||
this.colseUp()
|
||||
// 添加的物料订单号必须一样
|
||||
if (this.checkArr.every(e => e.sale_code === this.checkArr[0].sale_code)) {
|
||||
this.$store.dispatch('setMaterArr', this.checkArr)
|
||||
this.colseUp()
|
||||
} else {
|
||||
this.toast('添加的物料订单号必须一样')
|
||||
}
|
||||
},
|
||||
clearUp () {
|
||||
this.checkArr = []
|
||||
|
||||
Reference in New Issue
Block a user