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