specialTaskApply.wxml 4.95 KB
<glsx-privacy appletName="嘀加门店管理助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar
  bindnavbarReady="navbarReady"
  class="navigation-header"
  showBack="{{true}}"
  bindback="back"
  navStyle="background-color: transparent;box-shadow:none;"
>
  <view class="page-title">{{ pageTitle }}</view>
</navigation-bar>

<scroll-view
  class="container"
  scroll-y
  show-scrollbar="{{false}}"
  enhanced
  style="padding-top: calc({{navBarHeight}}px + 8rpx);padding-bottom: {{ readonly ? '0' : (isFullSucreen ? 'calc(120rpx + 34px)' : '120rpx') }};"
>
  <view style="width: 100%;height: 8rpx;"></view>
  <view class="box padding-0">
    <view class="item-box" bindtap="openbizType">
      <view class="label">任务类型<text class="required">*</text></view>
      <view class="value">
        <text wx:if="{{ form.categoryName }}" class="value-text">{{ form.categoryName }}</text>
        <text wx:else class="placeholder">点击选择</text>
        <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="" />
      </view>
    </view>

    <view class="item-box" bindtap="openMerchant">
      <view class="label">归属门店<text class="required">*</text></view>
      <view class="value">
        <text wx:if="{{ form.merchantName }}" class="value-text">{{ form.merchantName }}</text>
        <text wx:else class="placeholder">点击选择</text>
        <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="" />
      </view>
    </view>

    <view class="item-box">
      <view class="label">归属业务<text class="required">*</text></view>
      <view class="value_box">
        <view class="radio-box" wx:for="{{ businessList }}" wx:key="value" bindtap="changeBusiness" data-value="{{ item.value }}">
          <image wx:if="{{ form.businessType == item.value }}" class="radio-icon" src="{{IMG_URL}}radio-checked.png" mode="" />
          <view wx:else class="circle" style="background: {{readonly ? '#EEE' : ''}};"></view>
          <view class="text">{{ item.label }}</view>
        </view>
      </view>
    </view>

    <view class="multi-select" wx:if="{{ form.bizType == 'staff-replace-access' }}">
      <view class="multi-select__header">
        <view class="multi-select__label">问题驻店销售<text class="required">*</text></view>
        <view bindtap="openProblemSales" style="display: flex;align-items: center;">
          <text class="multi-placeholder" wx:if="{{ !readonly }}">点击选择(可多选)</text>
          <image class="multi-select__arrow" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="aspectFit" />
        </view>
      </view>
      <view class="multi-select__body" wx:if="{{ form.problemStaffList && form.problemStaffList.length }}">
        <view class="multi-tags">
          <block wx:for="{{ form.problemStaffList }}" wx:key="phone">
            <view class="multi-tag">
              <text class="multi-tag__text" style="max-width: {{ readonly ? '100%' : 'calc(100% - 36rpx)'}};">{{ item.name || item.staffName || item.participantName || '-' }}</text>
              <text class="multi-tag__close" wx:if="{{ !readonly }}" catchtap="removeProblemSales" data-index="{{ index }}">×</text>
            </view>
          </block>
        </view>
      </view>
    </view>

    <view class="item-box" bindtap="openOperator">
      <view class="label">指定区域运营<text class="required">*</text></view>
      <view class="value">
        <text wx:if="{{ form.regionOperatorName }}" class="value-text">{{ form.regionOperatorName }}</text>
        <text wx:else class="placeholder">点击选择</text>
        <image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode="" />
      </view>
    </view>

    <view class="item-box remark_box">
      <view class="label">任务事项描述<text class="required">*</text></view>
      <view class="textArea_box">
        <textarea
          placeholder-style="color: #999EA8;"
          disabled="{{ readonly }}"
          value="{{ form.description }}"
          maxlength="500"
          placeholder="请输入"
          class="textarea"
          bindinput="descriptionInput"
        />
        <view class="currentWordNumber">{{ descriptionLength || 0 }} / 500</view>
      </view>
    </view>
  </view>
  <view style="width: 100%;height: 20rpx;background: transparent;"></view>
</scroll-view>

<view class="footer-btn {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{ !readonly }}">
  <view class="btn" bindtap="submit">提交</view>
</view>

<select-popup
  show="{{ showSelectPopup }}"
  options="{{ selectOptions }}"
  multiple="{{ selectMultiple }}"
  values="{{ selectValues }}"
  value="{{ selectValue }}"
  bindconfirm="handlePopupConfirm"
  bindcancel="hideSelectPopup"
  labelKey="{{ labelKey }}"
  valueKey="{{ valueKey }}"
  height="{{ selectPopupHeight }}"
  title="{{ selectTitle }}"
  allowSearch="{{ allowSearch }}"
/>