crm_second_opening_mini/pagesA/punchclock/clockrules/addClocktime.wxml

1 line
3.5 KiB
Plaintext

<view class="timebox data-v-669e79ec"><view class="title data-v-669e79ec">选择星期</view><view class="week_warp data-v-669e79ec"><block wx:for="{{arr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['selectWeek',[index]]]]]}}" class="{{['week_li','data-v-669e79ec',(item.isSet)?'week_li_no':'',(item.select)?'week_li_ac':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></view><view class="t_warp data-v-669e79ec"><view class="t_tit data-v-669e79ec">设置打卡时段</view><view data-event-opts="{{[['tap',[['toAddClock',['$event']]]]]}}" class="t_add data-v-669e79ec" bindtap="__e">添加时段</view></view><view class="box_list data-v-669e79ec"><block wx:for="{{timeArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="box_li data-v-669e79ec"><view class="b_top data-v-669e79ec"><view class="b_p data-v-669e79ec">上下班时段<block wx:if="{{$root.g0>1}}"><text class="data-v-669e79ec">{{index+1}}</text></block></view><block wx:if="{{$root.g1>1}}"><image class="deleimg data-v-669e79ec" src="{{BASE_IMG_URL+'delete1.png'}}" mode data-event-opts="{{[['tap',[['delClock',[index]]]]]}}" bindtap="__e"></image></block></view><view class="b_bot data-v-669e79ec"><view class="b_time data-v-669e79ec"><view class="b_label data-v-669e79ec">上班</view><picker mode="time" value="{{item.start_time}}" data-event-opts="{{[['change',[['changeGoto',['$event',index]]]]]}}" bindchange="__e" class="data-v-669e79ec"><view class="b_v_box data-v-669e79ec"><view class="b_value data-v-669e79ec"><block wx:if="{{item.start_next==1}}"><text class="data-v-669e79ec">次日</text></block>{{''+item.start_time+''}}</view><view class="iconfont icon-arrows_right data-v-669e79ec"></view></view></picker></view><view class="b_time data-v-669e79ec"><view class="b_label data-v-669e79ec">下班</view><picker mode="time" value="{{item.end_time}}" data-event-opts="{{[['change',[['changeGoOff',['$event',index]]]]]}}" bindchange="__e" class="data-v-669e79ec"><view class="b_v_box data-v-669e79ec"><view class="b_value data-v-669e79ec"><block wx:if="{{item.end_next==1}}"><text class="data-v-669e79ec">次日</text></block>{{''+item.end_time+''}}</view><view class="iconfont icon-arrows_right data-v-669e79ec"></view></view></picker></view></view></view></block></view><view class="box_list data-v-669e79ec"><view class="box_li data-v-669e79ec"><view class="b_bot data-v-669e79ec"><view class="b_time data-v-669e79ec"><view class="b_label data-v-669e79ec">打卡时段设置</view><view data-event-opts="{{[['tap',[['toSetPeriod',['$event']]]]]}}" class="b_v_box data-v-669e79ec" bindtap="__e"><view class="b_value data-v-669e79ec">{{timeArr[0].ustart_time+"至"+timeArr[$root.g2-1].dend_time+''}}</view><view class="iconfont icon-arrows_right data-v-669e79ec"></view></view></view></view></view></view><view class="tip data-v-669e79ec">可设置每次上下班是否需要打卡、允许打卡的时间范围</view><block wx:if="{{number}}"><view class="botwarp data-v-669e79ec"><view data-event-opts="{{[['tap',[['$noMultipleClicks',['$0'],['sureDel']]]]]}}" class="b_bot remove data-v-669e79ec" bindtap="__e">删除</view><view data-event-opts="{{[['tap',[['$noMultipleClicks',['$0'],['toSave']]]]]}}" class="b_bot data-v-669e79ec" bindtap="__e">确认修改</view></view></block><block wx:else><view class="btn_g bg-blue button-hover round data-v-669e79ec" id="btn" data-event-opts="{{[['tap',[['$noMultipleClicks',['$0'],['toSave']]]]]}}" bindtap="__e">确定</view></block></view>