leave-approval.wxml 6.2 KB
<view class="page data-v-f873d8ca" style="{{(vuex_theme)}}"><view class="top data-v-f873d8ca"><view class="tab data-v-f873d8ca"><u-tabs vue-id="16063e6a-1" list="{{menulist}}" is-scroll="{{false}}" bg-color active-color="var(--primary-color)" inactive-color="#000000" current="{{current}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" class="data-v-f873d8ca" bind:__l="__l"></u-tabs></view></view><view style="height:49px;" class="data-v-f873d8ca"></view><block wx:if="{{current==0}}"><view class="data-v-f873d8ca"><view class="content data-v-f873d8ca"><view class="content_top data-v-f873d8ca"><view class="title data-v-f873d8ca">{{''+title+''}}</view><view class="desc data-v-f873d8ca">{{''+desc+''}}</view></view><view class="mid data-v-f873d8ca"><u-form vue-id="16063e6a-2" model="{{form}}" error-type="{{errorType}}" data-ref="uForm" class="data-v-f873d8ca vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><c-input-item bind:input="__e" vue-id="{{('16063e6a-3')+','+('16063e6a-2')}}" label="请假类型" required="{{true}}" placeholder="请选择请假类型" placeholderStyle="{{({fontSize:'32rpx'})}}" type="select1" options="{{categoryList}}" name="qjtype" value="{{form.qjtype}}" data-event-opts="{{[['^input',[['__set_model',['$0','qjtype','$event',[]],['form']]]]]}}" class="data-v-f873d8ca" bind:__l="__l"></c-input-item><c-input-item bind:input="__e" vue-id="{{('16063e6a-4')+','+('16063e6a-2')}}" label="开始时间" required="{{true}}" placeholder="请选择" placeholderStyle="{{({fontSize:'32rpx'})}}" type="date2" name="start" value="{{form.start}}" data-event-opts="{{[['^input',[['__set_model',['$0','start','$event',[]],['form']]]]]}}" class="data-v-f873d8ca" bind:__l="__l"></c-input-item><c-input-item vue-id="{{('16063e6a-5')+','+('16063e6a-2')}}" label="结束时间" required="{{true}}" placeholder="请选择" placeholderStyle="{{({fontSize:'32rpx'})}}" type="date2" name="end" value="{{form.end}}" data-event-opts="{{[['^input',[['__set_model',['$0','end','$event',[]],['form']],['getEnd']]]]}}" bind:input="__e" class="data-v-f873d8ca" bind:__l="__l"></c-input-item><c-input-item bind:input="__e" vue-id="{{('16063e6a-6')+','+('16063e6a-2')}}" label="请假原因" required="{{true}}" placeholder="请输入请假原因" maxlenth="{{200}}" placeholderStyle="{{({fontSize:'32rpx'})}}" type="textarea1" name="reseon" value="{{form.reseon}}" data-event-opts="{{[['^input',[['__set_model',['$0','reseon','$event',[]],['form']]]]]}}" class="data-v-f873d8ca" bind:__l="__l"></c-input-item></u-form><view class="fj data-v-f873d8ca">附件</view><block wx:if="{{picList.length>0}}"><view class="fj_content data-v-f873d8ca"><view class="item data-v-f873d8ca"><block wx:for="{{picList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="p_item data-v-f873d8ca"><image class="delete data-v-f873d8ca" src="/static/img/common/delete.png" data-event-opts="{{[['tap',[['deleteImg',[index]]]]]}}" bindtap="__e"></image><u-image vue-id="{{'16063e6a-7-'+index}}" height="{{120}}" width="{{120}}" border-radius="{{16}}" src="{{item}}" class="data-v-f873d8ca" bind:__l="__l"></u-image></view></block><view data-event-opts="{{[['tap',[['addPhotos',['$event']]]]]}}" class="add_info data-v-f873d8ca" bindtap="__e"><image src="/static/img/internship/photopush.png" mode class="data-v-f873d8ca"></image></view></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['addPhotos',['$event']]]]]}}" class="add_info data-v-f873d8ca" bindtap="__e"><image src="/static/img/internship/photopush.png" mode class="data-v-f873d8ca"></image></view></block></view></view><view style="height:94px;" class="data-v-f873d8ca"></view><view class="btv data-v-f873d8ca"><view data-event-opts="{{[['tap',[['onenter',['$event']]]]]}}" class="btn data-v-f873d8ca" bindtap="__e">提交</view></view><u-action-sheet vue-id="16063e6a-8" list="{{plist}}" value="{{show}}" data-event-opts="{{[['^click',[['chooseImg']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:click="__e" bind:input="__e" class="data-v-f873d8ca" bind:__l="__l"></u-action-sheet></view></block><block wx:else><view class="data-v-f873d8ca"><view class="content_history data-v-f873d8ca"><block wx:if="{{list.length>0}}"><view class="data-v-f873d8ca"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['onlistItem',['$0'],[[['list','',index]]]]]]]}}" bindtap="__e" class="data-v-f873d8ca"><view class="item data-v-f873d8ca"><view class="h_top data-v-f873d8ca"><view class="title data-v-f873d8ca">{{''+item.$orig.planName+''}}</view><view class="time data-v-f873d8ca">{{''+item.g0+''}}</view></view><view class="h_desc mart_34 data-v-f873d8ca"><text class="data-v-f873d8ca">课程名称:</text><text class="t1 data-v-f873d8ca">{{item.$orig.courseName}}</text></view><view class="h_desc data-v-f873d8ca"><text class="data-v-f873d8ca">请假类型:</text><text class="t1 data-v-f873d8ca">{{item.m0}}</text></view><view class="h_desc data-v-f873d8ca"><text class="data-v-f873d8ca">开始时间:</text><text class="t1 data-v-f873d8ca">{{item.g1}}</text></view><view class="h_desc data-v-f873d8ca"><text class="data-v-f873d8ca">结束时间:</text><text class="t1 data-v-f873d8ca">{{item.g2}}</text></view><block wx:if="{{item.$orig.status=='wait'}}"><view class="status data-v-f873d8ca" style="color:#FFC200;">待处理</view></block><block wx:else><block wx:if="{{item.$orig.status=='pass'}}"><view class="status data-v-f873d8ca" style="color:var(--primary-color);">已通过</view></block><block wx:else><block wx:if="{{item.$orig.status=='reject'}}"><view class="status data-v-f873d8ca" style="color:red;">已驳回</view></block></block></block></view></view></block><view style="height:20px;" class="data-v-f873d8ca"></view><c-loading vue-id="16063e6a-9" loading="{{loading}}" class="data-v-f873d8ca" bind:__l="__l"></c-loading><view style="height:30px;" class="data-v-f873d8ca"></view></view></block><block wx:else><view class="no_data data-v-f873d8ca"><image class="img data-v-f873d8ca" lazy-load="true" src="{{vuex_baseImgUrl&&vuex_baseImgUrl+'noData.png'}}"></image><view style="font-size:16px;color:var(--primary-color);margin-top:60rpx;text-align:center;" class="data-v-f873d8ca">暂无数据</view></view></block></view></view></block></view>