From a387709376961b134da6fb35975663947519e5b2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 19 八月 2026 17:42:04 +0800
Subject: [PATCH] 天津-阳光彩印 1.公出管理列表详情页「申请部门」当前只展示部门 ID,需替换为部门名称展示 2.同一机台排产多人、多班组生产时,报工支持拆分录入多人产量、分开记录各班组生产时长,生产核算自动汇总全部工时 3.生产工单列表删除「计划开始、计划结束」字段,移除进度条组件,简化页面展示 4.销售台账新增产品弹窗内含税单价小数位数调整为 5 位,匹配合同精准计价需求,避免金额尾差

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

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index 1e5a0fe..7bb01c6 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -647,7 +647,7 @@
                                :min="0"
                                v-model="productForm.taxInclusiveUnitPrice"
                                style="width: 100%"
-                               :precision="4"
+                               :precision="5"
                                placeholder="璇疯緭鍏�"
                                clearable
                                @change="calculateFromQuantity" />
@@ -1179,6 +1179,12 @@
     if (Number.isNaN(num)) return "0.0000";
     return num.toFixed(4);
   };
+  const formatAmount5 = value => {
+    if (value === undefined || value === null || value === "") return "0.00000";
+    const num = Number(value);
+    if (Number.isNaN(num)) return "0.00000";
+    return num.toFixed(5);
+  };
   const findLedgerRecordByRow = row => {
     if (!row) return null;
     if (
@@ -1663,7 +1669,7 @@
           productForm.value.taxInclusiveUnitPrice !== null &&
           productForm.value.taxInclusiveUnitPrice !== ""
         ) {
-          productForm.value.taxInclusiveUnitPrice = formatAmount4(
+          productForm.value.taxInclusiveUnitPrice = formatAmount5(
             productForm.value.taxInclusiveUnitPrice
           );
         }
@@ -2298,7 +2304,7 @@
     productForm.value.taxInclusiveTotalPrice = totalPrice.toFixed(4);
 
     // 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
-    productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(4);
+    productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(5);
 
     // 濡傛灉鏈夌◣鐜囷紝璁$畻涓嶅惈绋庢�讳环
     if (productForm.value.taxRate) {
@@ -2342,7 +2348,7 @@
     // 璁$畻鍚◣鍗曚环 = 鍚◣鎬讳环 / 鏁伴噺
     productForm.value.taxInclusiveUnitPrice = (
       inclusiveTotalPrice / quantity
-    ).toFixed(4);
+    ).toFixed(5);
 
     isCalculating.value = false;
   };

--
Gitblit v1.9.3