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

111 lines
5.5 KiB

  1. <!--pages/fixedAssets/fixedAssets.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="{{ 220 }}" 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/fixedAssets_icon.png" style="width: 15px;height: 15px;margin-right: 5px;" referrer="no-referrer|origin|unsafe-url"></image>
  22. <text class="tit">{{item.name}}</text>
  23. <view style="flex:1;">
  24. <text style="text-align: center;float:right;font-size:12px;line-height: 20px;">{{item.quantity}}{{item.unit}}</text>
  25. </view>
  26. </view>
  27. <view class="detail_box">
  28. <view>
  29. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  30. <text>{{item.buildTime}}</text>
  31. </view>
  32. <view>
  33. 原值:
  34. <text style="color:red">¥{{item.originalValue}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. <view slot="right" class="deleteBox">
  39. <!-- <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(165,165,165,0.2);" data-data="{{item}}" data-index="{{index}}" bindtap="scrap" wx:if="{{item.assetStatus != 3}}">
  40. <view>
  41. <image src="../../image/icon/scrap_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  42. </view>
  43. <view>
  44. <text style="color:#A5A5A5">报废</text>
  45. </view>
  46. </view> -->
  47. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(238,95,0,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="goAdd" wx:if="{{item.assetStatus != 3}}">
  48. <view>
  49. <image src="/image/icon/icon_xg.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  50. </view>
  51. <view>
  52. <text style="color: rgb(238,95,0);">修改</text>
  53. </view>
  54. </view>
  55. <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.assetStatus != 3}}">
  56. <view>
  57. <image src="/image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  58. </view>
  59. <view>
  60. <text style="color:red">删除</text>
  61. </view>
  62. </view>
  63. <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}}" data-status="{{item.assetStatus}}" bindtap="upload">
  64. <view>
  65. <image src="/image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  66. </view>
  67. <view>
  68. <text style="color: #62AD66;">附件</text>
  69. </view>
  70. </view>
  71. <!-- <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="change" wx:if="{{item.assetStatus != 3}}">
  72. <view>
  73. <image src="../../image/icon/relevance_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  74. </view>
  75. <view>
  76. <text style="color: rgb(239,135,7);">变更</text>
  77. </view>
  78. </view> -->
  79. </view>
  80. </van-swipe-cell>
  81. </scroll-view>
  82. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  83. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  84. <view class="fj-box">
  85. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  86. <view>
  87. <text>{{item.dictLabel}}</text>
  88. </view>
  89. <view class="img_box">
  90. <view class="img_li">
  91. <van-upload file-list="{{ item.list }}"
  92. show-upload="{{status != 3}}"
  93. deletable="{{status != 3}}"
  94. bind:after-read="afterRead"
  95. bind:delete="deleteImg"
  96. bind:click-preview="lookDown"
  97. data-idx="{{index}}"
  98. >
  99. </van-upload>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </scroll-view>
  105. </van-action-sheet>
  106. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  107. </modal>
  108. <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
  109. </modal>