微信小程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

98 řádky
5.0 KiB

  1. <!--pages/bank/bank.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"></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="{{ value }}"
  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. <van-dropdown-menu active-color="#5CAE77" bind:change="changeTab" id="top_view1" >
  18. <van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bind:change="changeTab" />
  19. <van-dropdown-item value="{{ value2 }}" options="{{ option2 }}" bind:change="changeTab2" />
  20. </van-dropdown-menu>
  21. <scroll-view scroll-y refresher-threshold="0" id="top_view2" style="height:{{scrollHeight}}px" bindscrolltolower="paging" lower-threshold="100">
  22. <van-swipe-cell right-width="{{ 130 }}" class="workflow" wx:for="{{moneyorderList}}" wx:key="index" wx:for-item="item">
  23. <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
  24. <view class="tit_box">
  25. <view class="tit_box_left">
  26. <van-tag plain type="danger" color="#FC9A55" style="margin-right:10px;">汇票号</van-tag>
  27. <text class="tit">{{item.orderNum}}</text>
  28. </view>
  29. <view class="tit_type">
  30. <text>{{item.orderTypeText}}</text>
  31. </view>
  32. </view>
  33. <view class="detail_box">
  34. <view class="detail_box_left">
  35. <text class="fkmc">{{item.billPayUnit}}</text>
  36. <text class="fkdw">付票单位</text>
  37. </view>
  38. <view class="detail_box_center">
  39. <text class="detail_box_money">¥{{item.orderAmount}}</text>
  40. <image src="/image/icon/{{item.orderStatus == 1 ? 'zk' : item.orderStatus == 2 ? 'zfz' : item.orderStatus == 3 ? 'zf' : item.orderStatus == 4 ? 'cd' : ''}}.png" style="width:38px;" mode="widthFix"></image>
  41. <text style="color: {{item.orderStatus == 1 ? '#FC9A55' : item.orderStatus == 2 ? '#5CAE77' : item.orderStatus == 3 ? '#E90000' : item.orderStatus == 4 ? '#878787' : ''}};font-size: 12px;">{{item.orderStatus == 1 ? '在库' : item.orderStatus == 2 ? '转付中' : item.orderStatus == 3 ? '转付' : item.orderStatus == 4 ? '承兑' : ''}}</text>
  42. </view>
  43. <view class="detail_box_right">
  44. <text class="fkmc">{{item.billReceiveUnit}}</text>
  45. <text class="skdw">收票单位</text>
  46. </view>
  47. </view>
  48. <view class="detail_time">
  49. <image src="/image/icon/icon_date.png" style="width: 14px;height: 14px;"></image>
  50. <text>{{item.startTime}} ~ {{item.endTime}}</text>
  51. </view>
  52. </view>
  53. <view slot="right" class="deleteBox">
  54. <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.orderStatus==1}}">
  55. <view>
  56. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  57. </view>
  58. <view>
  59. <text style="color:red">删除</text>
  60. </view>
  61. </view>
  62. <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">
  63. <view>
  64. <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  65. </view>
  66. <view>
  67. <text style="color: #62AD66;">附件</text>
  68. </view>
  69. </view>
  70. </view>
  71. </van-swipe-cell>
  72. </scroll-view>
  73. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  74. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  75. <view class="fj-box">
  76. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  77. <view>
  78. <text>{{item.dictLabel}}</text>
  79. </view>
  80. <view class="img_box">
  81. <view class="img_li">
  82. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  83. </van-upload>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </scroll-view>
  89. </van-action-sheet>
  90. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  91. </modal>
  92. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  93. </modal>