From 60a71d062b9360bb2a1e3dd190d3b25251eefa29 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 25 三月 2025 16:55:37 +0800
Subject: [PATCH] 屏蔽原材料报检

---
 src/views/business/outsourcedParts/index.vue |   54 ++++++++++++++++++++++++++++++++----------------------
 1 files changed, 32 insertions(+), 22 deletions(-)

diff --git a/src/views/business/outsourcedParts/index.vue b/src/views/business/outsourcedParts/index.vue
index eaecbd8..335d700 100644
--- a/src/views/business/outsourcedParts/index.vue
+++ b/src/views/business/outsourcedParts/index.vue
@@ -20,7 +20,7 @@
       </el-form>
       <div>
         <el-button size="mini" type="primary">鑾峰彇璁㈠崟</el-button>
-        <el-button size="mini" type="primary" @click="openAdd('鏂板')">鏂板</el-button>
+        <!-- <el-button size="mini" type="primary" @click="openAdd('鏂板')">鏂板</el-button> -->
       </div>
     </div>
     <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 220px)'"
@@ -59,9 +59,17 @@
           </el-input>
         </el-form-item>
         <el-form-item label="妫�娴嬬粨鏋�" prop="result" v-if="title == '妫�楠�'">
-          <el-switch v-model="addForm.result" active-text="鍚堟牸" inactive-text="涓嶅悎鏍�" active-value="鍚堟牸"
+          <el-select v-model="value" placeholder="璇烽�夋嫨">
+            <el-option label="鍚堟牸" value="鍚堟牸">
+            </el-option>
+            <el-option label="涓嶅悎鏍�" value="涓嶅悎鏍�">
+            </el-option>
+            <el-option label="涓嶅垽鏂�" value="涓嶅垽鏂�">
+            </el-option>
+          </el-select>
+          <!-- <el-switch v-model="addForm.result" active-text="鍚堟牸" inactive-text="涓嶅悎鏍�" active-value="鍚堟牸"
             inactive-value="涓嶅悎鏍�">
-          </el-switch>
+          </el-switch> -->
         </el-form-item>
         <el-form-item label="娴嬭瘯鏂囦欢" prop="file" v-if="title == '妫�楠�'">
           <el-upload action="#" :auto-upload="false" :multiple="false"
@@ -120,23 +128,23 @@
           dataType: "action",
           label: "鎿嶄綔",
           operation: [
-            {
-              name: "缂栬緫",
-              type: "text",
-              clickFun: (row) => {
-                this.openAdd("缂栬緫", row);
-              },
-            },
-            {
-              name: "鍒犻櫎",
-              type: "text",
-              clickFun: (row) => {
-                this.handleDelete(row);
-              },
-              disabled: (row) => {
-                return !!row.ratifyUser
-              },
-            },
+            // {
+            //   name: "缂栬緫",
+            //   type: "text",
+            //   clickFun: (row) => {
+            //     this.openAdd("缂栬緫", row);
+            //   },
+            // },
+            // {
+            //   name: "鍒犻櫎",
+            //   type: "text",
+            //   clickFun: (row) => {
+            //     this.handleDelete(row);
+            //   },
+            //   disabled: (row) => {
+            //     return !!row.ratifyUser
+            //   },
+            // },
             {
               name: "妫�楠�",
               type: "text",
@@ -246,9 +254,11 @@
             // 妫�楠�
             let fd = new FormData();
             //鏂囦欢淇℃伅涓璻aw鎵嶆槸鐪熺殑鏂囦欢
-            if (this.file) {
-              fd.append("file", this.file.raw);
+            if (this.addForm.file) {
+              fd.append("file", this.addForm.file.raw);
             }
+            fd.append("inspectionItems", this.addForm.inspectionItems);
+            fd.append("result", this.addForm.result);
           }
         } else {
           return false;

--
Gitblit v1.9.3