missingReception.wxml 4.64 KB
<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>