From e0d6fcbb2a3759876d65652dfa7953326803b1bd Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 15 八月 2026 14:14:41 +0800
Subject: [PATCH] fix: 日期格式化

---
 src/views/customerService/feedbackRegistration/components/formDia.vue |   49 ++++++++++++++++++++-----------------------------
 1 files changed, 20 insertions(+), 29 deletions(-)

diff --git a/src/views/customerService/feedbackRegistration/components/formDia.vue b/src/views/customerService/feedbackRegistration/components/formDia.vue
index e606107..fd3091e 100644
--- a/src/views/customerService/feedbackRegistration/components/formDia.vue
+++ b/src/views/customerService/feedbackRegistration/components/formDia.vue
@@ -97,9 +97,6 @@
                 {{ getShippingStatusText(row) }}
               </el-tag>
             </template>
-            <template #quantity="{ row }">
-              <el-input-number v-model="row.quantity" :min="0" size="small" />
-            </template>
           </PIMTable>
         </div>
       </div>
@@ -150,7 +147,6 @@
       salesContractNo: "",
       proDesc: "",
       customerName: "",
-      productModelQuantities: "",
     },
     rules: {
       customerName: [
@@ -244,12 +240,25 @@
       align: "center",
     },
     { label: "鍙戣揣鏃ユ湡", prop: "shippingDate", minWidth: 100, align: "center" },
+    { label: "鏁伴噺", prop: "quantity", width: 100 },
+    { label: "绋庣巼(%)", prop: "taxRate", width: 100 },
     {
-      label: "鏁伴噺",
-      prop: "quantity",
-      width: 140,
-      dataType: "slot",
-      slot: "quantity",
+      label: "鍚◣鍗曚环(鍏�)",
+      prop: "taxInclusiveUnitPrice",
+      width: 160,
+      formatData: formatCurrency,
+    },
+    {
+      label: "鍚◣鎬讳环(鍏�)",
+      prop: "taxInclusiveTotalPrice",
+      width: 160,
+      formatData: formatCurrency,
+    },
+    {
+      label: "涓嶅惈绋庢�讳环(鍏�)",
+      prop: "taxExclusiveTotalPrice",
+      width: 160,
+      formatData: formatCurrency,
     },
     {
       dataType: "action",
@@ -317,7 +326,7 @@
       form.value.customerId = null;
     }
     getSalesLedger({
-      customerId: form.value.customerId,
+      customerName: form.value.customerName,
     }).then(res => {
       if (res.code === 200) {
         associatedSalesOrderNumberOptions.value = res.data.records.map(item => ({
@@ -425,7 +434,7 @@
       form.value = { ...row };
       if (form.value.customerName) {
         const res = await getSalesLedger({
-          customerId: form.value.customerId,
+          customerName: form.value.customerName,
         });
         if (res?.code === 200) {
           console.log(res);
@@ -437,21 +446,6 @@
               id: item.id,
             })
           );
-          const opt = associatedSalesOrderNumberOptions.value.find(
-            item => item.value === form.value.salesContractNo
-          );
-          if (opt) {
-            let restoredData = (opt.productData || []).map(normalizeProductRow);
-            const selectedIds = form.value.productModelIds ? String(form.value.productModelIds).split(",") : [];
-            const quantities = form.value.productModelQuantities ? String(form.value.productModelQuantities).split(",") : [];
-            tableData.value = restoredData.filter(item => selectedIds.includes(String(item.id))).map(item => {
-              let qIndex = selectedIds.indexOf(String(item.id));
-              if (qIndex !== -1 && qIndex < quantities.length && quantities[qIndex] !== "") {
-                 item.quantity = Number(quantities[qIndex]);
-              }
-              return item;
-            });
-          }
         }
       }
       console.log(form.value);
@@ -463,9 +457,6 @@
         // 鍖归厤浜у搧鍨嬪彿IDs
         form.value.productModelIds = tableData.value
           .map(item => item.id)
-          .join(",");
-        form.value.productModelQuantities = tableData.value
-          .map(item => item.quantity || 0)
           .join(",");
         if (operationType.value === "add") {
           afterSalesServiceAdd(form.value).then(response => {

--
Gitblit v1.9.3