From 9aa6fe72192ec6b5160a127070002fde1765115b Mon Sep 17 00:00:00 2001
From: lixiangyu <lixiangyu@xalxzn.com>
Date: 星期二, 09 九月 2025 17:55:30 +0800
Subject: [PATCH] feat(cms): 选择刀具库存替代刀具信息

---
 src/views/mes/modules/MesProductionWorkOrderEquipmentInspectionModal.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/views/mes/modules/MesProductionWorkOrderEquipmentInspectionModal.vue b/src/views/mes/modules/MesProductionWorkOrderEquipmentInspectionModal.vue
index a13c5c0..2211b9e 100644
--- a/src/views/mes/modules/MesProductionWorkOrderEquipmentInspectionModal.vue
+++ b/src/views/mes/modules/MesProductionWorkOrderEquipmentInspectionModal.vue
@@ -189,6 +189,10 @@
           this.$message.error("璇峰畬鎴愭墍鏈夊繀濉俊鎭悗鍐嶆彁浜わ紒")
         } else {
           let tableData = this.$refs.table.getTableData().fullData
+          if (!tableData || tableData.length === 0) {
+            this.$message.error("鐐规椤逛负绌猴紝鏃犳硶鎻愪氦锛�")
+            return
+          }
           const data = {
             ...this.model,
             workOrderId: this.workOrderId,

--
Gitblit v1.9.3