From 9f79296b830c3c00a3a08dae4326af864a15d0ea Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 19:17:10 +0800
Subject: [PATCH] fix: bug

---
 src/views/ServiceChargeManage/components/EditAccountInfoDialog.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/views/ServiceChargeManage/components/EditAccountInfoDialog.vue b/src/views/ServiceChargeManage/components/EditAccountInfoDialog.vue
index dfc8c0d..b594f6c 100644
--- a/src/views/ServiceChargeManage/components/EditAccountInfoDialog.vue
+++ b/src/views/ServiceChargeManage/components/EditAccountInfoDialog.vue
@@ -70,6 +70,7 @@
           :controls="false"
           :min="0"
           unit="鍏�"
+          @change="onActualSettlementAmountChange"
         ></ProFormInputNumber>
       </ProFormItemV2>
       <ProFormItemV2 label="鍏朵粬璐圭敤锛�" prop="otherFee">
@@ -78,6 +79,7 @@
           v-model.trim="form.otherFee"
           :controls="false"
           unit="鍏�"
+          @change="onActualSettlementAmountChange"
         ></ProFormInputNumber>
       </ProFormItemV2>
       <ProFormItemV2 label="缁撶畻閲戦锛�" prop="settlementAmount" mode="read">
@@ -170,12 +172,19 @@
   (e: 'onCancel'): void;
 }>();
 
-const settlementAmount = computed(
-  () => (form.value.timeoutFee ?? 0) + (form.value.serviceFee ?? 0) + (form.value.otherFee ?? 0)
-);
+const settlementAmount = computed(() => sumSettlementAmount());
+
+function sumSettlementAmount() {
+  return (form.value.timeoutFee ?? 0) + (form.value.serviceFee ?? 0) + (form.value.otherFee ?? 0);
+}
 
 function onTimeoutHoursChange(val: number) {
   form.value.timeoutFee = form.value.timeoutServiceFee * val;
+  onActualSettlementAmountChange();
+}
+
+function onActualSettlementAmountChange() {
+  form.value.actualSettlementAmount = sumSettlementAmount();
 }
 
 const dialogForm = ref<FormInstance>();

--
Gitblit v1.9.1