<!--pages/Bookkeeping/Bookkeeping.wxml-->
<view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">资源性资产</text>
</view>
<view class="work_plan" style="margin-top:{{isIPX?'103px':'80px'}};">
  <view class="menu_item {{showGroup == '1'?'active':''}} " bindtap="switchTab" data-gid='1' style="width: 25%;">
    <text style="border-right: 1px solid #ddd;">农用地</text>
  </view>
  <view class="menu_item {{showGroup == '2'?'active':''}} " bindtap="switchTab" data-gid='2' style="width: 25%;">
    <text style="border-right: 1px solid #ddd;">建设用地</text>
  </view>
  <view class="menu_item {{showGroup == '3'?'active':''}} " bindtap="switchTab" data-gid='3' style="width: 40%;">
    <text>未利用地、林地</text>
  </view>
</view>
<view class="search_box" id="top_view">
  <van-search
    value="{{ searchName }}"
    shape="round"
    background="transparent"
    placeholder="请输入资源资产名称"
    clearable
    bind:change="goSearch"
  />
  <view class="downView" bindtap="openPopup">
    <text>{{checkedStatusText}}</text>
    <image src="/image/icon/triangle.png"></image>
  </view>
  <van-popup show="{{showProjectFundType}}" round position="bottom"  bind:close="closeBox" data-name="showProjectFundType">
    <van-picker
      columns="{{showGroup == '1'? farmingTypeOptions : showGroup == '2' ? buildTypeOptions : showGroup == '3' ? unusedTypeOptions : '' }}"
      show-toolbar
      value-key="dictLabel"
      bind:cancel="closeBox"
      bind:confirm="onConfirmPick"
      data-name="showProjectFundType"
      data-value="checkedStatusText"
    />
  </van-popup>
</view>
<van-swipe-cell right-width="{{ 0 }}" class="workflow" wx:for="{{listNy}}" wx:key="index">
  <view class="li" data-id="{{item.id}}" bindtap="goSee">
    <view style="display: flex;align-items: center;">
      <image src="/image/icon/{{showGroup == '1'? 'icon_zyzc' : showGroup == '2' ? 'icon_jsyd' : showGroup == '3' ? 'icon_wlyd' : '' }}.png" style="width: {{showGroup == '1'? '16.76' : showGroup == '2' ? '16.35' : showGroup == '3' ? '13.29' : '' }}px;height: {{showGroup == '1'? '14.3' : showGroup == '2' ? '13.03' : showGroup == '3' ? '15.5' : '' }}px;margin-right: 5px;"></image>
      <text class="tit">{{item.name}}</text>
      <!-- <text class="fj_name">附件{{item.enclosureCount}}</text> -->
      <text class="time yes">{{item.status == 0 ? '正常' : '停用'}}</text>
    </view>

    <view style="display: flex;margin-top: 15px;justify-content: space-between;align-items: center;">
      <view class="fksr">{{item.resourceSortText}}</view>
      <text class="time">{{item.code}}</text>
      <text class="money">{{item.totalArea}}亩</text>
    </view>
  </view>
  <!-- <view slot="right" class="deleteBox">
    <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: space-evenly;background-color: #FC9A55;" data-id="{{item.id}}" data-index="{{index}}" bindtap="goUpdate">
      <view>
        <image src="../../image/icon/icon_xg2.png" style="width: 25px;height: 25px;margin: 0 auto;" ></image>
        <text style="color: #ffffff;">修改</text>
      </view>
    </view>
  </view> -->
</van-swipe-cell>

<van-empty wx:if="{{flowListSRNum == 0 && showGroup}}" description="暂无收入事项数据" />

<view class="ipXbtn"></view>
<!-- <view class="bottom" wx:if="{{flowListSR[0].checkedStatusText == '未提交' || flowListSR[0].checkedStatusText == '已挂起' || flowListZC[0].checkedStatusText == '未提交' || flowListZC[0].checkedStatusText == '已挂起'}}">
  <view class="btn2" bindtap="goSubmit">提交记账</view>
</view> -->