From 3c4267498aa7397d2d2fe1d3a13ca75b15e98958 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 13 六月 2026 16:00:29 +0800
Subject: [PATCH] fix: 报废数量默认为0
---
src/views/productionManagement/workOrderManagement/index.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/productionManagement/workOrderManagement/index.vue b/src/views/productionManagement/workOrderManagement/index.vue
index a9cf39d..e88920d 100644
--- a/src/views/productionManagement/workOrderManagement/index.vue
+++ b/src/views/productionManagement/workOrderManagement/index.vue
@@ -421,7 +421,7 @@
const reportForm = reactive({
planQuantity: 0,
quantity: null,
- scrapQty: null,
+ scrapQty: 0,
userName: "",
workOrderId: "",
reportWork: "",
@@ -668,7 +668,7 @@
reportForm.reportWork = row.reportWork;
reportForm.productMainId = row.productMainId;
reportForm.scrapQty =
- row.scrapQty !== undefined && row.scrapQty !== null ? row.scrapQty : null;
+ row.scrapQty !== undefined && row.scrapQty !== null ? row.scrapQty : 0;
reportForm.productionOrderRoutingOperationId =
row.productionOrderRoutingOperationId;
reportForm.productionOrderId = row.productionOrderId;
--
Gitblit v1.9.3