添加条件

This commit is contained in:
2022-07-21 15:11:16 +08:00
parent 1097cb568d
commit a6cd21d0d3
2 changed files with 14 additions and 2 deletions

View File

@@ -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()
}
}

View File

@@ -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()
}
}