Selaa lähdekoodia

OTA管理,排期推送。

shipeng 1 viikko sitten
vanhempi
sitoutus
1fae3b1949

+ 14 - 1
src/views/otaMr/ctrip/dialog/dataEdit.vue

@@ -205,7 +205,20 @@ export default {
       this.multipleSelection = []
       this.timeValueObj = {}
       this.form = JSON.parse(JSON.stringify(obj))
-      await this.getPushListFun(obj,type)
+      if(type == 'yesPush') {
+        await this.getPushListFun(obj,type)
+      } else {
+        let list1 = []
+        if(obj.sku?.length > 0) {
+          obj.sku.forEach((item,index)=>{
+            list1.push({
+              ...item,
+              tableId: "id_" + index
+            })
+          })
+        }
+        this.goodsList = JSON.parse(JSON.stringify(list1));
+      }
       this.loading = false
       this.$nextTick(()=>{
         this.goodsList.forEach((item)=>{

+ 15 - 1
src/views/otaMr/maoyan/dialog/dataEdit.vue

@@ -249,7 +249,21 @@ export default {
         this.isFlag = true
       }
       
-      await this.getPushListFun(obj,type)
+      // await this.getPushListFun(obj,type)
+      if(type == 'yesPush') {
+        await this.getPushListFun(obj,type)
+      } else {
+        let list1 = []
+        if(obj.sku?.length > 0) {
+          obj.sku.forEach((item,index)=>{
+            list1.push({
+              ...item,
+              tableId: "id_" + index
+            })
+          })
+        }
+        this.goodsList = JSON.parse(JSON.stringify(list1));
+      }
 
       this.$nextTick(()=>{
         this.goodsList.forEach((item)=>{

+ 15 - 1
src/views/otaMr/meituan/dialog/dataEdit.vue

@@ -229,7 +229,21 @@ export default {
       this.timeValueObj = {}
       this.form = JSON.parse(JSON.stringify(obj))
       
-      await this.getPushListFun(obj,type)
+      // await this.getPushListFun(obj,type)
+      if(type == 'yesPush') {
+        await this.getPushListFun(obj,type)
+      } else {
+        let list1 = []
+        if(obj.sku?.length > 0) {
+          obj.sku.forEach((item,index)=>{
+            list1.push({
+              ...item,
+              tableId: "id_" + index
+            })
+          })
+        }
+        this.goodsList = JSON.parse(JSON.stringify(list1));
+      }
 
       this.$nextTick(()=>{
         this.goodsList.forEach((item)=>{

+ 15 - 1
src/views/otaMr/tiktok/dialog/dataEdit.vue

@@ -249,7 +249,21 @@ export default {
       }
       this.form = JSON.parse(JSON.stringify(obj))
       
-      await this.getPushListFun(obj,type)
+      // await this.getPushListFun(obj,type)
+      if(type == 'yesPush') {
+        await this.getPushListFun(obj,type)
+      } else {
+        let list1 = []
+        if(obj.sku?.length > 0) {
+          obj.sku.forEach((item,index)=>{
+            list1.push({
+              ...item,
+              tableId: "id_" + index
+            })
+          })
+        }
+        this.goodsList = JSON.parse(JSON.stringify(list1));
+      }
 
       this.$nextTick(()=>{
         this.goodsList.forEach((item)=>{