添加条件
This commit is contained in:
@@ -75,7 +75,7 @@ export default {
|
||||
val2: this.$store.getters.materObj.bill_code || '',
|
||||
val3: this.$store.getters.materObj.material_name || '',
|
||||
val4: this.$store.getters.materObj.need_qty || '',
|
||||
val5: this.$store.getters.materObj.finish_qty || '',
|
||||
val5: '0',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
@@ -103,6 +103,7 @@ export default {
|
||||
this.dataList.push(res.content)
|
||||
}
|
||||
}
|
||||
this.val5 = this.dataList.length
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
@@ -141,6 +142,11 @@ export default {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
if (this.dataList.length > this.val4) {
|
||||
this.toast('扫码数不能大于待入数')
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
this._confirmDis()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ export default {
|
||||
val2: this.$store.getters.materObj.bill_code || '',
|
||||
val3: this.$store.getters.materObj.material_name || '',
|
||||
val4: this.$store.getters.materObj.need_qty || '',
|
||||
val5: this.$store.getters.materObj.finish_qty || '',
|
||||
val5: '0',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
@@ -105,6 +105,7 @@ export default {
|
||||
this.dataList.push(res.content)
|
||||
}
|
||||
}
|
||||
this.val5 = this.dataList.length
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
@@ -143,6 +144,11 @@ export default {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
if (this.dataList.length > this.val4) {
|
||||
this.toast('扫码数不能大于待出数')
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
this._confirmDis()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user