From 7d19cad35ba34a0ccca5f283d82000e1c36cd462 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 04 十一月 2026 00:33:24 +0800
Subject: [PATCH] fix: 差旅报销编辑弹窗部门预算空指针导致黑屏
---
src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js b/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js
index 904a450..c493d95 100644
--- a/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js
+++ b/src/views/officeProcessAutomation/ReimburseManage/travel-reimburse/useTravelReimburse.js
@@ -162,6 +162,8 @@
const budgetHint = computed(() => {
if (!form.deptId) return { visible: false };
const b = mockDeptBudget(form.deptId);
+ // 棰勭畻鎺ュ彛灏氭湭鎺ュ叆鏃� mockDeptBudget 杩斿洖 null锛岄伩鍏嶈鎯�/缂栬緫寮圭獥娓叉煋鎶ラ敊
+ if (!b) return { visible: false };
const apply = Number(form.applyAmount) || detailTotalAmount.value || 0;
const after = b.remainingAmount - apply;
return {
--
Gitblit v1.9.3