From efc0c3a697969503634138d7881543f4099b81ca Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 20 五月 2026 13:32:09 +0800
Subject: [PATCH] 审批模板导入只能从已有模板导入

---
 src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/useCostReimburse.js |  104 +--------------------------------------------------
 1 files changed, 3 insertions(+), 101 deletions(-)

diff --git a/src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/useCostReimburse.js b/src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/useCostReimburse.js
index 79ffe6b..a37ee4e 100644
--- a/src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/useCostReimburse.js
+++ b/src/views/officeProcessAutomation/ReimburseManage/cost-reimburse/useCostReimburse.js
@@ -42,105 +42,7 @@
 export function useCostReimburse() {
   const { proxy } = getCurrentInstance();
 
-  const allRows = ref([
-    {
-      id: "1",
-      reimburseNo: "CR202605100001",
-      applicantId: "mock_1",
-      employeeNo: "zhangsan",
-      employeeName: "寮犱笁",
-      applicantNo: "zhangsan",
-      applicantName: "寮犱笁",
-      expenseCategory: "office_procurement",
-      reimburseReason: "閲囪喘鎵撳嵃鏈虹榧撱�丄4绾哥瓑鍔炲叕鑰楁潗銆�",
-      applyAmount: 680,
-      payee: "寮犱笁",
-      payeeAccount: "6222 **** **** 1234",
-      bankBranch: "涓浗宸ュ晢閾惰鏉窞瑗挎箹鏀",
-      expenseDetails: [
-        { id: "d1", invoiceDate: "2026-05-08", expenseSubject: "office_supply", amount: 380, description: "A4澶嶅嵃绾�" },
-        { id: "d2", invoiceDate: "2026-05-08", expenseSubject: "office_supply", amount: 300, description: "纭掗紦" },
-      ],
-      attachmentList: [{ name: "閲囪喘鍙戠エ.pdf", url: "/mock/invoice1.pdf" }],
-      approvalFlowNodes: demoFlowNodes(680, "office_procurement"),
-      currentNodeIndex: 0,
-      approvalResult: "pending",
-      rejectReason: "",
-      approvalRecords: [],
-      applyTime: "2026-05-10 09:15:00",
-      createTime: "2026-05-10 09:15:00",
-      deptId: "101",
-      deptName: "琛屾斂閮�",
-    },
-    {
-      id: "2",
-      reimburseNo: "CR202605080002",
-      applicantId: "mock_2",
-      employeeNo: "lisi",
-      employeeName: "鏉庡洓",
-      applicantNo: "lisi",
-      applicantName: "鏉庡洓",
-      expenseCategory: "business_entertainment",
-      reimburseReason: "鎺ュ緟閲嶇偣瀹㈡埛鍟嗗姟瀹磋銆�",
-      applyAmount: 3200,
-      payee: "鏉庡洓",
-      payeeAccount: "6217 **** **** 5678",
-      bankBranch: "鎷涘晢閾惰姝︽眽鍏夎胺鏀",
-      expenseDetails: [
-        { id: "d3", invoiceDate: "2026-05-06", expenseSubject: "entertainment", amount: 3200, description: "瀹㈡埛瀹磋" },
-      ],
-      attachmentList: [],
-      approvalFlowNodes: demoFlowNodes(3200, "business_entertainment").map((n, i) => ({
-        ...n,
-        nodeStatus: i === 0 ? "error" : "wait",
-        approveOpinion: i === 0 ? "鍙戠エ妯$硦闇�閲嶄紶" : "",
-        approveTime: i === 0 ? "2026-05-09 14:20:00" : "",
-      })),
-      currentNodeIndex: 0,
-      approvalResult: "rejected",
-      rejectReason: "鍙戠エ妯$硦闇�閲嶄紶",
-      approvalRecords: [
-        { operatorName: "鐩村睘涓婄骇", result: "rejected", opinion: "鍙戠エ妯$硦闇�閲嶄紶", time: "2026-05-09 14:20:00" },
-      ],
-      applyTime: "2026-05-07 16:30:00",
-      createTime: "2026-05-07 16:30:00",
-      deptId: "102",
-      deptName: "閿�鍞儴",
-    },
-    {
-      id: "3",
-      reimburseNo: "CR202605050003",
-      applicantId: "mock_3",
-      employeeNo: "wangwu",
-      employeeName: "鐜嬩簲",
-      applicantNo: "wangwu",
-      applicantName: "鐜嬩簲",
-      expenseCategory: "communication",
-      reimburseReason: "5鏈堝洜鍏瘽璐规姤閿�銆�",
-      applyAmount: 198,
-      payee: "鐜嬩簲",
-      payeeAccount: "6228 **** **** 9012",
-      bankBranch: "涓浗寤鸿閾惰鎴愰兘楂樻柊鏀",
-      expenseDetails: [
-        { id: "d4", invoiceDate: "2026-05-05", expenseSubject: "phone", amount: 198, description: "璇濊垂璐﹀崟" },
-      ],
-      attachmentList: [{ name: "璇濊垂璐﹀崟.jpg", url: "/mock/phone.jpg" }],
-      approvalFlowNodes: demoFlowNodes(198, "communication").map((n) => ({
-        ...n,
-        nodeStatus: "finish",
-        approveOpinion: "鍚屾剰",
-        approveTime: "2026-05-06 10:00:00",
-      })),
-      currentNodeIndex: 0,
-      approvalResult: "approved",
-      rejectReason: "",
-      approvalRecords: [{ operatorName: "鐩村睘涓婄骇", result: "approved", opinion: "鍚屾剰", time: "2026-05-06 10:00:00" }],
-      applyTime: "2026-05-05 11:00:00",
-      createTime: "2026-05-05 11:00:00",
-      deptId: "103",
-      deptName: "鎶�鏈儴",
-    },
-  ]);
+  const allRows = ref([]);
 
   const searchForm = reactive({
     applicantKeyword: "",
@@ -508,7 +410,7 @@
         applyTime: now,
         createTime: now,
       });
-      proxy?.$modal?.msgSuccess?.("鎻愪氦鎴愬姛锛屽凡杩涘叆瀹℃壒锛堟湰鍦版ā鎷燂級");
+      proxy?.$modal?.msgSuccess?.("鎻愪氦鎴愬姛");
     } else {
       const idx = allRows.value.findIndex((r) => r.id === form.id);
       if (idx !== -1) {
@@ -525,7 +427,7 @@
           createTime: prev.createTime,
         };
       }
-      proxy?.$modal?.msgSuccess?.("淇濆瓨鎴愬姛锛堟湰鍦版ā鎷燂級");
+      proxy?.$modal?.msgSuccess?.("淇濆瓨鎴愬姛");
     }
     formDialog.visible = false;
     handleQuery();

--
Gitblit v1.9.3