微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
4.7 KiB

  1. <!--pages/bank/bank.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">重大事项</text>
  5. </view>
  6. <view class="search_box" id="top_view" style="margin-top:{{isIPX?'100px':'75px'}};">
  7. <van-search
  8. value="{{ eventName }}"
  9. shape="round"
  10. background="transparent"
  11. placeholder="请输入事项名称"
  12. clearable
  13. bind:change="goSearch"
  14. />
  15. <view class="add_btn" bindtap="goAdd"><text>新增</text></view>
  16. </view>
  17. <scroll-view scroll-y refresher-threshold="0" style="height:{{scrollHeight}}px" bindscrolltolower="paging" lower-threshold="100">
  18. <van-swipe-cell right-width="{{ 130 }}" class="workflow" wx:for="{{list}}" wx:key="index">
  19. <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
  20. <view class="tit_box">
  21. <view class="tit_box_left">
  22. <image src="/image/icon/icon_gc.png" style="width: 17px; height: 15px;"></image>
  23. <text class="tit">{{item.eventName}}</text>
  24. </view>
  25. </view>
  26. <view class="detail_time_box">
  27. <view class="detail_time">
  28. <image src="/image/icon/icon_date.png" style="width: 14px;height: 14px;"></image>
  29. <text>{{item.eventTime}}</text>
  30. </view>
  31. <view class="detail_time">
  32. <text class="detail_box_money" wx:if="{{item.auditStatus==0}}" style="color:#000">草稿</text>
  33. <text class="detail_box_money" wx:if="{{item.auditStatus==1}}" style="color:#e6a23c;">待审</text>
  34. <text class="detail_box_money" wx:if="{{item.auditStatus==2}}" style="color:#f56c6c;">驳回</text>
  35. <text class="detail_box_money" wx:if="{{item.auditStatus==3}}" style="color:#67c23a;">通过</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view slot="right" class="deleteBox">
  40. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(255,0,0,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="delete" wx:if="{{item.auditStatus==0||item.auditStatus==2}}">
  41. <view>
  42. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  43. </view>
  44. <view>
  45. <text style="color:red">删除</text>
  46. </view>
  47. </view>
  48. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(98,173,102,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="upload">
  49. <view>
  50. <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  51. </view>
  52. <view>
  53. <text style="color: #62AD66;">附件</text>
  54. </view>
  55. </view>
  56. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(239,135,7,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="submit" wx:if="{{item.auditStatus==0||item.auditStatus==2}}">
  57. <view>
  58. <image src="../../image/icon/relevance_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  59. </view>
  60. <view>
  61. <text style="color: rgb(239,135,7);">提交</text>
  62. </view>
  63. </view>
  64. </view>
  65. </van-swipe-cell>
  66. </scroll-view>
  67. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  68. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  69. <view class="fj-box">
  70. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  71. <view>
  72. <text>{{item.dictLabel}}</text>
  73. </view>
  74. <view class="img_box">
  75. <view class="img_li">
  76. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  77. </van-upload>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </scroll-view>
  83. </van-action-sheet>
  84. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  85. </modal>
  86. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  87. </modal>
  88. <modal hidden="{{!showPopupSubmit}}" title="是否提交?" confirm-text="是" cancel-text="否" bindcancel="cancelTemSub" bindconfirm="confirmTemSub">
  89. </modal>