From d5ba8dbd10c806312920c82b8285c1aacc41f6ab Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 31 三月 2026 18:00:20 +0800
Subject: [PATCH] 显示料号

---
 src/views/qualityManagement/processInspection/components/formDia.vue |   59 +++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 35 insertions(+), 24 deletions(-)

diff --git a/src/views/qualityManagement/processInspection/components/formDia.vue b/src/views/qualityManagement/processInspection/components/formDia.vue
index 58cca54..ba3fce6 100644
--- a/src/views/qualityManagement/processInspection/components/formDia.vue
+++ b/src/views/qualityManagement/processInspection/components/formDia.vue
@@ -43,28 +43,27 @@
           <el-col :span="12">
             <el-form-item label="鎸囨爣閫夋嫨锛�" prop="testStandardId">
               <el-select
-                v-model="form.testStandardId"
-                placeholder="璇烽�夋嫨鎸囨爣"
-                clearable
-                @change="handleTestStandardChange"
-                style="width: 100%"
+                  v-model="form.testStandardId"
+                  placeholder="璇烽�夋嫨鎸囨爣"
+                  clearable
+                  @change="handleTestStandardChange"
+                  style="width: 100%"
               >
                 <el-option
-                  v-for="item in testStandardOptions"
-                  :key="item.id"
-                  :label="item.standardName || item.standardNo"
-                  :value="item.id"
+                    v-for="item in testStandardOptions"
+                    :key="item.id"
+                    :label="item.standardName || item.standardNo"
+                    :value="item.id"
                 />
               </el-select>
             </el-form-item>
           </el-col>
-        </el-row>
-        <el-row :gutter="30">
           <el-col :span="12">
-            <el-form-item label="鍗曚綅锛�" prop="unit">
-              <el-input v-model="form.unit" placeholder="璇疯緭鍏�" disabled/>
+            <el-form-item label="鏂欏彿锛�" prop="materialCode">
+              <el-input v-model="form.materialCode" placeholder="璇疯緭鍏�" disabled/>
             </el-form-item>
           </el-col>
+
           <el-col :span="12">
             <el-form-item label="涓嶈壇鏁伴噺锛�" prop="defectiveQuantity">
               <el-input-number
@@ -80,18 +79,19 @@
               />
             </el-form-item>
           </el-col>
+
+          <el-col :span="12">
+            <el-form-item label="鍗曚綅锛�" prop="unit">
+              <el-input v-model="form.unit" placeholder="璇疯緭鍏�" disabled/>
+            </el-form-item>
+          </el-col>
+
           <el-col :span="12">
             <el-form-item label="鍚堟牸鏁伴噺锛�" prop="qualifiedQuantity">
               <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="form.qualifiedQuantity" placeholder="璇疯緭鍏�" clearable :precision="2" disabled/>
             </el-form-item>
           </el-col>
-          <el-col :span="12">
-            <el-form-item label="鏁伴噺锛�" prop="quantity">
-              <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="form.quantity" placeholder="璇疯緭鍏�" clearable :precision="2" :disabled="operationType !== 'add'"/>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
+
           <el-col :span="12">
             <el-form-item label="涓嶈壇鍘熷洜锛�" prop="defectiveReason">
               <el-select v-model="form.defectiveReason" placeholder="璇烽�夋嫨" clearable style="width: 100%">
@@ -105,13 +105,20 @@
             </el-form-item>
 
           </el-col>
+
+          <el-col :span="12">
+            <el-form-item label="鏁伴噺锛�" prop="quantity">
+              <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="form.quantity" placeholder="璇疯緭鍏�" clearable :precision="2" :disabled="operationType !== 'add'"/>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="30">
           <el-col :span="12">
             <el-form-item label="妫�娴嬪崟浣嶏細" prop="checkCompany">
               <el-input v-model="form.checkCompany" placeholder="璇疯緭鍏�" clearable/>
             </el-form-item>
           </el-col>
-        </el-row>
-        <el-row :gutter="30">
+
           <el-col :span="12">
             <el-form-item label="妫�楠屽憳锛�" prop="checkName">
               <el-select v-model="form.checkName" placeholder="璇烽�夋嫨" clearable>
@@ -119,14 +126,14 @@
                            :value="item.nickName"/>
               </el-select>
             </el-form-item>
-
+          </el-col>
+          <el-col :span="12">
             <el-form-item label="妫�娴嬬粨鏋滐細" prop="checkResult">
               <el-select v-model="form.checkResult">
                 <el-option label="鍚堟牸" value="鍚堟牸" />
                 <el-option label="涓嶅悎鏍�" value="涓嶅悎鏍�" />
               </el-select>
             </el-form-item>
-
           </el-col>
           <el-col :span="12">
             <el-form-item label="妫�娴嬫棩鏈燂細" prop="checkTime">
@@ -193,6 +200,7 @@
     model: "",
     testStandardId: "",
     unit: "",
+    materialCode: "",
     quantity: "",
     defectiveQuantity: "",
     defectiveReason: "",
@@ -309,6 +317,7 @@
 		model: "",
 		testStandardId: "",
 		unit: "",
+    materialCode: "",
 		quantity: "",
 		checkCompany: "",
 		checkResult: "",
@@ -393,6 +402,7 @@
 const getModels = (value) => {
   form.value.productModelId = undefined;
   form.value.unit = undefined;
+  form.value.materialCode = undefined;
   modelOptions.value = [];
   currentProductId.value = value
   form.value.productName = findNodeById(productOptions.value, value);
@@ -407,6 +417,7 @@
 const handleChangeModel = (value) => {
   form.value.model = modelOptions.value.find(item => item.id == value)?.model || '';
   form.value.unit = modelOptions.value.find(item => item.id == value)?.unit || '';
+  form.value.materialCode = modelOptions.value.find(item => item.id == value)?.materialCode || '';
 }
 
 const findNodeById = (nodes, productId) => {

--
Gitblit v1.9.3