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