微信小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

85 行
4.2 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'}};" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">合同信息</text>
  5. </view>
  6. <view class="search_box" style="margin-top:{{isIPX?'100px':'75px'}};">
  7. <van-search
  8. value="{{ name }}"
  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" wx:for-item="item" >
  19. <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
  20. <view class="tit_box">
  21. <image src="/image/icon/contract_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="no-referrer|origin|unsafe-url"></image>
  22. <text class="tit">{{item.name}}</text>
  23. <view style="flex:1;">
  24. <text wx:if="{{item.contractionStatus=='1'}}" style="text-align: center;float:right;font-size:12px;background:rgb(235, 154, 4,0.2);color:rgb(235, 154, 4);width:50px;line-height: 20px;">正常</text>
  25. <text wx:if="{{item.contractionStatus=='2'}}" style="text-align: center;float:right;font-size:12px;background:rgb(235, 4, 4,0.2);color:rgb(235, 4, 4);width:50px;line-height: 20px;">撤销</text>
  26. </view>
  27. </view>
  28. <view>
  29. <text>
  30. {{item.code}}
  31. </text>
  32. </view>
  33. <view class="detail_box">
  34. <view style="width: 50%;">
  35. <image src="/image/icon/jia_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  36. <text>{{item.firstParty}}</text>
  37. </view>
  38. <view style="width: 50%;">
  39. <image src="/image/icon/yi_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  40. <text>{{item.secondParty}}</text>
  41. </view>
  42. </view>
  43. <view class="detail_box">
  44. <view style="width: 60%;">
  45. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  46. <text>{{item.startTime}}-{{item.endTime}}</text>
  47. </view>
  48. <view style="width: 40%;text-align: right;">
  49. 合同金额:
  50. <text style="color:red">¥{{item.totalAmount}}</text>
  51. </view>
  52. </view>
  53. </view>
  54. <view slot="right" class="deleteBox">
  55. <view style="flex: 1;height: 100%;display: flex;align-items: center;">
  56. <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>
  57. </view>
  58. <view style="flex: 1;height: 100%;display: flex;align-items: center;">
  59. <image src="../../image/apply/icon_add.png" style="width: 25px;height: 25px;margin: 0 auto;" data-id="{{item.id}}" data-index="{{index}}" bindtap="upload"></image>
  60. </view>
  61. </view>
  62. </van-swipe-cell>
  63. </scroll-view>
  64. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  65. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  66. <view class="fj-box">
  67. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  68. <view>
  69. <text>{{item.dictLabel}}</text>
  70. </view>
  71. <view class="img_box">
  72. <view class="img_li">
  73. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" multiple="{{true}}" data-idx="{{index}}">
  74. </van-upload>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </scroll-view>
  80. </van-action-sheet>
  81. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  82. </modal>