|
|
@ -60,8 +60,8 @@ |
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' :allowModifyLocation="false"> |
|
|
|
</win-scan-pack-and-location> |
|
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' :allowModifyLocation="true" @confirm="handleConfirm"> |
|
|
|
</win-scan-pack-and-location > |
|
|
|
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' |
|
|
|
:locationAreaTypeList="fromLocationAreaTypeList"></win-scan-location> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
@ -139,7 +139,7 @@ |
|
|
|
itemCode: "" |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onShow(){ |
|
|
|
var typeCode = "OverPackage" |
|
|
|
getBusinessType(typeCode, res => { |
|
|
|
if (res.success) { |
|
|
@ -209,7 +209,10 @@ |
|
|
|
this.toPackQty = pack.packQty; |
|
|
|
this.toPackUnitShow = e[0].label |
|
|
|
}, |
|
|
|
|
|
|
|
//修改库位 |
|
|
|
handleConfirm(fromLocationCode){ |
|
|
|
this.$refs.scanLocationCode.openScanPopupSimulate(fromLocationCode) |
|
|
|
}, |
|
|
|
getScanResult(result) { |
|
|
|
let balance = result.balance; |
|
|
|
let label = result.label; |
|
|
@ -289,7 +292,13 @@ |
|
|
|
}, |
|
|
|
showFromLocationPopup() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.scanLocationCode.openScanPopup(); |
|
|
|
let overPackageRecord = uni.getStorageSync('overPackageRecord') |
|
|
|
|
|
|
|
if(overPackageRecord){ |
|
|
|
this.$refs.scanLocationCode.openScanPopupSimulate(overPackageRecord) |
|
|
|
}else{ |
|
|
|
this.$refs.scanLocationCode.openScanPopup(); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
@ -429,6 +438,9 @@ |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
}, |
|
|
|
getLocation(location, code) { |
|
|
|
if(code){ |
|
|
|
uni.setStorageSync('overPackageRecord', code) |
|
|
|
} |
|
|
|
this.getFromLocationCode(location, code) |
|
|
|
}, |
|
|
|
getFromLocationCode(location, code) { |
|
|
|