|
@@ -151,7 +151,9 @@ export default {
|
|
|
filterIndex(index, subIndex) {
|
|
filterIndex(index, subIndex) {
|
|
|
let count = 0;
|
|
let count = 0;
|
|
|
for (let i = 0; i < index; i++) {
|
|
for (let i = 0; i < index; i++) {
|
|
|
- count += this.fromData[i].sfaReportCustomCollections.length;
|
|
|
|
|
|
|
+ count += this.fromData[i].sfaReportCustomCollections
|
|
|
|
|
+ ? this.fromData[i].sfaReportCustomCollections.length
|
|
|
|
|
+ : 0;
|
|
|
}
|
|
}
|
|
|
return count + subIndex;
|
|
return count + subIndex;
|
|
|
},
|
|
},
|
|
@@ -163,7 +165,9 @@ export default {
|
|
|
for (let i = 0; i < fromData.length; i++) {
|
|
for (let i = 0; i < fromData.length; i++) {
|
|
|
let arr1 = fromData[i];
|
|
let arr1 = fromData[i];
|
|
|
let sfaReportCustomCollections = [];
|
|
let sfaReportCustomCollections = [];
|
|
|
- let customData = fromData[i].sfaReportCustomCollections;
|
|
|
|
|
|
|
+ let customData = fromData[i].sfaReportCustomCollections
|
|
|
|
|
+ ? fromData[i].sfaReportCustomCollections
|
|
|
|
|
+ : [];
|
|
|
for (let x = 0; x < customData.length; x++) {
|
|
for (let x = 0; x < customData.length; x++) {
|
|
|
// sameDayWhetherVisit 2 未拜访
|
|
// sameDayWhetherVisit 2 未拜访
|
|
|
if (customData[x].sameDayWhetherVisit != '2') {
|
|
if (customData[x].sameDayWhetherVisit != '2') {
|