微信小程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

87 líneas
4.0 KiB

  1. <!--pages/project/project.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="{{ 130 }}" class="workflow" wx:for="{{projectList}}" wx:key="index">
  19. <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
  20. <view class="tit_box">
  21. <view class="tit_box_left">
  22. <image src="/image/icon/icon_gc.png" style="width: 17px; height: 15px;"></image>
  23. <text class="tit">{{item.projectName}}</text>
  24. </view>
  25. <view class="tit_type">
  26. <text>{{item.ynProjcetStatusText}}</text>
  27. </view>
  28. </view>
  29. <view class="detail_box">
  30. <text>{{item.projectContractor}}</text>
  31. <text>合同价款</text>
  32. </view>
  33. <view class="detail_time_box">
  34. <view class="detail_time">
  35. <image src="/image/icon/icon_date.png" style="width: 14px;height: 14px;"></image>
  36. <text>{{item.startTime}} ~ {{item.endTime}}</text>
  37. </view>
  38. <view class="detail_time">
  39. <text class="detail_box_money"><text style="font-size:12px;display: inline-block;color: #E90000;">¥</text>{{item.projectAmount}}</text>
  40. </view>
  41. </view>
  42. </view>
  43. <view slot="right" class="deleteBox">
  44. <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">
  45. <view>
  46. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  47. </view>
  48. <view>
  49. <text style="color:red">删除</text>
  50. </view>
  51. </view>
  52. <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">
  53. <view>
  54. <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  55. </view>
  56. <view>
  57. <text style="color: #62AD66;">附件</text>
  58. </view>
  59. </view>
  60. </view>
  61. </van-swipe-cell>
  62. </scroll-view>
  63. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  64. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  65. <view class="fj-box">
  66. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  67. <view>
  68. <text>{{item.dictLabel}}</text>
  69. </view>
  70. <view class="img_box">
  71. <view class="img_li">
  72. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" data-idx="{{index}}">
  73. </van-upload>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </scroll-view>
  79. </van-action-sheet>
  80. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  81. </modal>
  82. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  83. </modal>