From f670b79094c95d791fc43c8fc8b5858ebf8426dc Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 17 九月 2026 13:50:29 +0800
Subject: [PATCH] 一些向web对齐

---
 src/pages/sales/salesQuotation/edit.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/pages/sales/salesQuotation/edit.vue b/src/pages/sales/salesQuotation/edit.vue
index bfcb930..bea1354 100644
--- a/src/pages/sales/salesQuotation/edit.vue
+++ b/src/pages/sales/salesQuotation/edit.vue
@@ -267,6 +267,13 @@
         .toFixed(2)
     )
   );
+  const webSubmitTotalAmount = computed(() =>
+    Number(
+      (form.value.products || [])
+        .reduce((sum, item) => sum + Number(item.unitPrice || 0), 0)
+        .toFixed(2)
+    )
+  );
   const customerActions = computed(() =>
     customerList.value.map(item => ({
       name: item.customerName,
@@ -543,8 +550,8 @@
     if (!valid || !validateProducts()) return;
     loading.value = true;
 
-    // 鍚屾鏈�鏂扮殑鎬婚
-    form.value.totalAmount = totalAmount.value;
+    // Web 绔彁浜ゆ椂鎸変骇鍝佸崟浠锋眹鎬� totalAmount锛宻ubtotal 浠嶄繚鐣欐槑缁嗛噾棰濆悎璁$敤浜庡睍绀恒��
+    form.value.totalAmount = webSubmitTotalAmount.value;
     form.value.subtotal = totalAmount.value;
 
     const payload = {

--
Gitblit v1.9.3