Commit 9820da26 authored by 华国豪's avatar 华国豪 🙄

1

parents f1f33c31 447180e5
......@@ -117,12 +117,12 @@ export default {
}
},
mounted() {
if (!this.getLocalStorage() && document.URL.indexOf("SupplierLogin")==-1&& document.URL.indexOf("clientConfirm")==-1) {
if (!this.getLocalStorage() && document.URL.indexOf("SupplierLogin")==-1&& document.URL.indexOf("clientConfirm")==-1&& document.URL.indexOf("TravelContractConfirm")==-1) {
this.$router.push({
path: '/login'
})
}else{
if(document.URL.indexOf("clientConfirm")!=-1){
if(document.URL.indexOf("clientConfirm")!=-1||document.URL.indexOf("TravelContractConfirm")!=-1){
localStorage.openMode=0
}else{
......@@ -173,7 +173,7 @@ export default {
}
</script>
<style>
@import "//at.alicdn.com/t/font_635492_jhwh1knmwnd.css";
@import "//at.alicdn.com/t/font_635492_3ih8u0oth65.css";
@import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css";
......
......@@ -646,4 +646,7 @@ vertical-align:middle
border: none;
color: white;
}
.MyInput .el-input--mini .el-input__inner{
height:28px!important;
}
/************************** luochao 重新定义表格样式 END *******************************/
\ No newline at end of file
......@@ -312,6 +312,19 @@
*background-color: #003bb3;
}
.TC-MainContent .disClick {
background-color: #d1d1d1!important;
color: #fff!important;
background-image: none;
border: 1px solid #d1d1d1!important;
}
.TC-MainContent .disClick:hover {
background-color: #d1d1d1 !important;
cursor: default !important;
box-shadow: none !important;
}
</style>
<template>
<div class="TC-MainContent">
......@@ -328,7 +341,7 @@
<span style="color:blue;font-size:14px;"></span>
</span>
<div class="pull-right">
<input type="button" class="btn-warning" @click="submitForm('CtObj')" value="保存" />
<input type="button" class="btn-warning" :class="{'disClick':!isSubmit}" @click="submitForm('CtObj')" value="保存" />
</div>
</div>
<el-form label-width="180px" :model="CtObj" :rules="rules" ref="CtObj">
......@@ -1309,6 +1322,8 @@
ckedIndex: 0,
TripInfo: '',
tripStr: '切换到标准行程录入',
//防止重复提交
isSubmit: true,
};
},
components: {
......@@ -1336,10 +1351,13 @@
},
//提交数据
SaveMsg() {
if (this.isSubmit) {
this.isSubmit = false;
this.apipost(
"travelcontract_post_SetTravelContractService",
this.CtObj,
res => {
this.isSubmit = true;
if (res.data.resultCode == 1) {
this.CtObj.ID = res.data.data;
this.GetData();
......@@ -1350,6 +1368,7 @@
},
err => {}
);
}
},
//提交
submitForm(addMsg) {
......
......@@ -382,6 +382,7 @@
<span v-if="GetDetail.TemplateId==36 || GetDetail.TemplateId==37 || GetDetail.TemplateId==53 ||GetDetail.TemplateId==48 || (GetDetail.TemplateId==43&&GetDetail.IsPublic==4) || (GetDetail.TemplateId==56&&GetDetail.IsPublic==4)" class="sqs" @click="goUrl('Application',GetDetail.FrID)">
申请书{{GetDetail.FApplyForNumber}}下载
</span>
<span v-show="huijiShow" class="_Printing" @click="goPrintPageNew(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">凭证打印</span>
<span class="_Printing" @click="goPrintPage(GetDetail.Type,GetDetail.FrID,GetDetail.Is_Merge,OrderSource)">打印单据</span>
</div>
......@@ -924,6 +925,7 @@ export default {
danjuType: '',
showModel: false,
CostTypeState:false,
huijiShow:false,
}
},components:{
'my-FlowChartModule': myFlowChartModule,
......@@ -946,6 +948,10 @@ export default {
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;
}
},methods:{
GourlCostType(path,num){
this.$router.push({
......@@ -1098,6 +1104,21 @@ export default {
}
},err=>{})
},
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}
});
window.open(routeData.href, "_blank");
}else{
let routeData = this.$router.resolve({
name: 'PrintPageN',
query: { type: type,id:id,Merge:Merge,OrderSource:OrderSource?OrderSource:-1}
});
window.open(routeData.href, "_blank");
}
},
goPrintPage(type,id,Merge,OrderSource){
if(type===1){
// this.$confirm('是否打印客户联?', '提示', {
......
<style>
.Myprint p{margin: 0 !important;}
.Receipt_boxNew{padding: 15px;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;
}
</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">
<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="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$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="">{{$t('tips.jiaoyifangshi')}}</td>
<td height="34px" colspan="7" class="_color_b">
<template v-for="(item,index) in GetDetail.CashierDetail">
<p class=" clearfix"><span class="_bold">{{item.Alias}}-</span><span class="">{{item.TypeName}}-</span><span >{{item.AccountType==""?$t('fnc.no'):item.AccountType}}</span> {{item.BankNo?'-':''}} <span>{{item.BankNo}}</span>{{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 class="22" v-show="!disabled">
<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="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$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="">{{$t('tips.jiaoyifangshi')}}</td>
<td height="34px" colspan="7" class="_color_b">
<template v-for="(item,index) in GetDetail.CashierDetail">
<p class=" clearfix"><span class="_bold">{{item.Alias}}-</span><span class="">{{item.TypeName}}-</span><span >{{item.AccountType==""?$t('fnc.no'):item.AccountType}}</span> {{item.BankNo?'-':''}} <span>{{item.BankNo}}</span>{{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>
</template>
<script>
import { connect } from 'net';
export default {
props:["ID","width","color","isPrintPage","name","OrderSource","disabled"], //接收参数 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:{
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;
console.log("this.GetDetail ",this.GetDetail )
this.loading=false
this.$set(this.$data,"GetDetail",data);
let status=false;
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>
.Myprint p{
margin: 0 !important;
}
.Receipt_boxNew{padding: 15px;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;
}
</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">
<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="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$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 v-show="!disabled">
<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="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$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">
{{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>
</template>
<script>
export default {
props:["ID","width","color","isPrintPage","name","Num","OrderSource","disabled"], //接收参数 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>
......@@ -286,6 +286,22 @@
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="4">
<el-form-item label="凭证费用:">
<el-select filterable v-model='msg.KJCostTypeId' >
<el-option :value="0" label="不限"></el-option>
<el-option v-for="item in GetCostTypeList" :key="item.ID" :value="item.ID" :label="item.Name"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="只查询凭证:">
<el-select filterable v-model='msg.IsSelectKJSetCostType' >
<el-option :value="0" label="否"></el-option>
<el-option :value="1" label="是"></el-option>
</el-select>
</el-form-item>
</el-col> -->
</template>
</el-row>
</el-form>
......@@ -802,6 +818,8 @@ export default {
QStartDate:'',
UpdateBy:'',
IsFormRecPayQuery:'1',
KJCostTypeId:0,
IsSelectKJSetCostType:0,
Sort:'2',
EmployeeId:'',
},
......@@ -1027,6 +1045,8 @@ export default {
if(!this.msg.Conditon)this.msg.Conditon=1;
if(!this.msg.TradeWay)this.msg.TradeWay=0;
if(!this.msg.AccountType)this.msg.AccountType=0;
if(!this.msg.KJCostTypeId)this.msg.KJCostTypeId=0;
if(!this.msg.IsSelectKJSetCostType)this.msg.IsSelectKJSetCostType=0;
this.loading= true;
this.apipost('Financial_post_GetALLPageList',this.msg,res=>{
if(res.data.resultCode == 1) {
......@@ -1075,6 +1095,8 @@ export default {
if(!this.msg.Conditon)this.msg.Conditon=1;
if(!this.msg.TradeWay)this.msg.TradeWay=0;
if(!this.msg.AccountType)this.msg.AccountType=0;
if(!this.msg.KJCostTypeId)this.msg.KJCostTypeId=0;
if(!this.msg.IsSelectKJSetCostType)this.msg.IsSelectKJSetCostType=0;
this.GetLocalFile("Financial_post_DownInOrOut", this.msg,"收支款.xls");
} ,
financeRemove(id){//作废
......@@ -1367,6 +1389,8 @@ export default {
OrderID:this.msg.OrderID==0?'':this.msg.OrderID,
Sort:this.msg.Sort,
EmployeeId:this.msg.EmployeeId,
KJCostTypeId:this.msg.KJCostTypeId==0?'':this.msg.KJCostTypeId,
IsSelectKJSetCostType:this.msg.IsSelectKJSetCostType==0?'':this.msg.IsSelectKJSetCostType,
}
this.msg = msg;
},
......
<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;
}
} */
._PrintPage_box{
position: relative;
}
._PrintPage_box .SetDiv{
position: absolute;
top:10px;
color:#106BAF;
left: -110px;
}
._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)">
<div class="SetDiv">
<span @click="disabled=false">编辑</span>
<span @click="disabled=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in loopNumT">
<my-Bill :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 loopNumN">
<my-RVB-Bill :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'">
<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 "./FinancialModule/FinancialSubmodule/BillModuleNew.vue";
import myrbvBill from "./FinancialModule/FinancialSubmodule/ReceivablesModuleNew.vue";
import myhrBill from "./FinancialModule/FinancialSubmodule/MergeBillModule.vue";
import myGZBill from "./FinancialModule/FinancialSubmodule/GZBillModule.vue";
export default {
data(){
return{
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
}
},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>
......@@ -298,6 +298,18 @@
.TC-MainContent .ql-editor {
min-height: 200px;
}
.TC-MainContent .disClick {
background-color: #d1d1d1!important;
color: #fff!important;
background-image: none;
border: 1px solid #d1d1d1!important;
}
.TC-MainContent .disClick:hover {
background-color: #d1d1d1 !important;
cursor: default !important;
box-shadow: none !important;
}
</style>
<template>
......@@ -312,7 +324,7 @@
单项委托协议
</span>
<div class="pull-right">
<input type="button" class="btn-warning" @click="submitForm('CtObj')" value="保存" />
<input type="button" class="btn-warning" :class="{'disClick':!isSubmit}" @click="submitForm('CtObj')" value="保存" />
</div>
</div>
<el-form label-width="180px" :model="CtObj" :rules="rules" ref="CtObj">
......@@ -1399,6 +1411,8 @@
}
},
//防止重复提交
isSubmit: true,
//大写金额
AmountMoney: ''
......@@ -1417,10 +1431,13 @@
},
//提交数据
SaveMsg() {
if (this.isSubmit) {
this.isSubmit = false;
this.apipost(
"travelcontract_post_SetTravelContractService",
this.CtObj,
res => {
this.isSubmit = true;
if (res.data.resultCode == 1) {
this.CtObj.ID = res.data.data;
this.GetData();
......@@ -1431,6 +1448,7 @@
},
err => {}
);
}
},
//跳转至预览
goUrl() {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1252,7 +1252,7 @@
</el-col>
<el-col :span="4">
<el-form-item :label="$t('system.table_goCity')" prop="DepartureCityId">
<el-select v-model='addMsg.DepartureCityId' :disabled="IsUnion===1" filterable
<el-select v-model='addMsg.DepartureCityId' :disabled="IsUnion===2" filterable
:placeholder="$t('pub.pleaseSel')" @change="addMsg.IsIntermodal=2">
<el-option v-for="item in startCityList" :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
......@@ -1270,7 +1270,7 @@
</el-col>
<el-col :span="4">
<el-form-item :label="$t('salesModule.BackCity')" prop="ReturnArriveCityId">
<el-select v-model='addMsg.ReturnArriveCityId' :disabled="IsUnion===1" filterable
<el-select v-model='addMsg.ReturnArriveCityId' :disabled="IsUnion===2" filterable
:placeholder="$t('pub.pleaseSel')" @change="addMsg.IsReturnIntermodal=2">
<el-option v-for="item in startCityList" :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
......
......@@ -57,7 +57,7 @@
<span>
<em>{{$t('hotel.order_Number')}}</em>
</span>
<el-input class="w135" v-model="msg.tempOrderId" @keyup.native="checkInteger(msg,'tempOrderId')" ></el-input>
<el-input class="w135" v-model="msg.tempOrderId" @keyup.native="checkInteger(msg,'tempOrderId')" maxlength="10" ></el-input>
</li>
<li>
<span>
......@@ -203,7 +203,7 @@
<th width="80">{{$t('Operation.Op_daishou')}}</th>
<th width="60">{{$t('admin.admin_status')}}</th>
<th width="60">{{$t('fnc.khxinxi')}}</th>
<th v-if="userId==1" width="130">{{$t('system.table_operation')}}</th>
<th v-if="isEditOrderCreate==1||userId==1" width="130">{{$t('system.table_operation')}}</th>
</tr>
<tr>
<td v-show="OrderList.length==0" colspan="17" align="center">{{$t('system.content_noData')}}</td>
......@@ -380,7 +380,7 @@
</div>
</div>
</td>
<td :colspan="userId==1?9:8" class="groupTourOrder_tickets" style="height: 20px;cursor: pointer;"
<td :colspan="(isEditOrderCreate==1||userId==1)?9:8" class="groupTourOrder_tickets" style="height: 20px;cursor: pointer;"
@click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>
<div style="white-space: nowrap">{{$t('fnc.skdanju')}}<span v-if="item.financeList.length===0"
......
......@@ -194,11 +194,11 @@ export default {
return {
modeList: [
{
name: "小程序",
name: "APP",
id: 1
},
{
name: "APP",
name: "小程序",
id: 2
}
],
......
......@@ -26,7 +26,9 @@
position: relative;
top: -3px;
}
.ContractManage .el-button+.el-button{
margin-left:0!important;
}
</style>
<template>
......@@ -85,10 +87,10 @@
<el-select v-model="msg.Status" :placeholder="$t('pub.pleaseSel')">
<el-option label="请选择" :value="-1" :key="-1"> </el-option>
<el-option label="草稿" :value="0" :key="0"> </el-option>
<el-option label="已取消" :value="1" :key="1"> </el-option>
<el-option label="已提交" :value="2" :key="2"> </el-option>
<el-option label="已盖章" :value="3" :key="3"> </el-option>
<el-option label="已签字" :value="4" :key="4"> </el-option>
<el-option label="提交审核" :value="1" :key="1"> </el-option>
<el-option label="审核通过" :value="2" :key="2"> </el-option>
<el-option label="驳回" :value="3" :key="3"> </el-option>
<el-option label="取消" :value="4" :key="4"> </el-option>
</el-select>
</span>
</li>
......@@ -116,12 +118,6 @@
</el-dropdown-menu>
</el-dropdown>
</li>
<!-- <li>
<input type="button" @click="goContract('onedayTripContract', 0, '一日游合同')" class="normalBtn" value="一日游合同" />
<input type="button" @click="goContract('DomesticTravelcontract', 0, '境内旅游合同')" class="normalBtn"
value="境内旅游合同" />
<input type="button" @click="goContract('SingleContract', 0, '单项委托合同')" class="normalBtn" value="单项委托合同" />
</li> -->
</ul>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
......@@ -163,7 +159,7 @@
<td>{{ item.CreateByName }}</td>
<td>{{ item.CreateTimeStr }}</td>
<td>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start">
<el-tooltip class="item" effect="dark" content="修改" placement="top-start" v-if="item.Status==0||item.Status==3">
<template v-if="item.CType == 3">
<el-button type="primary" icon="el-icon-edit" circle
@click="goContract('onedayTripContract', item.ID, '一日游合同')"></el-button>
......@@ -182,25 +178,26 @@
<el-button type="warning" icon="iconfont icon-copy" circle @click="CopyContract(item)" style="padding:4px;">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="下载" placement="top-start">
<el-tooltip class="item" effect="dark" content="下载" placement="top-start" v-if="item.Status==2">
<el-button type="success" icon="el-icon-download" circle @click="DownLoadContract(item)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="提交并盖章" placement="top-start">
<el-tooltip class="item" effect="dark" content="提交审核" placement="top-start" v-if="item.Status==0">
<el-button type="info" icon="el-icon-upload2" circle @click="SubmitContract(item)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="复制链接发送给客户" placement="top-start">
<el-button type="info" icon="el-icon-upload2" circle @click="CopyUrl(item)"></el-button>
<el-tooltip class="item" v-if="item.Status==2" effect="dark" content="复制链接发送给客户">
<el-button type="info" icon="iconfont icon-copy-l" circle @click="CopyUrl(item)" style="padding:4px;background-color:#9266f9;border-color:#9266f9;"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="取消" placement="top-start">
<el-tooltip class="item" effect="dark" content="取消" placement="top-start" v-if="item.Status==0">
<el-button type="danger" icon="el-icon-close" circle @click="DeleteContract(item)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="查看" placement="top-start">
<el-button type="danger" icon="iconfont icon-chakan" circle @click="ViewContract(item)" style="padding:4px;"></el-button>
</el-tooltip>
</td>
</tr>
</table>
<!-- 隐藏的复制项 -->
<input type="text" v-model="hidInput" id="copyObj" style="opacity:0">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
......@@ -215,7 +212,6 @@
currentPage: 1,
dataList: [],
loading: false, //页面加载
hidInput:'',
msg: {
T_ContractNum: "", //合同编号
CType: 0, //合同类型
......@@ -259,7 +255,7 @@
that.apipost(
"travelcontract_post_UpdateTravelContractStatusService", {
ID: item.ID,
Status: 2
Status: 1
},
res => {
if (res.data.resultCode == 1) {
......@@ -296,17 +292,14 @@
},
//复制URL
CopyUrl(item){
let Url="";
if(this.isOnline){
Url= window.location.hostname+'#/TravelContractConfirm?ContractId='+item.ID;
}
else{
Url= window.location.hostname+"/8080"+'#/TravelContractConfirm?ContractId='+item.ID;
}
this.hidInput=Url;
let url = document.querySelector('#copyObj');
url.select(); // 选择对象
document.execCommand("Copy");
var oInput = document.createElement('input');
oInput.value = item.Url;
document.body.appendChild(oInput);
oInput.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令
oInput.className = 'oInput';
oInput.style.display='none';
this.Info("复制成功!");
},
//跳转
getImport(command) {
......@@ -356,7 +349,7 @@
this.Confirm("是否取消此合同?", function () {
var msg = {
ID: item.ID,
Status: 1
Status: 4
};
that.apipost(
"travelcontract_post_UpdateTravelContractStatusService",
......@@ -383,6 +376,16 @@
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.dataList.forEach(x=>{
let Url="";
if(this.isOnline()){
Url= window.location.hostname+'/#/TravelContractConfirm?ContractId='+x.ID;
}
else{
Url= window.location.hostname+":8080/"+'#/TravelContractConfirm?ContractId='+x.ID;
}
x.Url=Url;
})
this.total = res.data.data.count;
} else {
this.Error(res.data.message);
......@@ -399,6 +402,17 @@
this.msg.pageIndex = val;
this.getList();
},
ViewContract(item)
{
this.$router.push({
name: "TravelContractView",
query: {
id: item.ID,
blank: "y",
tab: '预览合同'
}
});
},
goContract(path, Id, title) {
var nId = 0;
if (Id && Id > 0) {
......
<style>
.ElectronicAudit .icon-shenhebohui{
color:#fff;
}
.ElectronicAudit .icon-shenhebohui {
color: #fff;
}
.ContractManage .query-box .el-button--primary {
background-color: #fff !important;
color: #e95252 !important;
border-color: #e95252 !important;
}
.ContractManage .query-box .el-button--primary:focus,
.query-box .el-button--primary:hover {
background-color: #fff !important;
color: #e95252 !important;
border-color: #e95252 !important;
}
.ContractManage .query-box .el-button {
border-radius: 16px;
height: 30px;
position: relative;
top: 5px;
}
.ContractManage .query-box .el-button i {
color: #e95252;
}
.ContractManage .query-box .el-button span {
position: relative;
top: -3px;
}
.ContractManage .el-button+.el-button {
margin-left: 0 !important;
}
.newContract .el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #f5f5f5;
}
</style>
<template>
<div class="flexOne ElectronicAudit">
<div class="flexOne newContract">
<el-tabs v-model="activeName" type="card" @tab-click="getSwitch">
<el-tab-pane label="出境游合同" name="1"></el-tab-pane>
<el-tab-pane label="其他合同" name="2"></el-tab-pane>
</el-tabs>
<template v-if="activeName==1">
<div class="ElectronicAudit">
<div class="query-box">
<ul>
<li>
<span>
<em>合同编号</em>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.contractNum" @keyup.native.enter="getList" class="w210"></el-input>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.contractNum" @keyup.native.enter="getList"
class="w210"></el-input>
</span>
</li>
<li>
<span>
<em>产品名称</em>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.productName" @keyup.native.enter="getList" class="w210"></el-input>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.productName" @keyup.native.enter="getList"
class="w210"></el-input>
</span>
</li>
<li>
<span>
<em>订单号</em>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.orderID" @keyup.native.enter="getList" class="w210"></el-input>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.orderID" @keyup.native.enter="getList"
class="w210"></el-input>
</span>
</li>
<li>
<span>
<em>团号</em>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.tcid" @keyup.native.enter="getList" class="w210"></el-input>
<el-input :placeholder="$t('system.ph_in')" v-model="msg.tcid" @keyup.native.enter="getList"
class="w210"></el-input>
</span>
</li>
<li>
......@@ -58,7 +106,7 @@
</li>
</ul>
</div>
<div class="commonContent" v-loading="loading">
<div class="commonContent" v-loading="loadingOut">
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>合同编号</th>
......@@ -70,7 +118,7 @@
<th>状态</th>
<th width="200">操作</th>
</tr>
<tr v-for="item in dataList">
<tr v-for="item in dataListOut">
<td>{{item.contractNum}}</td>
<td>{{item.orderId}}</td>
<td>{{item.tcid}}</td>
......@@ -96,7 +144,8 @@
<el-button type="primary" icon="iconfont icon-shenpi" @click="AuditElec(item,2)" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="驳回" placement="top-start">
<el-button type="danger" v-if="item.auditContract!=3" icon="iconfont icon-shenhebohui" @click="AuditElec(item,3)" circle></el-button>
<el-button type="danger" v-if="item.auditContract!=3" icon="iconfont icon-shenhebohui"
@click="AuditElec(item,3)" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="查看" placement="top-start">
<el-button type="danger" icon="iconfont icon-chakan" @click="goToDetail(item)" circle></el-button>
......@@ -105,30 +154,172 @@
</td>
</tr>
</table>
<div class="noData" v-show="dataList.length<1">
<div class="noData" v-show="dataListOut.length<1">
<i class="iconfont icon-kong" style="font-size:100px;"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
</div>
</div>
</template>
<template v-else>
<div class="ContractManage">
<div class="query-box">
<ul>
<li>
<span><em>合同编号</em>
<el-input class="w210" v-model="msg.T_ContractNum" placeholder="请输入合同编号" @keyup.enter.native="getList">
</el-input>
</span>
</li>
<li>
<span><em>合同类型</em>
<el-select v-model="msg.CType" :placeholder="$t('pub.pleaseSel')">
<el-option label="请选择" :value="0" :key="0"> </el-option>
<el-option label="单向委托合同" :value="1" :key="1"> </el-option>
<el-option label="境内旅游合同" :value="2" :key="2"> </el-option>
<el-option label="一日游合同" :value="3" :key="3"> </el-option>
</el-select>
</span>
</li>
<li>
<span><em>甲方名称</em>
<el-input class="w210" v-model="msg.Tourists_Name" placeholder="请输入客户名称" @keyup.enter.native="getList">
</el-input>
</span>
</li>
<li>
<span><em>客户电话</em>
<el-input class="w210" v-model="msg.Tourists_Tel" placeholder="请输入客户电话" @keyup.enter.native="getList">
</el-input>
</span>
</li>
<li>
<span><em>团号</em>
<el-input class="w210" v-model="msg.C_TCNUM" placeholder="请输入团号" @keyup.enter.native="getList">
</el-input>
</span>
</li>
<li>
<span><em>线路名称</em>
<el-input class="w210" v-model="msg.C_ProductName" placeholder="请输入线路名称" @keyup.enter.native="getList">
</el-input>
</span>
</li>
<li>
<span><em>经办人</em>
<el-input class="w210" v-model="msg.TravelAgency_DealMan" placeholder="请输入经办人"
@keyup.enter.native="getList">
</el-input>
</span>
</li>
<li>
<span><em>合同状态</em>
<el-select v-model="msg.Status" :placeholder="$t('pub.pleaseSel')">
<el-option label="请选择" :value="-1" :key="-1"> </el-option>
<el-option label="待审" :value="1" :key="1"> </el-option>
<el-option label="审核通过" :value="2" :key="2"> </el-option>
<el-option label="驳回" :value="3" :key="3"> </el-option>
</el-select>
</span>
</li>
<li>
<span><em>{{ $t("sm.Date") }}</em>
<el-date-picker v-model="msg.StartDate" class="w135" value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateBefore2"></el-date-picker>
-
<el-date-picker v-model="msg.EndDate" class="w135" value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateAfter2"></el-date-picker>
</span>
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="
getList();
resetPageIndex();
" />
</li>
</ul>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th width="50">编号</th>
<th width="80">合同类型</th>
<th width="100">合同编号</th>
<th width="100">甲方名称</th>
<th width="120">乙方名称</th>
<th width="100">经办人</th>
<th width="100">团号</th>
<th width="150">产品名称</th>
<th width="100">合同状态</th>
<th width="100">创建人</th>
<th width="120">创建时间</th>
<th width="130">操作</th>
</tr>
<tr v-for="(item, index) in dataList" :key="index">
<td>{{ item.ID }}
</td>
<td>
<template v-if="item.CType == 2">
境内旅游合同
</template>
<template v-else-if="item.CType == 3">
一日游合同
</template>
<template v-else-if="item.CType == 1">
单向委托合同
</template>
</td>
<td>{{ item.T_ContractNum }}</td>
<td>{{ item.Tourists_Name }}</td>
<td>{{ item.TravelAgency_Name }}</td>
<td>{{ item.TravelAgency_DealMan }}</td>
<td>{{ item.C_TCNUM }}</td>
<td>{{ item.C_ProductName }}</td>
<td>
<span v-if="item.Status==3" style="color:red;">已驳回</span>
<span v-if="item.Status==1" style="color:blue;">待审核</span>
<span v-if="item.Status==2" style="color:green;">审核通过</span>
</td>
<td>{{ item.CreateByName }}</td>
<td>{{ item.CreateTimeStr }}</td>
<td>
<el-tooltip class="item" effect="dark" content="审核通过" placement="top-start" v-if="item.Status==1">
<el-button type="info" icon="iconfont icon-shenpi" circle @click="SubmitContract(item,2)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="驳回" placement="top-start" v-if="item.Status==1">
<el-button type="info" icon="iconfont icon-shenhebohui" circle @click="SubmitContract(item,3)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="查看" placement="top-start">
<el-button type="danger" icon="iconfont icon-chakan" circle @click="ViewContract(item)"
style="padding:4px;"></el-button>
</el-tooltip>
</td>
</tr>
</table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
</div>
</template>
</div>
</template>
<script>
import moment from 'moment'
export default {
import moment from 'moment'
export default {
data() {
return {
msg: {
contractNum:'',
productName:'',
orderID:'',
tcid:'',
startDate:'',
returnDate:'',
auditContract:''
},
dataList:[],
loading:false,
msgOut: {
contractNum: '',
productName: '',
orderID: '',
tcid: '',
startDate: '',
returnDate: '',
auditContract: ''
},
dataListOut: [],
loadingOut: false,
pickerBeginDateBefore: {
disabledDate: time => {
if (this.msg.returnDate == null) {
......@@ -144,57 +335,175 @@ export default {
let startTime = new Date(this.msg.startDate)
return startTime.getTime() >= time.getTime()
}
},
//切换出境游合同
activeName: '1',
//ContractMange参数
total: 0,
currentPage: 1,
dataList: [],
loading: false, //页面加载
msg: {
T_ContractNum: "", //合同编号
CType: 0, //合同类型
Tourists_Name: "", //客户名称
Tourists_Tel: "", //客户电话
StartDate: "", //开始日期
EndDate: "", //结束日期
Status: -1, //合同状态
pageIndex: 1,
pageSize: 15,
TravelAgency_DealMan: "", //经办人
C_TCNUM: "", //团号
C_ProductName: "", //线路名称
IsAduitPage: 1, //是否是审核页面
},
pickerBeginDateBefore2: {
disabledDate: time => {
if (this.msg.EndDate == null) {
return false;
} else {
let endTime = new Date(this.msg.EndDate);
return endTime.getTime() < time.getTime();
}
}
},
pickerBeginDateAfter2: {
disabledDate: time => {
let startTime = new Date(this.msg.StartDate);
return startTime.getTime() >= time.getTime();
}
}
};
},
methods: {
dateChange(val){
if(val){
this.msg.startDate=val[0];
this.msg.returnDate=val[1];
//切换
getSwitch() {
if (this.active == 1) {
this.getListOutTract();
} else {
this.getList();
}
},
dateChange(val) {
if (val) {
this.msg.startDate = val[0];
this.msg.returnDate = val[1];
}
},
//跳转至详情
goToDetail(item){
goToDetail(item) {
this.$router.push({
name: 'TravelContractDetail',
query: {
TCID: item.tcid,
guestId:item.guestId,
guestId: item.guestId,
orderID: item.orderId,
blank: "y",
}
});
},
getList() {
this.loading=true;
this.apiJavaPost("/api/contract/auditContract",this.msg,res => {
this.loading=false;
getListOutTract() {
this.loadingOut = true;
this.apiJavaPost("/api/contract/auditContract", this.msgOut, res => {
this.loadingOut = false;
if (res.data.resultCode === 1) {
this.dataList = res.data.data;
this.dataListOut = res.data.data;
} else {
this.Error(res.data.message);
}
},null);
}, null);
},
//审核通过或者驳回
AuditElec(item,type){
item.auditContract=type;
this.apiJavaPost("/api/contract/dosaveOrUpdate",item,res => {
AuditElec(item, type) {
item.auditContract = type;
this.apiJavaPost("/api/contract/dosaveOrUpdate", item, res => {
if (res.data.resultCode === 1) {
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
},null);
}, null);
},
getDate(date) {
return moment(date).format("YYYY-MM-DD");
},
//提交并盖章
SubmitContract(item,status) {
var that = this;
var message="审核通过";
if(status==3)
{
message="驳回";
}
this.Confirm("是否【"+message+"】此合同?", function () {
that.apipost(
"travelcontract_post_UpdateTravelContractStatusService", {
ID: item.ID,
Status: status
},
mounted() {
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
});
},
getList() {
this.loading = true;
//获取列表数据
this.apipost(
"travelcontract_get_GetPageListService",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.dataList.forEach(x => {
let Url = "";
if (this.isOnline()) {
Url = window.location.hostname + '/#/TravelContractConfirm?ContractId=' + x.ID;
} else {
Url = window.location.hostname + ":8080/" + '#/TravelContractConfirm?ContractId=' + x.ID;
}
x.Url = Url;
})
this.total = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
resetPageIndex() {
this.msg.pageIndex = 1;
this.currentPage = 1;
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
ViewContract(item) {
this.$router.push({
name: "TravelContractView",
query: {
id: item.ID,
blank: "y",
tab: '预览合同'
}
};
});
},
},
mounted() {
this.getListOutTract();
}
};
</script>
......@@ -333,6 +333,18 @@
background-color: #0044cc;
*background-color: #003bb3;
}
.TC-MainContent .disClick {
background-color: #d1d1d1!important;
color: #fff!important;
background-image: none;
border: 1px solid #d1d1d1!important;
}
.TC-MainContent .disClick:hover {
background-color: #d1d1d1 !important;
cursor: default !important;
box-shadow: none !important;
}
</style>
<template>
......@@ -351,7 +363,7 @@
<span style="color:blue;font-size:14px;"></span>
</span>
<div class="pull-right">
<input type="button" v-if="CtObj.auditContract != 2" class="btn-warning" @click="submitForm('CtObj')"
<input type="button" :class="{'disClick':!isSubmit}" class="btn-warning" @click="submitForm('CtObj')"
value="保存" />
</div>
</div>
......@@ -1192,6 +1204,8 @@
],
ckedIndex: 0,
TripInfo: '',
//防止重复提交
isSubmit: true,
};
},
components: {
......@@ -1205,10 +1219,13 @@
},
//提交数据
SaveMsg() {
if (this.isSubmit) {
this.isSubmit = false;
this.apipost(
"travelcontract_post_SetTravelContractService",
this.CtObj,
res => {
this.isSubmit = true;
if (res.data.resultCode == 1) {
this.CtObj.ID = res.data.data;
this.GetData();
......@@ -1219,6 +1236,7 @@
},
err => {}
);
}
},
//提交
......
......@@ -112,8 +112,6 @@ export default {
Vue.prototype.domainManager = function () {
let domainUrl = '';
domainUrl = "http://192.168.2.214:8082";
domainUrl = "http://192.168.2.65:8025";// 吴春
// domainUrl = "http://192.168.2.16:8083"; // 刘东
let locationName = window.location.hostname;
let javaUrldo="";
......@@ -233,7 +231,7 @@ export default {
//HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) {
if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 && this.$route.name.indexOf('confirmationOrderDownLoad') === -1 && this.$route.name.indexOf('PrintPage') === -1) {
if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 && this.$route.name.indexOf('confirmationOrderDownLoad') === -1 && this.$route.name.indexOf('PrintPage') === -1&& this.$route.name.indexOf('TravelContractConfirm') === -1) {
let previousPathInfo = {
path: this.$route.name,
......@@ -261,6 +259,10 @@ export default {
let TCID=this.$route.query.TCID;
let orderID=this.$route.query.orderID;
this.$router.push({ name: "clientConfirm",query: {TCID:TCID,orderID:orderID}})
}
else if (this.$route.path == "/TravelContractConfirm") {
let ContractId=this.$route.query.ContractId;
this.$router.push({ name: "TravelContractConfirm",query: {ContractId:ContractId}})
} else {
if (!localStorage.userInfo && localStorage.userInfo != "" && this.$route.path.toLowerCase() != "/login") {
this.$router.push({
......
......@@ -56,6 +56,7 @@ export default {
title: '财务打印页面'
},
},
{
path: '/confirmationOrder',
name: 'confirmationOrder',
......@@ -4266,13 +4267,21 @@ export default {
},
},
{
path: '/TravelContractConfirm', //电子合同签名
path: '/TravelContractConfirm', //其他电子合同签名
name: 'TravelContractConfirm',
component: resolve => require(['@/components/TravelContractConfirm'], resolve),
meta: {
title: '电子合同签名'
},
},
{
path: '/TravelContractView', //其他电子合同签名
name: 'TravelContractView',
component: resolve => require(['@/components/TravelContractView'], resolve),
meta: {
title: '电子合同签名'
},
},
{
path: '/TravelContractDetail', //新电子合同详情
name: 'TravelContractDetail',
......@@ -4287,6 +4296,15 @@ export default {
name: 'supplierLogin',
component: supplierLogin
},
{ //财务打印页面
path: '/PrintPageN',
name: 'PrintPageN',
component: resolve => require(['@/components/PrintPageN'], resolve),
meta: {
title: '财务凭证打印页面'
},
},
{
path: '/supplierIndex', //供应商首页
name: 'supplierIndex',
......
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