Commit 858be198 authored by Mac's avatar Mac

1

parent 77879666
<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 class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<el-tooltip class="item" effect="dark" content="追加团款" placement="top">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></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">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</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">
<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>
<span class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
</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('fnc.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="">交易方式</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>
</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="追加团款" placement="top">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip>
<p class="rb_tit" style="font-size: 16px !important;">
<el-input size="small" style="width:auto" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input>
<el-input size="small" style="width:auto" v-model="GetDetail.BranchName" placeholder="请输入"></el-input>
<p class="rb_stit">
<span :class="isPrintPage?'_rb_stit_print':''">
<el-input size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></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">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</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="请输入"></el-input>
</span>
<span class="_r_name" v-show="GetDetail.AccountHolder!=''">
<el-input size="small" style="width:auto" v-model="GetDetail.AccountHolder" placeholder="请输入"></el-input>
</span>
<span v-if="GetDetail.IsPublic">
<el-input size="small" style="width:auto" v-model="GetDetail.IsPublicName" placeholder="请输入"></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="请输入"></el-input>
(<el-input size="small" style="width:auto" v-model="GetDetail.TradeDate" placeholder="请输入"></el-input>)
</span>
<span class="_r_name" v-else>
<el-input size="small" style="width:auto" v-model="GetDetail.AccountNumber" placeholder="请输入"></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="请输入"></el-input>
(<el-input size="small" style="width:auto" v-model="GetDetail.TradeDate" placeholder="请输入"></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="请输入"></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="请输入"></el-input>
(<el-input size="small" style="width:auto" v-model="o.TCID" placeholder="请输入"></el-input>)
</span>
</template>
<span v-else>{{$t('fnc.no')}}</span>
</span>
</p>
<span class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
</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="请输入"></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('fnc.qzcpbianhao')}}:
<span>
<el-input size="small" style="width:auto" v-model="GetDetail.SourceID" placeholder="请输入"></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="请输入"></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="请输入"></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="请输入"></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="">交易方式</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="请输入"></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="请输入"></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>
import { connect } from 'net';
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:'私账',
1:'公账',
2:'人民币现金',
3:'外币现金',
4:'资金池',
5:'平台虚拟账户',
6:'地接虚拟账户',
7:'收支相抵',
10:'虚拟结算',
},
}
},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:'报名清单'}
})
}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>
<style scoped>
p{margin: 0;}
.Receipt_box{color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;margin-top: 15px;}
.Receipt_box tr th{color: #c94052}
.Receipt_box.color_blur tr th{color: #106BAF}
.Receipt_box.color_blur{color: #106BAF;}
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
.rb_tit{font-size: 16px;text-align: center;margin-bottom: 20px;}
.rb_stit{font-size: 14px;text-align: center}
.rb_stit span{display: inline-block;border-bottom: 2px solid #C94052;padding: 0 20px}
.rb_top_row{display: flex;justify-content: space-between;font-size: 12px;}
.rb_top_row span._r_name{color: #333333}
.rb_top_row span._r_bold{font-weight: bold}
.rb_top_row ._r_time span{color: #333333}
._r_mb5{margin-bottom: 5px;}
.Receipt_table{width: 100%;font-size: 14px;text-align: center}
.Receipt_table th{font-weight: 200 !important}
.Receipt_table tr th,.Receipt_table tr td{background-color: white}
._r_mt10{margin-top: 10px;}
.Receipt_box.color_blur{color: #106BAF;}
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px}
._color_b{color: #333333 !important;font-size: 12px}
._font_size12{font-size: 12px !important}
._r_IsPublic{
padding-left: 15px;
}
._guanlian{
font-size: 12px;
color: gray;
}
._guanlian span{
font-size: 14px;
color: #333333;
}
._yewudanju{
position: absolute;
text-align: right;
font-size: 12px;
right: 15px;
top: 15px;
}
._jump_page{
cursor: pointer;
text-decoration: underline;
}
i{
font-style: initial;
}
.Receipt_box._PrintPageStyle tr th{color: #333333}
.Receipt_box._PrintPageStyle{color: #333333;}
.Receipt_box._PrintPageStyle .rb_stit span{border-bottom: 2px solid #333333;}
.Receipt_box._PrintPageStyle{color: #333333;}
.Receipt_box._PrintPageStyle .rb_stit span{border-bottom: 2px solid #333333;}
._border_color_r{
border-color: #c94052;
}
._border_color_b{
border-color: #106BAF;
}
._border_color_p{
border-color: #333333;
}
.Receipt_box .rb_stit span._rb_stit_print{
padding: 0;
padding-top: 10px;
border: none;
}
._sanjiao_{
position: absolute;
top: 0px;
left: 0px;
width: 0px;
height: 0px;
border-top: 20px solid #e73828;
border-bottom: 20px solid transparent;
border-left: 20px solid #e73828;
border-right: 20px solid transparent;
}
._sanjiao_:after{
content: '合';
position: absolute;
top: -15px;
left: -14px;
white-space: nowrap;
color: #FFFFFF;
font-size: 12px;
}
._border_1{
border:1px solid #333;
padding: 15px;
margin-bottom: 20px;
}
</style>
<template v-if="GetDetail&&GetDetail.DetailList.length>0">
<div class="Receipt_box" :class="[GetDetail.Type==1?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<div v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<div class="_sanjiao_"></div>
<p class="rb_tit">{{GetDetail.CompanyName}}</p>
<table class="Receipt_table" border="1" :class="[GetDetail.Type==1?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']" :bordercolor="GetDetail.Type==1?'#c94052':'#106BAF'" style="border-collapse:collapse;">
<tr>
<th rowspan="2">{{$t('system.query_company')}}</th>
<th rowspan="2">{{$t('visa.v_tuanhao')}}</th>
<th rowspan="2">{{$t('fnc.danhao')}}</th>
<th rowspan="2">{{$t('fnc.fyshuoming')}}</th>
<!--<th rowspan="2">数量</th>-->
<!--<th rowspan="2">单 价</th>-->
<th rowspan="2">{{$t('hotel.hotel_Currency')}}</th>
<th colspan="5">{{$t('fnc.jine')}}</th>
<th rowspan="2">{{$t('hotel.hotel_remark')}}</th>
<th rowspan="2">{{$t('fnc.zhidanren')}}</th>
</tr>
<tr>
<th width="88">{{$t('fnc.yuanbi')}}</th>
<th width="50">{{$t('hotel.hotel_CurrentRate')}}</th>
<th width="68">{{$t('fnc.bweibi')}}</th>
<th width="68">到账</th>
<th width="48">手续费</th>
</tr>
<template v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length">
<tr v-for="(item) in GetDetail.MergeDetailList" class="_color_b">
<td height="34px">{{item.BName}}</td>
<td height="34px">
<template v-for="tc in item.TCIDAndTCNUMList">
<p class="_jump_page" @click="jumpPage('productQuery',tc.TCID,1)">
<span v-if="GetDetail.Type==1">{{tc.TCNUM}}</span>
<span v-if="GetDetail.Type==2">{{tc.TCID}}</span>
</p>
</template>
</td>
<td height="34px">{{item.FinanceId}}</td>
<td height="34px">{{item.CostTypeName}}</td>
<!--<td height="34px">{{item.Number}}</td>-->
<!--<td height="34px">{{item.UnitPrice}}</td>-->
<td height="34px">{{item.CurrencyName}}</td>
<td height="34px">{{item.OriginalMoney}}</td>
<td height="34px">{{item.Rate}}</td>
<td height="34px">{{item.Money}}</td>
<td height="34px">{{item.PayMoney}}</td>
<td height="34px">{{item.Fee}}</td>
<td height="34px" style="max-width: 120px;">{{item.Remark}}</td>
<td height="34px">{{item.EmName}}</td>
</tr>
</template>
<tr v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length<2">
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<!--<td height="34px"></td>-->
<!--<td height="34px"></td>-->
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
</tr>
<tr v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length<3">
<td height="34px"></td>
<td height="34px"></td>
<!--<td height="34px"></td>-->
<!--<td height="34px"></td>-->
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
</tr>
<tr v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length<4">
<td height="34px"></td>
<td height="34px"></td>
<!--<td height="34px"></td>-->
<!--<td height="34px"></td>-->
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
</tr>
<!--v-if="GetDetail.MergeBankList&&GetDetail.MergeBankList.length>0"-->
<tr v-if="GetDetail.MergeBankList&&GetDetail.MergeBankList.length>0">
<td height="34px" class="">{{$t('tips.jiaoyifangshi')}}</td>
<td height="34px" colspan="11" class="_color_b">
<template v-for="(item,index) in GetDetail.MergeBankList">
<p class="_fex_cen clearfix"><span class="_bold">{{item.Alias}}-</span><span class="_bank_name">{{item.TypeName}}-</span><span class="_bank_type" :class="item.AccountType=='对私'?'':'_bank_type2'">{{item.AccountType==""?$t('fnc.no'):item.AccountType}}</span> {{item.BankNo?'-':''}} <span>{{item.BankNo}}</span></p>
</template>
</td>
</tr>
<tr v-if="GetDetail.Merge">
<td height="34px" class="">{{$t('fnc.wbzjine')}}<span class="_font_size12"></span></td>
<td height="34px" colspan="4" class="_color_b">{{GetDetail.Merge.WBMoney==''?$t('fnc.ling'):GetDetail.WBChineseMoney}}({{GetDetail.Merge.WBMoney}})</td>
<td height="34px" class="">{{$t('fnc.bwbzjine')}}<span class="_font_size12"></span></td>
<td height="34px" colspan="6" class="_color_b">{{GetDetail.Merge.Money==''?$t('fnc.ling'):GetDetail.ChineseMoney}}({{GetDetail.Merge.Money}})</td>
</tr>
<tr class="_huik_info" v-if="GetDetail.Type==1&&GetDetail.Merge">
<td height="34px" class="">{{$t('fnc.huikuanren')}}</td>
<td height="34px" colspan="4">
<span class="_color_b _font_size12">{{GetDetail.Merge.RemitterNameV2}}</span>
</td>
<td height="34px" class="">{{$t('fnc.hkshijian')}}</td>
<td height="34px" colspan="6">
<span class="_color_b _font_size12">{{GetDetail.Merge.TradeDateV2}}</span>
</td>
</tr>
<tr class="_huik_info" v-else-if="GetDetail.Type!=1&&GetDetail.Merge">
<td height="34px" class="">{{$t('fnc.jiaoyiriqi')}}</td>
<td height="34px" colspan="11">
<span class="_color_b _font_size12">{{GetDetail.Merge.TradeDateV2}}</span>
</td>
</tr>
</table>`
</div>
</div>
<div v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<div class="_sanjiao_"></div>
<p class="rb_tit">
<el-input size="small" style="width:auto" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input>
</p>
<table class="Receipt_table" border="1" :class="[GetDetail.Type==1?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']" :bordercolor="GetDetail.Type==1?'#c94052':'#106BAF'" style="border-collapse:collapse;">
<tr>
<th rowspan="2">{{$t('system.query_company')}}</th>
<th rowspan="2">{{$t('visa.v_tuanhao')}}</th>
<th rowspan="2">{{$t('fnc.danhao')}}</th>
<th rowspan="2">{{$t('fnc.fyshuoming')}}</th>
<!--<th rowspan="2">数量</th>-->
<!--<th rowspan="2">单 价</th>-->
<th rowspan="2">{{$t('hotel.hotel_Currency')}}</th>
<th colspan="5">{{$t('fnc.jine')}}</th>
<th rowspan="2">{{$t('hotel.hotel_remark')}}</th>
<th rowspan="2">{{$t('fnc.zhidanren')}}</th>
</tr>
<tr>
<th width="88">{{$t('fnc.yuanbi')}}</th>
<th width="50">{{$t('hotel.hotel_CurrentRate')}}</th>
<th width="68">{{$t('fnc.bweibi')}}</th>
<th width="68">到账</th>
<th width="48">手续费</th>
</tr>
<template v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length">
<tr v-for="(item) in GetDetail.MergeDetailList" class="_color_b">
<td height="34px">
<el-input size="small" style="width:80px" v-model="item.BName" placeholder="请输入"></el-input>
</td>
<td height="34px">
<template v-for="tc in item.TCIDAndTCNUMList">
<p class="_jump_page">
<el-input v-if="GetDetail.Type==1" size="small" style="width:auto;display:inline-block;width:120px" v-model="tc.TCNUM" placeholder="请输入"></el-input>
<el-input v-if="GetDetail.Type==2" style="display:inline-block;width:120px;" size="small" v-model="tc.TCID" placeholder="请输入"></el-input>
</p>
</template>
</td>
<td height="34px">{{item.FinanceId}}</td>
<td height="34px">
<el-input size="small" style="width:auto;display:inline-block;width:120px" v-model="item.CostTypeName" placeholder="请输入"></el-input>
</td>
<!--<td height="34px">{{item.Number}}</td>-->
<!--<td height="34px">{{item.UnitPrice}}</td>-->
<td height="34px">
<el-input size="small" style="width:80px" v-model="item.CurrencyName" placeholder="请输入"></el-input>
</td>
<td height="34px">{{item.OriginalMoney}}</td>
<td height="34px">{{item.Rate}}</td>
<td height="34px">{{item.Money}}</td>
<td height="34px">{{item.PayMoney}}</td>
<td height="34px">{{item.Fee}}</td>
<td height="34px" style="max-width: 120px;">
<el-input size="small" style="width:auto" v-model="item.Remark" placeholder="请输入"></el-input>
</td>
<td height="34px">{{item.EmName}}</td>
</tr>
</template>
<tr v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length<2">
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<!--<td height="34px"></td>-->
<!--<td height="34px"></td>-->
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
</tr>
<tr v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length<3">
<td height="34px"></td>
<td height="34px"></td>
<!--<td height="34px"></td>-->
<!--<td height="34px"></td>-->
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
</tr>
<tr v-if="GetDetail.MergeDetailList&&GetDetail.MergeDetailList.length<4">
<td height="34px"></td>
<td height="34px"></td>
<!--<td height="34px"></td>-->
<!--<td height="34px"></td>-->
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
<td height="34px"></td>
</tr>
<!--v-if="GetDetail.MergeBankList&&GetDetail.MergeBankList.length>0"-->
<tr v-if="GetDetail.MergeBankList&&GetDetail.MergeBankList.length>0">
<td height="34px" class="">{{$t('tips.jiaoyifangshi')}}</td>
<td height="34px" colspan="11" class="_color_b">
<template v-for="(item,index) in GetDetail.MergeBankList">
<p class="_fex_cen clearfix">
<span class="_bold">
<el-input size="small" style="width:120px" v-model="item.Alias" placeholder="请输入"></el-input>
-
<el-input size="small" style="width:120px" v-model="item.TypeName" placeholder="请输入"></el-input>
-
<el-input size="small" style="width:120px" v-model="item.AccountType" placeholder="请输入"></el-input>
<el-input size="small" style="width:120px" v-model="item.BankNo" placeholder="请输入"></el-input>
</span>
<!-- {{item.Alias}}-</span><span class="_bank_name">{{item.TypeName}}-</span>
<span class="_bank_type" :class="item.AccountType=='对私'?'':'_bank_type2'">
{{item.AccountType==""?$t('fnc.no'):item.AccountType}}</span>
{{item.BankNo?'-':''}} <span>{{item.BankNo}} -->
</p>
</template>
</td>
</tr>
<tr v-if="GetDetail.Merge">
<td height="34px" class="">{{$t('fnc.wbzjine')}}<span class="_font_size12"></span></td>
<td height="34px" colspan="4" class="_color_b">{{GetDetail.Merge.WBMoney==''?$t('fnc.ling'):GetDetail.WBChineseMoney}}({{GetDetail.Merge.WBMoney}})</td>
<td height="34px" class="">{{$t('fnc.bwbzjine')}}<span class="_font_size12"></span></td>
<td height="34px" colspan="6" class="_color_b">{{GetDetail.Merge.Money==''?$t('fnc.ling'):GetDetail.ChineseMoney}}({{GetDetail.Merge.Money}})</td>
</tr>
<tr class="_huik_info" v-if="GetDetail.Type==1&&GetDetail.Merge">
<td height="34px" class="">{{$t('fnc.huikuanren')}}</td>
<td height="34px" colspan="4">
<span class="_color_b _font_size12">{{GetDetail.Merge.RemitterNameV2}}</span>
</td>
<td height="34px" class="">{{$t('fnc.hkshijian')}}</td>
<td height="34px" colspan="6">
<span class="_color_b _font_size12">
<el-input size="small" style="width:auto" v-model="GetDetail.Merge.TradeDateV2" placeholder="请输入"></el-input>
</span>
</td>
</tr>
<tr class="_huik_info" v-else-if="GetDetail.Type!=1&&GetDetail.Merge">
<td height="34px" class="">{{$t('fnc.jiaoyiriqi')}}</td>
<td height="34px" colspan="11">
<span class="_color_b _font_size12">
<el-input size="small" style="width:auto" v-model="GetDetail.Merge.TradeDateV2" placeholder="请输入"></el-input>
</span>
</td>
</tr>
</table>
</div>
</div>
</div>
</template>
<script>
export default {
props:["ID","width","color","isPrintPage","name","disabled","loopNumN"], //接收参数 ID width color
data(){
return{
loading:false,
// GetDetail:{DetailList:null},
EmployeeId:'',
EndDate:'',
StartDate:'',
GetDetail: {},
disabled:true,
}
},methods:{
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");
this.$router.push({
name: path,
query: { id:id,orderID:this.GetDetail.OrderID,isShow:false,blank:'y'}
})
}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
})
data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Merge.Money)
data.WBChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Merge.WBMoney)
data.Money = this.$commonUtils.addCommas(Math.round(data.Money * 100) / 100)
data.Merge.TradeDateV2 = new Date(data.Merge.TradeDateV2).Format('yyyy-MM-dd')
data.AuditSteps.reverse()
this.GetDetail = data;
this.loading=false
this.$set(this.$data,"GetDetail",data);
}
}, 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>
<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-bottom: 2px solid #C94052;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;border-bottom: 1px solid #000000}
.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 ._huik_info td{padding: 10px 0;}
.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 .rb_top_row span._r_name._no_border{border: none}
.Myprint ._font_size12{font-size: 12px}
.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 ._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 .font_color_r{
color: #c94052 !important;
}
.Myprint .el-input.is-disabled .el-input__inner{
background-color: #fff;
border:none;
color: #606266;
cursor: pointer;
}
.Myprint{
position: relative;
}
.Myprint .SetDiv{
position: absolute;
top:10px;
color:#106BAF;
}
.Myprint .SetDiv span{
color:#106BAF;
}
.Myprint .el-input__inner{
padding-left:6px;
}
.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 v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<p class="rb_stit" style="position:relative">
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
<!-- <i v-if="name===1">(客户联)</i> -->
<i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
<a class="_yewudanju" style="right:0;top:0">
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span>
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span>
<span style="border:none;padding:0" class="_jump_page" @click="jumpPageNew">
{{GetDetail.PlatFormName}}</span>
</a>
</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:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==15&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('freeTravelOrderStatiDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==1&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('OpHotelOrderDetail',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==3&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('scenOrderDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span >{{printTime}}</span></p>
<div class="rb_top_row _r_mb5">
<p v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.fkuanzhanghu')}}<span class="_r_name _no_border">{{GetDetail.CashierDetail[0].Alias}}</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.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.skuanzhanghao')}}<span class="_r_name _no_border">{{(GetDetail.CashierDetail[0].BankNo==''||GetDetail.CashierDetail[0].BankNo==null)?GetDetail.CashierDetail[0].Alias:GetDetail.CashierDetail[0].BankNo}}</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>
<span class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
</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!==0">
<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>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td>
<td colspan="3" class="_font_size12" >{{GetDetail.OriginalFee}}</td>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khbweibi')}}</span></td>
<td colspan="3" class="_font_size12">{{GetDetail.Fee}}</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" class="_color_b">
<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" class="_color_b">
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
<span v-else>{{GetDetail.Money}}</span>
</td>
</tr>
<tr class="_huik_info">
<td class="">{{$t('fnc.huikuanren')}}</td>
<td colspan="2">
<span class="_color_b _font_size12">{{GetDetail.RemitterName}}</span>
</td>
<td class="">{{$t('fnc.jylshuihao')}}</td>
<td colspan="2">
<span class="_color_b _font_size12">{{GetDetail.AccountNumber}}</span>
</td>
<td class="">{{$t('fnc.hkshijian')}}</td>
<td colspan="3">
<span class="_color_b _font_size12">{{GetDetail.TradeDate}}</span>
</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 : '无'}}
</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_r">{{item.AuditDescription}}</span>
<template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0">
<span class="_r_name _no_border" 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 v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<p class="rb_tit" style="font-size: 16px !important;">
<el-input :disabled="disabled" size="small" style="width:135px" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input>
(<el-input :disabled="disabled" size="small" style="width:80px" v-model="GetDetail.BranchName" placeholder="请输入"></el-input>)
</p>
<p class="rb_stit" style="position:relative">
<span :class="isPrintPage?'_rb_stit_print':''">
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input>
</span>
<!-- <i v-if="name===1">(客户联)</i> -->
<i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
<a class="_yewudanju" style="right:0;top:0">
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span>
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span>
<span style="border:none;padding:0" class="_jump_page" @click="jumpPageNew">
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.PlatFormName" placeholder="请输入"></el-input>
</span>
</a>
</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:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==15&&!isPrintPage">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('freeTravelOrderStatiDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==1&&!isPrintPage">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('OpHotelOrderDetail',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="GetDetail.OrderSource==3&&!isPrintPage">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpFreePage('scenOrderDetails',GetDetail.OrderID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>
<p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}:<span >{{printTime}}</span></p>
<div class="rb_top_row _r_mb5">
<p v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.fkuanzhanghu')}}:
<span class="_r_name _no_border">
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.CashierDetail[0].Alias" placeholder="请输入"></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.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.skuanzhanghao')}}:
<span class="_r_name _no_border">
<el-input v-if="GetDetail.CashierDetail[0].BankNo==''||GetDetail.CashierDetail[0].BankNo==null" :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.CashierDetail[0].Alias" placeholder="请输入"></el-input>
<el-input v-else :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.CashierDetail[0].BankNo" placeholder="请输入"></el-input>
</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 :disabled="disabled" size="small" style="width:135px" v-model="o.TCNUM" placeholder="请输入"></el-input>
(<el-input :disabled="disabled" size="small" style="width:40px" v-model="o.TCID" placeholder="请输入"></el-input>)
</span>
</template>
<span v-else>{{$t('fnc.no')}}</span>
</span>
</p>
<span class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
</div>
<div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4">
<p>
<span class="">{{$t('fnc.jpbianhao')}}:
<span>
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.SourceID" placeholder="请输入"></el-input>
</span>
</span>
</p>
<p v-if="(GetDetail.TCIDAndTCNUMList && GetDetail.TCIDAndTCNUMList.length===0) || !GetDetail.TCIDAndTCNUMList">
<span class="">{{$t('advmanager.v_line')}}:
<span>
<el-input v-if="GetDetail.LineName" :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.LineName" placeholder="请输入"></el-input>
<span v-else>{{$t('fnc.jpswxzxianlu')}}</span>
</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>
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.Term" placeholder="请输入"></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!==0">
<tr v-for="(item,index) in GetDetail.DetailList" class="_color_b">
<td height="26px">
<el-input :disabled="disabled" size="small" style="width:auto" v-model="item.CostTypeName" placeholder="请输入"></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 :disabled="disabled" size="small" style="width:auto" v-model="item.Remark" placeholder="请输入"></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>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td>
<td colspan="3" class="_font_size12" >{{GetDetail.OriginalFee}}</td>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khbweibi')}}</span></td>
<td colspan="3" class="_font_size12">{{GetDetail.Fee}}</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" class="_color_b">
<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" class="_color_b">
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
<span v-else>{{GetDetail.Money}}</span>
</td>
</tr>
<tr class="_huik_info">
<td class="">{{$t('fnc.huikuanren')}}</td>
<td colspan="2">
<span class="_color_b _font_size12">{{GetDetail.RemitterName}}</span>
</td>
<td class="">{{$t('fnc.jylshuihao')}}</td>
<td colspan="2">
<span class="_color_b _font_size12">{{GetDetail.AccountNumber}}</span>
</td>
<td class="">{{$t('fnc.hkshijian')}}</td>
<td colspan="3">
<span class="_color_b _font_size12">{{GetDetail.TradeDate}}</span>
</td>
</tr>
<tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td>
<td height="26px" colspan="7">
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark" placeholder="请输入"></el-input>
<!-- {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} -->
</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_r">{{item.AuditDescription}}</span>
<template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0">
<span class="_r_name _no_border" 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","Num","OrderSource","disabled","loopNumN"], //接收参数 ID width color isPrintPage
data(){
return{
loading: false,
EmployeeId:'',
EndDate:'',
StartDate:'',
printTime:'',
currentMoney:0,
benMoney:0,
GetDetail: {},
}
},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:{
sendMsg(){
this.$emit('helloPP','1')
},
jumpPageNew(){
this.$router.push({
name: 'platOrderquery',
query: {
platName: this.GetDetail.PlatFormName,
TradeWay: this.GetDetail.OrderTradeWay,
PlatformAccount: this.GetDetail.PlatformAccountId,
blank: 'y',
tab: '平台订单查询'
}
})
},
jumpFreePage(path,id){
this.$router.push({
name: path,
query: { ID: id, blank: 'y', tab: '订单详情'}
})
},
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:'报名清单'}
})
}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;
let numberC = 0;
let price = 0;
let rate = 0;
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;
let m = data.PayMoney?data.PayMoney:data.Money;
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();
this.GetDetail = data;
this.loading=false
this.$set(this.$data,"GetDetail",data);
}
}, 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
},
num: {
handler: function(val, oldVal) {
},
deep: true
},
}
}
</script>
<style>
.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:100%;
height:auto;
padding:15px 0;
background-color: #fff;
}
.CapitalDetail .Ca_title{
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_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;}
.myCapital{
border:1px solid #333;
}
</style>
<template>
<div class="CapitalDetail">
<div class="11" v-show="disabled">
<div v-for="(val,index) in loopNumN" :key="index" style="margin-bottom:20px">
<div class="myCapital">
<div>
<div class="Ca_title">{{dataList.CompanyName}}</div>
<div class="Ca_t2">{{dataList.FinanceName}}
<span v-if="index===0">{{$t('fnc.yewulian')}}</span>
<span v-if="index===1">{{$t('fnc.kuaijilian')}}</span>
</div>
<div class="clearfix collection_Order">
<div>
<span>{{$t('hotel.hotel_SerialNumber')}}</span><span class="Ca_comSize">{{dataList.FrID}}</span>
<div class="Co_oderRight">
<span>{{$t('fnc.zhibiao')}}</span><span class="Ca_comSize">{{dataList.CreateDate}}</span>
</div>
</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>
<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>
<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>
</div>
<div class="22" v-show="!disabled">
<div v-for="(val,index) in loopNumN" :key="index" style="margin-bottom:20px">
<div class="myCapital">
<div class="Ca_leftOrder">
<div class="Ca_title">
<el-input size="small" style="width:auto" v-model="dataList.CompanyName" placeholder="请输入"></el-input>
</div>
<div class="Ca_t2">
<el-input size="small" style="width:auto" v-model="dataList.FinanceName" placeholder="请输入"></el-input>
<span v-if="index===0">{{$t('fnc.yewulian')}}</span>
<span v-if="index===1">{{$t('fnc.kuaijilian')}}</span>
</div>
<div class="clearfix collection_Order">
<div>
<span>{{$t('hotel.hotel_SerialNumber')}}:</span><span class="Ca_comSize">{{dataList.FrID}}</span>
<div class="Co_oderRight">
<span>{{$t('fnc.zhibiao')}}:</span><span class="Ca_comSize">{{dataList.CreateDate}}</span>
</div>
</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">
<el-input size="small" style="width:auto" v-model="item.AllotDate" placeholder="请输入"></el-input>
</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>
<el-input size="small" style="width:auto" v-model="item.TypeName" placeholder="请输入"></el-input>
</td>
<td>
<div class="Ca_AccountInfo">
<el-input size="small" style="width:auto" v-model="item.Alias" placeholder="请输入"></el-input>
-
<el-input size="small" style="width:auto" v-model="item.AccountType" placeholder="请输入"></el-input>
-
<el-input size="small" style="width:auto" v-model="item.BankNo" placeholder="请输入"></el-input>
</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">
<el-input size="small" style="width:auto" v-model="item.Description" placeholder="请输入"></el-input>
</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>
<el-input size="small" style="width:auto" v-model="item.TypeName" placeholder="请输入"></el-input>
</td>
<td>
<div class="Ca_AccountInfo">
<el-input size="small" style="width:auto" v-model="item.Alias" placeholder="请输入"></el-input>
-
<el-input size="small" style="width:auto" v-model="item.AccountType" placeholder="请输入"></el-input>
-
<el-input size="small" style="width:auto" v-model="item.BankNo" placeholder="请输入"></el-input>
</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">
<el-input size="small" style="width:auto" v-model="item.Description" placeholder="请输入"></el-input>
</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>
</div>
</div>
</template>
<script>
export default {
props:["ID","width","color","isPrintPage","name","disabled","loopNumN","disabled","loopNumN"], //接收参数 ID width color
data(){
return {
msg:{
ID:0
},
imageOptions:{
navbar:false,
title:false
},
dataList:[],
images:[],
tableShow:false,
AuditListData:{
AuditList:[]
},
bossID:null,
GetDetail:{
AuditSteps:[]
},
endDate: '',
}
},
created(){
let userinfo = this.getLocalStorage();
this.bossID = userinfo.EmployeeId;
},
methods:{
goPrintPageNew(type,id,Merge,OrderSource){
if(type===1){
let routeData = this.$router.resolve({
name: '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({
name: '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(id){
if(!id){
return;
}
this.apipost('Financial_get_GetFundTransfer',{ID:id}, 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');
},
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.ID = this.$route.query.id;
this.getList(this.ID);
}
}
</script>
<style scoped>
@import "../css/cssReset.css";
@media print{
._none_print{display:none}
}
......@@ -383,7 +385,7 @@
申请书{{GetDetail.FApplyForNumber}}下载
</span>
<span v-show="huijiShow" class="_Printing" @click="goPrintPageNew(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">凭证打印</span>
<span v-show="GetDetail.AccountantMergeDetailList && GetDetail.AccountantMergeDetailList.length>0" class="_Printing" @click="goPrintPage2(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">会计合并打印</span>
<!-- <span v-show="GetDetail.AccountantMergeDetailList && GetDetail.AccountantMergeDetailList.length>0" class="_Printing" @click="goPrintPage2(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">会计合并打印</span>-->
<span class="_Printing" @click="goPrintPage(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">打印单据</span>
</div>
......@@ -427,15 +429,15 @@
</td>
<td @click="jumpPage('TravelControlList',o.TCNUM,1)"> <span class="_jump_page _font_bold">查看团队</span> </td>
<td @click="jumpPage('RegistrationList',o.TCID,7)"> <span class="_jump_page _font_bold">查看报名</span> </td>
<td v-if="qjGroupId==userInfo.RB_Group_id || TeamShouZhi" @click="GetDetail.TCIDAndTCNUMList.length==1?jumpPage('TeamBalancePayment',o.TCID,5):jumpPage('TeamBalancePayment',o.TCID,6)"> <span class="_jump_page _font_bold">团队收支</span> </td>
<td v-if="qjGroupId==userInfo.Group_Id || TeamShouZhi" @click="GetDetail.TCIDAndTCNUMList.length==1?jumpPage('TeamBalancePayment',o.TCID,5):jumpPage('TeamBalancePayment',o.TCID,6)"> <span class="_jump_page _font_bold">团队收支</span> </td>
<td v-if="OrderSource==9&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,2)"> <span class="_jump_page _font_bold">国内票务</span> </td>
<td v-else-if="OrderSource==10&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,3)"> <span class="_jump_page _font_bold">签证收支</span> </td>
<td v-else-if="OrderSource==4&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,4)"> <span class="_jump_page _font_bold">机票收支</span> </td>
<td v-if="GetDetail.TemplateId === 43 || GetDetail.TemplateId === 48 || GetDetail.TemplateId === 53|| GetDetail.TemplateId === 56
|| GetDetail.TemplateId === 49 || GetDetail.TemplateId === 50 || GetDetail.TemplateId === 51|| GetDetail.TemplateId === 52
|| GetDetail.TemplateId === 54 || GetDetail.TemplateId === 55 || GetDetail.TemplateId === 57|| GetDetail.TemplateId === 58 || GetDetail.TemplateId === 98 || GetDetail.TemplateId === 99
|| GetDetail.IsShowPlanUrl === 1 && (qjGroupId==userInfo.RB_Group_id || F_Disbursement_Schedule)" @click="jumpPlanPage('leaderReimbursement',o.TCID)"> <span class="_jump_page _font_bold">用款计划</span> </td>
<td v-if="GetDetail.IsShowPlanUrl === 1 && (qjGroupId==userInfo.RB_Group_id || F_Disbursement_Schedule)" @click="jumpPlanPage('leaderPay2',o.TCID)"> <span class="_jump_page _font_bold">领队报账</span> </td>
|| GetDetail.IsShowPlanUrl === 1 && (qjGroupId==userInfo.Group_Id || F_Disbursement_Schedule)" @click="jumpPlanPage('leaderReimbursement',o.TCID)"> <span class="_jump_page _font_bold">用款计划</span> </td>
<td v-if="GetDetail.IsShowPlanUrl === 1 && (qjGroupId==userInfo.Group_Id || F_Disbursement_Schedule)" @click="jumpPlanPage('leaderPay2',o.TCID)"> <span class="_jump_page _font_bold">领队报账</span> </td>
<td v-if="GetDetail.TemplateId === 49 || GetDetail.TemplateId === 50 || GetDetail.TemplateId === 57 || GetDetail.TemplateId === 58" @click="jumpCheZiPage('BusApportionManagement',o.TCID)"> <span class="_jump_page _font_bold">车资分摊</span> </td>
</tr>
</table>
......@@ -872,6 +874,9 @@
import huijiBill from "../components/huijiBill.vue";
import czBillModule from "../components/czBillModule.vue";
import {UploadSelfFile} from '../../../api/common/common'
export default {
data(){
return{
......@@ -974,11 +979,11 @@
this.ID = this.$route.query.id;
this.pageIndex = this.$route.query.pageIndex;
let userinfo = this.getLocalStorage();
this.bossID = userinfo.EmployeeId;
let ActionMenuCode=userinfo.ActionMenuCode;
if(ActionMenuCode.indexOf('F_Update_KJCostType')!=-1){
this.huijiShow=true;
}
this.bossID = userinfo.Id;
// let ActionMenuCode=userinfo.ActionMenuCode;
// if(ActionMenuCode.indexOf('F_Update_KJCostType')!=-1){
// this.huijiShow=true;
// }
},
methods:{
GetAuth() {
......@@ -1195,13 +1200,13 @@
goPrintPageNew(type,id,Merge,OrderSource){
if(type===1){
let routeData = this.$router.resolve({
name: 'PrintPageN',
path: '/financial/financalDocument/PrintPageN',
query: { type: type,id:id,isKehu:0,Merge:Merge,OrderSource:OrderSource?OrderSource:-1}
});
window.open(routeData.href, "_blank");
}else{
let routeData = this.$router.resolve({
name: 'PrintPageN',
path: '/financial/financalDocument/PrintPageN',
query: { type: type,id:id,Merge:Merge,OrderSource:OrderSource?OrderSource:-1}
});
window.open(routeData.href, "_blank");
......@@ -1224,31 +1229,15 @@
},
goPrintPage(type,id,Merge,OrderSource){
if(type===1){
// this.$confirm('是否打印客户联?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// let routeData = this.$router.resolve({
// name: 'PrintPage',
// query: { type: type,id:id,isKehu:1}
// });
// window.open(routeData.href, "_blank");
// }).catch(() => {
// let routeData = this.$router.resolve({
// name: 'PrintPage',
// query: { type: type,id:id,isKehu:0}
// });
// window.open(routeData.href, "_blank");
// });
let routeData = this.$router.resolve({
name: 'PrintPage',
path: '/financial/financalDocument/PrintPage',
query: { type: type,id:id,isKehu:0,Merge:Merge,OrderSource:OrderSource?OrderSource:-1}
});
window.open(routeData.href, "_blank");
}else{
let routeData = this.$router.resolve({
name: 'PrintPage',
path: '/financial/financalDocument/PrintPage',
query: { type: type,id:id,Merge:Merge,OrderSource:OrderSource?OrderSource:-1}
});
window.open(routeData.href, "_blank");
......@@ -1389,12 +1378,12 @@
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => {
UploadSelfFile('Temporary', file.file, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Type:fileTypeNumber,
Content: x.data.FilePath,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
Content: x.FileUrl,
Url:x.FileUrl,
});
this.$message.success('上传成功');
});
......@@ -1460,6 +1449,7 @@
},
showImg(obj, type){
let isExsit=false
console.log(this.images)
this.images.forEach(x=>{
if(x==obj)
isExsit=true
......
<style scoped>
._PrintPage{
width: 100%;
background-color: white;
position: absolute;
padding-top: 20px;
}
._PrintPage_box{
width: 1000px;
margin: 0 auto;
padding: 0 !important;
}
._border_1{
border: 1px solid #333333;
margin-bottom:30px;
/* page-break-after: always; */
}
/* @media print {
._PrintPage{
margin-left:-145px;
}
} */
</style>
<template v-loading="loading">
<div class="_PrintPage">
<div class="_PrintPage_box">
<template v-if="type==='2'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumT">
<my-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill>
</div>
</template>
<template v-else-if="type==='1'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumN">
<my-RVB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill>
</div>
</template>
<template v-if="type==='7'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumT">
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill>
</div>
</template>
<template v-if="Merge==='1'">
<div class="_border_1" v-for="(item,index) in loopNumN">
<my-HB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill>
</div>
</template>
</div>
</div>
</template>
<script>
import myBill from "../components/BillModule.vue";
import myrbvBill from "../components/ReceivablesModule.vue";
import myhrBill from "../components/MergeBillModule.vue";
import myGZBill from "../components/GZBillModule.vue";
export default {
data(){
return{
loading:true,
id:null,
type:null,
isKehu:null,
widthSon:"100%",
colorSon:"#ffffff",
num:0,
loopNumN:this.$route.query.isKehu==='1'?3:2,
loopNumT:2,
Merge:null,
OrderSource:-1
}
},components:{
'my-Bill': myBill,
'my-RVB-Bill':myrbvBill,
'my-HB-Bill':myhrBill,
'my-GZ-Bill': myGZBill
},methods:{
numAdd(){
this.num = this.num + 1
}
},mounted(){
},created(){
this.id = this.$route.query.id;
this.type = this.$route.query.type;
this.isKehu = this.$route.query.isKehu;
this.Merge = this.$route.query.Merge;
this.OrderSource = this.$route.query.OrderSource;
}
}
</script>
<style scoped>
._PrintPage{
width: 100%;
background-color: white;
position: absolute;
padding-top: 20px;
}
._PrintPage_box{
width: 1000px;
margin: 0 auto;
padding: 0 !important;
}
/* ._border_1{
border: 1px solid #333333;
margin-bottom:30px;
} */
/* @media print {
._PrintPage{
margin-left:-145px;
}
} */
._PrintPage_box{
position: relative;
}
._PrintPage_box .SetDiv{
position: absolute;
top:10px;
color:#106BAF;
left: -190px;
}
._PrintPage_box .SetDiv span{
color:#106BAF;
cursor: pointer;
}
</style>
<template v-loading="loading">
<div class="_PrintPage">
<div class="_PrintPage_box">
<template v-if="type==='2'&&(Merge==='0' || Merge===null || (Merge==='1' && hedan==1)) ">
<div class="SetDiv">
<span v-if="Merge==='1' " @click="goUrl(1)">切换</span>
<span @click="disabled=false">编辑</span>
<span @click="disabled=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in 1">
<my-Bill :loopNumN="loopNumN" :disabled.sysc="disabled" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill>
</div>
</template>
<template v-else-if="type==='1'&&(Merge==='0'||Merge===null)">
<div class="SetDiv">
<span @click="disabled1=false">编辑</span>
<span @click="disabled1=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in 1">
<my-RVB-Bill :loopNumN="loopNumN" :disabled.sysc="disabled1" v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill>
</div>
</template>
<template v-else-if="type==='1'&&(Merge==='1'&&hedan==1)">
<div class="SetDiv">
<span v-if="Merge==='1' " @click="goUrl(1)">切换</span>
<span @click="disabled1=false">编辑</span>
<span @click="disabled1=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in 1">
<my-RVB-Bill :loopNumN="loopNumN" :disabled.sysc="disabled1" v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill>
</div>
</template>
<template v-if="type==='7'&&(Merge==='0'||Merge===null)">
<div class="_border_1" v-for="(item,index) in loopNumT">
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill>
</div>
</template>
<template v-if="(Merge==='1' && hedan==2)">
<div class="SetDiv">
<span @click="goUrl(2)">切换</span>
<span @click="disabled2=false">编辑</span>
<span @click="disabled2=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in 1">
<my-HB-Bill :loopNumN="loopNumN" :disabled.sysc="disabled2" v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill>
</div>
</template>
<template v-if="type=='4' && CapitalState">
<div class="SetDiv">
<span @click="disabled3=false">编辑</span>
<span @click="disabled3=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in 1">
<my-Capital :loopNumN="loopNumN" :disabled.sysc="disabled3" v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-Capital>
</div>
</template>
</div>
</div>
</template>
<script>
import myBill from "../components/BillModuleNew.vue";
import myrbvBill from "../components/ReceivablesModuleNew.vue";
import myhrBill from "../components/MergeBillModuleNew.vue";
import myGZBill from "../components/GZBillModule.vue";
import myCapital from "../components/myCapital.vue";
export default {
data(){
return{
disabled3:true,
disabled2:true,
disabled1:true,
disabled:true,
loading:true,
id:null,
type:null,
isKehu:null,
widthSon:"100%",
colorSon:"#ffffff",
num:0,
loopNumN:this.$route.query.isKehu==='1'?3:2,
loopNumT:2,
Merge:null,
OrderSource:-1,
CapitalState:false,
hedan:1,
}
},components:{
'my-Bill': myBill,
'my-RVB-Bill':myrbvBill,
'my-HB-Bill':myhrBill,
'my-GZ-Bill': myGZBill,
'my-Capital':myCapital,
},methods:{
numAdd(){
this.num = this.num + 1
},
goUrl(num){
let hedan;
if(num==1){
hedan=2;
}else{
hedan=1;
}
if(this.type===1){
let routeData = this.$router.resolve({
name: 'PrintPageN',
query: { hedan:hedan,type: this.type,id:this.id,isKehu:0,Merge:this.Merge,OrderSource:this.OrderSource?this.OrderSource:-1}
});
window.open(routeData.href, "_blank");
}else{
let routeData = this.$router.resolve({
name: 'PrintPageN',
query: { hedan:hedan,type: this.type,id:this.id,Merge:this.Merge,OrderSource:this.OrderSource?this.OrderSource:-1}
});
window.open(routeData.href, "_blank");
}
},
},mounted(){
},created(){
this.id = this.$route.query.id;
this.type = this.$route.query.type;
this.isKehu = this.$route.query.isKehu;
if(this.$route.query.hedan){
this.hedan=this.$route.query.hedan;
}
this.Merge = this.$route.query.Merge;
this.OrderSource = this.$route.query.OrderSource;
if(this.$route.query.Capital){
this.CapitalState=true;
}
}
}
</script>
......@@ -284,8 +284,9 @@ const routes = [{
{
path: "/financial/financalDocument/FinancialDocumentsDetail", //我的财务单据详情
component: () =>
import("pages/financial/financalDocument/FinancialDocumentsDetail.vue")
import("pages/financial/financalDocument/FinancialDocumentsDetail.vue")
},
{
path: "/test", //API测试
component: () =>
......@@ -296,6 +297,16 @@ const routes = [{
// Always leave this as last one,
// but you can also remove it
{
path: "/financial/financalDocument/PrintPage", //财务单据打印
component: () =>
import("pages/financial/financalDocument/PrintPage.vue")
},
{
path: "/financial/financalDocument/PrintPageN", //财务凭证打印
component: () =>
import("pages/financial/financalDocument/PrintPageN.vue")
},
{
path: "*",
component: () =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment