<!--pages/contract/add/add.wxml-->
<view class="ns" 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="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">
    <view class="table-boxs">
      <van-cell title="事项名称" value="{{form.itemName}}" />
      <van-cell title="事项描述" border="{{false}}" />
      <van-cell label="{{form.itemContent}}" />
      <van-cell title="表决阶段" value="{{form.voteTypeText}}" />
      <van-cell title="事项状态" value="{{form.voteStatusText}}" />
      <van-cell title="表决附件" border="{{false}}" />

      <van-upload wx:for="{{form.fileList}}" deletable="{{false}}" file-list="{{ item.list }}" bind:click-preview="lookDown" data-idx="{{index}}" show-upload="{{false}}"></van-upload>

      <van-cell title="表决情况" value="{{form.itemAt}}" border="{{false}}" />
      <view>
        <view style="text-align: right;">
          <text style="color: rgb(26, 196, 111);margin-right: 10px;">{{form.yesForm.length}}人同意</text>
          <text style="color: red;margin-right: 10px;">{{form.noForm.length}}人不同意</text>
          <text style="color: #999999;">{{form.everForm.length}}人弃权</text>
        </view>
        <view style="background-color: #f8f8f8;padding: 0 20px;">
          <view style="color: rgb(26, 196, 111);">同意：
            <text wx:for="{{form.yesForm}}">{{item.voteBy}}</text>
            <text wx:if="{{form.yesForm.length == 0}}">无</text>
          </view>
          <view style="color: red;">不同意：
            <text wx:for="{{form.noForm}}">{{item.voteBy}}</text>
            <text wx:if="{{form.noForm.length == 0}}">无</text>
          </view>
          <view style="color: #999999;">弃权：
            <text wx:for="{{form.everForm}}">{{item.voteBy}}<block wx:if="{{form.everForm.length != (index + 1)}}">、</block></text>
            <text wx:if="{{form.everForm.length == 0}}">无</text>
          </view>
        </view>
      </view>
      <view class="btn2" wx:if="{{form.voteStatus == 1 && form.voteYN != 'Y'}}" bind:tap="goForm" data-id="{{form.id}}">
        我要表决
      </view>
    </view>
</view>
<view class="ipXbtn"></view>