|
|
@@ -440,17 +440,22 @@ export default {
|
|
440
|
440
|
},
|
|
441
|
441
|
checkFollowUpContent() {
|
|
442
|
442
|
// 检查跟进记录是否包含上面的三个选择
|
|
|
443
|
+ //每个检查到一个就不继续检查了
|
|
|
444
|
+ let hasContactMaster = false;
|
|
|
445
|
+ let hasPhotoTips = false;
|
|
|
446
|
+ let hasFace2face = false;
|
|
443
|
447
|
this.followUpListInner.forEach(item => {
|
|
444
|
448
|
console.log('这里是跟进记录', item)
|
|
445
|
449
|
// 判断内容是否含有联系师傅,师傅拍图技巧,到达客户面对面,如果包含的话就上面对应的box就打上对勾
|
|
446
|
|
- if (item.includes('联系师傅')) {
|
|
|
450
|
+ if (item.includes('联系师傅') && !hasContactMaster) {
|
|
447
|
451
|
this.selectedCheckbox.push('contact师傅');
|
|
448
|
452
|
// 联系师傅的手机号,已:为分割,取后面的内容
|
|
449
|
453
|
const phone = item.split(';')[1] || '';
|
|
450
|
454
|
console.log('联系师傅的手机号111111', phone)
|
|
451
|
455
|
this.formData.contactPhone = phone;
|
|
|
456
|
+ hasContactMaster = true;
|
|
452
|
457
|
}
|
|
453
|
|
- if (item.includes('师傅拍图技巧')) {
|
|
|
458
|
+ if (item.includes('师傅拍图技巧') && !hasPhotoTips) {
|
|
454
|
459
|
this.selectedCheckbox.push('photo技巧');
|
|
455
|
460
|
// 师傅拍图技巧的内容,已:为分割,取后面的内容
|
|
456
|
461
|
const photoTips = item.split(';')[1] || '';
|
|
|
@@ -459,9 +464,9 @@ export default {
|
|
459
|
464
|
//把url转为数组
|
|
460
|
465
|
const urlArray = urls.split(',').map(url => url.trim());
|
|
461
|
466
|
this.photoTipsImages = [...this.photoTipsImages, ...urlArray];
|
|
462
|
|
-
|
|
|
467
|
+ hasPhotoTips = true;
|
|
463
|
468
|
}
|
|
464
|
|
- if (item.includes('到达客户面对面')) {
|
|
|
469
|
+ if (item.includes('到达客户面对面') && !hasFace2face) {
|
|
465
|
470
|
this.selectedCheckbox.push('face2face');
|
|
466
|
471
|
// 到达客户面对面的内容,已:为分割,取后面的内容
|
|
467
|
472
|
const face2faceNotes = item.split(';')[1] || '';
|
|
|
@@ -470,6 +475,7 @@ export default {
|
|
470
|
475
|
//把url转为数组
|
|
471
|
476
|
const urlArray = urls.split(',').map(url => url.trim());
|
|
472
|
477
|
this.face2faceImages = [...this.face2faceImages, ...urlArray];
|
|
|
478
|
+ hasFace2face = true;
|
|
473
|
479
|
}
|
|
474
|
480
|
})
|
|
475
|
481
|
},
|