微信小程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

127 líneas
7.0 KiB

  1. <!--pages/apply/index.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">支出申请</text>
  5. </view>
  6. <!-- 付款单位开始 -->
  7. <view class="top" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <image src="../../image/apply/dress_icon.png" mode="widthFix"></image>
  9. <view class="top-tit">付款单位</view>
  10. <view class="top-title">{{bookName}}</view>
  11. </view>
  12. <view class="main">
  13. <van-tabs sticky color="#000" animated>
  14. <van-tab title="银行账户">
  15. <view class="bank_box" wx:for="{{accountList}}" wx:key="index">
  16. <text class="zt">{{item.bankUseType == 1 ?'基本户':'一般户'}}</text>
  17. <image src="../../image/apply/bgt.png" wx:if="{{item.bankUseType == 1}}" style="width: 100%;position: absolute;top:0;right:0;z-index: 9;height: 100%;"></image>
  18. <image src="../../image/apply/bgy.png" wx:else style="width: 100%;position: absolute;top:0;right:0;z-index: 9;height: 100%;"></image>
  19. <view class="bank_content {{iOf.indexOf(item.bankTypeText,'中国银行') > -1 ? 'ICBC':iOf.indexOf(item.bankTypeText,'农商行') > -1 ? 'RCB':iOf.indexOf(item.bankTypeText,'农业银行') > -1 ? 'ABC':iOf.indexOf(item.bankTypeText,'建设银行') > -1 ? 'CCB':''}}">
  20. <view class="bankName">
  21. <image src="../../image/apply/{{iOf.indexOf(item.bankTypeText,'中国银行') > -1 ? 'ICBC':iOf.indexOf(item.bankTypeText,'农商行') > -1 ? 'RCB':iOf.indexOf(item.bankTypeText,'农业银行') > -1 ? 'ABC':iOf.indexOf(item.bankTypeText,'建设银行') > -1 ? 'CCB':''}}.png" style="width: 25px" mode="widthFix"></image>
  22. <text>{{item.accountName}}</text>
  23. </view>
  24. <view style="margin-top: 2vh;">{{item.bankAccountNumber}}<text>卡号</text></view>
  25. <view>可用余额</view>
  26. <view style="font-weight: bold;font-size: 22px;margin-top: 2vh;">
  27. {{item.balance}}
  28. <image src="/image/apply/update.png" data-id="{{item.id}}" data-index="{{index}}" bindtap="updateMoney" style="width: 20px;height: 20px;vertical-align: middle;position: absolute;right: 2vh;z-index: 10;"></image>
  29. </view>
  30. </view>
  31. </view>
  32. <van-empty wx:if="{{accountList.length == 0}}" description="暂无银行账户" />
  33. </van-tab>
  34. <van-tab title="现金账户">
  35. <view class="bank_box" wx:for="{{accountListXJ}}" wx:key="index">
  36. <view class="bank_content XJ">
  37. <view class="bankName">
  38. <image src="../../image/apply/XJ.png" style="width: 25px" mode="widthFix"></image>
  39. <text>{{item.accountName}}</text>
  40. </view>
  41. <view style="margin-top: 2vh;">{{item.subjectId}}<text>科目</text></view>
  42. <view>可用余额</view>
  43. <view style="font-weight: bold;font-size: 22px;margin-top: 2vh;">
  44. {{item.balance}}
  45. <!-- <image src="/image/apply/update.png" data-id="{{item.id}}" data-index="{{index}}" bindtap="updateMoney" style="width: 20px;height: 20px;vertical-align: middle;position: absolute;right: 2vh;z-index: 10;"></image> -->
  46. </view>
  47. </view>
  48. </view>
  49. <!-- <view class="addBtn">
  50. <image src="/image/icon/icon_add.png"></image>
  51. <text>添加现金账户</text>
  52. </view> -->
  53. <van-empty wx:if="{{accountList.length == 0}}" description="暂无现金账户" />
  54. <!-- <van-empty wx:if="{{accountList.length == 0}}" description="暂无银行账户" /> -->
  55. </van-tab>
  56. <!-- <van-tab title="公务卡">
  57. <view class="bank_box" wx:for="{{accountListGWK}}" wx:key="index">
  58. <view class="bank_content gwk">
  59. <view class="bankName">
  60. <image src="../../image/apply/icon_GWK.png" style="width: 25px" mode="widthFix"></image>
  61. <text>公务卡</text>
  62. </view>
  63. <view style="margin-top: 2vh;">6217 0021 9000 7972 186<text>卡号</text></view>
  64. <view>可用余额</view>
  65. <view style="font-weight: bold;font-size: 22px;margin-top: 2vh;">10,288.83</view>
  66. </view>
  67. <view class="holder">持有人:王强</view>
  68. </view>
  69. </van-tab> -->
  70. </van-tabs>
  71. </view>
  72. <view class="bottom">
  73. <view class="btn1" bindtap="openBox">支付模板</view>
  74. <view class="btn2" bindtap="swichPaymentApply">下一步</view>
  75. </view>
  76. <view class="ipXbtn"></view>
  77. <van-action-sheet show="{{show}}" title="支付模板" bind:close="closeBox">
  78. <scroll-view scroll-y="true" style="height: 400rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  79. <van-swipe-cell right-width="{{ 130 }}" wx:for="{{approvalItemsOptions}}" wx:key="index">
  80. <van-cell-group>
  81. <van-cell label="{{item.approvalItems}}" bindtap="goTemplate" data-options="{{item.templateContent}}" data-id="{{item.id}}" >
  82. <view slot="title">
  83. <view class="van-cell-text">{{item.templateName}}<van-tag plain type="danger" color="#FC9A55" style="margin-left:10px;" wx:if="{{index == 0&&item.defaultValue == 1}}"><image src="/image/apply/icon_mr.png" style="width: 12px;height: 12px;margin-right: 2px;"></image>默认</van-tag></view>
  84. </view>
  85. <van-icon wx:if="{{index == 0&&item.defaultValue == 1}}" slot="icon" name="https://636c-cloud1-8gya17a31667774d-1310628902.tcb.qcloud.la/icon_mrmb.png?sign=5e5df640777f6a7993c45e1a559dd998&t=1648619865" class="custom-icon" size="40" style="margin-right: 10px;" />
  86. <van-icon wx:else slot="icon" name="https://636c-cloud1-8gya17a31667774d-1310628902.tcb.qcloud.la/icon_mb.png?sign=2a8bbe2cb4d4e0f28a99fddbe042d26c&t=1648620032" class="custom-icon" size="40" style="margin-right: 10px;" />
  87. </van-cell>
  88. </van-cell-group>
  89. <view slot="right" class="deleteBox">
  90. <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: center;background-color: rgb(252, 154, 85,0.2);">
  91. <view>
  92. <image src="../../image/apply/button_mr.png" style="width: 25px;height: 25px;margin: 0 auto;" data-id="{{item.id}}" data-index="{{index}}" bindtap="getMr"></image>
  93. <text style="display: block;text-align: center;color: rgb(252, 154, 85);">默认</text>
  94. </view>
  95. </view>
  96. <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: center;background-color: rgb(255,0,0,0.2);">
  97. <view>
  98. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;" data-id="{{item.id}}" data-index="{{index}}" bindtap="delete"></image>
  99. <text style="display: block;text-align: center;color: #e90000;">删除</text>
  100. </view>
  101. </view>
  102. </view>
  103. </van-swipe-cell>
  104. <van-empty wx:if="{{approvalItemsOptions.length == 0}}" description="暂无支付模板" />
  105. </scroll-view>
  106. </van-action-sheet>
  107. <wxs module="iOf">
  108. var indexOf = function(name,value){
  109. return name.indexOf(value);
  110. }
  111. module.exports.indexOf = indexOf;
  112. </wxs>