index.wxml
21 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
<!-- src引入filter.wxs, module给模块起名 -->
<wxs src="../../../utils/permission.wxs" module="perm" />
<wxs src="../index.wxs" module="filter" />
<navigation-bar bindnavbarReady="navbarReady"
showWhiteMenu
showMenu="{{ true }}"
bindback="back"
bindshowMenuPopup="showMenuPopup"
navStyle="{{ navStyle }}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
{{ userInfo.shopMerchantName || '全部' }}
</view>
<!-- <view class="arrow" wx:if="{{ userInfo.isSuper }}">
<image src="{{ IMG_URL }}images/arrow-bottom.png" />
</view> -->
</view>
</navigation-bar>
<view class="bg"></view>
<view style="height:100vh;overflow: hidden;">
<view class="layout {{ flag?'opacity':'' }} {{ waitInputCount?'mtTips':'' }}"
style="height:calc(100vh - {{ navBarHeight }}px); margin-top:{{ navBarHeight + 'px' }}">
<block wx:if="{{ navBarHeight > 0 }}">
<view class="tips">
<view class="tips-text text-hide">
你好,<text>{{ loginRoleLabel[loginRole] || '' }}{{ userInfo.name || '' }}</text>
</view>
<!-- <view class="change_box">
<view class="change_btn {{changeSelectIndex == index ? 'active' : ''}}" bindtap="changeStaticData" data-index="{{index}}" wx:for="{{changeBtnData}}" wx:key="index" wx:for-index="index">{{item.label}}</view>
</view> -->
</view>
<view class="swiper-wrap">
<view wx:if="{{ isStaff }}"
class="server-center-tips-text {{ serviceCenterUnreadNum ? 'has-unread' : '' }}"
bind:tap="handleNavigateServiceCenter">
<view class="wrapper">
<image class="icons" src="{{ IMG_URL }}images/server-center-icons.png"></image>
<view class="text">
服务中心
</view>
</view>
</view>
<swiper bindchange="changeSwiper">
<block wx:for="{{ 3 }}" wx:key="index">
<swiper-item>
<view class="swiper-item">
<view class="total-wrap">
<view class="item left">
<view class="title">{{changeSelectIndex==0?'今日':changeSelectIndex==1?'本月':'累计'}}产值</view>
<veiw class="number" wx:if="{{ userInfo.userType == 2 && !perm.hasPermission.canSkipValidation(userInfo) }}">
<text class="unit">¥</text>
<text>{{userStat[changeBtnData[changeSelectIndex].valueObj].totalOrderMoney||0}}</text>
</veiw>
<veiw class="number" wx:else>
<text class="unit">¥</text>
<text>{{userStat[changeBtnData[changeSelectIndex].valueFn].totalOrderMoney||0}}</text>
</veiw>
</view>
<view class="item">
<view class="title">转化率</view>
<view class="number" wx:if="{{ userInfo.userType == 2 && !perm.hasPermission.canSkipValidation(userInfo) }}">
<text>{{userStat[changeBtnData[changeSelectIndex].valueObj].upgradeRate||0}}</text>
<text class="units">%</text>
</view>
<view class="number" wx:else>
<text>{{userStat[changeBtnData[changeSelectIndex].valueFn].upgradeRate||0}}</text>
<text class="units">%</text>
</view>
</view>
</view>
<view class="custom-statistic">
<view class="customItem" wx:for="{{ totalList }}" data-item="{{ item }}" bindtap="navTabPage" wx:key="index">
<block wx:if="{{ item.index==2 }}">
<view class="label">
<text>{{item.name}} </text>
<text data-item="{{ item }}" catchtap="navTabPage" data-type="wait">/{{item.waitname}}</text>
</view>
<view class="number">
<view class="firstValue">{{userStat[changeBtnData[changeSelectIndex].valueObj][item.itemName]||0}}</view>
<view class="lastValue">/{{userStat[changeBtnData[changeSelectIndex].valueObj][item.waititemName]||0}}</view>
</view>
</block>
<block wx:else>
<view class="label">{{item.name}}</view>
<view class="number" wx:if="{{ userInfo.userType == 2 && !perm.hasPermission.canSkipValidation(userInfo) }}">
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<view>{{userStat[changeBtnData[changeSelectIndex].valueObj][item.itemName]||0}}</view>
</view>
<view class="number" wx:else>
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<view>{{userStat[changeBtnData[changeSelectIndex].valueFn][item.itemName]||0}}</view>
</view>
</block>
</view>
</view>
</view>
</swiper-item>
</block>
<block wx:if="{{ perm.hasPermission.canSelectMultiStoreWithTechnician(userInfo) }}">
<swiper-item>
<view class="swiper-item">
<view class="total-wrap">
<view class="item left">
<view class="title">本月施工单</view>
<view class="number">
<!-- <text class="unit">¥</text> -->
<text>{{filter.formatNumberOrDash(technicianItemsCount.currentMonthCount)}}</text>
</view>
</view>
<view class="item">
<view class="title">累计施工单</view>
<view class="number">
<!-- <text class="unit">¥</text> -->
<text>{{filter.formatNumberOrDash(technicianItemsCount.totalCount)}}</text>
</view>
</view>
</view>
<view class="custom-statistic">
<view class="customItem" wx:for="{{ technicianTotalList }}" data-item="{{ item }}" wx:key="index">
<!-- <block wx:if="{{ item.index==2 }}"> -->
<view class="label">
<text>{{item.name}} </text>
<!-- <text data-item="{{ item }}">/{{item.waitname}}</text> -->
</view>
<view class="number">
<view class="firstValue">{{filter.formatNumberOrDash(technicianItemsCount[item.itemName])}}</view>
<view class="lastValue">/{{filter.formatNumberOrDash(technicianItemsCount[item.waititemName])}}</view>
</view>
</view>
</view>
</view>
</swiper-item>
</block>
</swiper>
<view class="dots">
<view
wx:for="{{ perm.hasPermission.canSelectMultiStoreWithTechnician(userInfo) ? 4 : 3 }}"
wx:key="item"
wx:for-index="idx"
class="dot {{ changeSelectIndex==idx?'active':'' }}"
></view>
</view>
</view>
<view>
<block wx:if="{{ isWait&&(todoList.length>0 || missingRecordTodoList.length > 0) }}">
<view class="todo-list">
<view class="title">今日待办·{{todoList.length + missingRecordTodoList.length}}</view>
<view class="todo-items">
<block wx:if="{{todoList.length}}">
<view class="todo-item" wx:for="{{ ispopUp?todoList:stodoList }}" wx:for-index="idx" wx:key="idx">
<view class="todo-item-title">
<image src="{{ IMG_URL}}{{item.taskType=='1'?'warn':'task' }}.png" />
<text>{{todos[item.taskId]}}</text>
</view>
<view class="todo-item-info">{{item.content }}</view>
<view class="todo-item-btn" wx:if="{{ item.taskId==2 }}" bindtap="goto" data-id="{{ item.taskId }}">去开单</view>
<view class="todo-item-btn" wx:elif="{{ item.taskId==4 }}" data-id="{{ item.taskId }}" bindtap="goto">去处理</view>
<view class="todo-item-btn" wx:elif="{{ item.taskId==1 }}" data-id="{{ item.taskId }}" bindtap="goto">去填写</view>
<view class="todo-item-btn" wx:else bindtap="closeRemind" data-id="{{ item.taskId }}">关闭提醒</view>
</view>
</block>
<block wx:if="{{missingRecordTodoList.length}}" wx:key="idx" wx:for-index="idx">
<view class="todo-item" wx:if="{{ispopUp || (!ispopUp && stodoList.length < 2)}}">
<view class="todo-item-title">
<image src="{{IMG_URL}}warn.png" />
<text>接待缺失报备</text>
</view>
<view class="todo-item-info">请报备缺失接待客户的原因</view>
<view class="todo-item-btn" bindtap="gotoMissingReception">去报备</view>
</view>
</block>
</view>
<view class="pack-up {{ !ispopUp?'pack-up-active':'' }}" wx:if="{{ (missingRecordTodoList.length + todoList.length)>2 }}" bindtap="packupList">
<image src="{{ IMG_URL }}pack-up.png" />
</view>
</view>
</block>
<block wx:if="{{ !isNoStaff }}">
<div class="menu">
<block wx:for="{{ menu }}" wx:key="id">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{ IMG_URL}}upgrade/{{item.icon }}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{ item.hot }}">热</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum}}</view>
<view class="bubble_icon" wx:if="{{ item.noRead }}"></view>
</view>
</block>
</div>
</block>
<block wx:if="{{ isNoStaff }}">
<div class="menu noStaff">
<block wx:for="{{ menu }}" wx:key="id">
<view class="item" bindtap="jumpThrottle" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image wx:if="{{ item.iconPrefix != 'crowdFunding' }}" src="{{ IMG_URL}}upgrade/{{item.icon }}.png" />
<image wx:else src="{{ IMG_URL}}crowdFunding/{{item.icon }}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum > 99?'99+': item.tipsNum}}</view>
</view>
</block>
</div>
</block>
<block wx:if="{{ !isNoStaff }}">
<div class="menu" wx:if="{{ newMenu.length>0 }}">
<block wx:for="{{ newMenu }}" wx:key="id">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{ IMG_URL}}upgrade/{{item.icon }}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{ item.hot }}">热</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum}}</view>
<view class="bubble_icon" wx:if="{{ item.noRead }}"></view>
</view>
</block>
</div>
</block>
<view class="myPerformance {{ loginRole==4?'mb':'' }}" wx:if="{{ isWait && !perm.hasPerm(userInfo, 'isTechnician') }}">
<view class="title">
<view class="conTitle">我的绩效</view>
<CalendarMonth
monthOnly="{{ true }}"
allowSameDay
shortcut
bindselect="monthSelect"
bindtapCalendar="tapCalendar"
dateType="single"
calenderColor="#347BFF"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.today || '' }}"
forceFullSucreen="{{ bottomLift>0?true:false }}"
isComponents
>
<view class="item dateNum">
{{dateObj.label}}
<view class="arrow {{ whiteArrow?'move':'' }}">
<image src="{{ IMG_URL }}images/arrSolid.png" />
</view>
</view>
</CalendarMonth>
</view>
<!-- 督导显示 -->
<view class="totalPerformanceCon" wx:if="{{ loginRole&&loginRole!=4 }}">
<view class="merchantNum">
汇总
<view class="num">{{outputValueObj.shopCount||0}}</view>
家门店
</view>
<view class="total">
<view class="contentBox">
<view class="lableBox">
<view class="label">产值完成比</view>
<view class="value persent">{{outputValueObj.rateValuePercent}}</view>
</view>
<view class="line"></view>
<view class="lableBox">
<view class="label">当月完成</view>
<view class="value">
<text class="unit">¥ </text>
{{outputValueObj.totalOutputValue||0}}
</view>
</view>
<view class="line"></view>
<view class="lableBox">
<view class="label">当月目标</view>
<view class="value">
<text class="unit">¥ </text>
{{outputValueObj.totalTargetOutputValue||0}}
</view>
</view>
</view>
</view>
<view class="mrechantItemCon" wx:if="{{ outputValueObj.outoutValueList.length }}">
<view class="selfPerformanceCon" wx:for="{{ outputValueObj.outoutValueList }}" wx:key="index">
<view class="header">
<view class="merchantName">{{item.merchantName}}</view>
<view class="staffName">{{item.residentManager||''}}</view>
</view>
<view class="label">当月目标</view>
<view class="content">
<view class="lable">
<view>产值完成比</view>
<view class="value">{{item.rateValuePercent}}</view>
</view>
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<view class="target">
<view class="value">
<text class="unit">¥ </text>
{{item.targetOutputValue||0}}
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 驻店负责人显示 -->
<view wx:elif="{{ loginRole&&loginRole == 4 && outputValueObj.outoutValueList.length }}">
<view class="selfPerformanceCon staffCon" wx:for="{{ outputValueObj.outoutValueList||[] }}" wx:key="index">
<view class="header">
<view class="merchantName">{{item.merchantName}}</view>
<view class="staffName">{{item.residentManager||''}}</view>
</view>
<view class="label">当月目标</view>
<view class="content">
<view class="lable">
<view>产值完成比</view>
<view class="value">{{item.rateValuePercent}}</view>
</view>
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<view class="target">
<view class="value">
<text class="unit">¥ </text>
{{item.targetOutputValue||0}}
</view>
</view>
</view>
</view>
</view>
<view class="nothingTips" wx:elif="{{ loginRole&&loginRole == 4 && !items.outoutValueList.length }}">
<view class="text">本月绩效未设置</view>
<view class="text2">
请联系督导
<text wx:for="{{ item.areaSupervisionList }}" wx:for-index="ind" wx:key="ind" wx:for-item="areaItem">{{areaItem.userName}}</text>
上报月度产值目标
</view>
</view>
</view>
<!-- 员工不给看统计数据;技师不展示业务数据 -->
<view class="content" wx:if="{{ userInfo.loginRole&&userInfo.loginRole!=4 && !perm.hasPerm(userInfo, 'isTechnician') }}">
<view class="box table">
<view class="table-control conTitle utils">
业务数据
<view class="table-control-btn">
<block wx:for="{{ tableBtn }}" wx:key="index">
<block wx:if="{{ item.type == 'date' && delayShow }}">
<calendar
allowSameDay
shortcut
bindselect="rangeSelect"
rangeAll
dateType="range"
calenderColor="#347BFF"
vertical
minDate="2020-10-01"
maxDate="{{ maxDate }}"
>
<view class="{{ item.active?'active':'' }} table-control-btn-view">{{item.text}}</view>
</calendar>
</block>
<block wx:else>
<view class="{{ item.active?'active':'' }} table-control-btn-view" data-name="{{ item.type }}" bindtap="changeDate">{{item.text}}</view>
</block>
</block>
</view>
</view>
<scroll-view
scroll-x
scroll-y
show-scrollbar="{{ false }}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="304"
refresher-triggered="{{ triggered }}"
class="table"
>
<view class="table-box" style="width: var(--fontSize{{ tableWidth }})">
<view class="table-header" style="width: var(--fontSize{{ tableWidth }})">
<view class="label">合作门店</view>
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="index">
<view
class="value {{ tableSort == index?'active':'' }}"
style="width: {{ item.width }};"
bindtap="changeTableSort"
id="header-{{ index }}"
data-index="{{ index }}"
>
<view class="lable">
<view class="name">{{item.name}}{{item.unit}}</view>
</view>
<view class="sort-list">
<view class="up {{ item.sort?'sort-active':'' }}" />
<view class="down {{ !item.sort?'sort-active':'' }}" />
</view>
</view>
</block>
</view>
</view>
<view class="table-total" style="width: var(--fontSize{{ tableWidth }})">
<view class="totalLabel average">累计</view>
<view class="values">
<block wx:for="{{ totalTableSum }}" wx:for-index="index" wx:key="index" wx:for-item="item">
<view class="th" style="width:{{ tableObj[index]['width'] }};">
<block wx:if="{{ item.name == 'upgradeRateSum' }}">{{item.total || 0}}%</block>
<block wx:else>{{item.total || 0}}</block>
</view>
</block>
</view>
</view>
<view class="table-body">
<block wx:if="{{ tableFlag }}">
<block wx:if="{{ table.length > 0 }}">
<block wx:for="{{ table }}" wx:key="index">
<view class="th" style="width: var(--fontSize{{ tableWidth }})">
<view class="name">
<view class="labelName {{ item.merchantName.length<=10?'oneLine':'' }}">{{item.merchantName}}</view>
</view>
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="td text-center" style="width: {{ tableObj[ind]['width'] }};">
<block wx:if="{{ i.key == 'filmTimes' }}">
<view
class="text-center"
style="width:100%;height: 100%;color:{{ isYqdSuper?'#347BFF':'#333333' }}"
data-item="{{ item }}"
bindtap="changeTableData"
>{{item[i.key] || 0}}</view>
</block>
<block wx:elif="{{ i.key == 'upgradeRate' }}">{{item[i.key] || 0}}%</block>
<block wx:else>{{item[i.key] || 0}}</block>
</view>
</block>
</view>
</view>
</block>
</block>
</block>
</view>
</view>
</scroll-view>
<block wx:if="{{ table.length <= 0 }}">
<view class="nothing">暂无数据</view>
</block>
</view>
</view>
</view>
</block>
</view>
</view>
<!-- 异常流水吸底提醒 -->
<view class="abnormal-flow-tip-wrap" wx:if="{{ abnormalFlowTips.show }}">
<abnormal-flow-tips
show="{{ abnormalFlowTips.show }}"
count="{{ abnormalFlowTips.count }}"
tips-text="{{ abnormalFlowTips.tipsText }}"
bind:close="onAbnormalFlowTipClose"
bind:action="onAbnormalFlowTipAction"
/>
</view>
<!-- 2025-8月版本 隐藏补录订单入口 -->
<!-- <view class="waitOrderCon" wx:if="{{ waitInputCount }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" beforeClick="inspectionOfProhibitionBill" />
</view> -->
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
新增工单
</view>
<view class="modalbox cancle {{ selectType == 2?'act': '' }}" bindtap="selectType" data-type="2">
<gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
战败下单
</view>
</view>
</modal>
<remark-popup
wx:if="{{ showRemark }}"
show="{{ showRemark }}"
isLimitNum="{{ false }}"
title="{{ '修改贴膜台次' }}"
btnName="{{ '确认' }}"
bind:confirm="remarkConfirm"
placeholder="{{ '请输入整数' }}"
maxlength="4"
value="{{ methodUpdateInfo.filmTimes }}"
isInt="{{ true }}"
/>
<recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<block wx:if="{{ perm.hasPermission.canSelectMultiStore(userInfo) }}">
<side-select-popup show="{{ shopSideSelectPopup }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" dataSource="page" />
</block>
<block wx:else>
<side-select-popup
show="{{ shopSideSelectPopup }}"
storeList="{{ storeRange }}"
bindconfirm="storeSearchEvent"
subIndex="{{ subIndex }}"
hasTabBar="true"
/>
</block>
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
<order-prompt-popup
wx:if="{{ showPromptDialog }}"
show="{{ showPromptDialog }}"
bindcancel="promptCancel"
bindconfirm="promptHandleConfirm"
sceneObj="{{ sceneObj }}"
dj-qr-only-mode="{{ orderPromptDjQrOnlyMode }}"
></order-prompt-popup>
<study-permission-modal id="customModal" />
<report-template-popup
show="{{showReportPopup}}"
templateList="{{reportTemplateList}}"
bind:cancel="onReportPopupCancel"
bind:select="onReportPopupSelect"
/>