From 92560c22dc7837c254e1b65185c1f93a09357cf3 Mon Sep 17 00:00:00 2001
From: lixiangyu <lixiangyu@xalxzn.com>
Date: 星期三, 20 八月 2025 17:53:51 +0800
Subject: [PATCH] feat(cms):  CuttingInboundList 组件中增加提交功能并优化 CuttingInboundModal 组件- 在 CuttingInboundList 组件中添加提交按钮和相关逻辑- 在 CuttingInboundModal 组件中增加入库数量校验 - 优化 CuttingInboundModal 组件的样式和布局

---
 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