...
|
...
|
@@ -45,89 +45,99 @@ |
|
|
|
|
|
<view class="info_box" wx:for="{{t_arr}}" wx:key="index">
|
|
|
<view class="tilte">选择日期
|
|
|
<image class="del" src="/imgs/del.png" wx:if="{{t_arr.length>1 && index == t_arr.length-1 && !status}}" data-index="{{index}}" data-status="1" catchtap="del" />
|
|
|
<image class="del" src="/imgs/del.png" wx:if="{{t_arr.length>1 && index == t_arr.length-1 && !status}}"
|
|
|
data-index="{{index}}" data-status="1" catchtap="del" />
|
|
|
</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>
|
|
|
|
|
|
|
|
|
<!-- <picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}"
|
|
|
data-id="1" disabled="{{status}}"> -->
|
|
|
|
|
|
<view class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;"
|
|
|
bindtap="onDisplaydate">
|
|
|
<text>{{data?data:'请选择'}}</text>
|
|
|
<image src="/imgs/right.png" />
|
|
|
</view>
|
|
|
</picker>
|
|
|
<van-calendar show="{{ showdate }}" type="multiple" bind:close="onClosedate" bind:confirm="onConfirmdate" />
|
|
|
|
|
|
|
|
|
</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}}">
|
|
|
<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 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="info_box">
|
|
|
<view class="tilte">
|
|
|
<view> 申请入住
|
|
|
<text>*仅限工作人员本人</text>
|
|
|
</view>
|
|
|
<image class="del" src="/imgs/del.png" wx:if="{{z_arr.length>1 && index == z_arr.length-1 && !status}}" data-index="{{index}}" data-status="2" catchtap="del" />
|
|
|
<image class="del" src="/imgs/del.png" wx:if="{{z_arr.length>1 && index == z_arr.length-1 && !status}}"
|
|
|
data-index="{{index}}" data-status="2" catchtap="del" />
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
<view class="left">
|
|
|
入住日期
|
|
|
</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 class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;"
|
|
|
bindtap="onDisplay">
|
|
|
<text>{{date?date:'请选择'}}</text>
|
|
|
<image src="/imgs/right.png" />
|
|
|
</view>
|
|
|
<van-calendar show="{{ show }}" type="multiple" bind:close="onClose" bind:confirm="onConfirm" />
|
|
|
</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">申请用餐
|
|
|
<image class="del" src="/imgs/del.png" wx:if="{{e_arr.length>1 && index == e_arr.length-1 && !status}}" data-index="{{index}}" data-status="3" catchtap="del" />
|
|
|
<image class="del" src="/imgs/del.png" wx:if="{{e_arr.length>1 && index == e_arr.length-1 && !status}}"
|
|
|
data-index="{{index}}" data-status="3" catchtap="del" />
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
<view class="left">
|
|
|
用餐日期
|
|
|
午餐日期
|
|
|
</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 class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;"
|
|
|
bindtap="onDisplays">
|
|
|
<text>{{time?time:'请选择'}}</text>
|
|
|
<image src="/imgs/right.png" />
|
|
|
</view>
|
|
|
<van-calendar show="{{ shows }}" type="multiple" bind:close="onCloses" bind:confirm="onConfirms" />
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
<view class="left">
|
|
|
用餐时间
|
|
|
晚餐日期
|
|
|
</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 class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;"
|
|
|
bindtap="onDisplaynight">
|
|
|
<text>{{night?night:'请选择'}}</text>
|
|
|
<image src="/imgs/right.png" />
|
|
|
</view>
|
|
|
<van-calendar show="{{ shownight }}" type="multiple" bind:close="onClosenight" bind:confirm="onConfirmnight" />
|
|
|
</view>
|
|
|
<view class="add" bindtap="add_item" data-id="3" wx:if="{{index == e_arr.length -1 && !status}}">+添加</view>
|
|
|
</view>
|
|
|
|
|
|
<!--确认 -->
|
|
|
<form wx:if="{{!status}}" bindsubmit="submit" report-submit='true' class="submit">
|
|
|
<button class="submit" form-type="submit" style="margin:0;padding:0;">确认</button>
|
|
|
</form>
|
|
|
|
|
|
|
|
|
<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="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}}">
|
...
|
...
|
@@ -141,7 +151,8 @@ |
|
|
<view class="show_box">
|
|
|
<view class="s_title">{{btn_type?'请输入未通过理由':'请输入工时'}}</view>
|
|
|
|
|
|
<textarea placeholder="请输入..." class="word_area" value="{{word}}" bindinput="get_word" wx:if="{{btn_type}}" adjust-position='{{false}}' bindfocus="focus" bindblur='no_focus' />
|
|
|
<textarea placeholder="请输入..." class="word_area" value="{{word}}" bindinput="get_word" wx:if="{{btn_type}}"
|
|
|
adjust-position='{{false}}' bindfocus="focus" bindblur='no_focus' />
|
|
|
|
|
|
<input placeholder="请输入..." class="word_area active" value="{{word}}" bindinput="get_word" type="number" adjust-position='{{false}}' bindfocus="focus" bindblur='no_focus' wx:else/>
|
|
|
<view class="submit" catchtap="{{btn_type?'examine':'add_time'}}">确认</view>
|
...
|
...
|
|