<style>
  @import "../css/cssReset.css";

  .CapitalDetail .Ca_Span{
    display:block;
    padding-left: 10px;
    font-size:14px;
    margin-bottom:20px;
    color:#333333;
    border-left:3px solid #E95252;
  }
  .CapitalDetail .Ca_leftOrder{
    width:830px;
    height:auto;
    padding-top:5px;
    background-color: #fff;
  }
  .CapitalDetail .Ca_title{
    width:190px;
    margin:auto;
    font-size:16px;
    margin-top:20px;
    color:#333333;
    text-align: center;
  }
  .CapitalDetail .Ca_t2{
    width:100%;
    font-size:14px;
    text-align: center;
    margin-bottom: -8px;
  }
  .CapitalDetail .Ca_line{
    width:110px;
    height:3px;
    margin:8px auto 10px;
    border-top:1px solid #777373;
    border-bottom:2px solid;
    /* border-bottom:1px solid #333333; */
  }
  .CapitalDetail .collection_Order{
    width:100%;
    height:36px;
    font-size:12px;
    line-height: 35px;
    padding:0 20px;
    border-bottom:1px dashed #BFBFBF;
  }
  .CapitalDetail .Ca_comColor{
    color:#BE525D;
  }
  .CapitalDetail .Ca_comSize{
    font-size: 14px;
  }
  .CapitalDetail .Co_oderleft{
    float:left;
  }
  .CapitalDetail .Co_oderRight{
    float:right;
  }
  .CapitalDetail .Ca_diaobo{
    width:100%;
    height:35px;
    font-size:12px;
    line-height: 35px;
    padding:0 20px;
  }
  .collection_Table,.pay_Table{
    width:96%;
    margin:auto;
    padding:0 20px;
    font-size:14px;
  }
  .collection_Table th{
    font-size:12px;
    color:#BE525D;
  }
  .collection_Table td,.collection_Table th{
    border: 1px solid #BE525D;
    text-align: center;
    height:44px;
    padding:0 5px;
  }
  .pay_Table th{
    font-size:12px;
    color:#1273BC;
  }
  .pay_Table td,.pay_Table th{
    border: 1px solid #1273BC;
    text-align: center;
    height:44px;
    padding:0 5px;
  }
  .CapitalDetail .Ca_comLinediv{
    width:96%;
    min-height:80px;
    margin:auto;
    font-size:12px;
    border-bottom: 1px dashed #BFBFBF;
  }
  .CapitalDetail .Ca_comBlueColor{
    color:#1273BC;
  }
  .CapitalDetail textarea{
    border:none;
    border-bottom:1px solid #666666;
  }
  .CapitalDetail .Ca_payBtn{
    color:#1273BC;
    border-color:#1273BC;
  }
  .CapitalDetail .Ca_cashier{
    width:25%;
    float:left;
  }
  .CapitalDetail .Ca_popDiv{
    width:100%;
    height:52px;
    line-height: 52px;
    padding:0 20px;
    font-size:12px;
    display: flex;
    justify-content: space-between;
  }
  .Ca_popDiv p{
    display: inline-block;
  }
  .Ca_popDiv p:last-child{
    float:right;
    margin-right:0;
  }
  .CapitalDetail .Cafujian{
    width:100%;
    min-height: 50px;
    margin-top:20px;
  }
  .Cafujian>div{
    float: left;
    width: 138px;
    height: 92px;
    border: 1px dashed rgba(210,210,210,1);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 5px;
    margin-right: 10px;
    position: relative;
  }
  .Cafujian>div .icon-guanbi1{
    display: inline-block;
    margin-left: 15px;
    color:#fff;
    position: absolute;
    right: -6px;
    top: -9px;
    background-color: #f56c6c;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    text-align: center;
    line-height: 20px;
  }
  .Cafujian>div .icon-guanbi1:hover{
    color:#c94052;
    font-size:12px;
  }
  .Cafujian>div img{
    width:100%;
    height:100%;
  }
  .CapitalDetail .Ca_rightFile{
    float:left;
    width:300px;
    /* height:500px; */
    border:1px solid red;
  }
  .CapitalDetail .Ca_description{
    width:600px;
    min-height: 30px;
    display: inline-block;
    margin-top:30px;
    font-size: 14px;
  }
  .CapitalDetail .Ca_remarkSpan{
    display: inline-block;
    height: 30px;
    vertical-align: top;
    margin-top: 30px;
  }
  .Cafujian .icon-excel{
    text-align: center;
    font-size: 38px;
    color: green;
    line-height: 75px;
  }
  .CapitalDetail .Ca_AccountInfo{
    width:100%;
    padding:0 20px;
    text-align:left;
  }
  .w830px{width: 830px;padding: 0;margin: 0;}
  ._tit2{
    border:none;
    background-color: white;
    border: 1px solid #DDDDDD;
  }
  ._tit._tit2>p{
    padding-left: 10px;
    font-size: 14px;
    color: #000;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
  }
  ._tit._tit2 ._rotate{
    transform:rotate(180deg);
  }
  ._tit._tit2 ._btn{
    font-size: 12px;
    color: #333333;
    cursor: pointer;
  }
  ._tit._tit2 ._btn:hover{
    color: #E95252;
  }
  ._tit._tit2 ._btn .iconfont{
    font-size: 12px;
    display: inline-block;
    margin-left: 10px;
  }
  ._tit._tit2 ._text{
    border-left: 3px solid #e95252;
    padding-left: 10px;
  }
  .w600px{
    width: 600px;
    padding: 15px;
    margin: 0 auto;
  }
  .CapitalDetail ._conten,.CapitalDetail ._process{margin-top: 20px;width: 830px;}
  ._process{background-color: white;padding: 20px 15px;position: relative;}
  ._process_box{border-top:  1px dashed #BFBFBF;padding-top: 30px;padding-bottom: 40px;}
  ._pb_son{position: relative;padding-left: 75px;min-height: 100px;padding-bottom: 30px}
  ._left_radius{width: 40px;height: 40px;border-radius: 50%;text-align: center;line-height: 40px;background-color: #2BBB7E;color: white;font-size: 12px;position: absolute;left: 15px;z-index: 2;}
  ._left_radius_err{background-color: #E95252 !important;}
  ._left_radius_sus{background-color: #1273BC !important;}
  ._pb_son::after{content: '';width: 4px;height: 100%;background-color: #2BBB7E;display: inline-block;position: absolute;clear: both;left: 33px;top: 0;z-index: 1}
  ._pb_son._none_after::after{content: '';display: none}
  ._pb_son._bohui_after::after{background-color: #E95252 !important;display: inline-block}
  ._status_color_f{background-color: #8B8B8B !important}
  ._right_content ._name ._n{font-size: 14px;color: #333333;font-weight: bold;}
  ._right_content ._name ._m{color: #FFFFFF;font-size: 12px;display: inline-block;padding: 2px 5px;background-color: #E95252;margin-left: 5px;border-radius: 4px;}
  ._right_content ._name ._sm{color: #FFFFFF;font-size: 12px;display: inline-block;padding: 2px 5px;background-color: #FF9600;margin-left: 5px;border-radius: 4px;font-weight: 100;}
  ._right_content ._name ._sn{color: #FFFFFF;font-size: 12px;display: inline-block;padding: 2px 5px;background-color: #2BBB7E;margin-left: 5px;border-radius: 4px;}
  ._right_content ._time,._time{font-size: 12px;color: #666666;padding-top: 5px;}
  ._right_content ._pp_info,._textarea{border-radius: 4px; border: 1px solid #E5E5E5;background:rgba(245,245,245,1);font-size: 12px;color: #333333;padding: 12px 14px;margin-top: 13px;position: relative;}
  ._right_content ._pp_info:before{display:block;content:'';border-width:8px 8px 8px 8px;border-style:solid;border-color: transparent transparent #dedede transparent;position:absolute;left:10px;top:-16px;}
  ._mgt_15{margin-top: 15px;}
  ._more ._right_content .iconfont{color: #AAAAAA}
  ._more ._right_content ._name ._n{font-size: 14px;color: #333333;font-weight: bold;padding-left: 3px;}
  ._info_img ul{padding: 10px 0}
  ._info_img ul li{float: left;position: relative;cursor: pointer}
  ._info_img ul li:hover ._see_img{opacity: 1;}
  ._info_img ul li img{width:88px;height:59px;}
  ._see_img{position: absolute;top: 0;width: 100%;height: 59px;padding-top: 16px;line-height: 34px;text-align: center;background-color: rgba(2, 2, 2, 0.3);display: inherit;opacity: 0;transition: all linear .5s}
  ._see_img i.iconfont{display: inline-block;width: 32px;height: 32px;border-radius: 50%;color: #FFFFFF !important;background-color: rgba(255, 255, 255, 0.5);}
  ._show_img_box{position: fixed; background: rgba(0,0,0,.6); left: 0; top:0;  width: 100%; height: 100%; z-index: 999; text-align: center;overflow: auto;}
  ._textarea{width: 690px;height: 50px;background-color: white}
  ._upload_box ul li{float: left;height:82px;width:143px;padding:20px 20px 20px 0;text-align: center;position: relative;cursor: pointer;margin-right: 10px;}
  ._upload_box ul li img{height:82px;width:143px;}
  ._upload_box ul li:hover ._delete_img{opacity: 1;}
  ._delete_img{position: absolute;top: 20px;height:82px;width:143px;line-height: 34px;text-align: center;background-color: rgba(2, 2, 2, 0.6);display: inherit;opacity: 0;transition: all linear .5s}
  ._delete_img i.iconfont{display: inline-block;width: 32px;height: 32px;border-radius: 50%;color: #E95252 !important;background-color:rgba(251, 251, 251, 0.9);   margin-top: 26px;}
  ._radio_lsit{padding-top: 15px}
  ._upload_tips{font-size: 12px;position: absolute;top: 66%;width: 100%;left: 0;text-align: center;color: #949494;}
  ._log_t{padding: 10px;}
  ._time_n{float: right;}

</style>
<template>
  <div class="CapitalDetail">
    <span class="Ca_Span">{{$t('fnc.zjdbodan')}}</span>
    <p v-show="huijiShow"  @click="goPrintPageNew(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)" style="color: #3980C8;font-size:12px;text-align:right;cursor: pointer;width:830px;margin-bottom:20px">凭证打印</p>

    <div class="clearfix">
      <div class="Co_oderleft">
        <div class="Ca_leftOrder">
          <div class="Ca_title">{{dataList.CompanyName}}</div>
          <div class="Ca_t2">{{dataList.FinanceName}}</div>
          <div class="Ca_line"></div>
          <div class="clearfix collection_Order">
            <div class="Co_oderleft">
              <span>{{$t('hotel.hotel_SerialNumber')}}：</span><span class="Ca_comSize">{{dataList.FrID}}</span>
            </div>
            <div class="Co_oderRight">
              <span>{{$t('fnc.zhibiao')}}：</span><span class="Ca_comSize">{{dataList.CreateDate}}</span>
            </div>
          </div>
          <div v-for="item in dataList.SBankList">
            <div class="clearfix Ca_diaobo">
              <div class="Co_oderRight" style="margin:10px 0;">
                <span class="Ca_comColor">{{$t('fnc.dbriqi')}}：</span><span class="Ca_comSize">{{item.AllotDate}}</span>
              </div>
            </div>
            <table class="collection_Table" style="border-collapse: collapse;">
              <tr>
                <th width="100">{{$t('fnc.skfangshi')}}</th>
                <th width="300">{{$t('fnc.acc')}}</th>
                <th width="110">{{$t('fnc.jine')}}</th>
                <th width="90">{{$t('hotel.hotel_Currency')}}</th>
                <th width="85">{{$t('hotel.hotel_CurrentRate')}}</th>
                <th>汇兑收益</th>
                <th>{{$t('fnc.bwbjine')}}</th>


              </tr>
              <tr>
                <td>{{item.TypeName}}</td>
                <td>
                  <div class="Ca_AccountInfo">{{item.Alias}}-{{item.AccountType}}-{{item.BankNo}}</div>
                </td>
                <td>{{item.OriginalMoney}}</td>
                <td>{{item.CurrencyName}}</td>
                <td>{{item.Rate}}</td>
                <td>
                  <span v-if="item.IsExChange==1">是</span>
                  <span v-if="item.IsExChange==0">否</span>
                </td>
                <td>{{item.Money}}</td>

              </tr>
            </table>
            <div class="clearfix Ca_comLinediv">
              <span class="Ca_remarkSpan">{{$t('hotel.hotel_remark')}}：</span>
              <div class="Ca_description">{{item.Description}}</div>
              <input type="button" class="hollowFixedBtn Co_oderRight" style="margin-top:25px;" @click="showFileList(item)" :value="item.comText"/>
              <div class="Cafujian clearfix" v-if="item.isShow">
                <template v-for="(file,fIndex) in item.vorcherInos">
                  <div v-if="file.Type==3">
                    <div style="width:100%;height:100%;overflow: hidden;">
                      <img :src="file.Content" @click="showImg(file.Content)">
                    </div>
                  </div>
                  <div v-if="file.Type==1">
                    <div class="iconfont " :class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"  @click="showUpLoadFile(file)">

                    </div>
                  </div>
                  <div v-if="file.Type==2">
                    <div class="iconfont icon-excel"  @click="showUpLoadFile(file)">

                    </div>
                  </div>
                </template>
              </div>
            </div>
          </div>

          <div v-for="item in dataList.FBankList">
            <div class="clearfix Ca_diaobo">
              <div class="Co_oderRight" style="margin:10px 0;">
                <span class="Ca_comBlueColor">{{$t('fnc.dbriqi')}}：</span><span class="Ca_comSize">{{item.AllotDate}}</span>
              </div>
            </div>
            <table class="pay_Table" style="border-collapse: collapse;">
              <tr>
                <th width="100">{{$t('fnc.fkfangshi')}}</th>
                <th width="300">{{$t('fnc.acc')}}</th>
                <th width="110">{{$t('fnc.jine')}}</th>
                <th width="90">{{$t('hotel.hotel_Currency')}}</th>
                <th width="85">{{$t('hotel.hotel_CurrentRate')}}</th>
                <th>汇兑损失</th>
                <th>{{$t('fnc.bwbjine')}}</th>
              </tr>
              <tr>
                <td>{{item.TypeName}}</td>
                <td>
                  <div class="Ca_AccountInfo">{{item.Alias}}-{{item.AccountType}}-{{item.BankNo}}</div>
                </td>
                <td>{{item.OriginalMoney}}</td>
                <td>{{item.CurrencyName}}</td>
                <td>{{item.Rate}}</td>
                <td>
                  <span v-if="item.IsExChange==1">是</span>
                  <span v-if="item.IsExChange==0">否</span>
                </td>
                <td>{{item.Money}}</td>
              </tr>
            </table>
            <div class="clearfix Ca_comLinediv" style="width:100%;padding:0 20px;">
              <span class="Ca_remarkSpan">{{$t('hotel.hotel_remark')}}：</span>
              <div class="Ca_description">{{item.Description}}</div>
              <input type="button" class="hollowFixedBtn Co_oderRight Ca_payBtn" style="margin-top:25px;" @click="showFuFileList(item)" :value="item.comText"/>
              <div class="Cafujian clearfix" v-if="item.isShow">
                <template v-for="(file,fIndex) in item.vorcherInos">
                  <div v-if="file.Type==3">
                    <div style="width:100%;height:100%;overflow: hidden;">
                      <img :src="file.Content" @click="showImg(file.Content)">
                    </div>
                  </div>
                  <div v-if="file.Type==1">
                    <div class="iconfont _wenjian_P" :class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'" @click="showUpLoadFileT(file)">

                    </div>
                  </div>
                  <div v-if="file.Type==2">
                    <div class="iconfont icon-excel"  @click="showUpLoadFile(file)">

                    </div>
                  </div>
                </template>
              </div>
            </div>
          </div>
          <div class="Ca_popDiv" v-if="dataList.AuditSteps!=''">
            <template v-for="(item,index) in dataList.AuditSteps">
              <p>{{item.AuditDescription}}：
                <template v-if="item.Status===2">
                  <span class="_r_name" v-if="s.AuditStatus==2" v-for="(s,si) in item.AuditRecordList">{{s.AuditName}} </span>
                </template>
              </p>
            </template>
          </div>
        </div>
      </div>
    </div>
    <viewer :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer">
      <img v-for="src in images" :src="src" :key="src.subCode" style="display:none">
    </viewer>
    <div class="_tit _tit2 w830px">
      <p>
        <span class="_text">{{$t('fnc.shliucheng')}}</span>
        <span class="_btn" v-if="tableShow" @click="tableShow=false">{{$t('fnc.shouqi')}} <i class="iconfont icon-gengduo _rotate"></i> </span>
        <span class="_btn" v-else @click="tableShow=true">{{$t('fnc.zhankai')}} <i class="iconfont icon-gengduo"></i> </span>
      </p>
      <div v-show="tableShow">
        <div class="w600px">
          <my-FlowChartModule :data="AuditListData"></my-FlowChartModule>
        </div>
      </div>
    </div>

    <div class="_process clearfix">
      <div class="_process_box">
        <template v-for="(item,index) in GetDetail.AuditSteps">
          <div class="_pb_son" :class="{_none_after:(item.NextStep==1||item.Status==4),_bohui_after:(GetDetail.Status==3 && !IsBoHui && index===GetDetail.AuditSteps.length-1)}" v-if="item.Sort==0 || (item.Status==1 && item.NextStep==1) || (item.Status==2 && item.Sort!=0) || (item.Status==4)">
            <div class="_left_radius" v-if="item.Sort==0">{{$t('fnc.faqi')}}</div>
            <div class="_left_radius _left_radius_sus" v-if="item.NextStep==1">{{$t('fnc.daishen')}}</div>
            <div class="_left_radius" v-if="item.Sort!=0 && item.Status==2">{{$t('visa.v_tongguo')}}</div>
            <div class="_left_radius _left_radius_err" v-else-if="item.Status==4">{{$t('fnc.bohui')}}</div>
            <div class="_right_content" v-if="item.AuditWay==2 || item.AuditWay==3">
              <p class="_name">
                <span class="_n">{{item.AuditDescription}}<span class="_sm">({{item.AuditWay==2? $t('fnc.huiqian') : $t('fnc.huoqian')}})</span></span>
              </p>
              <div class="_more _mgt_15" v-for="(son,sindex) in item.AuditRecordList" v-if="son.AuditStatus==2">
                <div class="_right_content">
                  <p class="_name">
                    <span class="_n PingFangSC">{{son.AuditName}}</span>
                    <span class="_sn" v-if="son.AuditStatus==2">{{$t('visa.v_tongguo')}}</span>
                    <span class="_time _time_n">{{son.AduitDate}}</span>
                  </p>
                  <template  v-if="son.CareOfRemarks">
                    <div class="_zhuan_msg" v-for="(z,zIndex) in JSON.parse(son.CareOfRemarks)">
                      <p><span>{{$t('fnc.you')}}</span>{{z.BeFrom}}<span><i class="_color_green">{{$t('fnc.zhuanjiao')}}</i>{{$t('fnc.gei')}}</span>{{z.Target}}</p>
                      <p class="_pp_info">{{$t('fnc.zjbeizhu')}}：{{z.Remarks?z.Remarks : $t('fnc.no')}}</p>
                    </div>
                  </template>
                  <div class="_pp_info" v-if="son.AuditStatus!=1">
                    <p>{{son.Remark!=''?son.Remark : $t('fnc.no')}}</p>
                    <div class="_info_img" v-if="son.Image!=null&&son.AuditStatus==2" >
                      <ul class="clearfix"  v-if="son.Image.length&&son.Image.length>=1">
                        <li v-for="(img,imgI) in son.Image">
                          <img v-if="!img" src="../image/Travelslider.png" alt="">
                          <img v-else :src="img" alt="">
                          <div class="_see_img" @click="showImg(img,2)">
                            <i class="iconfont icon-sousuo"></i>
                          </div>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </div>
              <div class="_more _mgt_15" v-for="(son,sindex) in item.AuditRecordList" v-if="son.AuditStatus!=2">
                <div class="_right_content" v-if="item.AuditWay==2&&son.AuditStatus!=2">
                  <p class="_name">
                    <span class="_n PingFangSC">{{son.AuditName}}</span>
                    <span class="_sn" v-if="son.AuditStatus==2">{{$t('visa.v_tongguo')}}</span>
                    <span class="_m" v-else-if="son.AuditStatus==4">{{$t('fnc.bohui')}}</span>
                    <span class="_sm" v-else-if="son.AuditStatus==1">{{$t('fnc.daishen')}}</span>
                    <span class="_time _time_n" v-if="item.Status!=1">{{son.AduitDate}}</span>
                  </p>
                  <template  v-if="son.CareOfRemarks">
                    <div class="_zhuan_msg" v-for="(z,zIndex) in JSON.parse(son.CareOfRemarks)">
                      <p><span>{{$t('fnc.you')}}</span>{{z.BeFrom}}<span><i class="_color_green">{{$t('fnc.zhuanjiao')}}</i>{{$t('fnc.gei')}}</span>{{z.Target}}</p>
                      <p class="_pp_info">{{$t('fnc.zjbeizhu')}}：{{z.Remarks?z.Remarks:$t('fnc.no')}}</p>
                    </div>
                  </template>
                  <div class="_pp_info" v-if="item.Status!=1">
                    <p>{{son.Remark!=''?son.Remark:$t('fnc.no')}}</p>
                    <div class="_info_img" v-if="son.Image!=null&&item.Status!=1" >
                      <ul class="clearfix"  v-if="son.Image.length&&son.Image.length>=1">
                        <li v-for="(img,imgI) in son.Image">
                          <img v-if="!img" src="../image/Travelslider.png" alt="">
                          <img v-else :src="img" alt="">
                          <div class="_see_img" @click="showImg(img,2)">
                            <i class="iconfont icon-sousuo"></i>
                          </div>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="_right_content" v-else-if="item.AuditWay==3 && son.AuditStatus==1">
                  <p class="_name">
                    <span class="_n PingFangSC">{{son.AuditName}}</span>
                    <span class="_sm" v-if="item.Status==2 && item.Sort!=0">{{$t('visa.v_tongguo')}}</span>
                    <span class="_m" v-else-if="item.Status==4">{{$t('fnc.bohui')}}</span>
                    <span class="_sm _left_radius_sus" v-else-if="son.AuditStatus==1">{{$t('fnc.daishen')}}</span>
                    <span class="_time _time_n" v-if="item.Status!=1">{{son.AduitDate}}</span>
                  </p>
                  <template  v-if="son.CareOfRemarks">
                    <div class="_zhuan_msg" v-for="(z,zIndex) in JSON.parse(son.CareOfRemarks)">
                      <p><span>{{$t('fnc.you')}}</span>{{z.BeFrom}}<span><i class="_color_green">{{$t('fnc.zhuanjiao')}}</i>{{$t('fnc.gei')}}</span>{{z.Target}}</p>
                      <p class="_pp_info">{{$t('fnc.zjbeizhu')}}：{{z.Remarks?z.Remarks:$t('fnc.no')}}</p>
                    </div>
                  </template>
                  <div class="_pp_info" v-if="item.Status!=1">
                    <p>{{son.Remark!=''?son.Remark:$t('fnc.no')}}</p>
                    <div class="_info_img" v-if="son.Image!=null&&item.Status!=1" >
                      <ul class="clearfix" v-if="son.Image.length&&son.Image.length>=1">
                        <li v-for="(img,imgI) in son.Image">
                          <img v-if="!img" src="../image/Travelslider.png" alt="">
                          <img v-else :src="img" alt="">
                          <div class="_see_img" @click="showImg(img)">
                            <i class="iconfont icon-sousuo"></i>
                          </div>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="_right_content" v-else-if="item.AuditWay==3 && son.AuditStatus==4">
                  <p class="_name">
                    <span class="_n PingFangSC">{{son.AuditName}}</span>
                    <span class="_sm" v-if="item.Status==2 && item.Sort!=0">{{$t('visa.v_tongguo')}}</span>
                    <span class="_m" v-else-if="item.Status==4">{{$t('fnc.bohui')}}</span>
                    <span class="_sm _left_radius_sus" v-else-if="son.AuditStatus==1">{{$t('fnc.daishen')}}</span>
                    <span class="_time _time_n" v-if="item.Status!=1">{{son.AduitDate}}</span>
                  </p>
                  <template  v-if="son.CareOfRemarks">
                    <div class="_zhuan_msg" v-for="(z,zIndex) in JSON.parse(son.CareOfRemarks)">
                      <p><span>{{$t('fnc.you')}}</span>{{z.BeFrom}}<span><i class="_color_green">{{$t('fnc.zhuanjiao')}}</i>{{$t('fnc.gei')}}</span>{{z.Target}}</p>
                      <p class="_pp_info">{{$t('fnc.zjbeizhu')}}：{{z.Remarks?z.Remarks:$t('fnc.no')}}</p>
                    </div>
                  </template>
                  <div class="_pp_info" v-if="item.Status!=1">
                    <p>{{son.Remark!=''?son.Remark:$t('fnc.no')}}</p>
                    <div class="_info_img" v-if="son.Image!=null&&item.Status!=1" >
                      <ul class="clearfix" v-if="son.Image.length&&son.Image.length>=1">
                        <li v-for="(img,imgI) in son.Image">
                          <img v-if="!img" src="../image/Travelslider.png" alt="">
                          <img v-else :src="img" alt="">
                          <div class="_see_img" @click="showImg(img)">
                            <i class="iconfont icon-sousuo"></i>
                          </div>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="_right_content" v-else>
              <div class="_more" v-for="(son,sindex) in item.AuditRecordList">
                <p class="_name">
                  <span class="_n">{{son.AuditName}}<span class="_sm">{{item.AuditDescription}}</span></span>
                  <span class="_time _time_n" v-if="item.NextStep!=1">{{son.AduitDate}}</span>
                </p>
                <div class="_right_content">
                  <div class="_pp_info" v-if="item.NextStep!=1">
                    <p>{{son.Remark==''?$t('fnc.no'):son.Remark}}</p>
                    <div class="_info_img" v-if="son.Image!=null" >
                      <ul class="clearfix"  v-if="son.Image.length&&son.Image.length>=1">
                        <li v-for="(img,imgI) in son.Image">
                          <img v-if="!img" src="../image/Travelslider.png" alt="">
                          <img v-else :src="img" alt="">
                          <div class="_see_img" @click="showImg(img)">
                            <i class="iconfont icon-sousuo"></i>
                          </div>
                        </li>
                      </ul>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </template>
        <div class="_pb_son _none_after"  v-if="GetDetail.Status==3 && !IsBoHui">
          <div class="_left_radius _left_radius_err">{{$t('fnc.bohui')}}</div>
        </div>
        <div class="_pb_son" :class="GetDetail.Status==2?'_none_after':''" v-if="GetDetail.Status==2">
          <div class="_left_radius" >{{$t('fnc.jieshu')}}</div>
          <div class="_right_content">
            <p class="_time">{{$t('fnc.ljhaoshi')}}：{{endDate}}</p>
          </div>
        </div>
        <div style="padding-left: 75px;">
          <button class="hollowFixedBtn" v-if="(bossID===1 || bossID===5) && (GetDetail.Status===2 || GetDetail.Status===5 || GetDetail.Status===1)" @click="bohui()">{{$t('fnc.bohui')}}</button>
          <button class="hollowFixedBtn" @click="AuditOrRefund()">{{$t('pub.returnBack')}}</button>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  import myFlowChartModule from "../components/FlowChartModule";
  export default {
    components:{
      'my-FlowChartModule': myFlowChartModule,
    },
    data(){

      return {
        msg:{
          ID:0
        },
        imageOptions:{
          navbar:false,
          title:false
        },
        dataList:[],
        images:[],
        tableShow:false,
        AuditListData:{
          AuditList:[]
        },
        bossID:null,
        GetDetail:{
          AuditSteps:[]
        },
        endDate: '',
        huijiShow:true,
      }
    },
    created(){
      let userinfo = this.getLocalStorage();
      this.bossID = userinfo.EmployeeId;
      // let ActionMenuCode=userinfo.ActionMenuCode;
      // if(ActionMenuCode.indexOf('F_Update_KJCostType')!=-1){
      //   this.huijiShow=true;
      // }
    },
    methods:{
      goPrintPageNew(type,id,Merge,OrderSource){
        if(type===1){
          let routeData = this.$router.resolve({
            path: '/financial/financalDocument/PrintPageN',
            query: { type: type,id:id,isKehu:0,Merge:Merge,OrderSource:OrderSource?OrderSource:-1,Capital:1}
          });
          window.open(routeData.href, "_blank");
        }else{
          let routeData = this.$router.resolve({
            path: '/financial/financalDocument/PrintPageN',
            query: { type: type,id:id,Merge:Merge,OrderSource:OrderSource?OrderSource:-1,Capital:1}
          });
          window.open(routeData.href, "_blank");
        }
      },
      inited (viewer){
        this.$viewer = viewer
      },
      getList(){
        this.apipost('Financial_get_GetFundTransfer', this.msg, res => {
          if(res.data.resultCode == 1) {
            this.dataList = res.data.data;
            this.GetDetail = JSON.parse(JSON.stringify(this.dataList));
            this.GetDetail.AuditSteps = [];
            if(this.dataList.Status==2){
              let len = this.dataList.AuditSteps.length - 1;
              let sLen = this.dataList.AuditSteps[len].AuditRecordList[this.dataList.AuditSteps[len].AuditRecordList.length-1];
              let begTime = this.dataList.AuditSteps[0].AuditRecordList[0].AduitDate;
              let enTime = sLen && sLen.AduitDate ? sLen.AduitDate : begTime;
              let newTime = this.$commonUtils.formatMsgTime2(begTime,enTime);
              this.endDate = newTime.replace("前","");
            }
            this.dataList.AuditSteps.forEach(y=>{
              if(y.Sort>0){
                y.contentTips = y.AuditDescription+(y.AuditWay=='2'? this.$t('fnc.huiqian') : this.$t('fnc.huoqian'));
                this.AuditListData.AuditList.push(y);
              }
              this.GetDetail.AuditSteps.push(y);
            });
            let arr=[];
            let AuditSteps=[];
            AuditSteps = arr.concat(this.dataList.AuditSteps);
            AuditSteps.reverse();
            this.dataList.AuditSteps=AuditSteps;

            this.dataList.SBankList.forEach(x => {
              x.comText = this.$t('fnc.xsfujian');
              x.isShow = false;
            });
            this.dataList.FBankList.forEach(x => {
              x.comText = this.$t('fnc.xsfujian');
              x.isShow = false;
            });
          }else{
            this.Error(res.data.message);
          }
        }, err => {})
      },
      AuditOrRefund(){
        // this.MsgBus.$emit('msg');
        this.$router.go(-1)

      },
      //点击显示附件
      showFileList(item){
        if(item.comText== this.$t('fnc.ycfujian')){
          item.comText=this.$t('fnc.xsfujian');
        }else{
          item.comText=this.$t('fnc.ycfujian')
        }
        if(item.isShow){
          item.isShow=false;
        }else{
          item.isShow=true;
        }
        this.$forceUpdate();
      },
      showFuFileList(item){
        if(item.comText==this.$t('fnc.ycfujian')){
          item.comText=this.$t('fnc.xsfujian');
        }else{
          item.comText=this.$t('fnc.ycfujian')
        }
        if(item.isShow){
          item.isShow=false;
        }else{
          item.isShow=true;
        }
        this.$forceUpdate();
      },
      //删除附件
      deleteUploadFile(){

      },
      //显示大图
      showImg(obj){
        let isExsit=false
        this.images.forEach(x=>{
          if(x==obj)
            isExsit=true
        })
        if(!isExsit) {
          this.images.push(obj)
        } else {
          this.$viewer.view(this.images.indexOf(obj))
        }
        this.$viewer.show()
      },
      //预览文件
      showUpLoadFileT(i){
        if(i.Content.substring(i.Content.lastIndexOf('.')+1,i.Content.length).toUpperCase()=='PDF'){
          this.previewPDF(i.Content)
        }else{
          window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Content)
        }
      },
    },
    mounted(){
      this.msg.ID = this.$route.query.id;
      this.getList();
    }
  }
</script>
