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/travel-reimburse/travelReimburseUtils.js | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/travelReimburseUtils.js b/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/travelReimburseUtils.js
index d898614..2505ce3 100644
--- a/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/travelReimburseUtils.js
+++ b/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/travelReimburseUtils.js
@@ -137,19 +137,10 @@
return { nodes, currentNodeIndex: idx, approvalResult: "rejected", rejectReason: opinion || "椹冲洖" };
}
-/** 妯℃嫙閮ㄩ棬棰勭畻锛堜笌棰勭畻绯荤粺鑱斿姩鍗犱綅锛� */
+/** 閮ㄩ棬棰勭畻锛堝鎺ラ绠楃郴缁熷墠杩斿洖绌猴級 */
export function mockDeptBudget(deptId) {
- const id = String(deptId || "default");
- let s = 0;
- for (let i = 0; i < id.length; i++) s += id.charCodeAt(i);
- const total = 500000 + (s % 200) * 1000;
- const used = (s % 80) * 3500;
- return {
- deptId: id,
- totalBudget: total,
- usedAmount: used,
- remainingAmount: Math.max(0, total - used),
- };
+ if (!deptId) return null;
+ return null;
}
export function normalizeImportedRow(raw, idx) {
--
Gitblit v1.9.3