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