From 91bb42bf4d985d6551ee0d68ad5d5f483924f9fc Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期二, 26 五月 2026 10:41:24 +0800
Subject: [PATCH] Revert "修改单价保留6位小数"

---
 src/views/procurementManagement/procurementLedger/detail.vue |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/detail.vue b/src/views/procurementManagement/procurementLedger/detail.vue
index 9566fa5..37b7fdb 100644
--- a/src/views/procurementManagement/procurementLedger/detail.vue
+++ b/src/views/procurementManagement/procurementLedger/detail.vue
@@ -61,14 +61,14 @@
         <el-table-column label="鏁伴噺" prop="quantity" />
         <el-table-column label="搴撳瓨棰勭暀鏁伴噺" prop="stockReservedQuantity" />
         <el-table-column label="绋庣巼(%)" prop="taxRate" />
-        <el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" :formatter="unitPriceFormattedNumber" width="150" />
+        <el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" width="150" />
         <el-table-column label="鍚◣鎬讳环(鍏�)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" width="150" />
         <el-table-column label="涓嶅惈绋庢�讳环(鍏�)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" width="150" />
         <template #append>
           <div class="summary-row" v-if="productData.length > 0">
             <div class="summary-label">鍚堣</div>
             <div class="summary-value" style="width: 150px">
-              {{ unitPriceFormattedNumber(null, null, sumTaxInclusiveUnitPrice) }}
+              {{ formattedNumber(null, null, sumTaxInclusiveUnitPrice) }}
             </div>
             <div class="summary-value" style="width: 150px">
               {{ formattedNumber(null, null, sumTaxInclusiveTotalPrice) }}
@@ -160,14 +160,6 @@
 const formattedNumber = (row, column, cellValue) => {
   if (cellValue != null && !isNaN(cellValue)) {
     return Number(cellValue).toFixed(2)
-  }
-  return cellValue
-}
-
-
-const unitPriceFormattedNumber = (row, column, cellValue) => {
-  if (cellValue != null && !isNaN(cellValue)) {
-    return Number(cellValue).toFixed(6)
   }
   return cellValue
 }

--
Gitblit v1.9.3