|
|
@@ -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) {
|