|
@ -116,11 +116,10 @@ |
|
|
fgLocationCode: "", |
|
|
fgLocationCode: "", |
|
|
itemCodeFocus: false, |
|
|
itemCodeFocus: false, |
|
|
isCheckItemCode: false, |
|
|
isCheckItemCode: false, |
|
|
counQty: 0, |
|
|
counQty: undefined, |
|
|
editPosition: true, |
|
|
editPosition: true, |
|
|
numberFocus: false, |
|
|
numberFocus: false, |
|
|
uom: "", |
|
|
uom: "", |
|
|
positionInfo: "请选择位置", |
|
|
|
|
|
show: false, |
|
|
show: false, |
|
|
isModifiedPosition: true, |
|
|
isModifiedPosition: true, |
|
|
positionList: [], |
|
|
positionList: [], |
|
@ -167,7 +166,12 @@ |
|
|
// this.qty = 0 |
|
|
// this.qty = 0 |
|
|
// this.itemCodeGetFocus(); |
|
|
// this.itemCodeGetFocus(); |
|
|
// } |
|
|
// } |
|
|
|
|
|
this.qty = 0; |
|
|
|
|
|
this.itemCode = '请扫描物料信息' |
|
|
|
|
|
this.toLocationCode = '请扫目标库位' |
|
|
|
|
|
this.isCheckItemCode =false; |
|
|
|
|
|
this.counQty =undefined; |
|
|
|
|
|
this.numberFocus = false |
|
|
this.$refs.popup.open('bottom'); |
|
|
this.$refs.popup.open('bottom'); |
|
|
// this.showScanLocation(); |
|
|
// this.showScanLocation(); |
|
|
}, |
|
|
}, |
|
@ -207,10 +211,21 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
confirm() { |
|
|
confirm() { |
|
|
|
|
|
if (this.toLocationCode == "请扫目标库位") { |
|
|
|
|
|
this.showErrorMessage("请输入目标库位") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (this.itemCode == "" || !this.isCheckItemCode) { |
|
|
if (this.itemCode == "" || !this.isCheckItemCode) { |
|
|
this.showErrorMessage("请输入物料", "itemCode") |
|
|
this.showErrorMessage("请输入物料", "itemCode") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.counQty == undefined) { |
|
|
|
|
|
this.showErrorMessage("请输入数量") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.qty == 0) { |
|
|
if (this.qty == 0) { |
|
|
this.showErrorMessage("数量必须大于0") |
|
|
this.showErrorMessage("数量必须大于0") |
|
|
return |
|
|
return |
|
|