Tang il y a 3 ans
Parent
commit
b49d1f4726

+ 12 - 1
src/views/Marketing/order/offlineOrder/batchRecord/secondStep/index.vue

@@ -17,7 +17,7 @@
       <el-table
         v-loading="loading"
         :height="heightData"
-        :data="tableData"
+        :data="filterData(tableData)"
         :span-method="objectSpanMethod"
         border
         style="width: 100%"
@@ -281,6 +281,16 @@ export default {
         return arr;
       };
     },
+    filterData:function(){
+      return function(list){
+        let ary = []
+        ary = list.filter(item => {
+          return !item.success
+        })
+        console.log(ary,66)
+        return ary
+      }
+    },
   },
   methods: {
     /**
@@ -817,6 +827,7 @@ export default {
       var errorList = this.tableData.filter((item) => {
         return item.checked && item.errmsg;
       });
+      console.log(this.toData,'this.toData')
       this.$parent.changePage2("third", successList, errorList, this.toData);
       this.disabledBtn = false;
       this.loading = false;

+ 4 - 2
src/views/Marketing/order/offlineOrder/batchRecord/thirdStep/index.vue

@@ -195,7 +195,9 @@ export default {
       sujectList: [],
       successobj: [], //成功数据
       errorobj: [], //失败数据
-      toData: {},
+      toData: {
+        templateStatus:""
+      },
     };
   },
   mounted() {
@@ -536,7 +538,7 @@ export default {
       }
     },
     getInitData(successobj, errorobj, toData) {
-      this.toData = toData;
+      this.toData = JSON.parse(JSON.stringify(toData));
       this.successobj = JSON.parse(JSON.stringify(successobj));
       this.errorobj = JSON.parse(JSON.stringify(errorobj));
       this.tableData = JSON.parse(JSON.stringify(successobj));