|
@ -1,11 +1,10 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-header"> |
|
|
<view class="page-header"> |
|
|
|
|
|
<view 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"> |
|
|
|
|
|
申请单号 : {{jobContent.requestNumber}} |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="page-main"> |
|
|
<view class="page-main"> |
|
@ -26,8 +25,8 @@ |
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<locationCompare ref='comScanLocation' title="目标库位" :recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
<locationCompare ref='comScanLocation' title="目标库位" :recommendLocationCode="jobToLocationCode" |
|
|
@getLocation='scanLocationCode' |
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
:locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
:locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
</view> |
|
|
</view> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<view class=" uni-flex uni-row"> |
|
@ -96,14 +95,14 @@ |
|
|
toLocationCode: "", |
|
|
toLocationCode: "", |
|
|
businessTypeInfo: {}, |
|
|
businessTypeInfo: {}, |
|
|
managementList: [], |
|
|
managementList: [], |
|
|
toLocationAreaTypeList:[], |
|
|
toLocationAreaTypeList: [], |
|
|
jobStatus:"", |
|
|
jobStatus: "", |
|
|
jobToLocationCode:"" |
|
|
jobToLocationCode: "" |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title: option.title+'详情' |
|
|
title: option.title + '详情' |
|
|
}) |
|
|
}) |
|
|
this.id = option.id; |
|
|
this.id = option.id; |
|
|
if (this.id != undefined) { |
|
|
if (this.id != undefined) { |
|
@ -127,7 +126,7 @@ |
|
|
onBackPress(e) { |
|
|
onBackPress(e) { |
|
|
//已经接收但是没提交任务 |
|
|
//已经接收但是没提交任务 |
|
|
if (e.from == 'backbutton') { |
|
|
if (e.from == 'backbutton') { |
|
|
if (this.jobStatus=="2") { |
|
|
if (this.jobStatus == "2") { |
|
|
//取消承接任务 |
|
|
//取消承接任务 |
|
|
cancleTakeTransferIssueJob(this.id).then(res => { |
|
|
cancleTakeTransferIssueJob(this.id).then(res => { |
|
|
uni.navigateBack(); |
|
|
uni.navigateBack(); |
|
@ -183,7 +182,7 @@ |
|
|
if (res.data.subList.length > 0) { |
|
|
if (res.data.subList.length > 0) { |
|
|
that.jobContent = res.data; |
|
|
that.jobContent = res.data; |
|
|
that.jobStatus = res.data.status |
|
|
that.jobStatus = res.data.status |
|
|
that.subList =res.data.subList |
|
|
that.subList = res.data.subList |
|
|
that.detailSource = getDataSource(that.subList) |
|
|
that.detailSource = getDataSource(that.subList) |
|
|
that.fromLocationCode = that.subList[0].fromLocationCode |
|
|
that.fromLocationCode = that.subList[0].fromLocationCode |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
@ -262,23 +261,26 @@ |
|
|
r.batch == batch && r.fromLocationCode == result.fromLocationCode |
|
|
r.batch == batch && r.fromLocationCode == result.fromLocationCode |
|
|
}) |
|
|
}) |
|
|
if (itemDetail == undefined) { |
|
|
if (itemDetail == undefined) { |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】不在列表中") |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
|
|
|
.fromLocationCode + "】不在列表中") |
|
|
} else { |
|
|
} else { |
|
|
if (itemDetail.scaned) { |
|
|
if (itemDetail.scaned) { |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】已经扫描") |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
|
|
|
.fromLocationCode + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { |
|
|
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) { |
|
|
if(this.jobContent.allowModifyInventoryStatus=="TRUE"){ |
|
|
if (this.jobContent.allowModifyInventoryStatus == "TRUE") { |
|
|
this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
this.showQuestionMessage('任务中允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + |
|
|
|
|
|
itemStatus + |
|
|
']不一致,是否继续出库?', res => { |
|
|
']不一致,是否继续出库?', res => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.handleQty =Number(result.balance.qty) ; |
|
|
itemDetail.handleQty = Number(result.balance.qty); |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance.balanceQty = Number(result.balance.qty) ; |
|
|
itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
@ -286,8 +288,9 @@ |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus(); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}else { |
|
|
} else { |
|
|
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + |
|
|
|
|
|
itemStatus + |
|
|
']不一致,不允许转移!', res => { |
|
|
']不一致,不允许转移!', res => { |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus(); |
|
|
}); |
|
|
}); |
|
@ -295,10 +298,10 @@ |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.handleQty = Number(result.balance.qty) ; |
|
|
itemDetail.handleQty = Number(result.balance.qty); |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance = result.balance; |
|
|
itemDetail.balance.balanceQty = Number(result.balance.qty) ; |
|
|
itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
|