<!--pages/handle/expenditureAudit/expenditureAudit.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="center" style="margin-top:{{isIPX?'88px':'65px'}};" >
  <text class="title">基础信息</text>
  <view class="main-box table-box">

    <van-field readonly label="资源编码" value="{{form.code}}" placeholder="请输入资源编码" border="{{ false }}" input-align="right" />

    <van-field readonly label="资源名称" value="{{form.name}}" placeholder="请输入资源名称" border="{{ false }}" input-align="right" />

    <van-field readonly label="资源类型" value="{{form.resourceSortText}}" placeholder="请选择资源类型" border="{{ false }}" input-align="right" is-link arrow-direction="down"/>

    <van-field readonly label="坐落位置" value="{{form.location}}" placeholder="请输入坐落位置" border="{{ false }}" input-align="right" />

    <van-field readonly label="东至" value="{{form.east}}" placeholder="请输入东至" border="{{ false }}" input-align="right" />

    <van-field readonly label="西至" value="{{form.west}}" placeholder="请输入西至" border="{{ false }}" input-align="right" />

    <van-field readonly label="南至" value="{{form.south}}" placeholder="请输入南至" border="{{ false }}" input-align="right" />

    <van-field readonly label="北至" value="{{form.north}}" placeholder="请输入北至" border="{{ false }}" input-align="right" />

    <van-field readonly label="总面积（亩）" value="{{form.totalArea}}" placeholder="请输入总面积（亩）" border="{{ false }}" input-align="right" />
    
    <van-field readonly label="资产状态" value="" border="{{ false }}" input-align="right">
      <view slot="input">
        <van-radio-group
          value="{{ form.status }}"
          bind:change="onChange"
          direction="horizontal"
          disabled
        >
          <van-radio name="0" checked-color="#2C8E68">正常</van-radio>
          <van-radio name="1" checked-color="#2C8E68">停用</van-radio>
        </van-radio-group>
      </view>
    </van-field>

    <van-field readonly label="使用情况" value="{{form.useTypeText}}" placeholder="请选择使用情况" border="{{ false }}" input-align="right" is-link arrow-direction="down"/>

    <van-field readonly label="备注" value="{{form.remark}}" placeholder="请输入备注" border="{{ false }}" input-align="right"/>

  </view>

  <block wx:if="{{typeid == 1}}">

    <text class="title">未承包到户</text>

    <view class="main-box table-box">
      
      <van-field readonly label="总面积（亩）" value="{{form.sumArea}}" placeholder="请输入总面积（亩）" border="{{ false }}" input-align="right" />

    </view>

  </block>

  <block wx:else>

    <text class="title">已开发利用</text>

    <view class="main-box table-box">
      
      <van-field readonly label="总面积（亩）" value="{{form.sumArea}}" placeholder="请输入总面积（亩）" border="{{ false }}" input-align="right" />

    </view>

  </block>

  <text class="title">集体经营</text>

  <view class="main-box table-box">
    
    <van-field readonly label="面积（亩）" value="{{form.groupArea}}" placeholder="请输入面积（亩）" border="{{ false }}" input-align="right" />

    <van-field readonly label="年收益（元）" value="{{form.groupValue}}" placeholder="请输入年收益（元）" border="{{ false }}" input-align="right" />

  </view>
  
  <text class="title">出租经营</text>

  <view class="main-box table-box">
    
    <van-field readonly label="面积（亩）" value="{{form.rentArea}}" placeholder="请输入面积（亩）" border="{{ false }}" input-align="right" />

    <van-field readonly label="年租金（元）" value="{{form.rentValue}}" placeholder="请输入年租金（元）" border="{{ false }}" input-align="right" />

    <van-field readonly label="承租人" value="{{form.rentLessee}}" placeholder="请输入承租人" border="{{ false }}" input-align="right" />

    <van-field readonly label="开始时间" value="{{form.rentStartTime}}" placeholder="请输入开始时间" border="{{ false }}" input-align="right" />

    <van-field readonly label="到期时间" value="{{form.rentEndTime}}" placeholder="请输入到期时间" border="{{ false }}" input-align="right" />

  </view>
  
  <block wx:if="{{typeid == 2}}">

    <text class="title">对外投资</text>

    <view class="main-box table-box">
      
      <van-field readonly label="面积（亩）" value="{{form.investmentArea}}" placeholder="请输入面积（亩）" border="{{ false }}" input-align="right" />

      <van-field readonly label="年租金（元）" value="{{form.investmentValue}}" placeholder="请输入年租金（元）" border="{{ false }}" input-align="right" />

      <van-field readonly label="投资对象" value="{{form.investmentLessee}}" placeholder="请输入投资对象" border="{{ false }}" input-align="right" />

      <van-field readonly label="开始时间" value="{{form.investmentStartTime}}" placeholder="请输入开始时间" border="{{ false }}" input-align="right" />

      <van-field readonly label="到期时间" value="{{form.investmentEndTime}}" placeholder="请输入到期时间" border="{{ false }}" input-align="right" />

    </view>

  </block>

  <text class="title">其他经营</text>

  <view class="main-box table-box">
    
    <van-field readonly label="面积（亩）" value="{{form.otherArea}}" placeholder="请输入面积（亩）" border="{{ false }}" input-align="right" />

    <van-field readonly label="年收益（元）" value="{{form.otherValue}}" placeholder="请输入年收益（元）" border="{{ false }}" input-align="right" />

  </view>
  <block wx:if="{{typeid == 1}}">
    <text class="title">已承包到户</text>

    <view class="main-box table-box">
      
      <van-field readonly label="总面积（亩）" value="{{form.farmerArea}}" placeholder="请输入总面积（亩）" border="{{ false }}" input-align="right" />

    </view>
    
    <text class="title">流转入集体统一经营</text>

    <view class="main-box table-box">
      
      <van-field readonly label="面积（亩）" value="{{form.circulationArea}}" placeholder="请输入面积（亩）" border="{{ false }}" input-align="right" />

      <van-field readonly label="年收益（元）" value="{{form.circulationValue}}" placeholder="请输入年收益（元）" border="{{ false }}" input-align="right" />

    </view>
  </block>
</view>
<view class="ipXbtn"></view>
<wxs module="sub">
  var times = function(time){
    console.log(time)
    return time.substring(0,10);
  }
  module.exports.times = times;
</wxs>