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

fixedAssets.wxml 4.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/fixedAssets_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.useType=='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.useType=='2'}}" 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>
  26. <text wx:if="{{item.useType=='3'}}" style="text-align: center;float:right;font-size:12px;background:rgb(235, 154, 4,0.2);color:rgb(235, 154, 4);width:70px;line-height: 20px;">出租或出借</text>
  27. <text wx:if="{{item.useType=='4'}}" 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>
  28. </view>
  29. </view>
  30. <view class="detail_box">
  31. <view style="width: 55%;margin-left:5%;">{{item.code}}</view>
  32. <view style="width: 40%;">
  33. {{item.assetType}}
  34. </view>
  35. </view>
  36. <view class="detail_box">
  37. <view style="width: 60%;">
  38. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  39. <text>{{item.buildTime}}</text>
  40. </view>
  41. <view style="width: 40%;text-align: right;">
  42. 原值:
  43. <text style="color:red">¥{{item.originalValue}}</text>
  44. </view>
  45. </view>
  46. </view>
  47. <view slot="right" class="deleteBox">
  48. <view style="flex: 1;height: 100%;display: flex;align-items: center;">
  49. <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>
  50. </view>
  51. <view style="flex: 1;height: 100%;display: flex;align-items: center;">
  52. <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>
  53. </view>
  54. </view>
  55. </van-swipe-cell>
  56. </scroll-view>
  57. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  58. <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
  59. <view class="fj-box">
  60. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  61. <view>
  62. <text>{{item.dictLabel}}</text>
  63. </view>
  64. <view class="img_box">
  65. <view class="img_li">
  66. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" bind:click-preview="lookDown" multiple="{{true}}" data-idx="{{index}}">
  67. </van-upload>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </scroll-view>
  73. </van-action-sheet>
  74. <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  75. </modal>