Browse Source

修改bug

QuKatie 3 years ago
parent
commit
2351338ca3

+ 3 - 3
src/views/exportTrade/customerInquiry/detailsPage.vue

@@ -1443,7 +1443,7 @@ export default {
     rowSave(row) {
       this.$set(row, "$cellEdit", false);
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -1455,14 +1455,14 @@ export default {
               type: "success",
               message: "删除成功!"
             });
-            this.data.splice(index, 1);
+            this.data.splice(row.$index, 1);
           });
         } else {
           this.$message({
             type: "success",
             message: "删除成功!"
           });
-          this.data.splice(index, 1);
+          this.data.splice(row.$index, 1);
         }
       });
     },

+ 0 - 3
src/views/exportTrade/customerInquiry/index.vue

@@ -479,9 +479,6 @@ export default {
 .page-crad ::v-deep .basic-container__card {
   height: 94.2vh;
 }
-::v-deep .el-table__expanded-cell[class*="cell"] {
-  padding:0px 0px 0px 137px;
-}
 .itemTable ::v-deep .el-table {
   width: 738px;
 }

+ 4 - 4
src/views/exportTrade/invoice/detailsPage.vue

@@ -166,7 +166,7 @@
               size="small"
               icon="el-icon-edit"
               type="text"
-              @click="rowDel(row, index)"
+              @click="rowDel(row)"
               >删 除</el-button
             >
           </template>
@@ -580,7 +580,7 @@ export default {
       console.log(row);
       this.$set(row, "$cellEdit", false);
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -592,14 +592,14 @@ export default {
               type: "success",
               message: "删除成功!"
             });
-            this.data.splice(index, 1);
+            this.data.splice(row.$index, 1);
           });
         } else {
           this.$message({
             type: "success",
             message: "删除成功!"
           });
-          this.data.splice(index, 1);
+          this.data.splice(row.$index, 1);
         }
       });
     },

+ 4 - 4
src/views/exportTrade/purchaseContract/detailsPage.vue

@@ -210,7 +210,7 @@
                 size="small"
                 icon="el-icon-edit"
                 type="text"
-                @click="rowDel(row, index)"
+                @click="rowDel(row)"
                 :disabled="detailData.status == 1"
                 >删 除</el-button
               >
@@ -727,7 +727,7 @@ export default {
       console.log(row);
       this.$set(row, "$cellEdit", false);
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -739,14 +739,14 @@ export default {
               type: "success",
               message: "删除成功!"
             });
-            this.data.splice(index, 1);
+            this.data.splice(row.$index, 1);
           });
         } else {
           this.$message({
             type: "success",
             message: "删除成功!"
           });
-          this.data.splice(index, 1);
+          this.data.splice(row.$index, 1);
         }
       });
     },

+ 4 - 5
src/views/exportTrade/purchaseInquiry/detailsPage.vue

@@ -226,7 +226,7 @@
               size="small"
               icon="el-icon-edit"
               type="text"
-              @click="rowDel(row, index)"
+              @click="rowDel(row)"
               :disabled="detailData.status == 1 || form.ifEnquiry == '询价确认'"
               >删 除</el-button
             >
@@ -603,22 +603,21 @@ export default {
       console.log(row);
       this.$set(row, "$cellEdit", false);
     },
-    rowDel(row, index) {
-      console.log(row,index)
+    rowDel(row) {
       if (row.id) {
         delItem(row.id).then(res => {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.data.splice(index, 1);
+          this.data.splice(row.$index, 1);
         });
       } else {
         this.$message({
           type: "success",
           message: "操作成功!"
         });
-        this.data.splice(index, 1);
+        this.data.splice(row.$index, 1);
       }
     },
     importGoods() {

+ 4 - 4
src/views/exportTrade/receipt/detailsPage.vue

@@ -151,7 +151,7 @@
               size="small"
               icon="el-icon-edit"
               type="text"
-              @click="rowDel(row, index)"
+              @click="rowDel(row)"
               >删 除</el-button
             >
           </template>
@@ -597,7 +597,7 @@ export default {
       console.log(row);
       this.$set(row, "$cellEdit", false);
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -609,14 +609,14 @@ export default {
               type: "success",
               message: "删除成功!"
             });
-            this.data.splice(index, 1);
+            this.data.splice(row.$index, 1);
           });
         } else {
           this.$message({
             type: "success",
             message: "删除成功!"
           });
-          this.data.splice(index, 1);
+          this.data.splice(row.$index, 1);
         }
       });
     },

+ 4 - 4
src/views/exportTrade/salesContract/detailsPage.vue

@@ -505,7 +505,7 @@
                 size="small"
                 icon="el-icon-delete"
                 type="text"
-                @click="rowDel(row, index)"
+                @click="rowDel(row)"
                 :disabled="detailData.status == 1"
                 >删除</el-button
               >
@@ -1590,7 +1590,7 @@ export default {
     rowSave(row) {
       this.$set(row, "$cellEdit", false);
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -1602,14 +1602,14 @@ export default {
               type: "success",
               message: "删除成功!"
             });
-            this.data.splice(index, 1);
+            this.data.splice(row.$index, 1);
           });
         } else {
           this.$message({
             type: "success",
             message: "删除成功!"
           });
-          this.data.splice(index, 1);
+          this.data.splice(row.$index, 1);
         }
       });
     },

+ 0 - 3
src/views/exportTrade/salesContract/index.vue

@@ -516,9 +516,6 @@ export default {
 .page-crad ::v-deep .basic-container__card {
   height: 94.2vh;
 }
-::v-deep .el-table__expanded-cell[class*="cell"] {
-  padding: 0px 0px 0px 137px;
-}
 .itemTable ::v-deep .el-table {
   width: 738px;
 }

+ 4 - 4
src/views/exportTrade/shippingInquiry/detailsPage.vue

@@ -124,7 +124,7 @@
               size="small"
               icon="el-icon-edit"
               type="text"
-              @click="rowDel(row, index)"
+              @click="rowDel(row)"
               :disabled="detailData.status == 1"
               >删 除</el-button
             >
@@ -413,7 +413,7 @@ export default {
         this.$set(row, "$cellEdit", true);
       }
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -425,14 +425,14 @@ export default {
               type: "success",
               message: "删除成功!"
             });
-            this.freightData.splice(index, 1);
+            this.freightData.splice(row.$index, 1);
           });
         } else {
           this.$message({
             type: "success",
             message: "删除成功!"
           });
-          this.freightData.splice(index, 1);
+          this.freightData.splice(row.$index, 1);
         }
       });
     },

+ 3 - 3
src/views/salaryManagement/highSchool/detailsPage.vue

@@ -850,7 +850,7 @@
             <el-button
               type="text"
               size="small"
-              @click.stop="rowDel(row, index)"
+              @click.stop="rowDel(row)"
               :disabled="detailData.status == 1"
             >
               删除
@@ -1389,7 +1389,7 @@ export default {
         this.$set(row, "$cellEdit", true);
       }
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -1408,7 +1408,7 @@ export default {
             type: "success",
             message: "删除成功!"
           });
-          this.dataList.splice(index, 1);
+          this.dataList.splice(row.$index, 1);
         }
       });
     },

+ 2 - 2
src/views/salaryManagement/juniorhighSchool/detailsPage.vue

@@ -850,7 +850,7 @@
             <el-button
               type="text"
               size="small"
-              @click.stop="rowDel(row, index)"
+              @click.stop="rowDel(row)"
               :disabled="detailData.status == 1"
             >
               删除
@@ -1408,7 +1408,7 @@ export default {
             type: "success",
             message: "删除成功!"
           });
-          this.dataList.splice(index, 1);
+          this.dataList.splice(row.$index, 1);
         }
       });
     },

+ 3 - 3
src/views/salaryManagement/logisticsDepartment/detailsPage.vue

@@ -850,7 +850,7 @@
             <el-button
               type="text"
               size="small"
-              @click.stop="rowDel(row, index)"
+              @click.stop="rowDel(row)"
               :disabled="detailData.status == 1"
             >
               删除
@@ -1389,7 +1389,7 @@ export default {
         this.$set(row, "$cellEdit", true);
       }
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -1408,7 +1408,7 @@ export default {
             type: "success",
             message: "删除成功!"
           });
-          this.dataList.splice(index, 1);
+          this.dataList.splice(row.$index, 1);
         }
       });
     },

+ 3 - 3
src/views/salaryManagement/primarySchool/detailsPage.vue

@@ -850,7 +850,7 @@
             <el-button
               type="text"
               size="small"
-              @click.stop="rowDel(row, index)"
+              @click.stop="rowDel(row)"
               :disabled="detailData.status == 1"
             >
               删除
@@ -1389,7 +1389,7 @@ export default {
         this.$set(row, "$cellEdit", true);
       }
     },
-    rowDel(row, index) {
+    rowDel(row) {
       this.$confirm("确定删除数据?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -1408,7 +1408,7 @@ export default {
             type: "success",
             message: "删除成功!"
           });
-          this.dataList.splice(index, 1);
+          this.dataList.splice(row.$index, 1);
         }
       });
     },