approval.wxml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <view class="swiper-tab">
  2. <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">待审批</view>
  3. <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">已审批</view>
  4. <view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">我发起的</view>
  5. </view>
  6. <view wx:if='{{(currentTab == 0 && wait.length == 0) || (currentTab == 1 && already.length == 0) || (currentTab == 2 && fill.length == 0)}}' class='nodata_view'>
  7. <view><image class='nodata_style' src='../../img/common_nodata.png'></image></view>
  8. </view>
  9. <swiper current="{{currentTab}}" class="swiper-box" duWration="300" style="height:{{winHeight-31}}px;margin:85rpx 0 0 0;" bindchange="bindChange">
  10. <swiper-item>
  11. <scroll-view scroll-y="true" >
  12. <view wx:for='{{wait}}' bindtap='ApprovaledClick' data-item='{{item}}' data-fromtype='{{1}}'>
  13. <template is='waitApproval' data='{{...item}}' />
  14. </view>
  15. </scroll-view>
  16. </swiper-item>
  17. <swiper-item>
  18. <scroll-view scroll-y="true" >
  19. <view wx:for='{{already}}' bindtap='ApprovaledClick' data-item='{{item}}' data-fromtype='{{2}}'>
  20. <template is='Approvaled' data='{{...item}}'/>
  21. </view>
  22. </scroll-view>
  23. </swiper-item>
  24. <swiper-item >
  25. <scroll-view scroll-y="true">
  26. <view wx:for='{{fill}}' bindtap='ApprovaledClick' data-item='{{item}}' data-fromtype='{{3}}'>
  27. <template is='isendApproval' data='{{...item}}'/>
  28. </view>
  29. </scroll-view>
  30. </swiper-item>
  31. </swiper>
  32. <template name='waitApproval'>
  33. <view class='commonHview itemRow' >
  34. <view><image src='../../img/common_header_boy.png' class='img1'></image></view>
  35. <view class='commonVview itemMsg'>
  36. <view style='font-size:30rpx;margin-top:10rpx;'>{{fillName}}的积分申报</view>
  37. <view style='color:#999999;font-size:24rpx;margin-top:20rpx;'>等待您的审批</view>
  38. </view>
  39. <view class='itemStatue_finish'>{{invoicesDate}}</view>
  40. </view>
  41. <view class='commonhline' style='height:3rpx;'></view>
  42. </template>
  43. <template name='Approvaled'>
  44. <view class='commonHview itemRow' >
  45. <view><image src='../../img/common_header_boy.png' class='img1'></image></view>
  46. <view class='commonVview itemMsg'>
  47. <view style='font-size:30rpx;margin-top:10rpx;'>{{fillName}}的积分申报</view>
  48. <view style='color:#999999;font-size:24rpx;margin-top:20rpx;' wx:if='{{invoicesStatus == 2}}'>已审批</view>
  49. <view style='color:#FF0000;font-size:24rpx;margin-top:20rpx;' wx:if='{{invoicesStatus == 3}}'>未通过</view>
  50. </view>
  51. <view class='itemStatue_finish'>{{approvalDate}}</view>
  52. </view>
  53. <view class='commonhline' style='height:3rpx;'></view>
  54. </template>
  55. <template name='isendApproval'>
  56. <view class='commonHview itemRow' >
  57. <view><image src='../../img/common_header_boy.png' class='img1'></image></view>
  58. <view class='commonVview itemMsg'>
  59. <view style='font-size:30rpx;margin-top:10rpx;'>{{fillName}}的积分申报</view>
  60. <view style='color:#999999;font-size:24rpx;margin-top:20rpx;' wx:if='{{invoicesStatus == 1}}'>待审批</view>
  61. <view style='color:#999999;font-size:24rpx;margin-top:20rpx;' wx:elif='{{invoicesStatus == 2}}'>已审批</view>
  62. <view style='color:#FF0000;font-size:24rpx;margin-top:20rpx;' wx:else>未通过</view>
  63. </view>
  64. <view class='itemStatue_finish'>{{invoicesDate}}</view>
  65. </view>
  66. <view class='commonhline' style='height:3rpx;'></view>
  67. </template>