From 03cfba0f636b42417070fc8caef44bcdd792a085 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 07 五月 2024 17:34:37 +0800
Subject: [PATCH] 概述 出库模块 编辑的时候循环处理对应产品调用接口获取在库数量的逻辑处理

---
 src/views/productManage/product/components/UnitMoreDialog.vue |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/views/productManage/product/components/UnitMoreDialog.vue b/src/views/productManage/product/components/UnitMoreDialog.vue
index 2fb9ce6..b0110bb 100644
--- a/src/views/productManage/product/components/UnitMoreDialog.vue
+++ b/src/views/productManage/product/components/UnitMoreDialog.vue
@@ -51,7 +51,10 @@
                 </el-select>
               </el-form-item>
             </el-col>
-            <el-col :span="1" class="col-name">鈮�</el-col>
+            <el-col :span="1" class="col-name">
+              <span v-if="index==0">{{ item.floating?'鈮�':'='}}  </span>
+              <span v-else> = </span>
+            </el-col>
             <el-col :span="7">
               <el-form-item
                 label=""
@@ -213,13 +216,28 @@
     handleConfirmSave() {
       this.$refs.form.validate((valid) => {
         if (valid) {
-          this.shutdown()
+          let iscontinue=false;
+          for(let i in this.form.formList){
+            if(this.form.formList[i].unit){
+              iscontinue=true;
+              break;
+            }
+          }
+          if(!iscontinue){
+            this.$message.error('璇疯嚦灏戝~鍐欎竴椤癸紒')
+            return true
+          }
           this.$emit('saveUnitMore',this.form.formList)
+          this.editDialogVisible = false;
         }
       })
     },
     shutdown() {
+      if(this.editDialogVisible){
+        this.$emit('cancelUnitMore')
+      }
       this.editDialogVisible = false;
+     
     },
   },
 };

--
Gitblit v1.8.0