From 06b919933d0aa639bebc616d2af3ee4372bdbe95 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 21 一月 2026 10:17:54 +0800
Subject: [PATCH] 新疆海川开心 1.生产报工单价默认值修改

---
 src/views/productionManagement/productionReporting/components/formDia.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/components/formDia.vue b/src/views/productionManagement/productionReporting/components/formDia.vue
index 18df18d..e54adc7 100644
--- a/src/views/productionManagement/productionReporting/components/formDia.vue
+++ b/src/views/productionManagement/productionReporting/components/formDia.vue
@@ -52,8 +52,8 @@
                 v-model="scope.row.unitPrice"
                 placeholder="璇疯緭鍏�"
                 :min="0"
-                :step="0.01"
-                :precision="2"
+                :step="0.001"
+                :precision="3"
                 clearable
                 style="width: 100%"
                 @change="() => calculateTotalPrice(scope.row)"
@@ -143,7 +143,7 @@
 		const total = Number(row?.schedulingNum ?? 0);
 		const pendingFinish = Number(row?.pendingFinishNum ?? 0);
 		const autoFill = pendingFinish > 0 ? Math.min(pendingFinish, total) : total;
-		const unitPrice = row?.unitPrice ? Number(row.unitPrice) : 0.33;
+		const unitPrice = row?.unitPrice ? Number(row.unitPrice) : 0.033;
 		
 		return {
 			id: row?.id ?? null,
@@ -154,7 +154,7 @@
 			pendingFinishNum: pendingFinish, // 淇濆瓨鍘熷鐨勫緟鎶ュ伐鏁伴噺
 			finishedNum: autoFill,
 			unitPrice: unitPrice,
-			totalPrice: (autoFill * unitPrice).toFixed(2),
+			totalPrice: (autoFill * unitPrice).toFixed(3),
 			schedulingUserId: row?.schedulingUserId ?? '',
 			schedulingDate: row?.schedulingDate ?? '',
 		};
@@ -180,7 +180,7 @@
 	const unitPrice = Number(row.unitPrice ?? 0);
 	
 	if (quantity > 0 && unitPrice > 0) {
-		row.totalPrice = (quantity * unitPrice).toFixed(2);
+		row.totalPrice = (quantity * unitPrice).toFixed(3);
 	} else {
 		row.totalPrice = '0.00';
 	}
@@ -217,7 +217,7 @@
 	const payloadList = reportList.value.map(item => ({
 		id: item.id,
 		finishedNum: Number(item.finishedNum),
-		unitPrice: Number(item.unitPrice || 0.33),
+		unitPrice: Number(item.unitPrice || 0.033),
 		totalPrice: Number(item.totalPrice || 0),
 		schedulingUserId: item.schedulingUserId,
 		schedulingDate: item.schedulingDate,

--
Gitblit v1.9.3