From 10c5feb3812275b3e8748c691f3ece6868c875ac Mon Sep 17 00:00:00 2001
From: niexiting <85552560@qq.com>
Date: Thu, 18 Jul 2024 08:53:36 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E9=80=80=E8=B4=A7=E8=AE=B0?=
=?UTF-8?q?=E5=BD=95=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95=E5=8F=B7=E5=92=8C?=
=?UTF-8?q?=E8=AE=A2=E5=8D=95=E8=A1=8C=E7=9A=84=E8=B5=8B=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../purchaseReturn/record/returnRecord.vue | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/pages/purchaseReturn/record/returnRecord.vue b/src/pages/purchaseReturn/record/returnRecord.vue
index 8ddbedfb..8b5e36d4 100644
--- a/src/pages/purchaseReturn/record/returnRecord.vue
+++ b/src/pages/purchaseReturn/record/returnRecord.vue
@@ -97,7 +97,8 @@
supplierCode: '', //供应商代码
poNumber: '',
fromType: "",
- dataContent: {}
+ dataContent: {},
+ currentPackage: {}
};
},
@@ -111,7 +112,7 @@
uni.setNavigationBarTitle({
title: option.title
})
-
+
var typeCode = "PurchaseReturn"
getBusinessType(typeCode, res => {
if (res.success) {
@@ -158,7 +159,8 @@
this.supplierCode = result.label.supplierCode;
} else {
if (this.supplierCode != result.label.supplierCode) {
- this.showErrorMessage('扫描的供应商代码[' + result.label.supplierCode + ']与默认供应商代码[' + this.poNumber + ']不一致')
+ this.showErrorMessage('扫描的供应商代码[' + result.label.supplierCode + ']与默认供应商代码[' + this.poNumber +
+ ']不一致')
return;
}
}
@@ -178,6 +180,7 @@
let balance = result.balance;
let label = result.label;
let pack = result.package;
+ this.currentPackage = pack;
var item = this.detailSource.find(res => {
if (res.itemCode == balance.itemCode) {
@@ -253,7 +256,7 @@
if (res.data) {
this.showCommitSuccessMessage("提交成功
生成采购退货记录
" + res.data)
} else {
- this.showErrorMessage("提交失败[" + res.msg+"]")
+ this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
@@ -288,9 +291,11 @@
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = ''; //采购退货直接出库,目标库位为空
-
+
submitItem.qty = detail.handleQty;
submitItem.package = "";
+ submitItem.poNumber = this.currentPackage.poNumber;
+ submitItem.poLine = this.currentPackage.poLine;
subList.push(submitItem)
}
})
@@ -397,4 +402,4 @@
background: #e0e0e0;
}
-
+
\ No newline at end of file