index.wxml
4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!--pages/tabRepairOrder/components/Screening/index.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="padding-bottom:{{btnHeight}}px; min-height: calc(100% - {{isFullSucreen ? 'var(--fontSize68)' : '0px'}} - var(--fontSize90));">
<view class="box">
<view class="title">
开始施工时间
</view>
<view class="list-box">
<block wx:for="{{form.orderTimeList}}" wx:key="index">
<block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' id="orderCalendar" data-index="{{index}}" data-name="orderTimeList" dateType='range' calenderColor='#347BFF' vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents>
</calendar>
<view style="display: flex;align-items: center;width: 100%;">
<view bindtap="showCalendar" data-type="show" data-target="showOrder" class="item custom-time text-center {{!item.orderStartDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.orderStartDate || '开始时间'}}</view>-
<view bindtap="showCalendar" data-type="show" data-target="showOrder" class="item custom-time text-center {{!item.orderEndDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.orderEndDate || '结束时间'}}</view>
</view>
</block>
<block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="orderTimeList" data-index="{{index}}">{{item.name}}</view>
</block>
</block>
</view>
</view>
<view class="box">
<view class="title">
<view class="title-left">
技师
</view>
<block wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">
<view wx:if="{{form.technicianUuidList.length > 12}}" bindtap="showMore" class="collapse-btn {{!technicianShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</block>
<block wx:else>
<view wx:if="{{form.selectTechnicianList.length > 10}}" bindtap="showMore" class="collapse-btn {{!technicianShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</block>
</view>
<view class="list-box">
<!-- 员工/技师/库管 -->
<block wx:if="{{!perm.hasPermission.canSelectMultiStore(userInfo)}}">
<block wx:for="{{form.technicianUuidList}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="technicianUuidList" data-index="{{index}}" hidden="{{index >= 12 && !technicianShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</block>
<!-- 超管/区域运营等 -->
<block wx:else>
<view class="item text-center {{!form.selectTechnicianList.length?'active':''}}" bindtap="technicianChoose">全部</view>
<view class="item text-center" bindtap="showTechnicianSelectPopup" data-type="2">自定义</view>
<block wx:for="{{form.selectTechnicianList}}" wx:key="index">
<view class="item active" bindtap="choose" data-list-name="selectTechnicianList" data-index="{{index}}" hidden="{{index >= 10 && !technicianShowMore}}">
<view class="inline-block ">{{item.staffName}}</view>
</view>
</block>
</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>
<artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" multiple artificerSelectObj="{{form.selectTechnicianList || []}}" bindconfirm="changeArtificer" bindcancel="cancelTechnician" />