orderList.wxml
3.31 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<view class="layout">
<view class="top-box">
<view class="input {{userType == 1?'have-employee':''}}">
<view class="search-input">
<search-input bindsearch='search' closeBlurSearch closeVerify searchValue='{{searchValue}}'
placeholder="请输入姓名/车架号(后6位)" searchValue="{{keyword}}"></search-input>
</view>
<block wx:if="{{userType==1}}">
<picker class="picker" range="{{employeeList}}" range-key="staffName" bindchange="searchEmployee">
员工
<image src="../../images/arrow-y.png" class="icon"></image>
</picker>
</block>
<view class="picker" bindtap="showSearchType">
{{searchText[searchType]}}
<image src="../../images/arrow-y.png" class="{{searchPickerStatus?'rotate':''}}"></image>
</view>
</view>
<scroll-view class="tab-box" scroll-x scroll-into-view="{{to}}" scroll-with-animation>
<view class="tab">
<block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{status==item.value?'active':''}}" bindtap="chooseStatus" data-value="{{item.value}}"
data-index="{{index}}">
<text class="tab-item-text" id="tab-{{index}}">{{item.name}}</text>
<view class="active-doc"></view>
</view>
</block>
</view>
</scroll-view>
</view>
<block wx:if="{{orderFlag}}">
<scroll-view class="order-box" scroll-y refresher-enabled="{{status==''}}" refresher-triggered='{{triggered}}'
bindrefresherrefresh='bindrefresherrefresh'>
<block wx:if="{{orderList.length > 0}}">
<block wx:for="{{orderList}}" wx:key="index">
<view class="order-list" bindtap="jump" data-url="../orderDetails/orderDetails" data-item="{{item}}">
<view class="order-status" style="background-color:{{orderStatus[item.status].color }}">
{{orderStatus[item.status].text}}</view>
<block wx:for="{{orderObj}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:if="{{i.key == 'goodsListName'}}">
<view class="order-item">
{{i.label}} {{item[i.key]||'未升级产品'}}
</view>
</block>
<block wx:else>
<view class="order-item" wx:if="{{item[i.key]}}">
{{i.enum?'工单时间:':i.label}} {{item[i.key]}}
</view>
</block>
</block>
</view>
</block>
<block wx:if="{{nothing}}">
<view class="nothing-text">到底了~</view>
</block>
</block>
<block wx:else>
<view class="nothing-text">暂无数据</view>
</block>
</scroll-view>
</block>
</view>
<view class="picker-list" hidden="{{!searchPickerStatus}}">
<block wx:for="{{searchText}}" wx:key="index">
<block wx:if="{{index == 0}}">
<view class="picker-item" bindtap="changeSearchType" data-index="0">
<view wx:if="{{searchType == index}}" class="doc"></view>
{{item}}
</view>
</block>
<block wx:else>
<picker mode="date" fields="month" start="2020-10-01" end="{{endTime}}" class="picker-item"
bindchange="changeSearchType" data-index="1">
<view wx:if="{{searchType == index}}" class="doc"></view>
{{item}}
</picker>
</block>
</block>
</view>