From 9e6c5635e7c182ceac87f291ddf909a695e3c006 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com>
Date: Fri, 25 Oct 2024 13:52:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=B6=E5=93=81=E7=9B=B4?=
=?UTF-8?q?=E6=8E=A5=E4=B8=8A=E6=9E=B6=202024/8/2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/productPutaway/record/productPutawayRecord.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue
index f94dcf5e..f767e374 100644
--- a/src/pages/productPutaway/record/productPutawayRecord.vue
+++ b/src/pages/productPutaway/record/productPutawayRecord.vue
@@ -126,6 +126,7 @@
//查询推荐的目标库位
getRecommendLocation(balance, res => {
itemp.toLocationCode = res.code;
+ itemp.expectinNumber = res.expectinNumber;
})
let newDetail = createDetailInfo(balance, pack); //
newDetail.fromInventoryStatus = balance.inventoryStatus;
@@ -162,7 +163,7 @@
})
let param = {
- expectinNumber: balance.id,
+ expectinNumber: balance.packingNumber + "-" + Date.now(),
itemCode: balance.itemCode,
inventoryStatus: balance.inventoryStatus,
};
@@ -184,7 +185,7 @@
recommendLocationRemoveExpectin(param).then(res => {
}).catch(err => {
- showErrorMessage('【'+err+'】移除预占用失败,请在PC端的预占用中移除')
+ showErrorMessage('【'+lst.join(',')+'】移除预占用失败,请在PC端的预占用中移除')
})
}
@@ -276,7 +277,7 @@
showCommitSuccessMessage(`提交成功
生成制品上架记录
${res.data}`)
let removeId = [];
detailSource.value.forEach(r => {
- removeId.push(r.id);
+ removeId.push(r.expectinNumber)
})
removeRecommendLocation(removeId);
} else {
@@ -347,7 +348,7 @@
submitItem.toBatch = info.batch
submitItem.fromLocationCode = detail.locationCode
- submitItem.toLocationCode = detail.toLocationCode
+ submitItem.toLocationCode = item.toLocationCode
submitItem.qty = detail.handleQty
submitItem.package = ''