瀏覽代碼

修改内贸问题

lichao 3 年之前
父節點
當前提交
3ca7898c45

+ 3 - 0
src/styles/variables.scss

@@ -80,3 +80,6 @@ p{
   display: flex;
   justify-content: flex-end;
 }
+.el-table__expanded-cell {
+  padding-left: 90px !important;
+}

+ 7 - 6
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -243,6 +243,7 @@
         <c-upload
           :data="bankOfDepositData"
           deleteUrl="/api/blade-deliver-goods/deliveryfiles/update"
+          :enumerationValue="77"
         />
       </el-form>
     </div>
@@ -1180,11 +1181,11 @@ export default {
     },
     //商品编辑
     rowCell(row, index) {
-      this.$refs.crudContact.rowCell(row, index)
+      this.$refs.crudContact.rowCell(row, row.$index)
     },
     //费用编辑
     rowCellTwo(row, index) {
-      this.$refs.crudProject.rowCell(row, index)
+      this.$refs.crudProject.rowCell(row, row.$index)
     },
     //费用新增触发
     costIncrease() {
@@ -1366,7 +1367,7 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.goodsShowData.splice(index, 1);
+            this.goodsShowData.splice(row.$index, 1);
             // 删除时主表积分跟着改变
             if (this.goodsActives == 'goods') {
               this.form.presenterIntegral = 0;
@@ -1385,7 +1386,7 @@ export default {
             type: "success",
             message: "操作成功!"
           });
-          this.goodsShowData.splice(index, 1);
+          this.goodsShowData.splice(row.$index, 1);
           // 删除时主表积分跟着改变
           if (this.goodsActives == 'goods') {
             this.form.presenterIntegral = 0;
@@ -1461,14 +1462,14 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.advantageProjectData.splice(index, 1);
+            this.advantageProjectData.splice(row.$index, 1);
           })
         } else {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.advantageProjectData.splice(index, 1);
+          this.advantageProjectData.splice(row.$index, 1);
         }
       })
     },

+ 8 - 7
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -247,6 +247,7 @@
         <c-upload
           :data="bankOfDepositData"
           deleteUrl="/api/trade-purchase/purchase-order/removeByFiles"
+          :enumerationValue="77"
         />
       </el-form>
     </div>
@@ -1060,11 +1061,11 @@ export default {
           return this.$message.error('订货数量不能小于发货数量')
         }
       }
-      this.$refs.crudContact.rowCell(row, index)
+      this.$refs.crudContact.rowCell(row, row.$index)
     },
     //费用编辑
     rowCellTwo(row, index) {
-      this.$refs.crudProject.rowCell(row, index)
+      this.$refs.crudProject.rowCell(row, row.$index)
     },
     //商品选中触发
     productSelection(selection) {
@@ -1281,14 +1282,14 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.contactsData.splice(index, 1);
+            this.contactsData.splice(row.$index, 1);
           })
         } else {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.contactsData.splice(index, 1);
+          this.contactsData.splice(row.$index, 1);
         }
       })
     },
@@ -1353,14 +1354,14 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.advantageProjectData.splice(index, 1);
+            this.advantageProjectData.splice(row.$index, 1);
           })
         } else {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.advantageProjectData.splice(index, 1);
+          this.advantageProjectData.splice(row.$index, 1);
         }
       })
     },
@@ -1648,7 +1649,7 @@ export default {
       }
     },
     removeStagList(row, index) {
-      this.goodsListSave.splice(index, 1)
+      this.goodsListSave.splice(row.$index, 1)
     },
     importStagList(row, index) {
       this.goodsListSave.push(row);

+ 7 - 8
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -199,6 +199,7 @@
         <c-upload
           :data="bankOfDepositData"
           deleteUrl="/api/blade-deliver-goods/deliveryfiles/update"
+          :enumerationValue="77"
         />
       </el-form>
     </div>
@@ -879,13 +880,11 @@ export default {
     },
     //商品编辑
     rowCell(row, index) {
-      console.log(row)
-      this.$refs.crudContact.rowCell(row, index)
+      this.$refs.crudContact.rowCell(row, row.$index)
     },
     //费用编辑
     rowCellTwo(row, index) {
-      console.log(row)
-      this.$refs.crudProject.rowCell(row, index)
+      this.$refs.crudProject.rowCell(row, row.$index)
     },
     //费用新增触发
     costIncrease() {
@@ -1068,14 +1067,14 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.contactsData.splice(index, 1);
+            this.contactsData.splice(row.$index, 1);
           })
         } else {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.contactsData.splice(index, 1);
+          this.contactsData.splice(row.$index, 1);
         }
       })
     },
@@ -1141,14 +1140,14 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.advantageProjectData.splice(index, 1);
+            this.advantageProjectData.splice(row.$index, 1);
           })
         } else {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.advantageProjectData.splice(index, 1);
+          this.advantageProjectData.splice(row.$index, 1);
         }
       })
     },

+ 8 - 8
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -440,6 +440,7 @@
         <c-upload
           :data="bankOfDepositData"
           deleteUrl="/api/blade-client/corpsbank/update"
+          :enumerationValue="77"
         />
 
       </el-form>
@@ -1564,7 +1565,6 @@ export default {
     this.rowHeight = (window.innerHeight - 130) + 'px'
     // this.customerContact = customerContact
     this.customerContact = await this.getColumnData(this.getColumnName(15), customerContact);
-    this.advantageProject = await this.getColumnData(this.getColumnName(16), advantageProject);
     this.getWorkDicts("payment_term").then(res => {
       this.paymentOption = res.data.data
     })
@@ -1848,11 +1848,11 @@ export default {
           return this.$message.error('订货数量不能小于发货数量')
         }
       }
-      this.$refs.crudContact.rowCell(row, index)
+      this.$refs.crudContact.rowCell(row, row.$index)
     },
     //费用编辑
     rowCellTwo(row, index) {
-      this.$refs.crudProject.rowCell(row, index)
+      this.$refs.crudProject.rowCell(row, row.$index)
     },
     //费用新增触发
     costIncrease() {
@@ -2641,7 +2641,7 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.goodsShowData.splice(index, 1);
+            this.goodsShowData.splice(row.$index, 1);
             if (this.goodsActives == 'goods') {
               this.form.presenterIntegral = 0;
               this.form.orderAmount = 0;
@@ -2662,7 +2662,7 @@ export default {
             type: "success",
             message: "操作成功!"
           });
-          this.goodsShowData.splice(index, 1);
+          this.goodsShowData.splice(row.$index, 1);
           if (this.goodsActives == 'goods') {
             this.form.presenterIntegral = 0;
             this.form.orderAmount = 0;
@@ -2762,14 +2762,14 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.advantageProjectData.splice(index, 1);
+            this.advantageProjectData.splice(row.$index, 1);
           })
         } else {
           this.$message({
             type: "success",
             message: "操作成功!"
           });
-          this.advantageProjectData.splice(index, 1);
+          this.advantageProjectData.splice(row.$index, 1);
         }
       })
     },
@@ -3142,7 +3142,7 @@ export default {
       }
     },
     removeStagList(row, index) {
-      this.goodsListSave.splice(index, 1)
+      this.goodsListSave.splice(row.$index, 1)
     },
     importStagList(row, index) {
       this.goodsListSave.push(row);

+ 4 - 1
src/views/businessManagement/salesOrder/index.vue

@@ -531,7 +531,7 @@ export default {
       }).catch(() => {
         this.$message({
           type: 'info',
-          message: '已取消'
+          message: '已取消' //
         });
       })
     },
@@ -546,4 +546,7 @@ export default {
 /deep/ .el-table__body-wrapper .cell {
   font-size: 8px;
 }
+/*/deep/ .el-table__expanded-cell {*/
+/*  padding-left: 90px;*/
+/*}*/
 </style>