DateScreen.wxml
7.73 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!--pages/tabDateIndex/components/DateScreen/DateScreen.wxml-->
<wxs src="../../../../utils/permission.wxs" module="perm" />
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight}}px);margin-top:{{navBarHeight}}px;" hidden="{{!show}}">
<view class="main" style="min-height:calc(100% - {{btnHeight}}px)">
<!-- 非超管转化人员 -->
<view class="box" wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">
<view class="title">
<view class="title-left">
转化人员
<view class="title-tips" wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">{{userInfo.merchantName}}</view>
</view>
<view wx:if="{{form.userIdList.length > 12}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<block wx:for="{{form.userIdList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="userIdList" data-index="{{index}}" hidden="{{index >= 12 && !employShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<!-- 超管转化人员 选择园区店 -->
<view class="box" wx:if="{{perm.hasPermission.canSelectMultiStore(userInfo)}}">
<view class="title">
<view class="title-left">
转化人员
</view>
<view wx:if="{{form.selectedYqMerchantList.length > 3}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<view class="item text-center {{!form.selectedYqMerchantList.length?'active':''}}" bindtap="yqMerchantChoose">全部</view>
<view class="item text-center" bindtap="showStoreSelectPopup" data-type="1">自定义</view>
<block wx:for="{{form.selectedYqMerchantList}}" wx:key="index">
<view class="item active flex-1" bindtap="choose" data-list-name="selectedYqMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !employShowMore}}">
<view class="inline-block merchant-name">{{item.merchantName}}</view>
<view class="inline-block">{{item.merchantId}}</view>
</view>
</block>
</view>
</view>
<!-- 非超管销售顾问 -->
<view class="box" wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">
<view class="title">
<view class="title-left">
销售顾问
<view class="title-tips" wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">{{userInfo.shopMerchantName}}</view>
</view>
<view wx:if="{{form.issuerUserIdList.length > 12}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<block wx:for="{{form.issuerUserIdList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="issuerUserIdList" data-index="{{index}}" hidden="{{index >= 12 && !salesmanShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<!-- 超管销售顾问 选择4s店 -->
<view class="box" wx:if="{{perm.hasPermission.canSelectMultiStore(userInfo)}}">
<view class="title">
<view class="title-left">
销售顾问
<view class="title-tips" wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">{{userInfo.shopMerchantName}}</view>
</view>
<view wx:if="{{form.selectedMerchantList.length > 3}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<view class="item text-center {{!form.selectedMerchantList.length?'active':''}}" bindtap="merchantChoose">全部</view>
<view class="item text-center" bindtap="showStoreSelectPopup" data-type="2">自定义</view>
<block wx:for="{{form.selectedMerchantList}}" wx:key="index">
<view class="item active flex-1" bindtap="choose" data-list-name="selectedMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !salesmanShowMore}}">
<view class="inline-block merchant-name">{{item.merchantName}}</view>
<view class="inline-block">{{item.merchantId}}</view>
</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
场景名称
</view>
<view class="list-box">
<block wx:for="{{form.sceneList}}" wx:key="index">
<view
class="item text-center {{item.active?'active':''}}"
bindtap="choose"
data-list-name="sceneList"
data-index="{{index}}"
>
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
预约时间
</view>
<view class="list-box">
<block wx:for="{{form.dateTimeList}}" wx:key="index">
<block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' id="calendar" data-index="{{index}}" data-name="dateTimeList" dateType='range' calenderColor='#347BFF' vertical minDate="2020-10-01" isComponents>
</calendar>
<view style="display: flex;align-items: center;width: 100%;">
<view bindtap="showCalendar" data-type="show" class="item custom-time text-center {{!item.startDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.startDate || '开始时间'}}</view>-
<view bindtap="showCalendar" data-type="show" class="item custom-time text-center {{!item.endDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.endDate || '结束时间'}}</view>
</view>
</block>
<block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="dateTimeList" data-index="{{index}}">{{item.name}}</view>
</block>
</block>
</view>
</view>
<view class="box">
<view class="title">
预约状态
</view>
<view class="list-box">
<block wx:for="{{form.inviteStatusList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="inviteStatusList" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
流量有效性
</view>
<view class="list-box">
<block wx:for="{{form.trafficEffectiveness}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="trafficEffectiveness" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>
</view>
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btn clear text-center" bindtap="reset">清除</view>
<view class="btn done text-center" bindtap="confirm">确定</view>
</view>
</scroll-view>
<store-select-popup show="{{showStoreSelectPopup}}" type="{{storeType}}" bindconfirm="storeConfirm" bindcancel="hideStorePopup" selectedData="{{storeType == 1 ? form.selectedYqMerchantList || [] : form.selectedMerchantList || []}}"></store-select-popup>