From e65bfa1d46d255f307eaa057665f01c8bde0e122 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 16 六月 2026 11:14:36 +0800
Subject: [PATCH] 君歌 1.端口修改
---
src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js | 39 +++++++++++++++++++++++++++++++++++++--
1 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js b/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js
index 3f0e99c..31a34f8 100644
--- a/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js
+++ b/src/views/officeProcessAutomation/ApproveManage/approve-list/useApproveList.js
@@ -13,6 +13,7 @@
import { getQuotationList } from "@/api/salesManagement/salesQuotation.js";
import { getPurchaseByCode } from "@/api/procurementManagement/procurementLedger.js";
import { getDeliveryDetailByShippingNo } from "@/api/salesManagement/deliveryLedger.js";
+import { ledgerListPage, getSalesLedgerWithProducts } from "@/api/salesManagement/salesLedger.js";
import useUserStore from "@/store/modules/user";
import { Search } from "@element-plus/icons-vue";
import { ElMessage, ElMessageBox } from "element-plus";
@@ -140,7 +141,7 @@
const tableColumn = ref([
// { label: "鐢宠浜虹紪鍙�", prop: "applicantNo", width: 110 },
- { label: "鐢宠浜哄悕绉�", prop: "applicantName", minWidth: 100 },
+ { label: "鍙戣捣浜�", prop: "applicantName", minWidth: 100 },
{ label: "妯℃澘绫诲瀷", prop: "businessName", minWidth: 120 },
{
label: "瀹℃壒绫诲瀷",
@@ -154,7 +155,9 @@
prop: "unread",
width: 90,
align: "center",
+ dataType: "tag",
formatData: (v) => (v ? "鏄�" : "鍚�"),
+ formatType: (v) => (v ? "success" : "danger"),
},
{
label: "瀹℃壒鐘舵��",
@@ -224,7 +227,7 @@
fetchBusinessTypeOptions(),
listApprovalTemplate(TEMPLATE_TYPE_CUSTOM),
]);
- submitBusinessTypeOptions.value = typeOptions.filter((x) => ![5, 6, 7].includes(x.value));
+ submitBusinessTypeOptions.value = typeOptions.filter((x) => ![5, 6, 7, 19].includes(x.value));
allSubmitTemplates.value = unwrapTemplateList(customRes)
.filter((row) => mapEnabledFromApi(row.enabled))
.map(mapSubmitTemplateCard);
@@ -322,6 +325,22 @@
}
}
+ // 閿�鍞鎵癸細鐢� quotationNo锛堥攢鍞悎鍚屽彿锛夊幓鏌ラ攢鍞彴璐﹁鎯�
+ else if (row.businessType === 19) {
+ const salesContractNo = row?.quotationNo;
+ if (salesContractNo) {
+ const listRes = await ledgerListPage({ salesContractNo });
+ const records = listRes?.records || listRes?.data || [];
+ const ledger = Array.isArray(records) ? records[0] : null;
+ if (ledger?.id) {
+ const detail = await getSalesLedgerWithProducts({ id: ledger.id, type: 1 });
+ detailData.value = detail || ledger;
+ } else {
+ detailData.value = ledger || {};
+ }
+ }
+ }
+
// 鍏朵粬瀹℃壒绫诲瀷
else {
detailData.value = {};
@@ -367,6 +386,22 @@
}
}
+ // 閿�鍞鎵癸細鐢� quotationNo锛堥攢鍞悎鍚屽彿锛夊幓鏌ラ攢鍞彴璐﹁鎯�
+ else if (row.businessType === 19) {
+ const salesContractNo = row?.quotationNo;
+ if (salesContractNo) {
+ const listRes = await ledgerListPage({ salesContractNo });
+ const records = listRes?.records || listRes?.data || [];
+ const ledger = Array.isArray(records) ? records[0] : null;
+ if (ledger?.id) {
+ const detail = await getSalesLedgerWithProducts({ id: ledger.id, type: 1 });
+ detailData.value = detail || ledger;
+ } else {
+ detailData.value = ledger || {};
+ }
+ }
+ }
+
// 鍏朵粬瀹℃壒绫诲瀷
else {
detailData.value = {};
--
Gitblit v1.9.3