From 0892a7ff70f106f7cfa9747ad14cb5308cd03187 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 11 四月 2024 17:23:21 +0800
Subject: [PATCH] 根据回数和片数判断计算当前正在输入的是表格的哪一行哪一列表格的当前单元格蓝边框其他表格边框置灰逻辑

---
 src/views/productManage/productRegisterForm/components/addProductDialog.vue |   37 ++++++++++---------------------------
 1 files changed, 10 insertions(+), 27 deletions(-)

diff --git a/src/views/productManage/productRegisterForm/components/addProductDialog.vue b/src/views/productManage/productRegisterForm/components/addProductDialog.vue
index 832504d..c74465d 100644
--- a/src/views/productManage/productRegisterForm/components/addProductDialog.vue
+++ b/src/views/productManage/productRegisterForm/components/addProductDialog.vue
@@ -4,7 +4,6 @@
     :close-on-click-modal="false"
     :visible.sync="editDialogVisible"
     width="533px"
-    append-to-body
     custom-class="add-event-dialog"
     @close="handleClose"
   >
@@ -149,10 +148,10 @@
         </el-row>
       </el-form>
     </div>
-    <div slot="footer" class="dialog-footer">
+    <!-- <div slot="footer" class="dialog-footer"> -->
       <!-- <el-button @click="handleClose" size="mini">鍙栨秷</el-button>
       <el-button type="primary" @click="onSubmit('form')" size="mini">纭畾</el-button> -->
-    </div>
+    <!-- </div> -->
   </el-dialog>
 </template>
 <script>
@@ -232,28 +231,6 @@
       deep: true,
       immediate:true,
     },
-    "form.carNumber": {
-      handler() {
-        debugger
-        this.$set(this.proForm,'carNumber',this.form.carNumber)
-      },
-      deep: true,
-      immediate:true,
-    },
-    "form.pieceNumber": {
-      handler() {
-        this.$set(this.proForm,'pieceNumber',this.form.pieceNumber)
-      },
-      deep: true,
-      immediate:true,
-    },
-    "form.pieces": {
-      handler() {
-        this.$set(this.proForm,'pieces',this.form.pieces)
-      },
-      deep: true,
-      immediate:true,
-    },
     'form.workshopId': function () {
       this.getGroupNumber()
     }
@@ -299,7 +276,9 @@
       this.$emit('changeForm',this.proForm,val)
     },
     changeTableInput(){
-      this.$emit('changeTableInput',this.proForm)
+      if(this.proForm.netWeight&&this.proForm.pieces&&this.proForm.carNumber&&this.proForm.pieceNumber){
+        this.$emit('changeTableInput',this.proForm)
+      }
     },
     handleClose() {
       this.editDialogVisible = false;
@@ -312,6 +291,7 @@
 };
 </script>
 <style lang="scss" scoped>
+
 .add-event-dialog {
   .formLabel {
     font-size: 18px;
@@ -320,6 +300,9 @@
   }
   .dialog-footer {
     background-color: #fff;
+  }
+  .dialog-content-box{
+    margin-top:30px;
   }
 }
 ::v-deep {
@@ -334,7 +317,7 @@
     color: #333;
     // font-weight: 700;
   }
-  .add-event-dialog .el-dialog {
+  .add-event-dialog.el-dialog {
     position: absolute;
     right: 40px;
     top: 40px;

--
Gitblit v1.8.0