123456789101112131415161718192021222324252627282930313233343536 |
- <!--pages/device-inner/index.wxml-->
- <view class="sg-container">
- <view class="sg-top sg-fix-top">
- <van-search value="{{ number }}" placeholder="按设备固定资产编号模糊搜索" left-icon="none" use-action-slot use-right-icon-slot
- bind:change="onChange" data-name="number" bind:blur="search">
- <van-icon name="search" slot="right-icon" class="sg-icon sg-bold" bindtap="search" />
- <van-icon name="filter-o" slot="action" class="sg-icon sg-index-color sg-bold" bindtap="navigate"
- data-url="/pages/filter/index" />
- </van-search>
- <view class="sg-stat-list sg-pad sg-white-bg sg-flex sg-align-center sg-space-around sg-font-xs sg-gray-color">
- <view class="sg-item" bindtap="filterSelect" data-status=" ">
- <text>全部:</text><text class="sg-bold" style="color:skyblue">{{stat ? stat.free+stat.using+stat.repair+stat.scrap : 0}}</text>
- </view>
- <view class="sg-item" bindtap="filterSelect" data-status="free">
- <text>闲置:</text><text class="sg-bold sg-green">{{stat ? stat.free : 0}}</text>
- </view>
- <view class="sg-item" bindtap="filterSelect" data-status="using">
- <text>在用:</text><text class="sg-bold sg-red">{{stat ? stat.using : 0}}</text>
- </view>
- <view class="sg-item" bindtap="filterSelect" data-status="repair">
- <text>维修:</text><text class="sg-bold sg-yellow">{{stat ? stat.repair : 0}}</text>
- </view>
- <view class="sg-item" bindtap="filterSelect" data-status="scrap">
- <text>报废:</text><text class="sg-bold sg-black">{{stat ? stat.scrap : 0}}</text>
- </view>
- </view>
- </view>
- <view class="sg-list">
- <block wx:if="{{list.length > 0}}">
- <inner-device-card item="{{item}}" wx:key="index" wx:for="{{list}}" action="record"></inner-device-card>
- </block>
- <block wx:else>
- <view class="sg-text-center sg-center sg-gray-color">没有搜索到设备</view>
- </block>
- </view>
- </view>
|