|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<view class="page-wraper"> |
|
|
|
<view class=""> |
|
|
|
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
|
<com-blank-view @goScan='showPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
|
</view> |
|
|
|
<view class="page-wraper" v-if="detailSource.length>0"> |
|
|
|
<view class='split_line'></view> |
|
|
@ -32,7 +32,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<win-scan-button @goScan='showFromLocationPopup'></win-scan-button> |
|
|
|
<win-scan-button @goScan='showPopup'></win-scan-button> |
|
|
|
</view> |
|
|
|
<!-- 合格转隔离单独的弹窗--> |
|
|
|
<okToHoldRecordPack ref="okToHoldRecordPackRef" :showOnePop='showOnePop' @showFromLocationPopup='showFromLocationPopup' @itemCodeClick='openScanPopup' @confirm='okToHoldRecordPackConfirm' @getInputMsgResult="getInputMsgResult" @itemCodeScanMsg='itemCodeScanMsg' @clickBtnClearFromLocation='clearFromLocation' @clickBtnClearItemCode='clearItemCode'></okToHoldRecordPack> |
|
|
@ -156,7 +156,7 @@ |
|
|
|
this.businessType = res.businessType; |
|
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; |
|
|
|
this.toLocationAreaTypeList = res.toLocationAreaTypeList; |
|
|
|
this.showFromLocationPopup() |
|
|
|
this.showPopup() |
|
|
|
} else { |
|
|
|
this.showErrorMessage(res.message) |
|
|
|
} |
|
|
@ -241,6 +241,9 @@ |
|
|
|
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType); |
|
|
|
}, |
|
|
|
showFromLocationPopup() { |
|
|
|
this.$refs.scanFromLocationCode.openScanPopup(); |
|
|
|
}, |
|
|
|
showPopup() { |
|
|
|
setTimeout(()=>{ |
|
|
|
if(this.showOnePop){ |
|
|
|
this.$refs.okToHoldRecordPackRef.fromLocationCode = '' |
|
|
@ -256,6 +259,7 @@ |
|
|
|
}, |
|
|
|
getFromLocation(location) { |
|
|
|
this.fromLocationCode = location.code; |
|
|
|
this.$refs.okToHoldRecordPackRef.fromLocationCode = location.code |
|
|
|
this.fromLocationInfo = location; |
|
|
|
if(!this.showOnePop){ |
|
|
|
this.openScanPopup(); |
|
|
@ -272,9 +276,10 @@ |
|
|
|
this.managementType = managementTypeParams |
|
|
|
if(this.showOnePop){ |
|
|
|
this.$refs.okToHoldRecordPackRef.itemCode= result.balance.itemCode |
|
|
|
this.$refs.okToHoldRecordPackRef.batch = result.balance.batch |
|
|
|
this.$refs.okToHoldRecordPackRef.batch = result.label.batch |
|
|
|
this.getResult = result//存储接受的结果 |
|
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
|
console.log(11,result) |
|
|
|
|
|
|
|
}else{ |
|
|
|
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ |
|
|
|