|
|
@ -64,7 +64,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uni-popup> |
|
|
|
<win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getScanCode'> |
|
|
|
<win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getItemScanResult' :itemCodeTypeList="itemCodeTypeList"> |
|
|
|
</win-scan-item> |
|
|
|
|
|
|
|
<win-scan-location ref="scanLocationPopup" title='目标库位' @getLocation='getLocationCode' |
|
|
@ -115,7 +115,6 @@ |
|
|
|
rawLocationCode: "", |
|
|
|
fgLocationCode: "", |
|
|
|
itemCodeFocus: false, |
|
|
|
isCheckItemCode: false, |
|
|
|
counQty: undefined, |
|
|
|
editPosition: true, |
|
|
|
numberFocus: false, |
|
|
@ -169,7 +168,6 @@ |
|
|
|
this.qty = 0; |
|
|
|
this.itemCode = '请扫描物料信息' |
|
|
|
this.toLocationCode = '请扫目标库位' |
|
|
|
this.isCheckItemCode =false; |
|
|
|
this.counQty =undefined; |
|
|
|
this.numberFocus = false |
|
|
|
this.$refs.popup.open('bottom'); |
|
|
@ -216,7 +214,7 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if (this.itemCode == "" || !this.isCheckItemCode) { |
|
|
|
if (this.itemCode == "请扫描物料信息") { |
|
|
|
this.showErrorMessage("请输入物料", "itemCode") |
|
|
|
return |
|
|
|
} |
|
|
@ -242,7 +240,6 @@ |
|
|
|
if (res.data != null && res.data.list.length > 0) { |
|
|
|
this.itemCode = res.data.list[0].code; |
|
|
|
this.itemName = res.data.list[0].name |
|
|
|
this.isCheckItemCode = true; |
|
|
|
this.numberFocus = true |
|
|
|
this.uom = res.data.list[0].uom |
|
|
|
} else { |
|
|
@ -276,14 +273,12 @@ |
|
|
|
this.closeRequestPopup(); |
|
|
|
}, |
|
|
|
|
|
|
|
getScanCode(code, scanResult) { |
|
|
|
if (code == "") { |
|
|
|
this.showErrorMessage('物料号不能为空') |
|
|
|
return; |
|
|
|
} |
|
|
|
this.itemCode = ""; |
|
|
|
this.checkItemCode(code) |
|
|
|
getItemScanResult(code, scanResult) { |
|
|
|
this.itemCode = code; |
|
|
|
this.itemName = scanResult.name |
|
|
|
this.uom =scanResult.uom |
|
|
|
this.stdPackInfo = scanResult.package; |
|
|
|
this.numberFocus = true |
|
|
|
}, |
|
|
|
|
|
|
|
getLocationCode(location, code) { |
|
|
@ -304,8 +299,7 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
if (type == "itemCode") { |
|
|
|
this.itemCode = "" |
|
|
|
this.isCheckItemCode = false; |
|
|
|
this.itemCode = "请扫描物料信息" |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|