From da9e6c767a90d6b738f2c3384bbb86f70a6013a0 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期四, 05 二月 2026 17:01:16 +0800
Subject: [PATCH] 生产管控当中不需要客户名称,销售订单号,生产订单号,也不需要交货日期,以生产日期来确认生产信息。(同时不需要生产信息变色的操作了),生产订单可以自己新增。

---
 src/views/safeProduction/hazardousMaterialsControl/index.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/safeProduction/hazardousMaterialsControl/index.vue b/src/views/safeProduction/hazardousMaterialsControl/index.vue
index f4f30aa..b2048fe 100644
--- a/src/views/safeProduction/hazardousMaterialsControl/index.vue
+++ b/src/views/safeProduction/hazardousMaterialsControl/index.vue
@@ -264,7 +264,8 @@
                   @selection-change="handleSafeHazardSelectionChange"
                   style="width: 100%">
           <el-table-column type="selection"
-                           width="55" />
+                           width="55"
+                           :selectable="isSelectable" />
           <el-table-column prop="code"
                            label="鍗遍櫓婧愮紪鐮�"
                            width="180"
@@ -604,6 +605,11 @@
       });
   };
 
+  const isSelectable = row => {
+    // 鍙湁搴撳瓨鏁伴噺澶т簬0鐨勮鎵嶈兘琚�夋嫨
+    return Number(row.stockQty) > 0;
+  };
+
   const handleSafeHazardSelectionChange = selection => {
     // 鍙繚鐣欐渶鍚庝竴涓�変腑鐨勯」
     if (selection.length > 1) {

--
Gitblit v1.9.3