ScreenConfirmBox.wxml 3.74 KB
<!--pages/tab/output/components/ScreenConfirmBox/ScreenConfirmBox.wxml-->
<wxs src="../../index.wxs" module="filter" />
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{statusBarHeight + navigationBarHeight}}px);margin-top:calc({{statusBarHeight + navigationBarHeight}}px);"
  hidden="{{!show}}">
  <view class="main" style="padding-bottom:{{btnHeight}}px;min-height: calc(100% - {{btnHeight}}px);">
    <view class="box">
      <view class="title">
        服务商名称
        <block wx:if="{{userInfo.isSuper}}">
          <view class="picker_box" bindtap="servicePicker">
            <view class="picker_text">
              切换
            </view>
            <glsx-image src="{{'output/drop_down.png'}}" class="icon" />
          </view>
        </block>
      </view>
      <view class="service_name" bindtap="servicePicker">
        {{ merchantRange[subIndex].merchantName||userInfo.subLoginUser.merchantName }}
      </view>
    </view>
    <view class="box">
      <view class="title">
        自定义月份
        <view class="picker_box">
          <CalendarMonth
            id="calendarMonth"
            wx:if="{{isShowCalendarMonth}}"
            allowSameDay
            shortcut
            bindselect="dateRangeSelect"
            rangeAll
            dateType="range"
            calenderColor="#3666FE"
            vertical
            minDate="2020-10-01"
            maxDate="{{ dateObj.today }}"
            forceFullSucreen="{{ bottomLift>0?true:false }}"
            isComponents
            isChangeType="{{false}}"
            dayType="{{0}}"
          >
            <view class="picker_box_text">
              <view class="picker_text">
                选择日期
              </view>
              <glsx-image src="{{'output/drop_down.png'}}" class="icon" />
            </view>
          </CalendarMonth>
        </view>
      </view>
      <view class="date_box">
        <view bindtap="showCalendar" data-type="show">
          <view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
          <view class="date_item placeholder" wx:else>请选择</view>
        </view>
        <view>-</view>
        <view bindtap="showCalendar" data-type="show">
          <view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
          <view class="date_item placeholder" wx:else>请选择</view>
        </view>
      </view>
    </view>
    <view class="box" wx:if="{{tabType == 0}}">
      <view class="title padd_b0">
        场景品类
      </view>
      <view class="list_box">
        <block wx:for="{{sceneList}}" wx:key="index">
          <view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-list-name="sceneList">{{item.label}}</view>
        </block>
      </view>
    </view>
    <view class="box" wx:if="{{tabType == 1}}">
      <view class="title padd_b0">
        员工
      </view>
      <view class="list_box">
        <block wx:for="{{staffList}}" wx:key="index">
          <view class="list_item {{item.active?'active':''}}" bindtap="choose" data-index="{{index}}" data-multiple="true" data-list-name="staffList">
            <view>{{item.staffName}}</view>
          </view>
        </block>
      </view>
    </view>
  </view>
  <view class="btn-box isFullSucreen">
    <view class="btn clear text-center" bindtap="reset">重置</view>
    <view class="btn done text-center" bindtap="confirm">确定</view>
  </view>
</scroll-view>

<switchAccountPopup wx:if="{{servicePopupShow}}" bind:hidePopup="servicePicker" bindchangeAccount="changeMerchantRange" popShow="{{servicePopupShow}}" merchantRange="{{merchantRange}}" selectInfo="{{formData}}" customHideTab="{{true}}"/>