leave.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--pages/index/index.wxml-->
  2. <!-- <wxs module="filter" src="../../utils/FormateDate.wxs"></wxs> -->
  3. <view>
  4. <view class="head-fra" id="head-fra">
  5. <!-- <view class="head-fra_l ">
  6. <view class="headimage">
  7. <open-data mode='cover' type="userAvatarUrl"></open-data>
  8. </view>
  9. </view> -->
  10. <view class="head-fra_c">
  11. <!-- <view class="{{companyShortName.length<=9?'company-nameB':'company-nameA' }}">123</view> -->
  12. <button wx:if="{{goLeaveState}}" class="mini-btn" type="primary" bindtap="goLeavepost" size="default">发起请假</button>
  13. </view>
  14. <view class="head-fra_r">
  15. <!-- <view class="loginOutText" size="mini" bindtap="ComLoginOutBtn" hover-class="btn-hover">返回</view> -->
  16. <button class="mini-btn" type="" style="margin-top: 15rpx;" bindtap="ComLoginOutBtn" size="default">返回</button>
  17. </view>
  18. </view>
  19. <!-- 线索列表 -->
  20. <scroll-view scroll-y="true" class="weui-cells searchbar-result searchBarCss" class="scrollWiewHeight"
  21. style="height: 100vh;" lower-threshold="50" enable-back-to-top="true" scroll-with-animation="true"
  22. bindscrolltolower="scroll" scroll-top="10">
  23. <view class="clue-box" wx:for="{{leaveList}}" wx:key="index">
  24. <!-- id="{{item.clueId}}" -->
  25. <view class="clue-panel_t" id="{{item}}" bindtap="clueDetailBtn">
  26. <view class="clue-panel_t_t">
  27. <view>
  28. <text class="text-title">请假类型:{{item.leaveTypeName}} </text>
  29. </view>
  30. <view class="recommend" wx:if="{{item.state==1}}">审核通过</view>
  31. <view class="noRecommend" wx:if="{{item.state==0}}">未审核</view>
  32. <view class="noRecommend" style="color:red;" wx:if="{{item.state==2}}">未通过</view>
  33. <view class="noRecommend" wx:if="{{item.state==3}}">已取消</view>
  34. </view>
  35. <view style="">
  36. <text class="text-title">请假开始时间: </text>
  37. <text class="clue-addr">{{item.leaveStartTime}}</text>
  38. </view>
  39. <view style="">
  40. <text class="text-title">请假截止时间: </text>
  41. <text class="clue-addr">{{item.leaveEndTime}}</text>
  42. </view>
  43. <view class="clue-addr">
  44. <text class="text-title">请假原因: </text>{{item.leaveReason}}
  45. </view>
  46. <view class="clue-addr">
  47. <text class="text-title">相关凭证: </text>
  48. <image class="voucher_image" bindtap="imgYu" wx:for="{{item.imgarr}}" wx:key="items" wx:for-item="items" src="{{items}}"
  49. data-list="{{item.imgarr}}" data-src="{{items}}"></image>
  50. </view>
  51. <view class="clue-panel_b">
  52. <view class="checkApply" wx:if="{{item.state==0}}" data-id="{{item.id}}" bindtap="cancelLeave">取消请假</view>
  53. <view wx:if="{{item.state==2}}" style="color:red;">未通过原因:{{item.examineComment}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. </scroll-view>
  58. </view>