数量盘点入库
This commit is contained in:
parent
e8969befbc
commit
37c2e8ae11
|
|
@ -736,7 +736,7 @@ export default {
|
||||||
if (this.isNumCheck) {
|
if (this.isNumCheck) {
|
||||||
// 判断 this.numTableList 中是否有 this.numTable 的数据, 如果有, 则不添加
|
// 判断 this.numTableList 中是否有 this.numTable 的数据, 如果有, 则不添加
|
||||||
if (this.numTableList.some(item => item.typeId == this.codeForm.typeId)) {
|
if (this.numTableList.some(item => item.typeId == this.codeForm.typeId)) {
|
||||||
this.$message.error('请勿重复添加')
|
this.$message.warning('请勿重复添加')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log('🚀 ~ fillCodeForm ~ this.numTable:', this.numTable);
|
console.log('🚀 ~ fillCodeForm ~ this.numTable:', this.numTable);
|
||||||
|
|
@ -905,10 +905,6 @@ export default {
|
||||||
},
|
},
|
||||||
// 入库数量输入框失去焦点
|
// 入库数量输入框失去焦点
|
||||||
handlePutBlur(row) {
|
handlePutBlur(row) {
|
||||||
if (row.putInStoreNum > row.num) {
|
|
||||||
this.$message.error('入库数量不能大于当前库存')
|
|
||||||
row.putInStoreNum = row.num
|
|
||||||
}
|
|
||||||
if (!row.putInStoreNum) {
|
if (!row.putInStoreNum) {
|
||||||
this.$message.warning('入库数量不能为空')
|
this.$message.warning('入库数量不能为空')
|
||||||
row.putInStoreNum = 1
|
row.putInStoreNum = 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue