|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!--pages/fixedAssets/fixedAssets.wxml-->
- <view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
- <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>
- <text style="top:{{isIPX?'54px':'30px'}};">固定资产填报</text>
- </view>
-
- <view class="search_box" id="top_view" style="margin-top:{{isIPX?'100px':'75px'}};">
- <van-search
- value="{{ name }}"
- shape="round"
- background="transparent"
- placeholder="请输入固定资产名称"
- clearable
- bind:change="goSearch"
- />
- <view class="add_btn" bindtap="goAdd"><text>新增</text></view>
- </view>
- <scroll-view scroll-y refresher-threshold="0" style="height:{{scrollHeight}}px" bindscrolltolower="paging" lower-threshold="100">
- <van-swipe-cell right-width="{{ 220 }}" class="workflow" wx:for="{{list}}" wx:key="index" wx:for-item="item" >
- <view class="li" bindtap="goUpdate" data-id="{{item.id}}">
- <view class="tit_box">
- <image src="/image/icon/fixedAssets_icon.png" style="width: 15px;height: 15px;margin-right: 5px;" referrer="no-referrer|origin|unsafe-url"></image>
- <text class="tit">{{item.name}}</text>
- <view style="flex:1;">
- <text style="text-align: center;float:right;font-size:12px;line-height: 20px;">{{item.quantity}}{{item.unit}}</text>
- </view>
- </view>
- <view class="detail_box">
- <view>
- <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
- <text>{{item.buildTime}}</text>
- </view>
- <view>
- 原值:
- <text style="color:red">¥{{item.originalValue}}</text>
- </view>
- </view>
- </view>
- <view slot="right" class="deleteBox">
- <!-- <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}}">
- <view>
- <image src="../../image/icon/scrap_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
- </view>
- <view>
- <text style="color:#A5A5A5">报废</text>
- </view>
- </view> -->
- <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}}">
- <view>
- <image src="/image/icon/icon_xg.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
- </view>
- <view>
- <text style="color: rgb(238,95,0);">修改</text>
- </view>
- </view>
- <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}}">
- <view>
- <image src="/image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
- </view>
- <view>
- <text style="color:red">删除</text>
- </view>
- </view>
- <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">
- <view>
- <image src="/image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
- </view>
- <view>
- <text style="color: #62AD66;">附件</text>
- </view>
- </view>
- <!-- <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}}">
- <view>
- <image src="../../image/icon/relevance_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
- </view>
- <view>
- <text style="color: rgb(239,135,7);">变更</text>
- </view>
- </view> -->
- </view>
- </van-swipe-cell>
- </scroll-view>
-
- <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
- <scroll-view scroll-y="true" style="height: 600rpx;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="0">
- <view class="fj-box">
- <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
- <view>
- <text>{{item.dictLabel}}</text>
- </view>
- <view class="img_box">
- <view class="img_li">
- <van-upload file-list="{{ item.list }}"
- show-upload="{{status != 3}}"
- deletable="{{status != 3}}"
- bind:after-read="afterRead"
- bind:delete="deleteImg"
- bind:click-preview="lookDown"
- data-idx="{{index}}"
- >
- </van-upload>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </van-action-sheet>
- <modal hidden="{{!showPopup}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
- </modal>
- <modal hidden="{{!showPopupDel}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTemDel" bindconfirm="confirmTemDel">
- </modal>
|