From a1df9699594b0a0e46d26a0394eafb1eb030c68b Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 20 五月 2026 17:42: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