|
@@ -149,7 +149,13 @@ |
|
|
到访次数 |
|
|
到访次数 |
|
|
</view> |
|
|
</view> |
|
|
<view class="screen-record-tab"> |
|
|
<view class="screen-record-tab"> |
|
|
<view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" |
|
|
|
|
|
|
|
|
<block v-for="(item,index) in visitList" :key="index"> |
|
|
|
|
|
<view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']" |
|
|
|
|
|
@click="choice(index,item.value)"> |
|
|
|
|
|
{{item.label}} |
|
|
|
|
|
</view> |
|
|
|
|
|
</block> |
|
|
|
|
|
<!-- <view :class="[screen.visitRecord==1?'screen-record-chose':'screen-record-nochose']" |
|
|
@click="recordclick(1)"> |
|
|
@click="recordclick(1)"> |
|
|
首次到访 |
|
|
首次到访 |
|
|
</view> |
|
|
</view> |
|
@@ -164,7 +170,7 @@ |
|
|
<view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" |
|
|
<view :class="[screen.visitRecord==4?'screen-record-chose':'screen-record-nochose']" |
|
|
@click="recordclick(4)"> |
|
|
@click="recordclick(4)"> |
|
|
3次以上 |
|
|
3次以上 |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="screen-foot"> |
|
|
<view class="screen-foot"> |
|
@@ -266,7 +272,7 @@ |
|
|
agentId: '', //顾问id |
|
|
agentId: '', //顾问id |
|
|
record: '0', |
|
|
record: '0', |
|
|
markAdvisor: null, |
|
|
markAdvisor: null, |
|
|
visitRecord: null, |
|
|
|
|
|
|
|
|
visitRecord: [], |
|
|
validInvalid: null |
|
|
validInvalid: null |
|
|
}, |
|
|
}, |
|
|
freeList: [], //顾问 |
|
|
freeList: [], //顾问 |
|
@@ -287,6 +293,23 @@ |
|
|
startFilterTime: '接待时间', // s筛选状态展示 |
|
|
startFilterTime: '接待时间', // s筛选状态展示 |
|
|
receptionDuration: '接待时长', // 筛选状态展示 |
|
|
receptionDuration: '接待时长', // 筛选状态展示 |
|
|
sortText: '排序', // |
|
|
sortText: '排序', // |
|
|
|
|
|
visitList: [{ |
|
|
|
|
|
label: '首次到访', |
|
|
|
|
|
value: 1, |
|
|
|
|
|
isShow: false, |
|
|
|
|
|
}, { |
|
|
|
|
|
label: '2次到访', |
|
|
|
|
|
value: 2, |
|
|
|
|
|
isShow: false, |
|
|
|
|
|
}, { |
|
|
|
|
|
label: '3次到访', |
|
|
|
|
|
value: 3, |
|
|
|
|
|
isShow: false, |
|
|
|
|
|
}, { |
|
|
|
|
|
label: '3次以上', |
|
|
|
|
|
value: 4, |
|
|
|
|
|
isShow: false, |
|
|
|
|
|
}, ] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
@@ -488,7 +511,7 @@ |
|
|
time: 1, |
|
|
time: 1, |
|
|
staDate: this.staTime, |
|
|
staDate: this.staTime, |
|
|
endDate: this.endtime, |
|
|
endDate: this.endtime, |
|
|
visitRecord: this.screen.visitRecord, |
|
|
|
|
|
|
|
|
visitRecords: this.screen.visitRecord.join(","), |
|
|
markAdvisor: this.screen.markAdvisor, |
|
|
markAdvisor: this.screen.markAdvisor, |
|
|
dateType: dateType, |
|
|
dateType: dateType, |
|
|
recDurationInterval: recDurationInterval, |
|
|
recDurationInterval: recDurationInterval, |
|
@@ -545,6 +568,19 @@ |
|
|
this.recordList = []; |
|
|
this.recordList = []; |
|
|
this.getMyCustom(); |
|
|
this.getMyCustom(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
choice(index,e) { |
|
|
|
|
|
if (this.visitList[index].isShow == true) { |
|
|
|
|
|
this.visitList[index].isShow = false; |
|
|
|
|
|
for (var i = 0; i < this.screen.visitRecord.length; i++) { |
|
|
|
|
|
if (this.screen.visitRecord[i] === e) { |
|
|
|
|
|
this.screen.visitRecord.splice(i, 1); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.visitList[index].isShow = true; |
|
|
|
|
|
this.screen.visitRecord.push(e) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
recordclick(i) { |
|
|
recordclick(i) { |
|
|
if (this.screen.visitRecord == i) { |
|
|
if (this.screen.visitRecord == i) { |
|
|
this.screen.visitRecord = null |
|
|
this.screen.visitRecord = null |
|
|