From fe2c38273024c74f28e59c24c867eb67c841be16 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 11 四月 2025 11:35:10 +0800
Subject: [PATCH] 原辅材修改

---
 src/views/structural/capabilityAndLaboratory/capability/index.vue |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/capability/index.vue b/src/views/structural/capabilityAndLaboratory/capability/index.vue
index 9fadf61..cbb2b79 100644
--- a/src/views/structural/capabilityAndLaboratory/capability/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/capability/index.vue
@@ -282,17 +282,20 @@
               clickFun: (row) => {
                 this.bindPartFirst(row);
               },
+              disabled: (row) => {
+                return !!row.product
+              }
             },
-            // {
-            //   name: '杞﹂棿缁戝畾',
-            //   type: 'text',
-            //   clickFun: (row) => {
-            //     this.bindWokshop1(row);
-            //   },
-            //   disabled: (row) => {
-            //     return row.objectType != '鍘熻緟鏉�' && row.objectType != '鍖呮潗'
-            //   }
-            // },
+            {
+              name: '杞﹂棿缁戝畾',
+              type: 'text',
+              clickFun: (row) => {
+                this.bindWokshop1(row);
+              },
+              disabled: (row) => {
+                return row.objectType != '鍘熻緟鏉�' && row.objectType != '鍖呮潗'
+              }
+            },
           ]
         }
       ],
@@ -413,7 +416,7 @@
     this.getDicts("product_classification").then((response) => {
       this.productClassification = this.dictToValue(response.data);
     });
-    // this.selectWorkShop()
+    this.selectWorkShop()
   },
   computed: {
     title() {

--
Gitblit v1.9.3