<style scoped>
    .Myprint p{margin: 0 !important;}
    .Receipt_boxNew{color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;}
    .Receipt_boxNew tr th{color: #c94052}
    .Receipt_boxNew.color_blur tr th{color: #106BAF}
    .Receipt_boxNew.color_blur{color: #106BAF;}
    .Receipt_boxNew.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
    .Myprint .rb_tit{font-size: 16px;text-align: center}
    .Myprint .rb_stit{font-size: 14px;text-align: center}
    .Myprint .rb_stit span{display: inline-block;border:none;padding: 0 20px}
    .Myprint .rb_top_row{display: flex;justify-content: space-between;font-size: 12px;}
    .Myprint .rb_top_row span._r_name{color: #333333}
    .Myprint .rb_top_row span._r_bold{font-weight: bold}
    .Myprint .rb_top_row ._r_time span{color: #333333}
    .Myprint ._r_mb5{margin-bottom: 5px;}
    .Myprint .Receipt_table{width: 100%;font-size: 14px;text-align: center}
    .Myprint .Receipt_table th{font-weight: 200 !important}
    .Myprint .Receipt_table tr th,.Receipt_table tr td{background-color: white}
    .Myprint ._r_mt10{margin-top: 10px;}
    .Receipt_boxNew.color_blur{color: #106BAF;}
    .Receipt_boxNew.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
    .Myprint ._color_b{color: #333333 !important;font-size: 12px}
    .Myprint ._font_size12{font-size: 12px !important}
    .Myprint ._r_IsPublic{
        padding-left: 15px;
    }
    .Myprint ._guanlian{
        font-size: 12px;
        color: gray;
    }
    .Myprint ._guanlian span{
        font-size: 14px;
        color: #333333;
    }
    .Myprint ._yewudanju{
        position: absolute;
        text-align: right;
        font-size: 12px;
        right: 15px;
        top: 15px;
    }
    .Myprint ._jump_page{
        cursor: pointer;
        text-decoration: underline;
    }
    .Myprint i{
        font-style: initial;
    }
    .Receipt_boxNew tr th,.Receipt_boxNew *{color: #333333;font-size: 14px !important;}
    .Receipt_boxNew._PrintPageStyle{color: #333333;}
    .Receipt_boxNew._PrintPageStyle .rb_stit span{border-bottom: 2px solid #333333;}
    .Receipt_boxNew._PrintPageStyle td{height: 40px}
    .Myprint ._border_color_r{
        border-color: #c94052;
    }
    .Myprint .font_color_b{
      color: #106BAF !important;
    }
    .Myprint ._border_color_b{
        border-color: #106BAF;
    }
    .Myprint ._border_color_p{
        border-color: #333333;
    }
    .Receipt_boxNew .rb_stit span._rb_stit_print{
        padding: 0;
        padding-top: 10px;
        border: none;
    }
    .Myprint ._explain{
      margin-top: 10px;
      padding: 15px 0px;
      border-top: 1px dashed #BFBFBF;
      border-bottom: 1px dashed #BFBFBF;
      background-color: white;
      font-size: 12px;
    }
  .Myprint ._p_time{
    top: 40px;
  }
  .Myprint .zhuiClass{
        width: 20px;
        height: 20px;
        display: inline-block;
        border-radius: 50%;
        text-align: center;
        line-height:  20px;
        color: #E95252;
        border: 1px solid #E95252;
        font-size: 12px;
    }
  .Myprint .zhuiClass.zhuiClassdetails{
    position: absolute;
  }
  .Myprint .el-input.is-disabled .el-input__inner{
    background-color: #fff;
    border:none;
    color: #606266;
    cursor: pointer;
  }
  .Myprint{
      position: relative;
  }

  .Myprint .el-input__inner{
      padding:0;
  }
 .Myprint ._border_1{
        border: 1px solid #333333;
        margin-bottom:30px;
        padding: 15px;
    }
</style>
<template v-if="GetDetail.DetailList.length>0">

    <div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1 || GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>

            <div class="11" v-show="disabled">
                <div v-for="(val,index) in loopNumN" :key="index"
                :class="{'_border_1':index===1}">
                    <template v-if="index===1">
                    <el-tooltip class="item" effect="dark" :content="$t('objFill.zuijiatuankuan')"  placement="top">
                        <span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails">{{$t('objFill.chase')}}</span>
                    </el-tooltip>
                    <p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}({{GetDetail.BranchName}})</p>
                    <p class="rb_stit">
                        <span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
                        <i v-if="index===0">{{$t('fnc.yewulian')}}</i>
                        <i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
                    </p>
                    <!--<p class="_yewudanju">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>-->
                    <p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}:
                        <span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">
                            {{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>
                    <p class="_yewudanju" v-if="isPrintPage" style="position: relative;top: -48px;">{{$t('fnc.dayinshijian')}}:<span >{{printTime}}</span></p>
                    <div class="rb_top_row _r_mb5">
                        <p v-if="GetDetail.Type==1 || GetDetail.Type==5">{{$t('fnc.hnrdanwei')}}:<span class="_r_name">{{GetDetail.RemitterName}}</span></p>
                        <p v-if="GetDetail.Type==2 || GetDetail.Type==6">{{$t('fnc.fkduixiang')}}:
                        <span class="_r_name" style="margin-right:8px">{{GetDetail.ClientTypeName}}</span>
                        <span class="_r_name">{{GetDetail.AccountHolder}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic">{{GetDetail.IsPublicName}}</span>
                        <!--
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==0">{{$t('fnc.sizhang')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==1">{{$t('fnc.gongzhang')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==2">{{$t('fnc.rmbxianjin')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==3">{{$t('fnc.wbxianjin')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==4">{{$t('fnc.zjinchi')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==5">{{$t('fnc.ptxnzhanghu')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==6">{{$t('fnc.djxnzhanghu')}}</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==7">收支相抵</span>
                        <span class="_r_name _r_IsPublic" v-if="GetDetail.IsPublic==10">虚拟结算</span> -->
                        </p>
                        <p style="font-weight: bold"><span class="">{{$t('hotel.hotel_SerialNumber')}}:</span>{{GetDetail.FrID}}</p>
                    </div>
                    <div class="rb_top_row _r_mb5">
                        <p v-if="(GetDetail.Type==1 || GetDetail.Type==5) &&GetDetail.IsPublic!=4">
                            <span>{{$t('fnc.fkzhlshuihao')}}:</span>
                            <span class="_r_name" v-if="GetDetail.TradeDate!=''">{{GetDetail.AccountNumber}} ({{GetDetail.TradeDate}})</span>
                            <span class="_r_name" v-else>{{GetDetail.AccountNumber}}</span>
                        </p>
                        <p v-if="(GetDetail.Type==2 || GetDetail.Type==6) &&GetDetail.IsPublic!=4" style="max-width: 500px">
                            <span>{{$t('fnc.fkzhanghu')}}:</span>
                            <span class="_r_name" v-if="GetDetail.TradeDate!=''">{{GetDetail.AccountNumber}}({{GetDetail.TradeDate}})</span>
                            <span class="_r_name" v-else>{{GetDetail.AccountNumber?GetDetail.AccountNumber:$t('fnc.no')}}</span>
                        </p>
                        <p v-if="GetDetail.IsPublic==4" style="max-width: 500px">
                        <span class="_r_name" style="color: #fff;">,</span>
                        </p>
                        <p class="_r_time">{{GetDetail.CreateDate}}</p>

                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage">
                        <p>
                            <span class="">{{$t('visa.v_tuanhao')}}:
                            <template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">
                                <span v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" >{{o.TCNUM}}({{o.TCID}})</span>
                            </template>
                            <span v-else>{{$t('fnc.no')}}</span>
                            </span>
                        </p>
                        <div>
                            <span v-if="GetDetail.OtherType!=55">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
                            <span v-if="GetDetail.OtherType==55"> {{$t('objFill.jpdh')}}:<span>{{GetDetail.ReFinanceId?GetDetail.ReFinanceId:$t('fnc.no')}}</span></span>
                        </div>

                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4">
                    <p>
                        <span class="">{{$t('fnc.jpbianhao')}}:
                            <span>{{GetDetail.SourceID}}</span>
                        </span>
                    </p>
                    <p v-if="(GetDetail.TCIDAndTCNUMList && GetDetail.TCIDAndTCNUMList.length===0) || !GetDetail.TCIDAndTCNUMList">
                            <span class="">{{$t('advmanager.v_line')}}:
                                <span>{{GetDetail.LineName?GetDetail.LineName:$t('fnc.jpswxzxianlu')}}</span>
                            </span>
                    </p>
                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==10">
                    <p>
                        <span class="">{{$t('tips.qzcpbianhao')}}:
                            <span>{{GetDetail.SourceID}}</span>
                        </span>
                    </p>
                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==9">
                    <p>
                        <span class="">{{$t('fnc.qishu')}}:
                            <span>{{GetDetail.Term}}</span>
                        </span>
                    </p>
                    </div>
                    <table class="Receipt_table" border="1" :class="[GetDetail.Type==1 || GetDetail.Type==5?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']"
                    :bordercolor="GetDetail.Type==1|| GetDetail.Type==5?'#c94052':'#106BAF'" style="border-collapse:collapse;">
                        <tr>
                            <th rowspan="2" width="150">{{$t('fnc.fyshuoming')}}</th>
                            <th rowspan="2">{{$t('restaurant.res_Number')}}</th>
                            <th rowspan="2">{{$t('fnc.danjia')}}</th>
                            <th rowspan="2" width="100">{{$t('hotel.hotel_Currency')}}</th>
                            <th colspan="3">{{$t('fnc.jine')}}</th>
                            <th rowspan="2">{{$t('hotel.hotel_remark')}}</th>
                        </tr>
                        <tr>
                            <th width="88">{{$t('fnc.yuanbi')}}</th>
                            <th width="50">{{$t('hotel.hotel_CurrentRate')}}</th>
                            <th width="88">{{$t('fnc.bweibi')}}</th>
                        </tr>
                        <template v-if="GetDetail.DetailList&&GetDetail.DetailList.length">
                        <tr v-for="(item,index) in GetDetail.DetailList" class="_color_b">
                            <td height="26px">{{item.CostTypeName}}</td>
                            <td height="26px">{{item.Number}}</td>
                            <td height="26px">{{item.UnitPrice}}</td>
                            <td height="26px">{{item.CurrencyName}}</td>
                            <td height="26px">{{item.OriginalMoney}}</td>
                            <td height="26px">{{item.Rate}}</td>
                            <td height="26px">{{item.Money}}</td>
                            <td height="26px" style="max-width: 120px;">{{item.Remark}}</td>
                        </tr>
                        </template>

                        <tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<2">
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                        </tr>
                        <tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<3">
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                        </tr>
                        <tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<4">
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                        </tr>
                        <tr>
                        <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px">{{currentMoney}}</td>
                            <td height="26px"></td>
                            <td height="26px">{{benMoney}}</td>
                            <td height="26px"></td>
                        </tr>
                        <tr v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail.length&&(GetDetail.Type!=1|| GetDetail.Type!=5)">
                        <td height="34px" class="">{{$t('tips.jiaoyifangshi')}}</td>
                        <td height="34px" colspan="7" class="_color_b">
                            <template v-for="(item,index) in GetDetail.CashierDetail">
                                <p class="clearfix">{{item.CashierDes}}({{item.Money}})</p>
                            </template>
                        </td>
                        </tr>
                        <tr>
                            <td class="">{{GetDetail.Type==1|| GetDetail.Type==5?$t('fnc.skjine'):$t('fnc.fkjine')}}<br/><span class="_font_size12">{{$t('fnc.daxie')}}</span></td>
                            <td colspan="3">
                            <span v-if="GetDetail.Is_Cashier===1">{{GetDetail.ChinesePayMoney==''?$t('fnc.ling'):GetDetail.ChinesePayMoney}}</span>
                            <span v-else>{{GetDetail.ChineseMoney==''?$t('fnc.ling'):GetDetail.ChineseMoney}}</span>
                            </td>
                            <td class="">
                            {{GetDetail.Type==1|| GetDetail.Type==5?$t('fnc.skjine'):$t('fnc.fkjine')}}<br/><span class="_font_size12">{{$t('fnc.xiaoxie')}}</span>
                            </td>
                            <td colspan="3">
                            <span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
                            <span v-else>{{GetDetail.Money}}</span>
                            </td>
                        </tr>
                        <tr>
                            <td height="26px">{{$t('fnc.yjfkuanriqi')}}</td>
                            <td height="26px" colspan="7">
                                {{ GetDetail.PayDate }}{{$t('fnc.qian')}}
                            </td>
                        </tr>
                        <tr v-if="isPrintPage">
                            <td height="26px">{{$t('hotel.hotel_remark')}}</td>
                            <td height="26px" colspan="7">

                                {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : $t('fnc.no')}}
                            </td>
                        </tr>
                    </table>
                    <div class="rb_top_row _r_mt10" v-if="GetDetail.AuditSteps&&GetDetail.AuditSteps.length">
                        <template v-for="(item,index) in GetDetail.AuditSteps">
                            <p>
                            <span class="font_color_b">{{item.AuditDescription}}:</span>
                                <template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0">
                                    <span class="_r_name" v-for="(s,si) in item.AuditRecordList" v-if="((item.Sort==0) || (item.Sort!=0&&s.AuditStatus==2))&&item.AuditRecordList.length" :class="item.Sort==0&&!isPrintPage?'_jump_page':''" @click="item.Sort==0&&!isPrintPage?jumpPage('enrollTotal',GetDetail.TCID,2):''">{{s.AuditName}} </span>
                                </template>
                            </p>
                        </template>
                    </div>
                </template>
                </div>
            </div>
            <div class="22" v-show="!disabled">
                <div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
                    <el-tooltip class="item" effect="dark" :content="$t('objFill.zuijiatuankuan')"  placement="top">
                        <span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails">{{$t('objFill.chase')}}</span>
                    </el-tooltip>
                    <p class="rb_tit" style="font-size: 16px !important;">
                        (<el-input size="small" style="width:auto" v-model="GetDetail.CompanyName" :placeholder="$t('pub.pleaseImport')"></el-input>)
                        <el-input  size="small" style="width:auto" v-model="GetDetail.BranchName" :placeholder="$t('pub.pleaseImport')"></el-input>
                    <p class="rb_stit">
                        <span :class="isPrintPage?'_rb_stit_print':''">
                            <el-input size="small" style="width:auto" v-model="GetDetail.FinanceName" :placeholder="$t('pub.pleaseImport')"></el-input>
                        </span>
                        <i v-if="index===0">{{$t('fnc.yewulian')}}</i>
                        <i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
                    </p>
                    <!--<p class="_yewudanju">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>-->
                    <p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>
                    <p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}:<span >{{printTime}}</span></p>
                    <div class="rb_top_row _r_mb5" style="margin:5px 0">
                        <p v-if="GetDetail.Type==1 || GetDetail.Type==5">{{$t('fnc.hnrdanwei')}}:<span class="_r_name">{{GetDetail.RemitterName}}</span></p>
                        <p v-if="GetDetail.Type==2 || GetDetail.Type==6">{{$t('fnc.fkduixiang')}}:
                        <span class="_r_name" style="margin-right:8px">
                            <el-input size="small" style="width:auto" v-model="GetDetail.ClientTypeName" :placeholder="$t('pub.pleaseImport')"></el-input>
                        </span>
                        <span class="_r_name" v-show="GetDetail.AccountHolder!=''">
                            <el-input size="small" style="width:auto" v-model="GetDetail.AccountHolder" :placeholder="$t('pub.pleaseImport')"></el-input>
                        </span>
                        <span v-if="GetDetail.IsPublic">
                            <el-input size="small" style="width:auto" v-model="GetDetail.IsPublicName" :placeholder="$t('pub.pleaseImport')"></el-input>
                        </span>
                        </p>
                        <p style="font-weight: bold"><span class="">{{$t('hotel.hotel_SerialNumber')}}:</span>{{GetDetail.FrID}}</p>
                    </div>
                    <div class="rb_top_row _r_mb5">
                        <p v-if="(GetDetail.Type==1 || GetDetail.Type==5) &&GetDetail.IsPublic!=4">
                            <span>{{$t('fnc.fkzhlshuihao')}}:</span>
                            <span class="_r_name" v-if="GetDetail.TradeDate!=''">
                                <el-input size="small" style="width:auto" v-model="GetDetail.AccountNumber" :placeholder="$t('pub.pleaseImport')"></el-input>
                                (<el-input size="small" style="width:auto" v-model="GetDetail.TradeDate" :placeholder="$t('pub.pleaseImport')"></el-input>)
                            </span>
                            <span class="_r_name" v-else>
                                <el-input size="small" style="width:auto" v-model="GetDetail.AccountNumber" :placeholder="$t('pub.pleaseImport')"></el-input>
                            </span>
                        </p>
                        <p v-if="(GetDetail.Type==2 || GetDetail.Type==6) &&GetDetail.IsPublic!=4" style="max-width: 500px">
                            <span>{{$t('fnc.fkzhanghu')}}:</span>
                            <span class="_r_name" v-if="GetDetail.TradeDate!=''">
                                <el-input size="small" style="width:auto" v-model="GetDetail.AccountNumber" :placeholder="$t('pub.pleaseImport')"></el-input>
                                (<el-input size="small" style="width:auto" v-model="GetDetail.TradeDate" :placeholder="$t('pub.pleaseImport')"></el-input>)
                            </span>
                            <span class="_r_name" v-else>
                                <el-input v-show="GetDetail.AccountNumber" size="small" style="width:auto" v-model="GetDetail.AccountNumber" :placeholder="$t('pub.pleaseImport')"></el-input>
                                <span v-show="!GetDetail.AccountNumber">{{$t('fnc.no')}}</span>
                            </span>
                        </p>
                        <p v-if="GetDetail.IsPublic==4" style="max-width: 500px">
                        <span class="_r_name" style="color: #fff;">,</span>
                        </p>
                        <p class="_r_time">{{GetDetail.CreateDate}}</p>

                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage">
                        <p>
                            <span class="">{{$t('visa.v_tuanhao')}}:
                            <template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">
                                <span v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" >
                                    <el-input size="small" style="width:auto" v-model="o.TCNUM" :placeholder="$t('pub.pleaseImport')"></el-input>
                                    (<el-input size="small" style="width:auto" v-model="o.TCID" :placeholder="$t('pub.pleaseImport')"></el-input>)
                                    </span>
                            </template>
                            <span v-else>{{$t('fnc.no')}}</span>
                            </span>
                        </p>
                        <div>
                            <span v-if="GetDetail.OtherType!=55">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
                            <span v-if="GetDetail.OtherType==55"> {{$t('objFill.jpdh')}}:<span>{{GetDetail.ReFinanceId?GetDetail.ReFinanceId:$t('fnc.no')}}</span></span>
                        </div>
                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4">
                    <p>
                        <span class="">{{$t('fnc.jpbianhao')}}:
                            <span>
                                <el-input size="small" style="width:auto" v-model="GetDetail.SourceID" :placeholder="$t('pub.pleaseImport')"></el-input>
                            </span>
                        </span>
                    </p>
                    <p v-if="(GetDetail.TCIDAndTCNUMList && GetDetail.TCIDAndTCNUMList.length===0) || !GetDetail.TCIDAndTCNUMList">
                            <span class="">{{$t('advmanager.v_line')}}:
                                <span>{{GetDetail.LineName?GetDetail.LineName:$t('fnc.jpswxzxianlu')}}</span>
                            </span>
                    </p>
                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==10">
                    <p>
                        <span class="">{{$t('tips.qzcpbianhao')}}:
                            <span>
                                <el-input size="small" style="width:auto" v-model="GetDetail.SourceID" :placeholder="$t('pub.pleaseImport')"></el-input>
                            </span>
                        </span>
                    </p>
                    </div>
                    <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==9">
                    <p>
                        <span class="">{{$t('fnc.qishu')}}:
                            <span>
                                <el-input size="small" style="width:auto" v-model="GetDetail.Term" :placeholder="$t('pub.pleaseImport')"></el-input>
                            </span>
                        </span>
                    </p>
                    </div>
                    <table class="Receipt_table" border="1" :class="[GetDetail.Type==1 || GetDetail.Type==5?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']" :bordercolor="GetDetail.Type==1|| GetDetail.Type==5?'#c94052':'#106BAF'" style="border-collapse:collapse;">
                        <tr>
                            <th rowspan="2" width="150">{{$t('fnc.fyshuoming')}}</th>
                            <th rowspan="2">{{$t('restaurant.res_Number')}}</th>
                            <th rowspan="2">{{$t('fnc.danjia')}}</th>
                            <th rowspan="2" width="100">{{$t('hotel.hotel_Currency')}}</th>
                            <th colspan="3">{{$t('fnc.jine')}}</th>
                            <th rowspan="2">{{$t('hotel.hotel_remark')}}</th>
                        </tr>
                        <tr>
                            <th width="88">{{$t('fnc.yuanbi')}}</th>
                            <th width="50">{{$t('hotel.hotel_CurrentRate')}}</th>
                            <th width="88">{{$t('fnc.bweibi')}}</th>
                        </tr>
                        <template v-if="GetDetail.DetailList&&GetDetail.DetailList.length">
                        <tr v-for="(item,index) in GetDetail.DetailList" class="_color_b">
                            <td height="26px">
                                <el-input size="small" style="width:auto" v-model="item.CostTypeName" :placeholder="$t('pub.pleaseImport')"></el-input>
                            </td>
                            <td height="26px">{{item.Number}}</td>
                            <td height="26px">{{item.UnitPrice}}</td>
                            <td height="26px">{{item.CurrencyName}}</td>
                            <td height="26px">{{item.OriginalMoney}}</td>
                            <td height="26px">{{item.Rate}}</td>
                            <td height="26px">{{item.Money}}</td>
                            <td height="26px" style="max-width: 120px;">
                                <el-input size="small" style="width:auto" v-model="item.Remark" :placeholder="$t('pub.pleaseImport')"></el-input>
                            </td>
                        </tr>
                        </template>

                        <tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<2">
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                        </tr>
                        <tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<3">
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                        </tr>
                        <tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<4">
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                        </tr>
                        <tr>
                        <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px"></td>
                            <td height="26px">{{currentMoney}}</td>
                            <td height="26px"></td>
                            <td height="26px">{{benMoney}}</td>
                            <td height="26px"></td>
                        </tr>
                        <tr v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail.length&&(GetDetail.Type!=1|| GetDetail.Type!=5)">
                        <td height="34px" class="">{{$t('tips.jiaoyifangshi')}}</td>
                        <td height="34px" colspan="7" class="_color_b">
                            <template v-for="(item,index) in GetDetail.CashierDetail">
                            <p  class=" clearfix">
                                <el-input  size="small" @input="CashierInput" style="width:auto" v-model="item.CashierDes" :placeholder="$t('pub.pleaseImport')"></el-input>
                                ({{item.Money}})</p>
                            </template>
                        </td>
                        </tr>
                        <tr>
                            <td class="">{{GetDetail.Type==1|| GetDetail.Type==5?$t('fnc.skjine'):$t('fnc.fkjine')}}<br/><span class="_font_size12">{{$t('fnc.daxie')}}</span></td>
                            <td colspan="3">
                            <span v-if="GetDetail.Is_Cashier===1">{{GetDetail.ChinesePayMoney==''?$t('fnc.ling'):GetDetail.ChinesePayMoney}}</span>
                            <span v-else>{{GetDetail.ChineseMoney==''?$t('fnc.ling'):GetDetail.ChineseMoney}}</span>
                            </td>
                            <td class="">
                            {{GetDetail.Type==1|| GetDetail.Type==5?$t('fnc.skjine'):$t('fnc.fkjine')}}<br/><span class="_font_size12">{{$t('fnc.xiaoxie')}}</span>
                            </td>
                            <td colspan="3">
                            <span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
                            <span v-else>{{GetDetail.Money}}</span>
                            </td>
                        </tr>
                        <tr>
                        <td height="26px">{{$t('fnc.yjfkuanriqi')}}</td>
                        <td height="26px" colspan="7">
                            {{ GetDetail.PayDate }}{{$t('fnc.qian')}}
                        </td>
                        </tr>
                        <tr v-if="isPrintPage">
                        <td height="26px">{{$t('hotel.hotel_remark')}}</td>
                        <td height="26px" colspan="7">
                            <el-input size="small" style="width:auto" v-model="GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark" :placeholder="$t('pub.pleaseImport')"></el-input>
                            <!-- {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : $t('fnc.no')}} -->
                        </td>
                        </tr>
                    </table>
                    <div class="rb_top_row _r_mt10" v-if="GetDetail.AuditSteps&&GetDetail.AuditSteps.length">
                        <template v-for="(item,index) in GetDetail.AuditSteps">
                            <p>
                            <span class="font_color_b">{{item.AuditDescription}}:</span>
                                <template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0">
                                    <span class="_r_name" v-for="(s,si) in item.AuditRecordList" v-if="((item.Sort==0) || (item.Sort!=0&&s.AuditStatus==2))&&item.AuditRecordList.length" :class="item.Sort==0&&!isPrintPage?'_jump_page':''" @click="item.Sort==0&&!isPrintPage?jumpPage('enrollTotal',GetDetail.TCID,2):''">{{s.AuditName}} </span>
                                </template>
                            </p>
                        </template>
                    </div>
                </div>
            </div>
        </div>
</template>
<script>
export default {
    props:["ID","width","color","isPrintPage","name","OrderSource","disabled","loopNumN"],  //接收参数 ID width color
    data(){
        return{

            loading:false,
            EmployeeId:'',
            EndDate:'',
            StartDate:'',
            printTime:'',
            currentMoney:0,
            benMoney:0,
            GetDetail:{},
            IsPublicObj:{
                0:this.$t('fnc.sizhang'),
                1:this.$t('fnc.gongzhang'),
                2:this.$t('fnc.rmbxianjin'),
                3:this.$t('fnc.wbxianjin'),
                4:this.$t('fnc.zjinchi'),
                5:this.$t('fnc.ptxnzhanghu'),
                6:this.$t('fnc.djxnzhanghu'),
                7:this.$t('fnc.szxiangdi'),
                10:this.$t('objFill.xulijiesuan'),
            },
        }
    },created(){
      let date = new Date(),
      y = date.getFullYear(),
      m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1,
      d = date.getDate()  < 10 ? "0" + date.getDate() : date.getDate(),
      h = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(),
      min = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(),
      s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
      this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s;
  },methods:{
        CashierInput(){
            this.$forceUpdate()
        },
        jumpPage(path,id,type){
            if(type==1){
                // let routeData = this.$router.resolve({
                //     name: path,
                //     query: { id:id,orderID:this.GetDetail.OrderID,isShow:false}
                // });
                // window.open(routeData.href, "_blank");
                let idStr = '';
                if(this.GetDetail.TCIDList.length>0){
                  idStr = this.GetDetail.TCIDList[0];
                }
                this.$router.push({
                    name: path,
                    query: {  id:idStr,orderID:this.GetDetail.OrderID,isShow:false,blank:'y',tab: this.$t('Operation.Op_registrationList')}
                })
            }else if(type==2){
                // let routeData = this.$router.resolve({
                //     name: path,
                //     query: { starTime:this.StartDate,endTime:this.EndDate,EmployeeId:this.EmployeeId}
                // });
                // window.open(routeData.href, "_blank");
                this.$router.push({
                    name: path,
                    query: { starTime:this.StartDate,endTime:this.EndDate,EmployeeId:this.EmployeeId,blank:'y'}
                })
            }
        },
        Financial_post_GetDetail(id){  //获取单据详情
            if(!id) return
            this.loading = true;
            this.apipost('Financial_post_GetDetail',{ID:id}, res => {
                if(res.data.resultCode == 1) {
                    let data= res.data.data;
                    data.DetailList.forEach(x=>{
                        x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
                        x.Money = Math.round(x.Money * 100) / 100
                        x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
                        this.currentMoney += parseFloat(x.OriginalMoney);
                        this.benMoney += parseFloat(x.Money);
                    })
                    this.currentMoney = Math.round(this.currentMoney * 100) / 100;
                    this.benMoney = Math.round(this.benMoney * 100) / 100;
                    this.$emit('headCallBack', this.currentMoney);
                    data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money)
                    data.ChinesePayMoney = this.$commonUtils.changeMoneyToChinese(data.PayMoney)
                    data.PayMoney = this.$commonUtils.addCommas(Math.round(data.PayMoney * 100) / 100)
                    data.Money = this.$commonUtils.addCommas(Math.round(data.Money * 100) / 100)
                    data.AuditSteps.reverse()
                    if(data.IsPublic){
                        let index=data.IsPublic;

                        data.IsPublicName=this.IsPublicObj[index];
                    }

                    this.GetDetail = data;
                    this.loading=false
                    this.$set(this.$data,"GetDetail",data);
                    let status=false;
                    if(this.GetDetail.CashierDetail){
                        this.GetDetail.CashierDetail.forEach(item=>{
                            item.CashierDes=`${item.Alias}-${item.TypeName}-${item.AccountType}-${item.BankNo}`
                        })
                    }

                    if(this.GetDetail.DetailList && this.GetDetail.DetailList.length>0 && this.GetDetail.TCIDList.length>0){
                       this.GetDetail.DetailList.forEach(item=>{
                           if(item.CostTypeName=="地接费(领取)"){
                             status=true;
                           }
                       })
                      if(status){

                      }
                    }
                }
            }, err => {})
        },
    },mounted(){
        const myDate = new Date();
        let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
        let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
        let dateS = myDate.getDate(); //获取当前日(1-31)
        this.StartDate = yaer + '-' + month + '-' + '01';
        this.EndDate = yaer + '-' + month + '-' + dateS;
        let userInfo = this.getLocalStorage();
        this.EmployeeId = userInfo.EmployeeId;
        this.Financial_post_GetDetail(this.ID);
    },watch: {  // 监听参数变化
        GetDetail: {
            handler: function(val, oldVal) {
            },
            deep: true
        },
        ID:{
            handler: function(val, oldVal) {
                this.ID = val
                this.Financial_post_GetDetail(this.ID)
            },
            deep: true
        }
    }
}
</script>