|
|
@ -35,11 +35,11 @@ |
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
</view> |
|
|
|
<!-- 合格转隔离单独的弹窗--> |
|
|
|
<okToHoldRecordPack ref="okToHoldRecordPackRef" :fromLocationCodeProps='fromLocationCode' :itemCodeProps='itemCode' :batchProps='batch' :showOnePop='showOnePop' @showFromLocationPopup='showFromLocationPopup' @itemCodeClick='openScanPopup' @confirm='okToHoldRecordPackConfirm' @getInputMsgResult="getInputMsgResult" @itemCodeScanMsg='itemCodeScanMsg'></okToHoldRecordPack> |
|
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' :title="'箱码'" > |
|
|
|
<okToHoldRecordPack ref="okToHoldRecordPackRef" :fromLocationCodeProps='fromLocationCode' :itemCodeProps='itemCode' :batchProps='batch' :showOnePop='showOnePop' :isClearFromLocationCode='isClearFromLocationCode' :isClearItemCode='isClearItemCode' @showFromLocationPopup='showFromLocationPopup' @itemCodeClick='openScanPopup' @confirm='okToHoldRecordPackConfirm' @getInputMsgResult="getInputMsgResult" @itemCodeScanMsg='itemCodeScanMsg'></okToHoldRecordPack> |
|
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' @clearItemCode='clearItemCode' :title="'箱码'" > |
|
|
|
</win-scan-pack-and-location> |
|
|
|
<win-scan-location ref="scanFromLocationCode" title="来源库位" @getLocation='getFromLocation' |
|
|
|
:locationAreaTypeList="fromLocationAreaTypeList"></win-scan-location> |
|
|
|
:locationAreaTypeList="fromLocationAreaTypeList" @clearFromLocation='clearFromLocation'></win-scan-location> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -149,6 +149,8 @@ |
|
|
|
isShowEditLocation: false, |
|
|
|
itemCode:'', |
|
|
|
batch:'', |
|
|
|
isClearFromLocationCode:false,//是否清除输入框的来源库位 |
|
|
|
isClearItemCode:false,//是否清除输入框的零件和批次 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -160,8 +162,7 @@ |
|
|
|
this.toLocationAreaTypeList = res.toLocationAreaTypeList; |
|
|
|
if(this.showOnePop){ |
|
|
|
console.log(this.$refs.okToHoldRecordPackRef) |
|
|
|
this.$refs.okToHoldRecordPackRef.show = true |
|
|
|
|
|
|
|
this.$refs.okToHoldRecordPackRef.show = true |
|
|
|
}else{ |
|
|
|
this.showFromLocationPopup(); |
|
|
|
} |
|
|
@ -175,6 +176,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
initData() { |
|
|
|
if (this.businessTypeCode == "Move") { |
|
|
|
// this.title = "库存转移记录"; |
|
|
@ -263,10 +265,12 @@ |
|
|
|
this.toLocationInfo = location; |
|
|
|
}, |
|
|
|
getScanResult(result,managementType) { |
|
|
|
console.log(result) |
|
|
|
console.log(356,result) |
|
|
|
if(this.showOnePop){ |
|
|
|
this.itemCode= result.label.itemCode |
|
|
|
this.batch = result.label.batch |
|
|
|
this.itemCode= result.balance.itemCode |
|
|
|
this.batch = result.balance.batch |
|
|
|
console.log(357,this.itemCode) |
|
|
|
console.log(358,this.batch ) |
|
|
|
this.getResult = result//存储接受的结果 |
|
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
|
|
|
|
@ -386,12 +390,9 @@ |
|
|
|
itemp.subList.push(newDetail); |
|
|
|
this.detailSource.push(itemp) |
|
|
|
} else { |
|
|
|
console.log(233,this.detailSource) |
|
|
|
console.log(988,balance.inventoryStatus) |
|
|
|
var detail = item.subList.find(r => { |
|
|
|
if (r.batch == pack.batch && |
|
|
|
r.fromLocationCode == balance.locationCode && |
|
|
|
r.toInventoryStatus == balance.inventoryStatus && |
|
|
|
r.scaned == true) { |
|
|
|
return r; |
|
|
|
} |
|
|
@ -417,14 +418,22 @@ |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
}, |
|
|
|
getInputMsgResult(result){ |
|
|
|
getInputMsgResult(result,fromWitch){ |
|
|
|
console.log('pooo',result) |
|
|
|
if(!this.fromLocationCode){ |
|
|
|
this.$refs.scanFromLocationCode.getScanResult(result) |
|
|
|
}else{ |
|
|
|
result.fromLocationCode = this.fromLocationCode |
|
|
|
this.$refs.scanPopup.getScanResult(result) |
|
|
|
} |
|
|
|
if(fromWitch == 'fromLocationScanMsg'){ |
|
|
|
this.isClearFromLocationCode = false
this.$refs.scanFromLocationCode.getScanResult(result)
}else if(fromWitch == 'itemCodeScanMsg'){ |
|
|
|
console.log(7878,this.fromLocationCode)
result.fromLocationCode = this.fromLocationCode
this.$refs.scanPopup.getScanResult(result)
} |
|
|
|
}, |
|
|
|
// 清除来源库位 |
|
|
|
clearFromLocation(fromLocationCodeParams){ |
|
|
|
this.fromLocationCode = fromLocationCodeParams |
|
|
|
console.log('rwyrwey',this.fromLocationCode) |
|
|
|
this.isClearFromLocationCode = true |
|
|
|
}, |
|
|
|
// 清除零件 |
|
|
|
clearItemCode(itemCodeParams){ |
|
|
|
this.itemCode = itemCodeParams |
|
|
|
this.isClearItemCode = true |
|
|
|
}, |
|
|
|
showErrorMessage(message) { |
|
|
|
if (this.$refs.scanPopup) { |
|
|
|