From ea4638a34c776ecba891b6ac026f5699798d6c2c Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 03 七月 2026 16:52:32 +0800
Subject: [PATCH] fix: 合同管理岗位字段展示错误

---
 src/views/procurementManagement/procurementLedger/index.vue |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index 76dc5d6..164ec9f 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -604,8 +604,8 @@
             <el-form-item label="鍚◣鍗曚环(鍏�)锛�"
                           prop="taxInclusiveUnitPrice">
               <el-input-number v-model="productForm.taxInclusiveUnitPrice"
-                               :precision="2"
-                               :step="0.1"
+                               :precision="4"
+                               :step="0.0001"
                                :min="0"
                                clearable
                                style="width: 100%"
@@ -617,7 +617,7 @@
                           prop="quantity">
               <el-input-number :step="0.1"
                                clearable
-                               :precision="2"
+                               :precision="5"
                                :min="0"
                                style="width: 100%"
                                v-model="productForm.quantity"
@@ -937,13 +937,9 @@
   const { form, rules } = toRefs(data);
   const { form: searchForm } = useFormData({
     ...data.searchForm,
-    // 璁剧疆褰曞叆鏃ユ湡鑼冨洿涓哄綋澶�
-    entryDate: [
-      dayjs().startOf("day").format("YYYY-MM-DD"),
-      dayjs().endOf("day").format("YYYY-MM-DD"),
-    ],
-    entryDateStart: dayjs().startOf("day").format("YYYY-MM-DD"),
-    entryDateEnd: dayjs().endOf("day").format("YYYY-MM-DD"),
+    entryDate: null,
+    entryDateStart: undefined,
+    entryDateEnd: undefined,
   });
 
   // 浜у搧琛ㄥ崟寮规鏁版嵁
@@ -1072,7 +1068,9 @@
   };
 
   const formattedNumber = (row, column, cellValue) => {
-    return parseFloat(cellValue).toFixed(2);
+    const val = Number(cellValue ?? 0);
+    if (!Number.isFinite(val)) return "0.00";
+    return column.property === "taxInclusiveUnitPrice" ? val.toFixed(4) : val.toFixed(2);
   };
   // 鏌ヨ鍒楄〃
   /** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -1267,7 +1265,7 @@
       "taxInclusiveUnitPrice",
       "taxInclusiveTotalPrice",
       "taxExclusiveTotalPrice",
-    ]);
+    ], { taxInclusiveUnitPrice: { decimalPlaces: 4 } });
   };
   // 鎵撳紑寮规
   const openForm = async (type, row) => {
@@ -1769,7 +1767,7 @@
         productForm.value.taxInclusiveUnitPrice = (
           Number(productForm.value.taxInclusiveTotalPrice) /
           Number(productForm.value.quantity)
-        ).toFixed(2);
+        ).toFixed(4);
         // 纭繚缁撴灉涓嶄负璐熸暟
         if (Number(productForm.value.taxInclusiveUnitPrice) < 0) {
           productForm.value.taxInclusiveUnitPrice = "0";
@@ -1810,7 +1808,7 @@
         productForm.value.taxInclusiveUnitPrice = (
           Number(productForm.value.taxInclusiveTotalPrice) /
           Number(productForm.value.quantity)
-        ).toFixed(2);
+        ).toFixed(4);
         // 纭繚缁撴灉涓嶄负璐熸暟
         if (Number(productForm.value.taxInclusiveUnitPrice) < 0) {
           productForm.value.taxInclusiveUnitPrice = "0";

--
Gitblit v1.9.3