From 7f7f2ed6cc332d82260077a2e13920569dcc9632 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 30 三月 2026 09:42:29 +0800
Subject: [PATCH] fix(productionReporting): 修复生产数量输入框类型和验证
---
src/views/productionManagement/productionReporting/components/formDia.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/components/formDia.vue b/src/views/productionManagement/productionReporting/components/formDia.vue
index 126c5b0..ee65546 100644
--- a/src/views/productionManagement/productionReporting/components/formDia.vue
+++ b/src/views/productionManagement/productionReporting/components/formDia.vue
@@ -141,7 +141,7 @@
const calculateTotalPrice = () => {
const quantity = Number(form.value.finishedNum ?? 0);
const unitPrice = Number(form.value.unitPrice ?? 0);
-
+
if (quantity > 0 && unitPrice > 0) {
form.value.totalPrice = (quantity * unitPrice).toFixed(2);
} else {
@@ -181,4 +181,4 @@
<style scoped>
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3