|
|
@ -32,7 +32,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<win-scan-button @goScan='showFromLocationPopup'></win-scan-button> |
|
|
|
</view> |
|
|
|
<!-- 合格转隔离单独的弹窗--> |
|
|
|
<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> |
|
|
@ -160,12 +160,7 @@ |
|
|
|
this.businessType = res.businessType; |
|
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; |
|
|
|
this.toLocationAreaTypeList = res.toLocationAreaTypeList; |
|
|
|
if(this.showOnePop){ |
|
|
|
console.log(this.$refs.okToHoldRecordPackRef) |
|
|
|
this.$refs.okToHoldRecordPackRef.show = true |
|
|
|
}else{ |
|
|
|
this.showFromLocationPopup(); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
this.showErrorMessage(res.message) |
|
|
|
} |
|
|
@ -242,6 +237,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
openScanPopup() { |
|
|
|
|
|
|
|
if (this.fromLocationCode == "") { |
|
|
|
this.showFromLocationPopup(); |
|
|
|
return |
|
|
@ -250,14 +246,21 @@ |
|
|
|
}, |
|
|
|
showFromLocationPopup() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.scanFromLocationCode.openScanPopup(); |
|
|
|
if(this.showOnePop){ |
|
|
|
this.$refs.okToHoldRecordPackRef.showOne = true |
|
|
|
}else{ |
|
|
|
this.$refs.scanFromLocationCode.openScanPopup(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getFromLocation(location) { |
|
|
|
this.fromLocationCode = location.code; |
|
|
|
this.fromLocationInfo = location; |
|
|
|
if(!this.showOnePop){ |
|
|
|
this.openScanPopup(); |
|
|
|
this.openScanPopup(); |
|
|
|
}else{ |
|
|
|
this.itemCode ='' |
|
|
|
this.batch ='' |
|
|
|
} |
|
|
|
}, |
|
|
|
getToLocation(location, code) { |
|
|
@ -265,12 +268,11 @@ |
|
|
|
this.toLocationInfo = location; |
|
|
|
}, |
|
|
|
getScanResult(result,managementType) { |
|
|
|
console.log(356,result) |
|
|
|
if(this.showOnePop){ |
|
|
|
this.itemCode= result.balance.itemCode |
|
|
|
this.batch = result.balance.batch |
|
|
|
console.log(357,this.itemCode) |
|
|
|
console.log(358,this.batch ) |
|
|
|
this.isClearItemCode = false |
|
|
|
debugger |
|
|
|
this.getResult = result//存储接受的结果 |
|
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
|
|
|
|
@ -419,20 +421,20 @@ |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
}, |
|
|
|
getInputMsgResult(result,fromWitch){ |
|
|
|
console.log('pooo',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)
} |
|
|
|
this.isClearFromLocationCode = false
this.$refs.scanFromLocationCode.getScanResult(result)
}else if(fromWitch == 'itemCodeScanMsg'){
result.fromLocationCode = this.fromLocationCode
this.$refs.scanPopup.getScanResult(result)
} |
|
|
|
}, |
|
|
|
// 清除来源库位 |
|
|
|
clearFromLocation(fromLocationCodeParams){ |
|
|
|
this.fromLocationCode = fromLocationCodeParams |
|
|
|
console.log('rwyrwey',this.fromLocationCode) |
|
|
|
this.itemCode ='' |
|
|
|
this.batch ='' |
|
|
|
this.isClearFromLocationCode = true |
|
|
|
}, |
|
|
|
// 清除零件 |
|
|
|
clearItemCode(itemCodeParams){ |
|
|
|
this.itemCode = itemCodeParams |
|
|
|
clearItemCode(label){ |
|
|
|
this.itemCode = label.itemCode |
|
|
|
this.batch ='' |
|
|
|
this.isClearItemCode = true |
|
|
|
}, |
|
|
|
showErrorMessage(message) { |
|
|
@ -595,8 +597,6 @@ |
|
|
|
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
|
detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
|
var submitItem = deepCopyData(detail) |
|
|
|
console.log(233,submitItem) |
|
|
|
console.log(244,info) |
|
|
|
submitItem.itemCode = detail.itemCode; |
|
|
|
submitItem.itemName = detail.package.itemName; |
|
|
|
submitItem.itemDesc1 = detail.package.itemDesc1; |
|
|
|