微信小程序
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.

paymentTemplate.wxml 5.0 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!--pages/apply/paymentTemplate/paymentTemplate.wxml height:{{isIPX?'88px':'64px'}};-->
  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. <view class="pure_top" style="top:{{isIPX?'88px':'64px'}};"></view>
  7. <view class="main-box top-box" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <text class="box-title">审批事项</text>
  9. <input class="input_tit" placeholder="房屋出租整年费用" readonly value="{{form.approvalItemTemplate.approvalItems}}"/>
  10. <text>支出总金额</text>
  11. <view class="money_box">¥<input class="input_money" readonly placeholder="总金额" placeholder-style="color:#E90000;" value="{{countMoney}}"/></view>
  12. <text>提交单位:{{form.approvalItemTemplate.submitCompany}}</text>
  13. <text>提交日期:{{form.approvalItemTemplate.submitDate}}</text>
  14. <text>提 交 人:{{form.approvalItemTemplate.submitter}}</text>
  15. <text>联系电话:{{form.approvalItemTemplate.telephone}}</text>
  16. </view>
  17. <van-collapse accordion value="{{ activeNames }}" bind:change="onChange">
  18. <van-collapse-item name="{{index}}" is-link="{{false}}" wx:for="{{form.transfers}}" wx:key="index">
  19. <view slot="title" class="tit_box">
  20. <text class="title">事项{{item.num}}</text>
  21. <view class="top-box">
  22. <text>支出金额</text>
  23. <view class="money_box">¥<input class="input_money" readonly placeholder="金额" placeholder-style="color:#E90000;" value="{{item.expenditureAmount}}"/></view>
  24. <van-cell-group border="{{ false }}">
  25. <van-cell title="{{item.remark}}" border="{{ false }}" >
  26. <view slot="icon" style="width: 15%;">事由:</view>
  27. </van-cell>
  28. <van-cell title="{{item.payer}}" border="{{ false }}" center >
  29. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_fu.png" style="width: 20px;height: 20px;"></image></view>
  30. </van-cell>
  31. <van-cell title="{{item.payeeList[0].payee}}" center border="{{ false }}" >
  32. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;"></image></view>
  33. </van-cell>
  34. <view class="btnBox">
  35. <image src="/image/apply/down.png" data-index="{{index}}" class="down" bindtap="goSee"></image>
  36. <image src="/image/apply/icon_update.png" class="update" bindtap="goUpdate"></image>
  37. <image src="/image/apply/icon_delete.png" class="delete" data-index="{{index}}" bindtap="goDelete"></image>
  38. </view>
  39. </van-cell-group>
  40. </view>
  41. </view>
  42. 代码是写出来给人看的,附带能在机器上运行
  43. </van-collapse-item>
  44. </van-collapse>
  45. <block wx:for="{{form.transfers}}" wx:key="index">
  46. <text class="title">事项{{item.num}}</text>
  47. <view class="main-box top-box">
  48. <text>支出金额</text>
  49. <view class="money_box">¥<input class="input_money" readonly placeholder="金额" placeholder-style="color:#E90000;" value="{{item.expenditureAmount}}"/></view>
  50. <van-cell-group border="{{ false }}">
  51. <van-cell title="{{item.remark}}" border="{{ false }}" >
  52. <view slot="icon" style="width: 15%;">事由:</view>
  53. </van-cell>
  54. <van-cell title="{{item.payer}}" border="{{ false }}" center >
  55. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_fu.png" style="width: 20px;height: 20px;"></image></view>
  56. </van-cell>
  57. <van-cell title="{{item.payeeList[0].payee}}" center border="{{ false }}" >
  58. <view slot="icon" style="width: 15%;"><image src="/image/apply/icon_shou.png" style="width: 20px;height: 20px;"></image></view>
  59. </van-cell>
  60. <view class="btnBox">
  61. <image src="/image/apply/down.png" data-index="{{index}}" class="down" bindtap="goSee"></image>
  62. <image src="/image/apply/icon_update.png" class="update" bindtap="goUpdate"></image>
  63. <image src="/image/apply/icon_delete.png" class="delete" data-index="{{index}}" bindtap="goDelete"></image>
  64. </view>
  65. </van-cell-group>
  66. </view>
  67. </block>
  68. <view class="bottomBtn">
  69. <view bindtap="showPopup">
  70. <image src="/image/apply/icon_pres.png"></image>
  71. <text>保存模板</text>
  72. </view>
  73. <view data-add="add" bindtap="goUpdate">
  74. <image src="/image/apply/icon_add.png"></image>
  75. <text>新增事项</text>
  76. </view>
  77. </view>
  78. <view class="bottom">
  79. <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view>
  80. <view class="btn2" data-type="0" bindtap="goSubmit">下一步</view>
  81. </view>
  82. <van-dialog
  83. use-slot
  84. title="支付模板"
  85. show="{{ show }}"
  86. bind:close="onClose"
  87. theme='round-button'
  88. confirmButtonText="保存"
  89. data-type="1"
  90. bind:confirm="goSubmit"
  91. closeOnClickOverlay="{{ true }}"
  92. >
  93. <input class="input_tit" placeholder="请输入模板名称" style="width: 90%;margin: 0 auto;margin-top: 15px;margin-bottom: 10px;text-align: center;" value="{{form.approvalItemTemplate.templateName}}" bindinput="bindNameInput"/>
  94. </van-dialog>