微信小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

contract.wxml 7.9 KiB

3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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 left-width="{{ 100 }}" right-width="{{ 150 }}" 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}}" 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>
  81. <view slot="left" class="moreBox">
  82. <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">
  83. <view>
  84. <image src="../../image/icon/terminate_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  85. </view>
  86. <view>
  87. <text style="color:red">终止</text>
  88. </view>
  89. </view>
  90. <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">
  91. <view>
  92. <image src="../../image/icon/cancel_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  93. </view>
  94. <view>
  95. <text style="color: #B3DB62;">撤销</text>
  96. </view>
  97. </view>
  98. </view>
  99. </van-swipe-cell>
  100. </scroll-view>
  101. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  102. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  103. <view class="fj-box">
  104. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  105. <view>
  106. <text>{{item.dictLabel}}</text>
  107. </view>
  108. <view class="img_box">
  109. <view class="img_li">
  110. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  111. </van-upload>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </scroll-view>
  117. </van-action-sheet>
  118. <van-action-sheet show="{{showRelevance}}" title="已关联资产" bind:close="closeBox">
  119. <scroll-view scroll-y="true" style="height: 700rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  120. <view class="table">
  121. <view class="tr" style="background:#62AD66;color: #fff;border-radius:10px;">
  122. <view class="th">资产类型</view>
  123. <view class="th">资产名称</view>
  124. <view class="th">数量(单位)</view>
  125. </view>
  126. <van-swipe-cell right-width="{{ 50 }}" wx:for="{{revelanceList}}" wx:key="index" wx:for-item="item" >
  127. <view class="tr">
  128. <view class="th">{{item.assetTable=='t_asset_permanent'?"固定资产":"资源资产"}}</view>
  129. <view class="th">{{item.name}}</view>
  130. <view class="th">{{item.num}}{{item.unit}}</view>
  131. </view>
  132. <view slot="right" class="deleteBoxAsset">
  133. <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}}" >
  134. <view>
  135. <text style="color:red">删除</text>
  136. </view>
  137. </view>
  138. </view>
  139. </van-swipe-cell>
  140. <view class="tr" >
  141. <button type="primary" size="mini" bindtap="addAssets">+</button>
  142. </view>
  143. </view>
  144. </scroll-view>
  145. </van-action-sheet>
  146. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  147. </modal>
  148. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  149. </modal>