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

151 line
7.9 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" referrer="no-referrer|origin|unsafe-url"></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="{{ 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="{{ 225 }}" 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. <text wx:if="{{item.contractionStatus=='3'}}" 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>
  27. </view>
  28. </view>
  29. <view>
  30. <text>
  31. {{item.code}}
  32. </text>
  33. </view>
  34. <view class="detail_box">
  35. <view style="width: 50%;">
  36. <image src="/image/icon/jia_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  37. <text>{{item.firstParty}}</text>
  38. </view>
  39. <view style="width: 50%;">
  40. <image src="/image/icon/yi_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  41. <text>{{item.secondParty}}</text>
  42. </view>
  43. </view>
  44. <view class="detail_box">
  45. <view style="width: 60%;">
  46. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  47. <text>{{item.startTime}}~{{item.endTime}}</text>
  48. </view>
  49. <view style="width: 40%;text-align: right;">
  50. 合同金额:
  51. <text style="color:red">¥{{item.totalAmount}}</text>
  52. </view>
  53. </view>
  54. </view>
  55. <view slot="right" class="deleteBox">
  56. <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.contractionStatus=='1'}}">
  57. <view>
  58. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  59. </view>
  60. <view>
  61. <text style="color:red">删除</text>
  62. </view>
  63. </view>
  64. <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">
  65. <view>
  66. <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  67. </view>
  68. <view>
  69. <text style="color: #62AD66;">附件</text>
  70. </view>
  71. </view>
  72. <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}}" data-contractionstatus="{{item.contractionStatus}}" bindtap="relevance">
  73. <view>
  74. <image src="../../image/icon/relevance_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  75. </view>
  76. <view>
  77. <text style="color: #ffa601;">资产</text>
  78. </view>
  79. </view>
  80. <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="terminate">
  81. <view>
  82. <image src="../../image/icon/terminate_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  83. </view>
  84. <view>
  85. <text style="color:red">终止</text>
  86. </view>
  87. </view>
  88. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(179,219,98,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="cancel">
  89. <view>
  90. <image src="../../image/icon/cancel_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  91. </view>
  92. <view>
  93. <text style="color: #B3DB62;">撤销</text>
  94. </view>
  95. </view>
  96. </view>
  97. </van-swipe-cell>
  98. </scroll-view>
  99. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  100. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  101. <view class="fj-box">
  102. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  103. <view>
  104. <text>{{item.dictLabel}}</text>
  105. </view>
  106. <view class="img_box">
  107. <view class="img_li">
  108. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  109. </van-upload>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </scroll-view>
  115. </van-action-sheet>
  116. <van-action-sheet show="{{showRelevance}}" title="已关联资产" bind:close="closeBox">
  117. <scroll-view scroll-y="true" style="height: 700rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  118. <view class="table">
  119. <view class="tr" style="background:#62AD66;color: #fff;border-radius:10px;">
  120. <view class="th">资产类型</view>
  121. <view class="th">资产名称</view>
  122. <view class="th">数量(单位)</view>
  123. </view>
  124. <van-swipe-cell right-width="{{ 50 }}" wx:for="{{revelanceList}}" wx:key="index" wx:for-item="item" >
  125. <view class="tr">
  126. <view class="th">{{item.assetTable=='t_asset_permanent'?"固定资产":"资源资产"}}</view>
  127. <view class="th">{{item.name}}</view>
  128. <view class="th">{{item.num}}{{item.unit}}</view>
  129. </view>
  130. <view slot="right" class="deleteBoxAsset">
  131. <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);" bindtap="relevanceDelete" data-id="{{item.id}}" data-index="{{index}}" >
  132. <view>
  133. <text style="color:red">删除</text>
  134. </view>
  135. </view>
  136. </view>
  137. </van-swipe-cell>
  138. <view class="tr" wx:if="{{showAdd}}" >
  139. <button type="primary" size="mini" bindtap="addAssets">+</button>
  140. </view>
  141. </view>
  142. </scroll-view>
  143. </van-action-sheet>
  144. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  145. </modal>
  146. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  147. </modal>