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
}
.rb_tit {
font-size: 16px;
text-align: center
}
.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;
border-bottom: 1px solid #000000
}
.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
}
._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; position: absolute;
text-align: right; text-align: right;
font-size: 12px; font-size: 12px;
right: 15px; right: 15px;
top: 15px; top: 15px;
} }
._jump_page{
._jump_page {
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
i{
i {
font-style: initial; font-style: initial;
} }
.Receipt_box tr th,.Receipt_box *{color: #333333;font-size: 14px !important;}
.Receipt_box._PrintPageStyle{color: #333333;} .Receipt_box tr th,
.Receipt_box._PrintPageStyle .rb_stit span{border-bottom: 2px solid #333333;} .Receipt_box * {
.Receipt_box._PrintPageStyle td{height:40px} color: #333333;
._border_color_r{ 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: #c94052;
} }
._border_color_b{
._border_color_b {
border-color: #106BAF; border-color: #106BAF;
} }
._border_color_p{
._border_color_p {
border-color: #333333; border-color: #333333;
} }
.Receipt_box .rb_stit span._rb_stit_print{
.Receipt_box .rb_stit span._rb_stit_print {
padding: 0; padding: 0;
padding-top: 10px; padding-top: 10px;
border: none; border: none;
} }
._explain{
._explain {
margin-top: 10px; margin-top: 10px;
padding: 15px 0px; padding: 15px 0px;
border-top: 1px dashed #BFBFBF; border-top: 1px dashed #BFBFBF;
...@@ -66,12 +175,16 @@ ...@@ -66,12 +175,16 @@
background-color: white; background-color: white;
font-size: 12px; font-size: 12px;
} }
.font_color_r{
.font_color_r {
color: #c94052 !important; 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':'']"
:style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<!-- <p style="font-size:48px;" @click="senCashierDetaildMsg">{{Num}}</p> //测试传值代码 --> <!-- <p style="font-size:48px;" @click="senCashierDetaildMsg">{{Num}}</p> //测试传值代码 -->
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p> <p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
...@@ -87,31 +200,38 @@ ...@@ -87,31 +200,38 @@
{{GetDetail.PlatFormName}}</span> {{GetDetail.PlatFormName}}</span>
</a> </a>
</p> </p>
<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> <p class="_yewudanju" v-if="GetDetail.OrderSource==17&&!isPrintPage">{{$t('hotel.order_Number')}}<span
<!-- <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>--> class="_jump_page"
<!-- <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>--> @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</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>--> </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="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> <p class="_yewudanju" v-if="isPrintPage">{{$t('fnc.dayinshijian')}}<span>{{printTime}}</span></p>
<div class="rb_top_row _r_mb5"> <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 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> <p style="font-weight: bold"><span class="">{{$t('hotel.hotel_SerialNumber')}}</span>{{GetDetail.FrID}}</p>
</div> </div>
<div class="rb_top_row _r_mb5"> <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 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> <p class="_r_time">{{GetDetail.CreateDate}}</p>
</div> </div>
<div class="rb_top_row _r_mb5" v-if="isPrintPage"> <div class="rb_top_row _r_mb5" v-if="isPrintPage">
<p> <p>
<span class="">{{$t('visa.v_tuanhao')}} <span class="">{{$t('visa.v_tuanhao')}}
<template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0"> <template v-if="GetDetail.TCIDAndTCNUMList&&GetDetail.TCIDAndTCNUMList.length>0">
<span v-for="(o,ox) in GetDetail.TCIDAndTCNUMList" >{{o.TCNUM}}{{o.TCID}}</span> <span v-for="(o,ox) in GetDetail.TCIDAndTCNUMList">{{o.TCNUM}}{{o.TCID}}</span>
</template> </template>
<span v-else>{{$t('fnc.no')}}</span> <span v-else>{{$t('fnc.no')}}</span>
</span> </span>
</p> </p>
<span class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span> <span
class="">{{$t('hotel.order_Number')}}:<span>{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></span>
</div> </div>
<!----> <!---->
<div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4"> <div class="rb_top_row _r_mb5" v-if="isPrintPage&&OrderSource==4">
...@@ -140,7 +260,9 @@ ...@@ -140,7 +260,9 @@
</span> </span>
</p> </p>
</div> </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;"> <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> <tr>
<th rowspan="2" width="150">{{$t('fnc.fyshuoming')}}</th> <th rowspan="2" width="150">{{$t('fnc.fyshuoming')}}</th>
<th rowspan="2">{{$t('restaurant.res_Number')}}</th> <th rowspan="2">{{$t('restaurant.res_Number')}}</th>
...@@ -207,18 +329,21 @@ ...@@ -207,18 +329,21 @@
<td height="26px"></td> <td height="26px"></td>
</tr> </tr>
<tr> <tr>
<td colspan="1">{{$t('fnc.shouxufei')}}<br/><span class="_font_size12">{{$t('fnc.khyuanbi')}}</span></td> <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="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="1">{{$t('fnc.shouxufei')}}<br /><span class="_font_size12">{{$t('fnc.khbweibi')}}</span></td>
<td colspan="3" class="_font_size12">{{GetDetail.Fee}}</td> <td colspan="3" class="_font_size12">{{GetDetail.Fee}}</td>
</tr> </tr>
<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 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"> <td colspan="3" class="_color_b">
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.ChinesePayMoney==''?$t('fnc.ling'):GetDetail.ChinesePayMoney}}</span> <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> <span v-else>{{GetDetail.ChineseMoney==''?$t('fnc.ling'):GetDetail.ChineseMoney}}</span>
</td> </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 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"> <td colspan="3" class="_color_b">
<span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span> <span v-if="GetDetail.Is_Cashier===1">{{GetDetail.PayMoney}}</span>
<span v-else>{{GetDetail.Money}}</span> <span v-else>{{GetDetail.Money}}</span>
...@@ -250,7 +375,10 @@ ...@@ -250,7 +375,10 @@
<p> <p>
<span class="font_color_r">{{item.AuditDescription}}</span> <span class="font_color_r">{{item.AuditDescription}}</span>
<template v-if="item.AuditRecordList&&item.AuditRecordList.length!=0"> <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> <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> </template>
</p> </p>
</template> </template>
...@@ -294,20 +422,21 @@ ...@@ -294,20 +422,21 @@
</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(){ },
created() {
let date = new Date(), let date = new Date(),
y = date.getFullYear(), y = date.getFullYear(),
m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1, m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1,
...@@ -316,11 +445,12 @@ export default { ...@@ -316,11 +445,12 @@ export default {
min = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(), min = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(),
s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s; this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s;
},methods:{
sendMsg(){
this.$emit('helloPP','1')
}, },
jumpPageNew(){ methods: {
sendMsg() {
this.$emit('helloPP', '1')
},
jumpPageNew() {
this.$router.push({ this.$router.push({
name: 'platOrderquery', name: 'platOrderquery',
query: { query: {
...@@ -332,14 +462,18 @@ export default { ...@@ -332,14 +462,18 @@ export default {
} }
}) })
}, },
jumpFreePage(path,id){ jumpFreePage(path, id) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: { ID: id, blank: 'y', tab: '订单详情'} query: {
ID: id,
blank: 'y',
tab: '订单详情'
}
}) })
}, },
jumpPage(path,id,type){ jumpPage(path, id, type) {
if(type==1){ if (type == 1) {
// let routeData = this.$router.resolve({ // let routeData = this.$router.resolve({
// name: path, // name: path,
// query: { id:id,orderID:this.GetDetail.OrderID,isShow:false} // query: { id:id,orderID:this.GetDetail.OrderID,isShow:false}
...@@ -353,7 +487,10 @@ export default { ...@@ -353,7 +487,10 @@ export default {
// name: path, // name: path,
// query: { id:idStr,orderID:this.GetDetail.OrderID,isShow:false,blank:'y',tab:'报名清单'} // query: { id:idStr,orderID:this.GetDetail.OrderID,isShow:false,blank:'y',tab:'报名清单'}
// }) // })
}else if(type==2){ this.OpenNewUrl('/sale/orderStatistics', {
OrderId: this.GetDetail.OrderID
})
} else if (type == 2) {
// let routeData = this.$router.resolve({ // let routeData = this.$router.resolve({
// name: path, // name: path,
// query: { starTime:this.StartDate,endTime:this.EndDate,EmployeeId:this.EmployeeId} // query: { starTime:this.StartDate,endTime:this.EndDate,EmployeeId:this.EmployeeId}
...@@ -361,20 +498,27 @@ export default { ...@@ -361,20 +498,27 @@ export default {
// window.open(routeData.href, "_blank"); // window.open(routeData.href, "_blank");
this.$router.push({ this.$router.push({
name: path, name: path,
query: { starTime:this.StartDate,endTime:this.EndDate,EmployeeId:this.EmployeeId,blank:'y'} query: {
starTime: this.StartDate,
endTime: this.EndDate,
EmployeeId: this.EmployeeId,
blank: 'y'
}
}) })
} }
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(id) { //获取单据详情
if(!id) return; if (!id) return;
this.loading = true; this.loading = true;
this.apipost('Financial_post_GetDetail',{ID:id}, res => { this.apipost('Financial_post_GetDetail', {
if(res.data.resultCode == 1) { ID: id
let data= res.data.data; }, res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
let numberC = 0; let numberC = 0;
let price = 0; let price = 0;
let rate = 0; let rate = 0;
data.DetailList.forEach(x=>{ data.DetailList.forEach(x => {
x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100); x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100);
x.Money = Math.round(x.Money * 100) / 100; x.Money = Math.round(x.Money * 100) / 100;
x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100; x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100;
...@@ -383,46 +527,47 @@ export default { ...@@ -383,46 +527,47 @@ export default {
}) })
this.currentMoney = Math.round(this.currentMoney * 100) / 100; this.currentMoney = Math.round(this.currentMoney * 100) / 100;
this.benMoney = Math.round(this.benMoney * 100) / 100; this.benMoney = Math.round(this.benMoney * 100) / 100;
let m = data.PayMoney?data.PayMoney:data.Money; let m = data.PayMoney ? data.PayMoney : data.Money;
data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money); data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money);
data.ChinesePayMoney = this.$commonUtils.changeMoneyToChinese(data.PayMoney) data.ChinesePayMoney = this.$commonUtils.changeMoneyToChinese(data.PayMoney)
data.PayMoney = this.$commonUtils.addCommas(Math.round(data.PayMoney * 100) / 100) data.PayMoney = this.$commonUtils.addCommas(Math.round(data.PayMoney * 100) / 100)
data.Money = this.$commonUtils.addCommas(Math.round(data.Money * 100) / 100); data.Money = this.$commonUtils.addCommas(Math.round(data.Money * 100) / 100);
data.AuditSteps.reverse(); data.AuditSteps.reverse();
this.GetDetail = data; this.GetDetail = data;
this.loading=false this.loading = false
this.$set(this.$data,"GetDetail",data); this.$set(this.$data, "GetDetail", data);
} }
}, err => {}) }, err => {})
}, },
},mounted(){ },
mounted() {
const myDate = new Date(); const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????) let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月) let month = myDate.getMonth() + 1; //获取当前月份(0-11,0代表1月)
let dateS = myDate.getDate(); //获取当前日(1-31) let dateS = myDate.getDate(); //获取当前日(1-31)
this.StartDate = yaer + '-' + month + '-' + '01'; this.StartDate = yaer + '-' + month + '-' + '01';
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(this.ID); this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
}, },
watch: { // 监听参数变化
GetDetail: {
handler: function (val, oldVal) {},
deep: true deep: true
}, },
ID:{ ID: {
handler: function(val, oldVal) { handler: function (val, oldVal) {
this.ID = val this.ID = val
this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail(this.ID)
}, },
deep: true deep: true
}, },
num: { num: {
handler: function(val, oldVal) { handler: function (val, oldVal) {},
},
deep: true 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