From 26591535b14ee090a651f177cd6f42f548927fd4 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期四, 21 八月 2025 08:47:06 +0800
Subject: [PATCH] art: 物料拉动新增页面逻辑调整

---
 src/views/cms/modules/CuttingInboundModal.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/cms/modules/CuttingInboundModal.vue b/src/views/cms/modules/CuttingInboundModal.vue
index 1c508c2..5d11427 100644
--- a/src/views/cms/modules/CuttingInboundModal.vue
+++ b/src/views/cms/modules/CuttingInboundModal.vue
@@ -60,9 +60,9 @@
         </a-row>
       </a-form>
     </a-spin>
-    <a-button type="primary" :style="{ marginBottom: '8px' }" @click="selectTooling()"
-      >閫夋嫨鍒�鍏�</a-button
-    >
+    <a-button type="primary" :style="{ marginBottom: '8px' }" @click="selectTooling()">
+      閫夋嫨鍒�鍏�
+    </a-button>
     <a-table
       ref="table"
       bordered
@@ -265,6 +265,13 @@
         this.$message.error('璇峰厛閫夋嫨鍏ュ簱鍒�鍏�')
         return
       }
+      // 鏍¢獙鍏ュ簱鏁伴噺鏄惁濉啓
+      for(let i=0; i<this.dataSource.length; i++) {
+        if (!this.dataSource[i].receiveNumber || this.dataSource[i].receiveNumber <= 0) {
+          this.$message.error(`蹇呴』濉啓鍏ュ簱鏁伴噺`)
+          return
+        }
+      }
       const that = this
       // 瑙﹀彂琛ㄥ崟楠岃瘉
       this.form.validateFields((err, values) => {

--
Gitblit v1.9.3