Просмотр исходного кода

Merge branch 'feature_20260211_公家、家装汇报及审批调整' into uat(dev)

zhujindu 6 дней назад
Родитель
Сommit
ecec536e77
1 измененных файлов с 23 добавлено и 23 удалено
  1. 23 23
      src/views/week/reportCustom.vue

+ 23 - 23
src/views/week/reportCustom.vue

@@ -159,29 +159,29 @@ export default {
     },
     filterFromData(val) {
       // 公装销售专员 写死 不用填写 未拜访原因
-      if (this.postName == '公装销售专员') {
-        let fromData = JSON.parse(JSON.stringify(val));
-        let reportCustomAnswers = [];
-        for (let i = 0; i < fromData.length; i++) {
-          let arr1 = fromData[i];
-          let sfaReportCustomCollections = [];
-          let customData = fromData[i].sfaReportCustomCollections
-            ? fromData[i].sfaReportCustomCollections
-            : [];
-          for (let x = 0; x < customData.length; x++) {
-            // sameDayWhetherVisit 2 未拜访
-            if (customData[x].sameDayWhetherVisit != '2') {
-              sfaReportCustomCollections.push(customData[x]);
-            }
-          }
-          arr1.sfaReportCustomCollections = sfaReportCustomCollections;
-          reportCustomAnswers.push(arr1);
-        }
-        console.log(reportCustomAnswers);
-        this.fromData = reportCustomAnswers;
-      } else {
-        this.fromData = val;
-      }
+      // if (this.postName == '公装销售专员') {
+      //   let fromData = JSON.parse(JSON.stringify(val));
+      //   let reportCustomAnswers = [];
+      //   for (let i = 0; i < fromData.length; i++) {
+      //     let arr1 = fromData[i];
+      //     let sfaReportCustomCollections = [];
+      //     let customData = fromData[i].sfaReportCustomCollections
+      //       ? fromData[i].sfaReportCustomCollections
+      //       : [];
+      //     for (let x = 0; x < customData.length; x++) {
+      //       // sameDayWhetherVisit 2 未拜访
+      //       if (customData[x].sameDayWhetherVisit != '2') {
+      //         sfaReportCustomCollections.push(customData[x]);
+      //       }
+      //     }
+      //     arr1.sfaReportCustomCollections = sfaReportCustomCollections;
+      //     reportCustomAnswers.push(arr1);
+      //   }
+      //   console.log(reportCustomAnswers);
+      //   this.fromData = reportCustomAnswers;
+      // } else {
+      this.fromData = val;
+      // }
     },
     numberFn(val, index) {
       if (val.answerValue) {