index.wxml 2.65 KB
<!--tabRepairOrder/components/servicePopup/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择服务项目" bindconfirm="confirm" bindcancel="cancel">
  <view class="servies-content">
    <view class="top">
      <search-input bindsearch="search" placeholder="服务项目名称" bindinput="handelSearchInput" value="{{searchValue}}" />
    </view>
    <view class="content">
      <scroll-view scroll-y style="height: 100%;" enhanced="{{true}}" show-scrollbar="{{false}}">
        <block wx:for="{{servicesList}}" wx:key="index">
          <view class="content-box">
            <view class="item-top" bindtap="handleShowItem" data-index="{{index}}">
              <view class="left">
                <image src="{{IMG_URL}}collapse_icon.png" class="{{!item.showItemFlag ? 'rotate-180' : ''}}" mode=""/>
                <text calss="name">{{item.title}}</text>
              </view>
              <view class="check-tip">已选择:<text>{{filter.activeNum(item.detailList)}}</text>个</view>
            </view>
            <block wx:for="{{item.detailList}}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
              <view hidden="{{!item.showItemFlag}}">
                <view class="item-box" >
                  <view class="message">
                    <view class="box">
                      <view class="ser-name text-hide">{{i.serviceItemsName}}</view>
                      <view class="other">
                        <text>用料标准{{i.materialStandard || '-'}}米/件</text>
                        <text class="split">|</text>
                        <text>施工标准{{i.timeStandard || '-'}}min</text>
                      </view>
                    </view>
                    <view class="count-box" wx:if="{{i.active}}">
                      <input type="number" class="count-input" value="{{i.useNum}}" maxlength="2" bindblur="handleCountBlur" bindinput="handleCountInput" data-target="{{ i }}" />
                      <text>个/件</text>
                    </view>
                  </view>
                  <view class="check" bindtap="handleChecked" data-target="{{i}}">
                    <block wx:if="{{i.active}}">
                      <image src="{{IMG_URL}}check.png" mode=""/>
                    </block>
                    <block wx:else>
                      <view class="arc"></view>
                    </block>
                  </view>
                </view>
              </view>
            </block>
          </view>
        </block>
      </scroll-view>
    </view>
    <view class="bottom">共选项目<text>{{filter.activeNum(copyServicesList, 'detailList')}}</text>个</view>
  </view>
</popup>