From df605c69a17bb548e3f98e10f7cc3c3298e5d8f7 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 25 三月 2026 16:31:10 +0800
Subject: [PATCH] 过程检验列表加上不良数量、合格数量字段。过程检验编辑页面也加上不良数量、合格数量字段,不良数量输入框手填,合格数量,数量输入框置灰,根据根据不良数量+合格数量=数量这一逻辑计算。若不填默认不良数量为0。数量是订单本次生产数量-报废数量

---
 src/views/productionManagement/workOrder/components/CopperPrintingForm.vue |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/views/productionManagement/workOrder/components/CopperPrintingForm.vue b/src/views/productionManagement/workOrder/components/CopperPrintingForm.vue
index 7a11105..4d80750 100644
--- a/src/views/productionManagement/workOrder/components/CopperPrintingForm.vue
+++ b/src/views/productionManagement/workOrder/components/CopperPrintingForm.vue
@@ -18,10 +18,6 @@
     type: Boolean,
     default: false
   },
-  detailData: {
-    type: Object,
-    default: () => ({}),
-  },
   row: {
     type: Object,
     default: () => ({}),
@@ -150,8 +146,8 @@
 
 const initData = () => {
   if (!props.isEdit) {
-    formData.otherData = JSON.parse(props.detailData.otherData || '{}');
-    formData.quantity = props.detailData.quantity;
+    formData.otherData = JSON.parse(props.row.otherData || '{}');
+    formData.quantity = props.row.quantity;
   } else {
     const row = props.row;
     formData.planQuantity = row.planQuantity
@@ -174,7 +170,7 @@
 
 <template>
   <el-dialog v-model="visible"
-             title="鍗伴摐鎶ュ伐"
+             :title="isEdit? '鍗伴摐鎶ュ伐' : '璇︽儏'"
              width="90%">
     <el-form :model="formData">
       <table class="report-table">

--
Gitblit v1.9.3