howie 3 lat temu
rodzic
commit
501a2653f8

+ 29 - 27
src/views/basic_data/material/components/modify_list-apply.vue

@@ -972,7 +972,8 @@ export default {
     },
     // xua
   handelWallets(e, index, row) {
-      let id = row.cid || row.id;
+        console.log(row,'kjkj4545');
+      let id = row.cid || row.updPriceBillId;
       if (e &&  e.length) {
     for (let i = 0; i < e.length; i++) {
       if (!this.wall1.includes(e[e.length - 1])) {
@@ -1018,7 +1019,8 @@ export default {
     }
 ,
   handelRebateList(e, index, row) {
-      let id = row.cid || row.id;
+    console.log(row,'kjkj');
+      let id = row.cid || row.updPriceBillId;
      if (e &&  e.length) {
     for (let i = 0; i < e.length; i++) {
      if (!this.wall2.includes(e[e.length - 1])) {
@@ -1315,32 +1317,32 @@ export default {
     },
     hanleSave() {
 
-      for (let i = 0; i < this.items.length; i++) {
-          //   const  wallets = []
-          //     if (this.items[i].wallets.length) {
-          //        wallets = [...wallets,...this.items[i].wallets]
-          //     }else if(this.items[i].rebateWallets.length){
-          //       console.log(444);
-          //         wallets = [...wallets,...this.items[i].rebateWallets]
-          //     }
-          // this.items[i].wallets = wallets
-                    console.log(this.items[i]);
+      // for (let i = 0; i < this.items.length; i++) {
+      //     //   const  wallets = []
+      //     //     if (this.items[i].wallets.length) {
+      //     //        wallets = [...wallets,...this.items[i].wallets]
+      //     //     }else if(this.items[i].rebateWallets.length){
+      //     //       console.log(444);
+      //     //         wallets = [...wallets,...this.items[i].rebateWallets]
+      //     //     }
+      //     // this.items[i].wallets = wallets
+      //               console.log(this.items[i]);
 
-      }
-      // handleEdit({
-      //    ...this.base,
-      //   items: this.items,
-      //   saleTypeId: this.saleTypeId,
-      //   adminWebsitId: this.adminWebsitId,
-      //   serviceId: this.serviceId,
-      //   adminCompanyName: this.adminCompanyName,
-      //   serviceName: this.nickName,
-      // }).then((res) => {
-      //   this.$successMsg("成功");
-      //   this.$parent.cid = "";
-      //   this.$parent.show = 1;
-      //   this.$parent.getList();
-      // });
+      // }
+      handleEdit({
+         ...this.base,
+        items: this.items,
+        saleTypeId: this.saleTypeId,
+        adminWebsitId: this.adminWebsitId,
+        serviceId: this.serviceId,
+        adminCompanyName: this.adminCompanyName,
+        serviceName: this.nickName,
+      }).then((res) => {
+        this.$successMsg("成功");
+        this.$parent.cid = "";
+        this.$parent.show = 1;
+        this.$parent.getList();
+      });
     },
     handleReseat() {
       this.base = {