|
@ -1,5 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-wraper"> |
|
|
|
|
|
<view class="page-header"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="header_item"> |
|
|
|
|
|
需求零件 : {{jobContent.requestNumber}} |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
</view> |
|
|
</view> |
|
@ -108,6 +114,7 @@ |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
|
|
|
this.clear(); |
|
|
var typeCode = "PurchasePutaway" |
|
|
var typeCode = "PurchasePutaway" |
|
|
getBusinessType(typeCode, res => { |
|
|
getBusinessType(typeCode, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
@ -184,6 +191,10 @@ |
|
|
|
|
|
|
|
|
//获取推荐库位 |
|
|
//获取推荐库位 |
|
|
getRecommendLocation(balance, pack, callback) { |
|
|
getRecommendLocation(balance, pack, callback) { |
|
|
|
|
|
uni.showLoading({ |
|
|
|
|
|
title: '扫描中...', |
|
|
|
|
|
mask: true |
|
|
|
|
|
}) |
|
|
let recommend = this.recommendLocationList.find(r => r.itemCode == balance.itemCode); |
|
|
let recommend = this.recommendLocationList.find(r => r.itemCode == balance.itemCode); |
|
|
if (recommend == undefined) { |
|
|
if (recommend == undefined) { |
|
|
let param = { |
|
|
let param = { |
|
@ -199,9 +210,11 @@ |
|
|
locationCode: res.data.code |
|
|
locationCode: res.data.code |
|
|
}) |
|
|
}) |
|
|
callback(res.data); |
|
|
callback(res.data); |
|
|
|
|
|
uni.hideLoading(); |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
this.showErrorMessage(error) |
|
|
this.showErrorMessage(error); |
|
|
|
|
|
uni.hideLoading(); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
@ -348,9 +361,17 @@ |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
detail.toPackingNumber = info.packingNumber;; |
|
|
detail.toPackingNumber = info.packingNumber; |
|
|
detail.toContainerNumber = detail.containerNumber |
|
|
|
|
|
detail.toBatch = info.batch; |
|
|
detail.toBatch = info.batch; |
|
|
|
|
|
detail.toContainerNumber = detail.containerNumber; |
|
|
|
|
|
|
|
|
|
|
|
detail.fromPackingNumber = info.packingNumber; |
|
|
|
|
|
detail.fromBatch = info.batch; |
|
|
|
|
|
detail.fromContainerNumber = detail.containerNumber; |
|
|
|
|
|
|
|
|
|
|
|
detail.fromLocationCode = detail.locationCode; |
|
|
|
|
|
detail.toLocationCode = detail.toLocationCode; |
|
|
|
|
|
|
|
|
// detail.toInventoryStatus = detail.inventoryStatus |
|
|
// detail.toInventoryStatus = detail.inventoryStatus |
|
|
// detail.toLocationCode = detail.toLocationCode |
|
|
// detail.toLocationCode = detail.toLocationCode |
|
|
detail.package = null; |
|
|
detail.package = null; |
|
@ -362,7 +383,6 @@ |
|
|
this.dataContent.toWarehouseCode = subList[0].toWarehouseCode; |
|
|
this.dataContent.toWarehouseCode = subList[0].toWarehouseCode; |
|
|
} |
|
|
} |
|
|
this.dataContent.subList = subList |
|
|
this.dataContent.subList = subList |
|
|
debugger; |
|
|
|
|
|
return this.dataContent; |
|
|
return this.dataContent; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|