|
|
@ -162,11 +162,9 @@ |
|
|
|
<button class="new_save_btn btn_double" @click="submit()">提交</button> |
|
|
|
</view> |
|
|
|
<selectClickList ref="selectPopup" title="推荐信息" @select="selectPlan"></selectClickList> |
|
|
|
<winScanButtonTop @goScan='openScanPopupTo' title="箱码"></winScanButtonTop> |
|
|
|
<win-scan-button @goScan='openLocationFrom' title="来源库位"></win-scan-button> |
|
|
|
<win-scan-button @goScan='openScanPopupTo' title="箱码"></win-scan-button> |
|
|
|
<winScanButtonBottom @goScan='openLocationTo' title="目标库位"></winScanButtonBottom> |
|
|
|
<win-scan-by-pack ref="scanPopupTo" @getScanResult='getScanResultTo' title="箱码"></win-scan-by-pack> |
|
|
|
<winScanLocationCode ref="locationFrom" title="来源库位" @getLocation="geFromLocation"></winScanLocationCode> |
|
|
|
<winScanLocationCode ref="locationTo" title="目标库位" @getLocation="geToLocation"></winScanLocationCode> |
|
|
|
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()' |
|
|
|
@afterCloseScanMessage='closeScanMessage'></com-message> |
|
|
@ -195,7 +193,6 @@ |
|
|
|
} from '@/common/basic.js'; |
|
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
|
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' |
|
|
|
import winScanButtonTop from '@/mycomponents/wincom/winScanButtonTop.vue' |
|
|
|
import winScanButtonBottom from '@/mycomponents/wincom/winScanButtonBottom.vue' |
|
|
|
|
|
|
|
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' |
|
|
@ -209,7 +206,6 @@ |
|
|
|
components: { |
|
|
|
comMessage, |
|
|
|
winScanButton, |
|
|
|
winScanButtonTop, |
|
|
|
winScanButtonBottom, |
|
|
|
winMulitScan, |
|
|
|
comJobScanDetail, |
|
|
@ -288,29 +284,6 @@ |
|
|
|
openLocationTo() { |
|
|
|
this.$refs.locationTo.openScanPopup() |
|
|
|
}, |
|
|
|
openLocationFrom() { |
|
|
|
this.$refs.locationFrom.openScanPopup() |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
geFromLocation(locationInfo) { |
|
|
|
var current = this.details[0] |
|
|
|
if (!current.handledToPackingCode) { |
|
|
|
this.showMessage("请先扫描箱码") |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (locationInfo.code != current.handleToPackingCodeLocationCode) { |
|
|
|
this.showMessage("扫描来源库位[" + locationInfo.code + "]与箱码[" + current.handledToPackingCode + |
|
|
|
"]对应的库位[" + current.handleToPackingCodeLocationCode + "]不一致,请重新扫描") |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
current.handledFromLocationCode = locationInfo.code |
|
|
|
current.handledFromLocationArea = locationInfo.locationArea |
|
|
|
current.handledFromLocationGroup = locationInfo.locationGroup |
|
|
|
current.handledFromLocationErpCode = locationInfo.locationErpCode |
|
|
|
}, |
|
|
|
|
|
|
|
geToLocation(locationInfo) { |
|
|
|
var current = this.details[0] |
|
|
@ -462,6 +435,8 @@ |
|
|
|
item.handledFromLot = balancesItem.lot |
|
|
|
item.handledFromWarehouseCode = balancesItem.warehouseCode |
|
|
|
item.handledFromQty = balancesItem.qty |
|
|
|
item.handledFromLocationCode = balancesItem.locationCode |
|
|
|
|
|
|
|
item.handleToPackingCodeLocationCode = balancesItem.locationCode |
|
|
|
} else { |
|
|
|
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item |
|
|
@ -486,6 +461,7 @@ |
|
|
|
item.handledFromLot = balancesItem.lot |
|
|
|
item.handledFromWarehouseCode = balancesItem.warehouseCode |
|
|
|
item.handledFromQty = balancesItem.qty |
|
|
|
item.handledFromLocationCode = balancesItem.locationCode |
|
|
|
item.handleToPackingCodeLocationCode = balancesItem.locationCode |
|
|
|
} |
|
|
|
}) |
|
|
@ -605,10 +581,6 @@ |
|
|
|
this.showMessage('请先扫描目标库位'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!that.details[0].handledFromLocationCode) { |
|
|
|
this.showMessage('请先扫描来源库位'); |
|
|
|
return; |
|
|
|
} |
|
|
|
that.finsh(); |
|
|
|
|
|
|
|
}, |
|
|
@ -625,9 +597,7 @@ |
|
|
|
finshInjectionIssueJob(that.id, params.id, params) |
|
|
|
.then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
if (res != null) { |
|
|
|
that.showCommitSuccessMessage(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
that.showMessage(err.message); |
|
|
|