DateScreen.wxml 7.73 KB
<!--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>