Commit 303ee780 authored by 罗超's avatar 罗超

2

parent 39d549b8
<style scoped> <style scoped>
p{ p {
margin: 0 !important; margin: 0 !important;
} }
.Receipt_box{padding: 15px;color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;}
.Receipt_box tr th{color: #c94052} .Receipt_box {
.Receipt_box.color_blur tr th{color: #106BAF} padding: 15px;
.Receipt_box.color_blur{color: #106BAF;} color: #c94052;
.Receipt_box.color_blur .rb_stit span{display: inline-block;border-bottom: 2px solid #106BAF;padding: 0 20px} width: 100%;
.rb_tit{font-size: 16px;text-align: center} background-color: rgba(245, 245, 245, 1);
.rb_stit{font-size: 14px;text-align: center} position: relative;
.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;border-bottom: 1px solid #000000} .Receipt_box tr th {
.rb_top_row span._r_bold{font-weight: bold} color: #c94052
.rb_top_row ._r_time span{color: #333333} }
._r_mb5{margin-bottom: 5px;}
.Receipt_table{width: 100%;font-size: 14px;text-align: center} .Receipt_box.color_blur tr th {
.Receipt_table th{font-weight: 200 !important} color: #106BAF
.Receipt_table tr th,.Receipt_table tr td{background-color: white} }
._huik_info td{padding: 10px 0;}
._r_mt10{margin-top: 10px;} .Receipt_box.color_blur {
.Receipt_box.color_blur{color: #106BAF;} 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}
.rb_top_row span._r_name._no_border{border: none} .Receipt_box.color_blur .rb_stit span {
._font_size12{font-size: 12px} display: inline-block;
border-bottom: 2px solid #106BAF;
._yewudanju{ padding: 0 20px
position: absolute; }
text-align: right;
font-size: 12px; .rb_tit {
right: 15px; font-size: 16px;
top: 15px; text-align: center
} }
._jump_page{
cursor: pointer; .rb_stit {
text-decoration: underline; font-size: 14px;
} text-align: center
i{ }
font-style: initial;
} .rb_stit span {
.Receipt_box tr th,.Receipt_box *{color: #333333;font-size: 14px !important;} display: inline-block;
.Receipt_box._PrintPageStyle{color: #333333;} border-bottom: 2px solid #C94052;
.Receipt_box._PrintPageStyle .rb_stit span{border-bottom: 2px solid #333333;} padding: 0 20px
.Receipt_box._PrintPageStyle td{height:40px} }
._border_color_r{
border-color: #c94052; .rb_top_row {
} display: flex;
._border_color_b{ justify-content: space-between;
border-color: #106BAF; font-size: 12px;
} }
._border_color_p{
border-color: #333333; .rb_top_row span._r_name {
} color: #333333;
.Receipt_box .rb_stit span._rb_stit_print{ border-bottom: 1px solid #000000
padding: 0; }
padding-top: 10px;
border: none; .rb_top_row span._r_bold {
} font-weight: bold
._explain{ }
margin-top: 10px;
padding: 15px 0px; .rb_top_row ._r_time span {
border-top: 1px dashed #BFBFBF; color: #333333
border-bottom: 1px dashed #BFBFBF; }
background-color: white;
font-size: 12px; ._r_mb5 {
} margin-bottom: 5px;
.font_color_r{ }
color: #c94052 !important;
} .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
}
._huik_info td {
padding: 10px 0;
}
._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
}
.rb_top_row span._r_name._no_border {
border: none
}
._font_size12 {
font-size: 12px
}
._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 tr th,
.Receipt_box * {
color: #333333;
font-size: 14px !important;
}
.Receipt_box._PrintPageStyle {
color: #333333;
}
.Receipt_box._PrintPageStyle .rb_stit span {
border-bottom: 2px solid #333333;
}
.Receipt_box._PrintPageStyle td {
height: 40px
}
._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;
}
._explain {
margin-top: 10px;
padding: 15px 0px;
border-top: 1px dashed #BFBFBF;
border-bottom: 1px dashed #BFBFBF;
background-color: white;
font-size: 12px;
}
.font_color_r {
color: #c94052 !important;
}
</style> </style>
<template v-if="GetDetail.DetailList.length>0" > <template v-if="GetDetail.DetailList.length>0">
<div class="Receipt_box" :class="[GetDetail.Type==1|| GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'> <div class="Receipt_box"
:class="[GetDetail.Type==1|| GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']"
<!-- <p style="font-size:48px;" @click="senCashierDetaildMsg">{{Num}}</p> //测试传值代码 --> :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<p class="rb_stit" style="position:relative"> <!-- <p style="font-size:48px;" @click="senCashierDetaildMsg">{{Num}}</p> //测试传值代码 -->
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span> <p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<!-- <i v-if="name===1">(客户联)</i> --> <p class="rb_stit" style="position:relative">
<i v-if="name===1">{{$t('fnc.yewulian')}}</i> <span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i> <!-- <i v-if="name===1">(客户联)</i> -->
<a class="_yewudanju" style="right:0;top:0"> <i v-if="name===1">{{$t('fnc.yewulian')}}</i>
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span> <i v-if="name===2">{{$t('fnc.kuaijilian')}}</i>
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span> <a class="_yewudanju" style="right:0;top:0">
<span style="border:none;padding:0" class="_jump_page" @click="jumpPageNew"> <span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span>
{{GetDetail.PlatFormName}}</span> <span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span>
</a> <span style="border:none;padding:0" class="_jump_page" @click="jumpPageNew">
</p> {{GetDetail.PlatFormName}}</span>
<p class="_yewudanju" v-if="GetDetail.OrderSource==17&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p> </a>
<!-- <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>
<!-- <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==17&&!isPrintPage">{{$t('hotel.order_Number')}}<span
<!-- <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>--> class="_jump_page"
<!-- <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>--> @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span>
</p>
<p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span >{{printTime}}</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:'无'}}</span></p>-->
<div class="rb_top_row _r_mb5"> <!-- <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 v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.fkuanzhanghu')}}<span class="_r_name _no_border">{{GetDetail.CashierDetail[0].Alias}}</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 style="font-weight: bold"><span class="">{{$t('hotel.hotel_SerialNumber')}}</span>{{GetDetail.FrID}}</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>-->
</div>
<div class="rb_top_row _r_mb5"> <p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span>{{printTime}}</span></p>
<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> <div class="rb_top_row _r_mb5">
<p class="_r_time">{{GetDetail.CreateDate}}</p> <p v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.fkuanzhanghu')}}<span
</div> class="_r_name _no_border">{{GetDetail.CashierDetail[0].Alias}}</span></p>
<div class="rb_top_row _r_mb5" v-if="isPrintPage"> <p style="font-weight: bold"><span class="">{{$t('hotel.hotel_SerialNumber')}}</span>{{GetDetail.FrID}}</p>
<p> </div>
<span class="">{{$t('visa.v_tuanhao')}} <div class="rb_top_row _r_mb5">
<template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0"> <p v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail[0]">{{$t('fnc.skuanzhanghao')}}<span
<span v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" >{{o.TCNUM}}{{o.TCID}}</span> class="_r_name _no_border">{{(GetDetail.CashierDetail[0].BankNo==''||GetDetail.CashierDetail[0].BankNo==null)?GetDetail.CashierDetail[0].Alias:GetDetail.CashierDetail[0].BankNo}}</span>
</template> </p>
<span v-else>{{$t('fnc.no')}}</span> <p class="_r_time">{{GetDetail.CreateDate}}</p>
</span> </div>
</p> <div class="rb_top_row _r_mb5" v-if="isPrintPage">
<span class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span> <p>
</div> <span class="">{{$t('visa.v_tuanhao')}}
<!----> <template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">
<div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4"> <span v-for="(o,ox) in GetDetail.TCIDAndTCNUMList">{{o.TCNUM}}{{o.TCID}}</span>
<p> </template>
<span class="">{{$t('fnc.jpbianhao')}}: <span v-else>{{$t('fnc.no')}}</span>
<span>{{GetDetail.SourceID}}</span> </span>
</span> </p>
</p> <span
<p v-if="(GetDetail.TCIDAndTCNUMList && GetDetail.TCIDAndTCNUMList.length===0) || !GetDetail.TCIDAndTCNUMList"> class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
<span class="">{{$t('advmanager.v_line')}}: </div>
<span>{{GetDetail.LineName?GetDetail.LineName:$t('fnc.jpswxzxianlu')}}</span> <!---->
</span> <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4">
</p> <p>
</div> <span class="">{{$t('fnc.jpbianhao')}}:
<div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==10"> <span>{{GetDetail.SourceID}}</span>
<p> </span>
<span class="">{{$t('tips.qzcpbianhao')}}: </p>
<span>{{GetDetail.SourceID}}</span> <p v-if="(GetDetail.TCIDAndTCNUMList && GetDetail.TCIDAndTCNUMList.length===0) || !GetDetail.TCIDAndTCNUMList">
</span> <span class="">{{$t('advmanager.v_line')}}:
</p> <span>{{GetDetail.LineName?GetDetail.LineName:$t('fnc.jpswxzxianlu')}}</span>
</div> </span>
<div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==9"> </p>
<p> </div>
<span class="">{{$t('fnc.qishu')}}: <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==10">
<span>{{GetDetail.Term}}</span> <p>
</span> <span class="">{{$t('tips.qzcpbianhao')}}:
</p> <span>{{GetDetail.SourceID}}</span>
</div> </span>
<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;"> </p>
<tr> </div>
<th rowspan="2" width="150">{{$t('fnc.fyshuoming')}}</th> <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==9">
<th rowspan="2">{{$t('restaurant.res_Number')}}</th> <p>
<th rowspan="2">{{$t('fnc.danjia')}}</th> <span class="">{{$t('fnc.qishu')}}:
<th rowspan="2" width="100">{{$t('hotel.hotel_Currency')}}</th> <span>{{GetDetail.Term}}</span>
<th colspan="3">{{$t('fnc.jine')}}</th> </span>
<th rowspan="2">{{$t('hotel.hotel_remark')}}</th> </p>
</tr> </div>
<tr> <table class="Receipt_table" border="1"
<th width="88">{{$t('fnc.yuanbi')}}</th> :class="[GetDetail.Type==1|| GetDetail.Type==5?'_border_color_r':'_border_color_b',isPrintPage?'_border_color_p':'']"
<th width="50">{{$t('hotel.hotel_CurrentRate')}}</th> :bordercolor="GetDetail.Type==1|| GetDetail.Type==5?'#c94052':'#106BAF'" style="border-collapse:collapse;">
<th width="88">{{$t('fnc.bweibi')}}</th> <tr>
</tr> <th rowspan="2" width="150">{{$t('fnc.fyshuoming')}}</th>
<template v-if="GetDetail.DetailList&&GetDetail.DetailList.length!==0"> <th rowspan="2">{{$t('restaurant.res_Number')}}</th>
<tr v-for="(item,index) in GetDetail.DetailList" class="_color_b"> <th rowspan="2">{{$t('fnc.danjia')}}</th>
<td height="26px">{{item.CostTypeName}}</td> <th rowspan="2" width="100">{{$t('hotel.hotel_Currency')}}</th>
<td height="26px">{{item.Number}}</td> <th colspan="3">{{$t('fnc.jine')}}</th>
<td height="26px">{{item.UnitPrice}}</td> <th rowspan="2">{{$t('hotel.hotel_remark')}}</th>
<td height="26px">{{item.CurrencyName}}</td> </tr>
<td height="26px">{{item.OriginalMoney}}</td> <tr>
<td height="26px">{{item.Rate}}</td> <th width="88">{{$t('fnc.yuanbi')}}</th>
<td height="26px">{{item.Money}}</td> <th width="50">{{$t('hotel.hotel_CurrentRate')}}</th>
<td height="26px" style="max-width: 120px;">{{item.Remark}}</td> <th width="88">{{$t('fnc.bweibi')}}</th>
</tr> </tr>
</template> <template v-if="GetDetail.DetailList&&GetDetail.DetailList.length!==0">
<tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<2"> <tr v-for="(item,index) in GetDetail.DetailList" class="_color_b">
<td height="26px"></td> <td height="26px">{{item.CostTypeName}}</td>
<td height="26px"></td> <td height="26px">{{item.Number}}</td>
<td height="26px"></td> <td height="26px">{{item.UnitPrice}}</td>
<td height="26px"></td> <td height="26px">{{item.CurrencyName}}</td>
<td height="26px"></td> <td height="26px">{{item.OriginalMoney}}</td>
<td height="26px"></td> <td height="26px">{{item.Rate}}</td>
<td height="26px"></td> <td height="26px">{{item.Money}}</td>
<td height="26px"></td> <td height="26px" style="max-width: 120px;">{{item.Remark}}</td>
</tr> </tr>
<tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<3"> </template>
<td height="26px"></td> <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>
<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> <td height="26px"></td>
<tr v-if="GetDetail.DetailList&&GetDetail.DetailList.length<4"> </tr>
<td height="26px"></td> <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>
<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> <td height="26px"></td>
<tr> </tr>
<td height="26px"></td> <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">{{currentMoney}}</td> <td height="26px"></td>
<td height="26px"></td> <td height="26px"></td>
<td height="26px">{{benMoney}}</td> <td height="26px"></td>
<td height="26px"></td> <td height="26px"></td>
</tr> <td height="26px"></td>
<tr> </tr>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td> <tr>
<td colspan="3" class="_font_size12" >{{GetDetail.OriginalFee}}</td> <td height="26px"></td>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khbweibi')}}</span></td> <td height="26px"></td>
<td colspan="3" class="_font_size12">{{GetDetail.Fee}}</td> <td height="26px"></td>
</tr> <td height="26px"></td>
<tr> <td height="26px">{{currentMoney}}</td>
<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 height="26px"></td>
<td colspan="3" class="_color_b"> <td height="26px">{{benMoney}}</td>
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.ChinesePayMoney==''?$t('fnc.ling'):GetDetail.ChinesePayMoney}}</span> <td height="26px"></td>
<span v-else>{{GetDetail.ChineseMoney==''?$t('fnc.ling'):GetDetail.ChineseMoney}}</span> </tr>
</td> <tr>
<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="1">{{$t('fnc.shouxufei')}}<br /><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td>
<td colspan="3" class="_color_b"> <td colspan="3" class="_font_size12">{{GetDetail.OriginalFee}}</td>
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span> <td colspan="1">{{$t('fnc.shouxufei')}}<br /><span class="_font_size12">{{$t('fnc.khbweibi')}}</span></td>
<span v-else>{{GetDetail.Money}}</span> <td colspan="3" class="_font_size12">{{GetDetail.Fee}}</td>
</td> </tr>
</tr> <tr>
<tr class="_huik_info"> <td class="">{{GetDetail.Type==1|| GetDetail.Type==5?$t('fnc.skjine'):$t('fnc.fkjine')}}<br /><span
<td class="">{{$t('fnc.huikuanren')}}</td> class="_font_size12">{{$t('fnc.daxie')}}</span></td>
<td colspan="2"> <td colspan="3" class="_color_b">
<span class="_color_b _font_size12">{{GetDetail.RemitterName}}</span> <span
</td> v-if="GetDetail.Is_Cashier===1">{{GetDetail.ChinesePayMoney==''?$t('fnc.ling'):GetDetail.ChinesePayMoney}}</span>
<td class="">{{$t('fnc.jylshuihao')}}</td> <span v-else>{{GetDetail.ChineseMoney==''?$t('fnc.ling'):GetDetail.ChineseMoney}}</span>
<td colspan="2"> </td>
<span class="_color_b _font_size12">{{GetDetail.AccountNumber}}</span> <td class="">{{GetDetail.Type==1|| GetDetail.Type==5?$t('fnc.skjine'):$t('fnc.fkjine')}}<br /><span
</td> class="_font_size12">{{$t('fnc.xiaoxie')}}</span></td>
<td class="">{{$t('fnc.hkshijian')}}</td> <td colspan="3" class="_color_b">
<td colspan="3"> <span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
<span class="_color_b _font_size12">{{GetDetail.TradeDate}}</span> <span v-else>{{GetDetail.Money}}</span>
</td> </td>
</tr> </tr>
<tr v-if="isPrintPage"> <tr class="_huik_info">
<td height="26px">{{$t('hotel.hotel_remark')}}</td> <td class="">{{$t('fnc.huikuanren')}}</td>
<td height="26px" colspan="7"> <td colspan="2">
{{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} <span class="_color_b _font_size12">{{GetDetail.RemitterName}}</span>
</td> </td>
</tr> <td class="">{{$t('fnc.jylshuihao')}}</td>
</table> <td colspan="2">
<div class="rb_top_row _r_mt10" v-if="GetDetail.AuditSteps&&GetDetail.AuditSteps.length"> <span class="_color_b _font_size12">{{GetDetail.AccountNumber}}</span>
<template v-for="(item,index) in GetDetail.AuditSteps"> </td>
<p> <td class="">{{$t('fnc.hkshijian')}}</td>
<span class="font_color_r">{{item.AuditDescription}}</span> <td colspan="3">
<template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0"> <span class="_color_b _font_size12">{{GetDetail.TradeDate}}</span>
<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> </td>
</template> </tr>
</p> <tr v-if="isPrintPage">
</template> <td height="26px">{{$t('hotel.hotel_remark')}}</td>
</div> <td height="26px" colspan="7">
<!--<div class="_explain" v-if="isPrintPage">--> {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}}
<!--<p>附加说明:</p>--> </td>
<!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">--> </tr>
<!--<tr v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" class="_fujiashuoming_tr">--> </table>
<!--<td :colspan="4" v-if="GetDetail.Is_Merge===1">单据号:{{o.FinanceId}}</td>--> <div class="rb_top_row _r_mt10" v-if="GetDetail.AuditSteps&&GetDetail.AuditSteps.length">
<!--<td :colspan="4">{{o.TCNUM}}({{o.TCID}})</td>--> <template v-for="(item,index) in GetDetail.AuditSteps">
<!--<td> <span class=" _font_bold">查看团队</span> </td>--> <p>
<!--<td> <span class=" _font_bold">查看报名</span> </td>--> <span class="font_color_r">{{item.AuditDescription}}</span>
<!--<td> <span class=" _font_bold">团队收支</span> </td>--> <template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0">
<!--<td v-if="OrderSource==9&&GetDetail.SourceID>0"> <span class=" _font_bold">国内票务</span> </td>--> <span class="_r_name _no_border" v-for="(s,si) in item.AuditRecordList"
<!--<td v-else-if="OrderSource==10&&GetDetail.SourceID>0"> <span class=" _font_bold">签证收支</span> </td>--> v-if="((item.Sort==0) || (item.Sort!=0&&s.AuditStatus==2))&&item.AuditRecordList.length"
<!--<td v-else-if="OrderSource==4&&GetDetail.SourceID>0"> <span class=" _font_bold">机票收支</span> </td>--> :class="item.Sort==0&&!isPrintPage?'_jump_page':''"
<!--</tr>--> @click="item.Sort==0&&!isPrintPage?jumpPage('enrollTotal',GetDetail.TCID,2):''">{{s.AuditName}} </span>
<!--</table>--> </template>
<!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-else-if="OrderSource==10">--> </p>
<!--<tr class="_fujiashuoming_tr">--> </template>
<!--<td>签证产品编号:<span class="_jump_page _font_bold">{{GetDetail.SourceID}}</span></td>--> </div>
<!--<td > <span class=" _font_bold">签证收支</span></td>--> <!--<div class="_explain" v-if="isPrintPage">-->
<!--</tr>--> <!--<p>附加说明:</p>-->
<!--</table>--> <!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">-->
<!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-else-if="OrderSource==9">--> <!--<tr v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" class="_fujiashuoming_tr">-->
<!--<tr class="_fujiashuoming_tr">--> <!--<td :colspan="4" v-if="GetDetail.Is_Merge===1">单据号:{{o.FinanceId}}</td>-->
<!--<td>期数:{{GetDetail.Term}}</td>--> <!--<td :colspan="4">{{o.TCNUM}}({{o.TCID}})</td>-->
<!--<td > <span class=" _font_bold">国内票务</span></td>--> <!--<td> <span class=" _font_bold">查看团队</span> </td>-->
<!--</tr>--> <!--<td> <span class=" _font_bold">查看报名</span> </td>-->
<!--</table>--> <!--<td> <span class=" _font_bold">团队收支</span> </td>-->
<!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-else-if="OrderSource==4">--> <!--<td v-if="OrderSource==9&&GetDetail.SourceID>0"> <span class=" _font_bold">国内票务</span> </td>-->
<!--<tr class="_fujiashuoming_tr">--> <!--<td v-else-if="OrderSource==10&&GetDetail.SourceID>0"> <span class=" _font_bold">签证收支</span> </td>-->
<!--<td>机票编号:{{GetDetail.SourceID}}</td>--> <!--<td v-else-if="OrderSource==4&&GetDetail.SourceID>0"> <span class=" _font_bold">机票收支</span> </td>-->
<!--<td > <span class=" _font_bold">机票收支</span></td>--> <!--</tr>-->
<!--</tr>--> <!--</table>-->
<!--</table>--> <!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-else-if="OrderSource==10">-->
<!--<div style="margin-top: 5px">--> <!--<tr class="_fujiashuoming_tr">-->
<!--<p>制单部门:<span class="_font_bold">{{GetDetail.DepartName}}</span></p>--> <!--<td>签证产品编号:<span class="_jump_page _font_bold">{{GetDetail.SourceID}}</span></td>-->
<!--</div>--> <!--<td > <span class=" _font_bold">签证收支</span></td>-->
<!--</div>--> <!--</tr>-->
</div> <!--</table>-->
<!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-else-if="OrderSource==9">-->
<!--<tr class="_fujiashuoming_tr">-->
<!--<td>期数:{{GetDetail.Term}}</td>-->
<!--<td > <span class=" _font_bold">国内票务</span></td>-->
<!--</tr>-->
<!--</table>-->
<!--<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin:10px 0 10px 0;" width="100%" v-else-if="OrderSource==4">-->
<!--<tr class="_fujiashuoming_tr">-->
<!--<td>机票编号:{{GetDetail.SourceID}}</td>-->
<!--<td > <span class=" _font_bold">机票收支</span></td>-->
<!--</tr>-->
<!--</table>-->
<!--<div style="margin-top: 5px">-->
<!--<p>制单部门:<span class="_font_bold">{{GetDetail.DepartName}}</span></p>-->
<!--</div>-->
<!--</div>-->
</div>
</template> </template>
<script> <script>
export default { export default {
props:["ID","width","color","isPrintPage","name","Num","OrderSource"], //接收参数 ID width color isPrintPage props: ["ID", "width", "color", "isPrintPage", "name", "Num", "OrderSource"], //接收参数 ID width color isPrintPage
data(){ data() {
return{ return {
loading: false, loading: false,
EmployeeId:'', EmployeeId: '',
EndDate:'', EndDate: '',
StartDate:'', StartDate: '',
printTime:'', printTime: '',
currentMoney:0, currentMoney: 0,
benMoney:0, benMoney: 0,
GetDetail: {} 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:'报名清单'}
// })
this.OpenNewUrl('/sale/orderStatistics', {
OrderId: this.GetDetail.OrderID
})
} 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'
}
})
} }
},created(){ },
let date = new Date(), Financial_post_GetDetail(id) { //获取单据详情
y = date.getFullYear(), if (!id) return;
m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1, this.loading = true;
d = date.getDate() < 10 ? "0" + date.getDate() : date.getDate(), this.apipost('Financial_post_GetDetail', {
h = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(), ID: id
min = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(), }, res => {
s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); if (res.data.resultCode == 1) {
this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s; let data = res.data.data;
},methods:{ let numberC = 0;
sendMsg(){ let price = 0;
this.$emit('helloPP','1') let rate = 0;
}, data.DetailList.forEach(x => {
jumpPageNew(){ x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100);
this.$router.push({ x.Money = Math.round(x.Money * 100) / 100;
name: 'platOrderquery', x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100;
query: { this.currentMoney += parseFloat(x.OriginalMoney);
platName: this.GetDetail.PlatFormName, this.benMoney += parseFloat(x.Money);
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: '订单详情'}
}) })
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)
}, },
jumpPage(path,id,type){ deep: true
if(type==1){ },
// let routeData = this.$router.resolve({ num: {
// name: path, handler: function (val, oldVal) {},
// query: { id:id,orderID:this.GetDetail.OrderID,isShow:false} deep: true
// }); },
// 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> </script>
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