|
|
@ -1,21 +1,22 @@ |
|
|
|
<template> |
|
|
|
<view class="page-wraper"> |
|
|
|
<view class="page-header"> |
|
|
|
<veiw class="header-view"> |
|
|
|
<view class="header_job_top"> |
|
|
|
<job-top :dataContent="jobContent"></job-top> |
|
|
|
</view> |
|
|
|
<view class="header_item"> |
|
|
|
申请单号 : {{jobContent.requestNumber}} |
|
|
|
</view> |
|
|
|
<view class='split_line'></view> |
|
|
|
</veiw> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="page-main"> |
|
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
|
<view class=""> |
|
|
|
<comJobDetailCard :dataContent="item" :index="index" :settingParam="jobContent" :isShowStatus="false" |
|
|
|
@remove="updateData" @updateData="updateData" |
|
|
|
<comJobDetailCard :dataContent="item" :index="index" :settingParam="jobContent" |
|
|
|
:isShowStatus="false" @remove="updateData" @updateData="updateData" |
|
|
|
:locationAreaTypeList='toLocationAreaTypeList'> |
|
|
|
</comJobDetailCard> |
|
|
|
</view> |
|
|
@ -41,7 +42,8 @@ |
|
|
|
<!-- <winScanPackAndLocationNoBalance ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> |
|
|
|
</winScanPackAndLocationNoBalance> --> |
|
|
|
|
|
|
|
<winScanPackAndLocation :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult='getScanResult' :noShowBalanceMessage="true"> |
|
|
|
<winScanPackAndLocation :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult='getScanResult' |
|
|
|
:noShowBalanceMessage="true"> |
|
|
|
</winScanPackAndLocation> |
|
|
|
|
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
@ -110,15 +112,15 @@ |
|
|
|
jobStatus: "", |
|
|
|
jobToLocationCode: "", |
|
|
|
isCheckLocation: false, |
|
|
|
scanMessage:"" |
|
|
|
scanMessage: "" |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: option.title+'详情' |
|
|
|
title: option.title + '详情' |
|
|
|
}) |
|
|
|
this.id = option.id; |
|
|
|
this.scanMessage =option.scanMessage |
|
|
|
this.scanMessage = option.scanMessage |
|
|
|
if (this.id != undefined) { |
|
|
|
//新建的任务自动接收 |
|
|
|
if (option.status == "1") { |
|
|
@ -203,7 +205,7 @@ |
|
|
|
that.toLocationCode = that.jobToLocationCode; |
|
|
|
} |
|
|
|
//外部进入详情,如果有扫描信息,模拟自动扫描 |
|
|
|
if(this.scanMessage){ |
|
|
|
if (this.scanMessage) { |
|
|
|
this.openScanPopupSimulate(this.scanMessage) |
|
|
|
} |
|
|
|
|
|
|
@ -251,7 +253,7 @@ |
|
|
|
calcTreeHandleQty(this.detailSource) |
|
|
|
}, |
|
|
|
//模拟扫描功能 |
|
|
|
openScanPopupSimulate(message){ |
|
|
|
openScanPopupSimulate(message) { |
|
|
|
|
|
|
|
let fromlocationCode = ''; |
|
|
|
let fromlocationList = []; |
|
|
@ -269,7 +271,8 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
this.$refs.scanPopup.openScanPopupForJobSimulate(fromlocationCode, fromlocationList, this.jobContent,message); |
|
|
|
this.$refs.scanPopup.openScanPopupForJobSimulate(fromlocationCode, fromlocationList, this.jobContent, |
|
|
|
message); |
|
|
|
}, |
|
|
|
|
|
|
|
openScanPopup() { |
|
|
@ -306,7 +309,7 @@ |
|
|
|
var itemCode = result.label.itemCode; |
|
|
|
var locationCode = result.fromLocationCode; |
|
|
|
|
|
|
|
if(!result.balance){ |
|
|
|
if (!result.balance) { |
|
|
|
this.showMessage("箱码【" + packingNumber + "】没有库存余额") |
|
|
|
return; |
|
|
|
} |
|
|
@ -345,7 +348,7 @@ |
|
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
|
.fromLocationCode + "】不在列表中") |
|
|
|
} else { |
|
|
|
if (!isExit.cancleScanedHiht&&isExit.scaned) { |
|
|
|
if (!isExit.cancleScanedHiht && isExit.scaned) { |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
} else { |
|
|
|
isExit.scaned = true |
|
|
@ -373,7 +376,8 @@ |
|
|
|
//大哥让加的 |
|
|
|
itemDetail.fromInventoryStatus = result.balance.inventoryStatus; |
|
|
|
|
|
|
|
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
|
if (!itemDetail.cancleScanedHiht && itemDetail.scaned && scanedLength == itemDetail.packList |
|
|
|
.length) { |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
} else { |
|
|
|
itemDetail.scaned = true; |
|
|
|