From 6ce67a8e4a226e4c97dfeb53b843489f8c9c21bc Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 17 六月 2026 14:58:13 +0800
Subject: [PATCH] 样式调整

---
 src/views/salesManagement/salesLedger/index.vue |   35 ++++++++++++++---------------------
 1 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index ea656cf..86af284 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -161,7 +161,7 @@
                                prop="taxRate" />
               <el-table-column label="鍚◣鍗曚环(鍏�)"
                                prop="taxInclusiveUnitPrice"
-                               :formatter="sensitiveUnitPriceFormatter" />
+                               :formatter="sensitiveAmountFormatter" />
               <el-table-column label="鍚◣鎬讳环(鍏�)"
                                prop="taxInclusiveTotalPrice"
                                :formatter="sensitiveAmountFormatter" />
@@ -455,8 +455,8 @@
           <el-table-column label="绋庣巼(%)"
                            prop="taxRate" />
           <el-table-column label="鍚◣鍗曚环(鍏�)"
-                            prop="taxInclusiveUnitPrice"
-                            :formatter="unitPriceFormatter" />
+                           prop="taxInclusiveUnitPrice"
+                           :formatter="formattedNumber" />
           <el-table-column label="鍚◣鎬讳环(鍏�)"
                            prop="taxInclusiveTotalPrice"
                            :formatter="formattedNumber" />
@@ -668,7 +668,7 @@
                                :min="0"
                                v-model="productForm.taxInclusiveUnitPrice"
                                style="width: 100%"
-                               :precision="6"
+                               :precision="2"
                                placeholder="璇疯緭鍏�"
                                clearable
                                @change="calculateFromUnitPrice" />
@@ -722,7 +722,7 @@
               </el-select>
             </el-form-item>
           </el-col>
-          <el-col :span="12">
+<!--          <el-col :span="12">
             <el-form-item label="鏄惁鐢熶骇锛�"
                           prop="isProduction">
               <el-radio-group v-model="productForm.isProduction">
@@ -732,7 +732,7 @@
                           :value="false" />
               </el-radio-group>
             </el-form-item>
-          </el-col>
+          </el-col>-->
         </el-row>
       </el-form>
     </FormDialog>
@@ -1017,6 +1017,7 @@
       <template #footer>
         <div class="dialog-footer">
           <el-button type="primary"
+                     :loading="deliveryLoading"
                      @click="submitDelivery">纭鍙戣揣
           </el-button>
           <el-button @click="closeDeliveryDia">鍙栨秷</el-button>
@@ -1182,6 +1183,7 @@
 
   // 鍙戣揣鐩稿叧
   const deliveryFormVisible = ref(false);
+  const deliveryLoading = ref(false);
   const currentDeliveryRow = ref(null);
   const getDeliveryBatchQuantity = item => {
     const quantity =
@@ -1402,12 +1404,6 @@
     }
     return parseFloat(cellValue).toFixed(2);
   };
-  const unitPriceFormatter = (row, column, cellValue) => {
-    if (cellValue === undefined || cellValue === null || cellValue === "") {
-      return "0.000000";
-    }
-    return parseFloat(cellValue).toFixed(6);
-  };
   const findLedgerRecordByRow = row => {
     if (!row) return null;
     if (
@@ -1460,12 +1456,6 @@
       return "*****";
     }
     return formattedNumber(row, column, cellValue);
-  };
-  const sensitiveUnitPriceFormatter = (row, column, cellValue) => {
-    if (!isCurrentUserMaintainer(row)) {
-      return "*****";
-    }
-    return unitPriceFormatter(row, column, cellValue);
   };
   // 鑾峰彇tree瀛愭暟鎹�
   const getModels = value => {
@@ -1746,7 +1736,7 @@
         unit: p.unit || "",
         quantity: quantity,
         taxRate: taxRate,
-        taxInclusiveUnitPrice: unitPrice.toFixed(6),
+        taxInclusiveUnitPrice: unitPrice.toFixed(2),
         taxInclusiveTotalPrice: taxInclusiveTotalPrice,
         taxExclusiveTotalPrice: taxExclusiveTotalPrice,
         invoiceType: "澧炴櫘绁�",
@@ -2478,7 +2468,7 @@
     isCalculating.value = true;
 
     // 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
-    productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(6);
+    productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(2);
 
     // 濡傛灉鏈夌◣鐜囷紝璁$畻涓嶅惈绋庢�讳环
     if (productForm.value.taxRate) {
@@ -2520,7 +2510,7 @@
     // 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
     productForm.value.taxInclusiveUnitPrice = (
       inclusiveTotalPrice / quantity
-    ).toFixed(6);
+    ).toFixed(2);
 
     isCalculating.value = false;
   };
@@ -2772,6 +2762,7 @@
         const productModelId =
           currentDeliveryRow.value.productModelId ||
           currentDeliveryRow.value.modelId;
+        deliveryLoading.value = true;
         addShippingInfo({
           salesLedgerId: salesLedgerId,
           salesLedgerProductId: currentDeliveryRow.value.id,
@@ -2822,6 +2813,8 @@
               });
             }
           });
+        }).finally(() => {
+            deliveryLoading.value = false;
         });
       }
     });

--
Gitblit v1.9.3