<view class="container" style="background:url('https://www.nongshen.net/static/wechat/header_bg.png') top center no-repeat; background-size: 100% auto;">
    
    <!--自定义 顶部标题样式和位置-->
   <view class="top_title" style="height:{{CustomMenuButton.bottom}}px;z-index: 7777;padding-top: {{CustomMenuButton.top}}px;"></view>
   <!--账户信息-->
   <view class="information_header">
       <navigator url="{{'settle/index?item='+item}}">
         <view class="portrait_head">
           <image src="/image/index/headImg.png" style="width: 110rpx;height: 110rpx;"></image>
         </view>
       </navigator> 
       <view class="information_main">
           <view class="name_wrap">
               <text class="name">{{userInfoObj.nickName}}</text>
               <view class="jobs">
                   <view class="icon" style="background:url('https://www.nongshen.net/static/wechat/header_job.png') no-repeat; background-size: 100% 100%;"></view>
                    {{userInfoObj.roles.length>0?userInfoObj.roles[0].roleName:""}}
               </view>
               <image style="margin-left: auto;width: 20px;height: 20px;" bindtap="goRegion" src="../../image/icon/icon_address.png" ></image>
           </view>
           <view class="task_wrap ">
               <view class="flex_block">
                  <!-- <view class="desc">未完成</view> -->
                   <view class="event" bindtap="pickAddress">
                       <view class="icon" style="background:url('https://www.nongshen.net/static/wechat/local.png') no-repeat; background-size: 100% 100%;"></view> 
                       {{ region || "请选择" }}
                   </view>
               </view>
           </view>
           <view class="task_wrap ">
               <view class="flex_block">
                   <!-- <view class="desc">已完成</view> -->
                   <view class="event">
                       <picker bindchange="bindPickerChange" value="{{index}}" range-key="bookName" range="{{bookList}}">
                           <view class="picker">
                               <view class="icon" style="background:url('https://www.nongshen.net/static/wechat/dept.png') no-repeat; background-size: 100% 100%;"></view> 
                               {{array[index]|| bookName}}
                           </view>
                       </picker>
                   </view>
               </view>
           </view>

       </view>
   </view>
  
   <!--主导航-->
   <view class="navList_main">
       <view class="tab_item" bindtap='swichPayment' hover-class="btnView">
           <view class="icon">
               <image class="icon_img" src="../../image/index/nav_01.png" mode="aspectFit"></image>
           </view>
           <text class="desc">支出申请</text>
       </view>
       <view class="tab_item"  bindtap='swichInCome' hover-class="btnView">
           <view class="icon">
               <image class="icon_img" src="../../image/index/nav_02.png" mode="aspectFit"></image>
           </view>
           <text class="desc">收入登记</text>
       </view>
       <view class="tab_item" bindtap="swichKeeping" hover-class="btnView">
           <view class="icon">
               <image class="icon_img" src="../../image/index/nav_03.png" mode="aspectFit"></image>
           </view>
           <text class="desc">记账申请</text>
       </view>
       <view class="tab_item" data-url="/pages/paymentManager/paymentManager"  bindtap="navigate" hover-class="btnView">
           <view class="icon">
            <image class="icon_img" src="../../image/index/nav_04.png" mode="aspectFit"></image>
           </view>
           <text class="desc">支付管理</text>
       </view>
   </view>
   <!--子导航功能导航-->
   <view class="child_function">
       <!-- <view class="flex_block" bindtap="testBtn" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/paymentManager_icon.png" mode="aspectFit"></image></view>
           <text class="desc">消息推送</text>
       </view> -->
       <view class="flex_block" data-url="/pages/contract/contract" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/icon_index_01.png" mode="aspectFit"></image></view>
           <text class="desc">合同信息</text>
       </view>
       <view class="flex_block"  data-url="/pages/fixedAssets/fixedAssets" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/icon_index_02.png" mode="aspectFit"></image></view>
           <text class="desc">固定资产</text>
       </view>
       <view class="flex_block"  data-url="/pages/resources/resources" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/icon_index_03.png" mode="aspectFit"></image></view>
           <text class="desc">资源资产</text>
       </view>
       <view class="flex_block" data-url="/pages/project/project" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/icon_index_04.png" mode="aspectFit"></image></view>
           <text class="desc">工程项目</text>
       </view>
       
       <block wx:if="{{showList}}">

         <!-- <view class="flex_block"  data-url="/pages/finance/index" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/icon_index_05.png" mode="aspectFit"></image></view>
           <text class="desc">财务公开</text>
         </view> -->

         <view class="flex_block"  data-url="/pages/discussions/list" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/icon_index_05.png" mode="aspectFit"></image></view>
           <text class="desc">四议表决</text>
         </view>

         <view class="flex_block" data-url="/pages/bank/bank" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_06.png" mode="aspectFit"></image></view>
             <text class="desc">开户行</text>
         </view>
         <view class="flex_block" data-url="/pages/payee/list/list"  bindtap="navigate" hover-class="btnView"><!--bindtap="navigate"-->
             <view class="image"><image class="attribute" src="../../image/index/icon_index_07.png" mode="aspectFit"></image></view>
             <text class="desc">收款方</text>
         </view>
         <view class="flex_block" data-url="/pages/drawee/drawee"  bindtap="navigate" hover-class="btnView"><!--bindtap="navigate"-->
             <view class="image"><image class="attribute" src="../../image/index/icon_index_08.png" mode="aspectFit"></image></view>
             <text class="desc">村账户</text>
         </view>
         <view class="flex_block" data-url="/pages/bankDraft/bankDraft" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_09.png" mode="aspectFit"></image></view>
             <text class="desc">银行汇票</text>
         </view>
         <view class="flex_block"  data-url="/pages/majorEvent/majorEvent" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_10.png" mode="aspectFit"></image></view>
             <text class="desc">重大事项</text>
         </view>

         <view class="flex_block"  data-url="/pages/transaction/transaction" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_11.png" mode="aspectFit"></image></view>
             <text class="desc">交易明细</text>
         </view>
         <view class="flex_block"  data-url="/pages/transferAccounts/transferAccounts" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_12.png" mode="aspectFit"></image></view>
             <text class="desc">转账对账</text>
         </view>
         <view class="flex_block"  data-url="/pages/statistics/statistics" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_13.png" mode="aspectFit"></image></view>
             <text class="desc">收支统计</text>
         </view>
         <view class="flex_block"  data-url="/pages/bill/bill" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/icon_index_14.png" mode="aspectFit"></image></view>
             <text class="desc">票据签收</text>
         </view>
         <!-- <view class="flex_block"  data-url="/pages/paymentManager/paymentManager" bindtap="navigate" hover-class="btnView">
           <view class="image"><image class="attribute" src="../../image/index/paymentManager_icon.png" mode="aspectFit"></image></view>
           <text class="desc">支付管理</text>
         </view>
         <view class="flex_block"  data-url="/pages/escrowAccount/escrowAccount" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/nav_dlzh.png" mode="aspectFit"></image></view>
             <text class="desc">代管账户</text>
         </view>
           
         <view class="flex_block"  data-url="/pages/billUse/billUse" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/nav_pjsy.png" mode="aspectFit"></image></view>
             <text class="desc">票据使用</text>
         </view> -->
         <view class="flex_block"  data-url="/pages/mainBody/list/list" bindtap="navigate" hover-class="btnView">
             <view class="image"><image class="attribute" src="../../image/index/paymentManager_icon.png" mode="aspectFit"></image></view>
             <text class="desc">主体名录</text>
         </view>
       </block>
       <view class="flex_block" bindtap="openView" hover-class="btnView">
           <view class="image" wx:if="{{showListText == '更多'}}"><image class="attribute" src="../../image/index/nav_ckqb.png" mode="aspectFit"></image></view>
           <view class="image" wx:if="{{showListText == '收起'}}"><image class="attribute" src="../../image/index/nav_sqqb.png" mode="aspectFit"></image></view>
           <text class="desc">{{showListText}}</text>
       </view>
   </view>
   <!--工作计划-->
   <view class="work_plan">
       <view class="menu_item {{active==1?'active':''}}" bindtap="switchTab" data-gid='{{1}}'>待办<text class="remind">{{todoNum}}</text></view>
       <view class="menu_item {{active==2?'active':''}}" bindtap="switchTab" data-gid='{{2}}'>已办<text class="remind">{{doneNum}}</text></view>
       <view class="menu_item {{active==3?'active':''}}" bindtap="switchTab" data-gid='{{3}}'>已提交<text class="remind">{{yfqNum}}</text></view>
       <view class="menu_item {{active==4?'active':''}}" bindtap="switchTab" data-gid='{{4}}'>草稿箱<text class="remind">{{yzdNum}}</text></view>
       <!-- <view class="more" bindtap="toList">></view> -->
   </view>

   <scroll-view scroll-y="true" style="height: {{wrokScrollHeight}}px;padding: 0rpx 32.5rpx;" > 
       <view class="workflow" wx:if="{{active=='1'}}" wx:for-item="item" wx:for="{{todoList}}" wx:key="id" data-id="{{item.data.id}}" data-taskId="{{item.id}}" data-business='{{item.formData.activityBusinessType=="35"?"xj":"yh"}}' data-type="up" bindtap="gosee">
           <!--1-->
           <view class="workflow_list">
               <view class="process_intro">
                   <view class="name">
                     <view class="name_tit">{{item.auditName}}</view>
                   </view>
                   <!-- <view class="state">待审</view> -->
                   <view class="time">{{item.createTime}}</view>
               </view>
               <view class="process_pay">
                   <view class="describe">
                       <image  class="amount_icon"  src="../../image/index/process_icon.png" mode="aspectFit"></image>
                       <text class="textLimit">{{item.data.transferType=='2'?'信用卡转账':item.data.transferType=='1'?'银行转账':'其他'}}</text>
                   </view>
                   <view class="amount"><text class="unit">￥</text>{{item.data.expenditureAmount}}</view>
               </view>
           </view> 
       </view>
       <view class="workflow" wx:if="{{active=='2'}}" wx:for-item="item" wx:for="{{doneList}}" wx:key="id"  data-id="{{item.data.id}}" data-taskId="{{item.id}}" data-business='{{item.formData.activityBusinessType=="35"?"xj":"yh"}}' data-type="see" bindtap="gosee">
           <!--1-->
           <view class="workflow_list">
               <view class="process_intro">
                   <view class="name">
                     <view class="name_tit">{{item.auditName}}</view>
                   </view>
                   <!-- <view class="state">已审</view> -->
                   <view class="time">{{item.auditTime}}</view>
               </view>
               <view class="process_pay">
                   <view class="describe">
                       <image  class="amount_icon"  src="../../image/index/process_icon.png" mode="aspectFit"></image>
                       <text class="textLimit">{{item.data.transferType=='2'?'信用卡转账':item.data.transferType=='1'?'银行转账':'其他'}}</text>
                   </view>
                   <view class="amount"><text class="unit">￥</text>{{item.data.expenditureAmount}}</view>
               </view>
           </view> 
       </view>
       <!-- <view class="workflow"  wx:if="{{active=='3'}}" wx:for-item="item" wx:for="{{yfqList}}" wx:key="id" data-id="{{item.id}}" data-taskId="{{item.taskId}}" data-type="see" bindtap="gosee">
           <view class="workflow_list">
               <view class="process_intro">
                   <view class="name">
                     <view class="name_tit">{{item.remark}}</view>
                     <view class="{{item.auditStatus == '1'?'in':item.auditStatus == '2'?'disagree':item.auditStatus == '3'?'agree':''}}">{{item.auditStatus == '1'?'审核中':item.auditStatus == '2'?'已拒绝':item.auditStatus == '3'?'已通过':''}}</view>
                   </view>
                   <view class="time">{{item.applyDate}}</view>
               </view>
               <view class="process_pay">
                   <view class="describe">
                       <image  class="amount_icon"  src="../../image/index/process_icon.png" mode="aspectFit"></image>
                       <text class="textLimit">{{item.transferType=='2'?'信用卡转账':item.transferType=='1'?'银行转账':'其他'}}</text>
                   </view>
                   <view class="amount"><text class="unit">￥</text>{{item.expenditureAmount}}</view>
               </view>
           </view> 
       </view> -->
       <!-- {{active}} -->
       <van-swipe-cell right-width="{{ item.auditStatus == '1'?'65':0 }}"  wx:if="{{active=='3'}}" wx:for-item="item" wx:for="{{yfqList}}" wx:key="id" class="workflow">
           <!--1-->
           <view class="workflow_list" data-id="{{item.id}}" data-taskId="{{item.taskId}}" data-type="see" bindtap="gosee">
               <view class="process_intro">
                   <view class="name">
                     <view class="name_tit">{{item.remark}}</view>
                     <view class="{{item.auditStatus == '1'?'in':item.auditStatus == '2'?'disagree':item.auditStatus == '3'?'agree':''}}">{{item.auditStatus == '1'?'审核中':item.auditStatus == '2'?'已拒绝':item.auditStatus == '3'?'已通过':''}}</view>
                   </view>
                   
                   <!-- <view class="state">已制单</view> -->
                   <view class="time">{{item.applyDate}}</view>
               </view>
               <view class="process_pay">
                   <view class="describe">
                       <image class="amount_icon" src="../../image/index/process_icon.png" mode="aspectFit"></image>
                       <text class="textLimit">{{item.transferType=='2'?'信用卡转账':item.transferType=='1'?'银行转账':'其他'}}</text>
                   </view>
                   <view style="font-size: 12px;">{{item.paymentStateText}}</view>
                   <view class="amount"><text class="unit">￥</text>{{item.expenditureAmount}}</view>
               </view>
           </view> 
           <view slot="right" class="deleteBox" style="background-color: rgb(235, 4, 4,0.2);">
             <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: center;" data-id="{{item.id}}" data-index="{{index}}" bindtap="rollback">
               <view>
                 <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;"></image>
                 <text style="display: block;text-align: center;color: #e90000;">撤回</text>
               </view>
             </view>
           </view>
       </van-swipe-cell>
       <van-swipe-cell right-width="{{ 65 }}"  wx:if="{{active=='4'}}" wx:for-item="item" wx:for="{{yzdList}}" wx:key="id" class="workflow">
           <!--1-->
           <view class="workflow_list" data-id="{{item.id}}" bindtap="godetail">
               <view class="process_intro">
                   <view class="name">
                     <view class="name_tit">{{item.remark}}</view>
                     <view class="{{item.auditStatus == '1'?'in':item.auditStatus == '2'?'disagree':item.auditStatus == '3'?'agree':'caogao'}}">{{item.auditStatus == '1'?'审核中':item.auditStatus == '2'?'已拒绝':item.auditStatus == '3'?'已通过':'草稿'}}</view>
                   </view>
                   <!-- <view class="state">已制单</view> -->
                   <view class="time">{{item.applyDate}}</view>
               </view>
               <view class="process_pay">
                   <view class="describe">
                       <image class="amount_icon" src="../../image/index/process_icon.png" mode="aspectFit"></image>
                       <text class="textLimit">{{item.transferType=='2'?'信用卡转账':item.transferType=='1'?'银行转账':'其他'}}</text>
                   </view>
                   <view class="amount"><text class="unit">￥</text>{{item.expenditureAmount}}</view>
               </view>
           </view> 
           <view slot="right" class="deleteBox" style="background-color: rgb(235, 4, 4,0.2);">
             <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: center;" data-id="{{item.id}}" data-index="{{index}}" bindtap="delete">
               <view>
                 <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;"></image>
                 <text style="display: block;text-align: center;color: #e90000;">删除</text>
               </view>
             </view>
           </view>
       </van-swipe-cell>
       

       <van-empty wx:if="{{todoNum == '0' && active=='1'}}" description="暂无待办数据" />

       <van-empty wx:if="{{doneNum == 0 && active=='2'}}" description="暂无已办数据" />

       <van-empty wx:if="{{yfqNum == 0 && active=='3'}}" description="暂无已提交数据" />

       <van-empty wx:if="{{yzdNum == 0 && active=='4'}}" description="暂无草稿箱数据" />
   </scroll-view>
   <pop-up visible="{{visible}}" onClose="closePopUp">
       <view slot="content">
           <view class="picker-view">
           <view class="picker-view__pane">
               <text catchtap="cityCancel">取消</text>
               <text catchtap="citySure">确定</text>
           </view>
           <picker-view class="pick-view__group" bindchange="cityChange" bindpickstart="chooseStart" bindpickend="chooseEnd" value="{{value}}">
               <picker-view-column indicator-class="item_active">
               <view wx:for="{{provinces}}" class="picker-item" wx:key="index">{{item.label}}</view>
               </picker-view-column>
               <picker-view-column>
               <view wx:for="{{citys}}" class="picker-item" wx:key="index">{{item.label}}</view>
               </picker-view-column>
               <picker-view-column>
               <view wx:for="{{areas}}" class="picker-item" wx:key="index">{{item.label}}</view>
               </picker-view-column>
           </picker-view>
           </view>
       </view>
   </pop-up>
</view>

<wxs module="float">
 var float = function(money){
   return parseFloat(money).toFixed(2)
 }
 module.exports.float = float;
</wxs>