微信小程序
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

117 рядки
6.6 KiB

  1. <!--pages/paymentManager/paymentManager.wxml-->
  2. <view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">支出管理</text>
  5. </view>
  6. <van-dropdown-menu active-color="#5CAE77" bind:change="changeTab" id="top_view1" class="search_box" style="margin-top:{{isIPX?'88px':'64px'}};">
  7. <van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bind:change="changeTab" />
  8. <van-dropdown-item value="{{ value2 }}" options="{{ option2 }}" bind:change="changeTab2" />
  9. <van-dropdown-item value="{{ value3 }}" options="{{ option3 }}" bind:change="changeTab2" />
  10. </van-dropdown-menu>
  11. <scroll-view scroll-y refresher-threshold="0" style="height:{{scrollHeight}}px" bindscrolltolower="paging" lower-threshold="100">
  12. <van-swipe-cell right-width="{{ 130 }}" left-width="{{ 90 }}" class="workflow" wx:for="{{list}}" wx:key="index" wx:for-item="item" >
  13. <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
  14. <view style="width:70%;flex:7;">
  15. <view class="tit_box">
  16. <image src="/image/icon/paymentManager_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="no-referrer|origin|unsafe-url"></image>
  17. <text class="tit">{{item.payer}}</text>
  18. </view>
  19. <view class="detail_box">
  20. <view style="margin-left:5%;color:grey;font-size: 12px;justify-content: space-between;display: contents;">
  21. <text>{{item.payerAccount}}</text>
  22. <text style="color:#62AD66;background-color: rgb(98,173,102,0.2);padding:2px 4px;text-align: right;">{{item.transferType==1?"银行还款":"信用卡还款"}}</text>
  23. </view>
  24. </view>
  25. <view class="detail_box">
  26. <view style="width: 50%;">
  27. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  28. <text>{{item.applyDate}}</text>
  29. </view>
  30. <view style="width: 50%;">
  31. <image src="/image/icon/clock_red_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  32. <text>{{item.applyDate}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. <view style="width:30%;flex:3;">
  37. <view style="text-align: right;">
  38. <text style="color:red;line-height: 50px;">¥{{item.expenditureAmount}}</text>
  39. </view>
  40. <view style="text-align: right;" bindtap="toPay">
  41. <button wx-if="{{item.paymentState==1}}" type="primary" size="mini" style="border-radius: 15px;" >待支付</button>
  42. <button wx-if="{{item.paymentState==3}}" type="primary" size="mini" style="border-radius: 15px;">银行受理</button>
  43. <button wx-if="{{item.paymentState==4}}" type="warn" size="mini" style="border-radius: 15px;">支付失败</button>
  44. <button wx-if="{{item.paymentState==5}}" type="primary" size="mini" style="border-radius: 15px;">部分失败</button>
  45. </view>
  46. </view>
  47. </view>
  48. <view slot="left" class="moreBox" >
  49. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(165,165,165,0.2);" data-data="{{item}}" data-index="{{index}}" bindtap="scrap">
  50. <view>
  51. <image src="../../image/icon/scrap_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  52. </view>
  53. <view>
  54. <text style="color:#A5A5A5">报废</text>
  55. </view>
  56. </view>
  57. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(238,95,0,0.2);" data-data="{{item}}" data-index="{{index}}" bindtap="sell">
  58. <view>
  59. <image src="../../image/icon/sell_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  60. </view>
  61. <view>
  62. <text style="color: rgb(238,95,0);">出售</text>
  63. </view>
  64. </view>
  65. </view>
  66. <view slot="right" class="deleteBox">
  67. <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">
  68. <view>
  69. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  70. </view>
  71. <view>
  72. <text style="color:red">删除</text>
  73. </view>
  74. </view>
  75. <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">
  76. <view>
  77. <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  78. </view>
  79. <view>
  80. <text style="color: #62AD66;">附件</text>
  81. </view>
  82. </view>
  83. <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="change">
  84. <view>
  85. <image src="../../image/icon/relevance_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  86. </view>
  87. <view>
  88. <text style="color: rgb(239,135,7);">变更</text>
  89. </view>
  90. </view>
  91. </view>
  92. </van-swipe-cell>
  93. </scroll-view>
  94. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  95. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  96. <view class="fj-box">
  97. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  98. <view>
  99. <text>{{item.dictLabel}}</text>
  100. </view>
  101. <view class="img_box">
  102. <view class="img_li">
  103. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  104. </van-upload>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </scroll-view>
  110. </van-action-sheet>
  111. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  112. </modal>
  113. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  114. </modal>