missingReception.wxml
4.64 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
<view class="layout">
<navigation-bar navStyle="background: linear-gradient(to bottom, #DDE8FB 0%, #EBF1FB 100%);" bindback="jump" bindnavbarReady="navbarReady" showBack>
平板接待缺失报备
</navigation-bar>
<view class="box {{isDateWithin7Days && !detailObj[currentDate].hasReceptionReport && detailObj[currentDate].missingReceptionRecord ? '' : 'bespread'}}" style="padding-top:{{ navBarHeight }}px">
<weekCalendar timeBean="{{ timeBean }}" bind:lastWeek="lastWeek" bind:nextWeek="nextWeek" bind:dayClick="dayClick"></weekCalendar>
<scroll-view scroll-y class="content" scroll-top="{{scrollTop}}">
<view class="info flex">
<view class="info-item">
售前
<view class="num">{{detailObj[currentDate].preSalesCustomerCount || '0'}}</view>
</view>
<view class="info-item">
售后
<view class="num">{{detailObj[currentDate].afterSalesCustomerCount || '0'}}</view>
</view>
<view class="info-item">
总触客
<view class="num">{{detailObj[currentDate].totalSalesCustomerCount || '0'}}</view>
</view>
<view class="info-item">
录音
<view class="num">{{detailObj[currentDate].recordingCount || '0'}}</view>
</view>
</view>
<!-- 超过7天&没日报记录 -->
<block wx:if="{{!isDateWithin7Days && !detailObj[currentDate].hasReceptionReport}}">
<view class="nothing flex">
<image class="no-data-img" src="{{IMG_URL}}equity/reception/no-suggestions.png" />
<view>已超过 7 个自然日</view>
暂不支持补填操作
</view>
</block>
<block wx:else>
<block wx:if="{{detailObj[currentDate].hasDailyReport}}">
<block wx:if="{{detailObj[currentDate].missingReceptionRecord || list.length}}">
<view class="title flex">
{{detailObj[currentDate].hasReceptionReport?'已':'需'}}报备客户·{{detailObj[currentDate].hasReceptionReport ? total : list.length}}
</view>
<view class="list {{detailObj[currentDate].hasReceptionReport?'has-reception-report':''}}">
<block wx:for="{{list}}" wx:key="index">
<view class="item">
<view class="num-box">
<view class="num flex">{{index + 1}}</view>
</view>
<view class="item-content">
<view class="label flex">客户姓名<view class="required">*</view>
</view>
<view class="value {{item.disabled?'disabled':''}}">
<input class="input" type="text" maxlength="20" value="{{item.customerName}}" placeholder="{{item.inputErrorText||'请输入'}}" placeholder-class="placeholder {{item.inputErrorText?'error':''}}" disabled="{{item.disabled}}" bindblur="inputBlur" data-index="{{index}}" />
</view>
<view class="label flex">缺失原因<view class="required">*</view>
</view>
<view class="value {{item.disabled?'disabled':''}}">
<picker class="picker" mode="selector" range="{{missingOptions}}" disabled="{{item.disabled}}" range-key="reason" bindchange="changeReason" data-index="{{index}}">
<view class="reason flex {{item.reasonText?'':'placeholder'}} {{item.errorText?'error':''}}">{{item.reasonText || item.errorText || '请选择'}}</view>
<view class="arrow">
<image src="{{ IMG_URL }}images/arrow-right.png"></image>
</view>
</picker>
</view>
</view>
</view>
</block>
</view>
<view class="block"></view>
</block>
<block wx:else>
<view class="nothing flex">
<image class="no-data-img" src="{{IMG_URL}}equity/reception/no-suggestions.png" />
该日期暂无缺失接待记录
</view>
</block>
</block>
<block wx:else>
<view class="nothing flex">
<image class="no-data-img" src="{{IMG_URL}}equity/reception/no-suggestions.png" />
请先填写驻店日报
</view>
</block>
</block>
</scroll-view>
</view>
<block wx:if="{{isDateWithin7Days && !detailObj[currentDate].hasReceptionReport && detailObj[currentDate].missingReceptionRecord}}">
<view class="footer flex">
<view class="cancel flex" bindtap="cancel">取消报备</view>
<view class="submit flex" bindtap="submit">提交报备</view>
</view>
</block>
</view>