PotentialSection.wxml
5.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!--pages/tab/customer/components/PotentialSection/PotentialSection.wxml-->
<view class="potential-page">
<view class="data-board">
<view class="customer-page">
<view class="board">
<view class="board-header">
<view class="board-title">数据看板</view>
<view class="board-actions">
<view class="board-action {{boardMonthActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="month">
<text>{{boardMonthText}}</text>
<image src="{{IMG_URL}}customer/arrow.png" mode=""/>
</view>
<view class="board-action {{boardScopeActive ? 'active' : ''}}" bindtap="chooseBoard">
<text>{{boardScopeText}}</text>
</view>
</view>
</view>
<view class="board-grid">
<view class="grid-item wid-128">
<view class="label">潜客数</view>
<view class="value">{{dashboard.potentialCustomersCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">跟进中</view>
<view class="value">{{dashboard.followUpCount}}</view>
</view>
<view class="grid-item wid-67">
<view class="label">已签约</view>
<view class="value">{{dashboard.signedCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">未签约</view>
<view class="value">{{dashboard.notSignedCount}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="search-wrap">
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
</view>
<view class="tabbar-anchor" >
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
</view>
<!-- 列表(潜客) -->
<view class="list-section {{loading ? 'loading' : ''}}" id="" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);" >
<block wx:if="{{customerList.length}}">
<block wx:for="{{customerList}}" wx:key="index">
<view class="list-card" bindtap="goDetail" data-item="{{item}}">
<view class="card-header">
<view class="title">{{item.storeName || '-'}} </view>
<view class="status-tag" style="color: {{statusText[item.potentialCustomersStatus].color}}">{{statusText[item.potentialCustomersStatus].label}}</view>
</view>
<view class="card-row">
<view class="label">拜访次数</view>
<view class="value">{{item.visitTimes != null ? item.visitTimes + '次' : '-'}}</view>
</view>
<view class="card-row">
<view class="label">跟进人</view>
<view class="value">{{item.followUpPersonName || '-'}} </view>
</view>
<view class="card-row" wx:if="{{item.potentialCustomersStatus == 1}}">
<view class="label">最后跟进</view>
<view class="value">{{item.lastFollowUpTime || '-'}} </view>
</view>
<block wx:if="{{item.potentialCustomersStatus == 3 || item.potentialCustomersStatus == 4}}">
<view class="card-row" >
<view class="label">预计展业时间</view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
</view>
<view class="card-row">
<view class="label">分润规则</view>
<view class="value">{{item.profitRule || '-'}} </view>
</view>
<view class="card-row">
<view class="label">上架产品信息</view>
<view class="value">{{item.productShelfInfo || '-'}} </view>
</view>
</block>
<view class="card-row" wx:if="{{item.potentialCustomersStatus == 2}}">
<view class="label">战败原因</view>
<view class="value">{{item.failureReason || '-'}} </view>
</view>
<!-- loginRole 1 总监 2 大区经理 3 销售 -->
<view class="card-actions" wx:if="{{(userInfo.loginRole == 2 && item.isSelf == 1) || userInfo.loginRole == 3}}">
<view wx:if="{{item.potentialCustomersStatus == 1 || item.potentialCustomersStatus == 3}}" class="btn {{item.potentialCustomersStatus == 1 ? 'ghost' : ''}}" catchtap="jump" data-item="{{item}}">信息完善</view>
<view wx:if="{{item.potentialCustomersStatus == 1}}" class="btn" catchtap="jump" data-item="{{item}}" data-name="resultFeedback">结果反馈</view>
</view>
</view>
</block>
<view class="list-footer" wx:if="{{loading}}">加载中...</view>
<view class="list-footer" wx:if="{{!hasMore && customerList.length}}">到底了~</view>
</block>
<block wx:else>
<nothing-tips tips="暂无数据" bgColor="{{'#F7F8FA'}}" emptyDataStyle="height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);" />
</block>
</view>
<!-- 悬浮新增潜客按钮 -->
<block wx:if="{{userInfo.loginRole != 1}}">
<block wx:if="{{ showAddIcon }}">
<view class="fixed-btns">
<view class="btn text-center" bindtap="jump">
<image src="{{ IMG_URL }}customer/add-potential.png" />
新增潜客
</view>
</view>
</block>
<block wx:else>
<view class="arrowIcon">
<image class="image" src="{{ IMG_URL }}customer/arrow.png" />
</view>
</block>
</block>
</view>
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="50%">
<van-datetime-picker
id="datePicker"
type="year-month"
model:value="{{pendingMonthValue}}"
min-date="{{minMonthDate}}"
max-date="{{maxMonthDate}}"
show-toolbar="{{false}}"
bind:change="onMonthChange"
/>
</popup>