zhangwencui
2 天以前 f670b79094c95d791fc43c8fc8b5858ebf8426dc
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,subtotal 仍保留明细金额合计用于展示。
    form.value.totalAmount = webSubmitTotalAmount.value;
    form.value.subtotal = totalAmount.value;
    const payload = {