enroll.wxml
5.0 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<view class="info_box">
<view class="item">
<text>姓名</text>
<text>{{info.name}}</text>
</view>
<view class="item">
<text>性别</text>
<text>{{info.sex}}</text>
</view>
<view class="item">
<text>出生日期</text>
<text>{{info.birthday}}</text>
</view>
<view class="item">
<text>电话</text>
<text>{{info.tel}}</text>
</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 工作类型
</view>
<picker range="{{enroll_arr}}" value="{{type}}" bindchange="change_enroll" disabled="{{status}}">
<view class="right">
<text>{{type?type:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 工作内容
</view>
<picker range="{{check_arr}}" value="{{check_item}}" bindchange="change_check" disabled="{{status}}">
<view class="right" bindtap="show_cover">
<text>{{check?check:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
</view>
<view class="info_box" wx:for="{{t_arr}}" wx:key="index">
<view class="tilte">选择日期</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 参加日期
</view>
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="1" disabled="{{status}}">
<view class="right">
<text>{{item.date?item.date:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 参加时间
</view>
<picker mode="selector" value="{{item.time}}" bindchange="change_time" range="{{time_arr}}" data-index="{{index}}" disabled="{{status}}">
<view class="right">
<text>{{item.time?item.time:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="add" bindtap="add_item" data-id="1" wx:if="{{index == t_arr.length -1 && !status}}">+添加</view>
</view>
<view class="info_box" wx:for="{{z_arr}}" wx:key="index">
<view class="tilte">申请入住
<text>*仅限工作人员本人</text>
</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 入住日期
</view>
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="2" disabled="{{status}}">
<view class="right">
<text>{{item.date?item.date:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="item">
<text>入住人身份证号码</text>
<input placeholder="请输入" bindinput="get_card" value="{{item.idcard}}" maxlength="18" data-index="{{index}}" disabled="{{status}}" />
</view>
<view class="add" bindtap="add_item" data-id="2" wx:if="{{index == z_arr.length -1 && !status}}">+添加</view>
</view>
<view class="info_box" wx:for="{{e_arr}}" wx:key="index">
<view class="tilte">申请用餐</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 用餐日期
</view>
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="3" disabled="{{status}}">
<view class="right">
<text>{{item.date?item.date:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="item">
<view class="left">
<image src="/imgs/must.png" /> 用餐时间
</view>
<picker mode="selector" value="{{item.time}}" bindchange="eat_time" range="{{eat_arr}}" data-index="{{index}}" disabled="{{status}}">
<view class="right">
<text>{{item.time?item.time:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="add" bindtap="add_item" data-id="3" wx:if="{{index == e_arr.length -1 && !status}}">+添加</view>
</view>
<view class="submit" bindtap="submit" wx:if="{{!status}}">确认</view>
<view class="btn_box" wx:else>
<view class="look_table" catchtap="{{status == 1 || status == 3?'look_word':'look_register'}}">{{status == 1 || status == 3?'查看工作汇报':'查看注册信息'}}</view>
<view class="fill_time" catchtap="change_cover" wx:if="{{status == 1 || status == 3}}">输入工时</view>
<view class="two_btn" wx:if="{{status == 0 && !two_type}}">
<view catchtap="examine" data-id="2">不通过</view>
<view catchtap="examine" data-id="1">通过</view>
</view>
</view>
<view class="cover_box" catchtouchmove="true" wx:if="{{cover_type}}">
<view class="show_box">
<view class="s_title">请输入工时</view>
<input placeholder="请输入..." class="word_area active" value="{{word}}" bindinput="get_word" type="number" />
<view class="submit" catchtap="add_time">确认</view>
<image src="/imgs/close.png" class="close" catchtap="change_cover" />
</view>
</view>