From 2d3530a7c11557a40807ad7c0b9e302ce6ce3a9f Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期五, 28 八月 2026 10:16:32 +0800
Subject: [PATCH] feat: 综合业务模块页面重构与交互完善
---
src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js | 38 +++++++++++++++++++++++++++++++++++---
1 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js b/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js
index 25b6ae5..742fc5c 100644
--- a/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js
+++ b/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js
@@ -310,7 +310,10 @@
else if (row.businessType === 5) {
const purchaseContractNumber = row?.purchaseContractNumber;
if (purchaseContractNumber) {
- const res = await getPurchaseByCode({ purchaseContractNumber });
+ const res = await getPurchaseByCode({
+ purchaseContractNumber,
+ approvalInstanceId: row?.id,
+ });
detailData.value = res || {};
}
}
@@ -321,6 +324,19 @@
if (shippingNo) {
const res = await getDeliveryDetailByShippingNo({ shippingNo });
detailData.value = res?.data || res || {};
+ }
+ }
+
+ // 璁惧鐘舵�佸彉鏇村鎵�
+ else if (row.businessType === 19) {
+ if (row.formConfig) {
+ try {
+ detailData.value = JSON.parse(row.formConfig);
+ } catch(e) {
+ detailData.value = {};
+ }
+ } else {
+ detailData.value = {};
}
}
@@ -355,7 +371,10 @@
else if (row.businessType === 5) {
const purchaseContractNumber = row?.purchaseContractNumber;
if (purchaseContractNumber) {
- const res = await getPurchaseByCode({ purchaseContractNumber });
+ const res = await getPurchaseByCode({
+ purchaseContractNumber,
+ approvalInstanceId: row?.id,
+ });
detailData.value = res || {};
}
}
@@ -366,6 +385,19 @@
if (shippingNo) {
const res = await getDeliveryDetailByShippingNo({ shippingNo });
detailData.value = res?.data || res || {};
+ }
+ }
+
+ // 璁惧鐘舵�佸彉鏇村鎵�
+ else if (row.businessType === 19) {
+ if (row.formConfig) {
+ try {
+ detailData.value = JSON.parse(row.formConfig);
+ } catch(e) {
+ detailData.value = {};
+ }
+ } else {
+ detailData.value = {};
}
}
@@ -699,4 +731,4 @@
openApprove,
fetchApprovalList,
};
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3