Commit 556ef1ae authored by 黄奎's avatar 黄奎

页面修改

parent a9463102
<style> <style>
.BusExportTitle{ .BusExportTitle {
width:1000px; width: 1000px;
margin:0 auto; margin: 0 auto;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
margin-top:10px; margin-top: 10px;
font-size:16px; font-size: 16px;
} }
.Bus_Content{
width:100%; .Bus_Content {
height:auto; width: 100%;
margin:auto; height: auto;
position: absolute; margin: auto;
} position: absolute;
.Bus_detailTable { }
width: 1000px;
font-size: 12px;
color: #333;
margin: 10px auto;
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
}
.Bus_detailTable td { .Bus_detailTable {
border: 1px solid #d1d1d1; width: 1000px;
padding:0 10px; font-size: 12px;
height:32px; color: #333;
font-size:16px; margin: 10px auto;
} border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
}
.Bus_detailTable td {
border: 1px solid #d1d1d1;
padding: 0 10px;
height: 32px;
font-size: 16px;
}
.Bus_detailTable th {
background-color: #fff;
border: 1px solid #d1d1d1;
font-size: 16px;
font-weight: bold;
height: 32px;
}
.txLeft {
text-align: left;
}
.txRight {
text-align: right;
}
.fontBold {
font-weight: bold;
}
.totalTabal td {
height: 33px;
}
.excelBtn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.Bus_detailTable th {
background-color: #fff;
border: 1px solid #d1d1d1;
font-size:16px;
font-weight:bold;
height:32px;
}
.txLeft{
text-align: left;
}
.txRight{
text-align: right;
}
.fontBold{
font-weight:bold;
}
.totalTabal td{
height:33px;
}
.excelBtn{
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
</style> </style>
<template> <template>
<div class="Bus_Content"> <div class="Bus_Content">
<div class="BusExportTitle"> <div class="BusExportTitle">
{{Year}}{{Month}}月公社车账 {{Year}}{{Month}}月公社车账
<input type="button" style="float:right;" @click="downLoadExcel" class="excelBtn" value="下载excel"/> <input type="button" style="float:right;" @click="downLoadExcel" class="excelBtn" value="下载excel" />
</div>
<table class="Bus_detailTable">
<thead>
<tr>
<th>做账主体</th>
<th width="200">团号</th>
<th>单号</th>
<th>车配号</th>
<th style="width:20%">{{msg.CurrName}}</th>
<th style="width:20%">人民币</th>
</tr>
</thead>
<tbody v-for="item in dataList">
<tr v-for="subItem in item.RBobj">
<td class="txLeft">{{subItem.BranchName}}</td>
<td class="txLeft">{{subItem.TCNUM}}({{subItem.TCID}})</td>
<td class="txRight">{{subItem.FrID}}</td>
<td class="txRight">{{subItem.CarDistribution}}</td>
<td class="txRight">{{subItem.sMoney}}</td>
<td class="txRight">{{subItem.Money}}</td>
</tr>
<tr>
<td colspan="4" class="txRight">{{item.BranchName}}应付总金额:</td>
<td class="txRight">{{item.SumOMoney}}</td>
<td class="txRight">{{item.SumMoney}}</td>
</tr>
<tr style="height:12px">
<td colspan="6" style="background:#999; height:12px;"></td>
</tr>
</tbody>
</table>
<table class="Bus_detailTable totalTabal" style="border:0px;page-break-before:always;margin:0 auto;">
<tr>
<td class="txRight" colspan="4">
<div style="width:275px;text-align:right;float:right;">{{Year}}{{Month}}月应付公社车资:</div>
</td>
<td class="txRight fontBold" style="width:20%">{{TotalJan}}</td>
<td class="txRight fontBold" style="width:20%">{{TotalCn}}</td>
</tr>
<tr v-for="item in dataList">
<td class="txRight" colspan="4">{{item.BranchName}}应付总金额:</td>
<td class="txRight fontBold">{{item.SumOMoney}}</td>
<td class="txRight fontBold">{{item.SumMoney}}</td>
</tr>
<tr>
<td colspan="3" style="padding-top:30px;border:0px;">总经理:</td>
<td colspan="1" style="padding-top:30px;border:0px;width:25%">部门主管:</td>
<td colspan="1" style="padding-top:30px;border:0px;float:right">制表:</td>
<td style="padding-top:30px;border:0px;"></td>
</tr>
<tr>
<td colspan="6" style="padding-top:10px;border:0px;">
<div style="style=float:right;margin-right:30%;text-align:right;">制表日期:</div>
</td>
</tr>
</table>
<table class="Bus_detailTable" v-for="item in dataList" style="margin: 5px auto;border:0px;page-break-before:always;">
<tr>
<th>做账主体</th>
<th width="250">团号</th>
<th>单号</th>
<th>车配号</th>
<th style="width:20%">{{msg.CurrName}}</th>
<th style="width:19%">人民币</th>
</tr>
<tr v-for="subItem in item.RBobj">
<td class="txLeft">{{subItem.BranchName}}</td>
<td class="txLeft">{{subItem.TCNUM}}({{subItem.TCID}})</td>
<td class="txRight">{{subItem.FrID}}</td>
<td class="txRight">{{subItem.CarDistribution}}</td>
<td class="txRight">{{subItem.sMoney}}</td>
<td class="txRight">{{subItem.Money}}</td>
</tr>
<tr>
<td colspan="4" class="txRight">{{item.BranchName}}应付总金额:</td>
<td class="txRight">{{item.SumOMoney}}</td>
<td class="txRight">{{item.SumMoney}}</td>
</tr>
</table>
</div> </div>
<table class="Bus_detailTable">
<thead>
<tr>
<th>做账主体</th>
<th width="200">团号</th>
<th>单号</th>
<th>车配号</th>
<th style="width:20%">{{msg.CurrName}}</th>
<th style="width:20%">人民币</th>
</tr>
</thead>
<tbody v-for="item in dataList">
<tr v-for="subItem in item.RBobj">
<td class="txLeft">{{subItem.BranchName}}</td>
<td class="txLeft">{{subItem.TCNUM}}({{subItem.TCID}})</td>
<td class="txRight">{{subItem.FrID}}</td>
<td class="txRight">{{subItem.CarDistribution}}</td>
<td class="txRight">{{subItem.sMoney}}</td>
<td class="txRight">{{subItem.Money}}</td>
</tr>
<tr>
<td colspan="4" class="txRight">{{item.BranchName}}应付总金额:</td>
<td class="txRight">{{item.SumOMoney}}</td>
<td class="txRight">{{item.SumMoney}}</td>
</tr>
<tr style="height:12px">
<td colspan="6" style="background:#999; height:12px;"></td>
</tr>
</tbody>
</table>
<table class="Bus_detailTable totalTabal" style="border:0px;page-break-before:always;margin:0 auto;">
<tr>
<td class="txRight" colspan="4">
<div style="width:275px;text-align:right;float:right;">{{Year}}{{Month}}月应付公社车资:</div>
</td>
<td class="txRight fontBold" style="width:20%">{{TotalJan}}</td>
<td class="txRight fontBold" style="width:20%">{{TotalCn}}</td>
</tr>
<tr v-for="item in dataList">
<td class="txRight" colspan="4">{{item.BranchName}}应付总金额:</td>
<td class="txRight fontBold">{{item.SumOMoney}}</td>
<td class="txRight fontBold">{{item.SumMoney}}</td>
</tr>
<tr>
<td colspan="3" style="padding-top:30px;border:0px;">总经理:</td>
<td colspan="1" style="padding-top:30px;border:0px;width:25%">部门主管:</td>
<td colspan="1" style="padding-top:30px;border:0px;float:right">制表:</td>
<td style="padding-top:30px;border:0px;"></td>
</tr>
<tr>
<td colspan="6" style="padding-top:10px;border:0px;">
<div style="style=float:right;margin-right:30%;text-align:right;">制表日期:</div>
</td>
</tr>
</table>
<table class="Bus_detailTable" v-for="(item,index) in dataList"
style="margin: 5px auto;border:0px;page-break-before:always;">
<tr >
<th>做账主体</th>
<th width="250">团号</th>
<th>单号</th>
<th>车配号</th>
<th style="width:20%">{{msg.CurrName}}</th>
<th style="width:19%">人民币</th>
</tr>
<tr v-for="subItem in item.RBobj">
<td class="txLeft">{{subItem.BranchName}}</td>
<td class="txLeft">{{subItem.TCNUM}}({{subItem.TCID}})</td>
<td class="txRight">{{subItem.FrID}}</td>
<td class="txRight">{{subItem.CarDistribution}}</td>
<td class="txRight">{{subItem.sMoney}}</td>
<td class="txRight">{{subItem.Money}}</td>
</tr>
<tr>
<td colspan="4" class="txRight">{{item.BranchName}}应付总金额:</td>
<td class="txRight">{{item.SumOMoney}}</td>
<td class="txRight">{{item.SumMoney}}</td>
</tr>
</table>
</div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
msg:{ msg: {
Month:'', Month: '',
MakeStartDate:'', MakeStartDate: '',
MakeEndDate:'', MakeEndDate: '',
CurrType:'', CurrType: '',
CurrName:'', CurrName: '',
ClientId:'' ClientId: ''
}, },
Year:'', Year: '',
Month:'', Month: '',
dataList:[], dataList: [],
TotalJan:'', TotalJan: '',
TotalCn:'', TotalCn: '',
downList: "", downList: "",
} }
}, },
mounted() { mounted() {
this.msg.Month = this.$route.query.Month; this.msg.Month = this.$route.query.Month;
this.msg.MakeStartDate = this.$route.query.MakeStartDate; this.msg.MakeStartDate = this.$route.query.MakeStartDate;
this.msg.MakeEndDate = this.$route.query.MakeEndDate; this.msg.MakeEndDate = this.$route.query.MakeEndDate;
this.msg.CurrType = this.$route.query.CurrType; this.msg.CurrType = this.$route.query.CurrType;
this.msg.ClientId=this.$route.query.ClientId; this.msg.ClientId = this.$route.query.ClientId;
this.Year = this.msg.Month.split('-')[0]; this.Year = this.msg.Month.split('-')[0];
this.Month = this.msg.Month.split('-')[1]; this.Month = this.msg.Month.split('-')[1];
this.getList();
this.getList();
}, },
methods: { methods: {
getList(){ getList() {
this.apipost('bus_get_CarfareApportionExport',this.msg, res => { this.apipost('bus_get_CarfareApportionExport', this.msg, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data.RObj; this.dataList = res.data.data.RObj;
this.msg.CurrName = res.data.data.CurrName; this.msg.CurrName = res.data.data.CurrName;
this.TotalJan = res.data.data.TotalStatistics.TSumOMoney; this.TotalJan = res.data.data.TotalStatistics.TSumOMoney;
this.TotalCn = res.data.data.TotalStatistics.TSumMoney; this.TotalCn = res.data.data.TotalStatistics.TSumMoney;
}else{ } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
//点击下载 //点击下载
downLoadExcel(){ downLoadExcel() {
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
this.GetLocalFile( this.GetLocalFile(
"bus_get_CarfareApportionExcelExport", "bus_get_CarfareApportionExcelExport",
msg, msg,
this.Year+'年'+this.Month+'月'+'公社车账.xls' this.Year + '年' + this.Month + '月' + '公社车账.xls'
); );
} }
}, },
} }
</script> </script>
\ No newline at end of file
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<el-submenu v-for="(item,index) in items" :index="String(index+1)" :key='index'> <el-submenu v-for="(item,index) in items" :index="String(index+1)" :key='index'>
<template slot="title" class="left-nav"> <template slot="title" class="left-nav">
<i :class="[fontPub,item.MenuStyleIcon]" class="big-icon"></i> <i :class="[fontPub,item.MenuStyleIcon]" class="big-icon"></i>
<!-- <span>{{item.MenuName}}</span> -->
</template> </template>
<el-menu-item-group class="my_maxheight"> <el-menu-item-group class="my_maxheight">
<span slot="title">{{item.MenuName}}</span> <span slot="title">{{item.MenuName}}</span>
...@@ -25,26 +24,10 @@ ...@@ -25,26 +24,10 @@
</el-menu-item-group> </el-menu-item-group>
</el-submenu> </el-submenu>
</el-menu> </el-menu>
<!-- <ul>
<li v-for="(item,index) in items" class="menuItem_level1">
<p @click="showToggle(item.MenuId)" class="parentBox">
<i :class="[fontPub,item.MenuStyleIcon]"></i>
{{item.MenuName}}
<i class="iconfont icon-arrow-right small"></i>
</p>
<ul class="liDiv" >
<li v-for="subItem in item.childerns" class="childBox" @click="goUrl(subItem.MenuUrl)"><i :class="[fontPub,subItem.MenuStyleIcon]" :style="{background:subItem.MenuStyleColor}"></i><br/>{{subItem.MenuName}}</li>
</ul>
</li>
</ul> -->
</div> </div>
</div> </div>
</div> </div>
<div class="flexParent" v-if="openMode==1"> <div class="flexParent" v-if="openMode==1">
<!-- <div class="resource-ttop" style="font-family:PingFangSC-Semibold" v-if="rootName!=''">
{{rootName}}<i class="iconfont icon-weibiaoti102"></i>{{parentName}}<i class="iconfont icon-weibiaoti102"></i><span class="active">{{currentName}}</span>
</div> -->
<div class="nav-tabs-box" @contextmenu.prevent="showRightMenu" :style="{width:`${navWidth}px`}"> <div class="nav-tabs-box" @contextmenu.prevent="showRightMenu" :style="{width:`${navWidth}px`}">
<el-tabs v-if='tabs && tabs.length>0' v-model="currentTabName" style="margin-left: 120px;" :closable="tabs.length>1" type="card" @edit="handleTabsEdit"> <el-tabs v-if='tabs && tabs.length>0' v-model="currentTabName" style="margin-left: 120px;" :closable="tabs.length>1" type="card" @edit="handleTabsEdit">
<el-tab-pane :key="i" v-for="(item,i) in tabs" :label="item.title" :name="item.name+'_'+i"> <el-tab-pane :key="i" v-for="(item,i) in tabs" :label="item.title" :name="item.name+'_'+i">
...@@ -163,34 +146,10 @@ export default { ...@@ -163,34 +146,10 @@ export default {
this.reloadpage() this.reloadpage()
}); });
this.navWidth=document.querySelector(".flexParent").offsetWidth; this.navWidth=document.querySelector(".flexParent").offsetWidth;
// this.MsgBus.$on('forEachLoc', ()=> {
// let obj = {}
// let LocNavTab = JSON.parse(window.localStorage.navTabs);
// let navTab = JSON.parse(window.localStorage.navTabs);
// let navTabSortR = [];
// for (let i = navTab.length-1; i>=0; i--) {
// navTabSortR.push(navTab[i]);
// }
// navTabSortR = navTabSortR.reduce(function(item, next) { //根据MD5Sign数组对象去重
// obj[next.name] ? '' : obj[next.name] = true && item.push(next);
// return item;
// }, []);
// let navTabSortA = [];
// for (let i = navTabSortR.length-1; i>=0; i--) {
// navTabSortA.push(navTabSortR[i]);
// }
// if (LocNavTab.length !== navTabSortA.length) {
// this.tabs = navTabSortA;
// this.currentTabName = this.tabs[this.tabs.length-1].name + '_' + (this.tabs.length-1);
// this.currentTag = this.tabs[this.tabs.length-1];
// }
// });
if(this.openMode==1){ if(this.openMode==1){
if(localStorage['navTabs']){ if(localStorage['navTabs']){
this.tabs=JSON.parse(localStorage['navTabs']) this.tabs=JSON.parse(localStorage['navTabs'])
// this.tabs.forEach(x=>{
// x.comp=this.mapObj(x.path,x.name).comp
// })
} }
} }
this.getMenu() this.getMenu()
...@@ -962,7 +921,7 @@ export default { ...@@ -962,7 +921,7 @@ export default {
window.localStorage.navTabs=JSON.stringify(this.tabs) window.localStorage.navTabs=JSON.stringify(this.tabs)
}, },
created(){ created(){
// document.title = this.$route.meta.title ? this.$route.meta.title + '-四川和平国际旅行社' : '四川和平国际旅行社'
} }
}; };
</script> </script>
This source diff could not be displayed because it is too large. You can view the blob instead.
<template> <template>
<div> <div>
<template> <template>
<span <span v-if="ConfirmationDetails.OperationState === -1 || ConfirmationDetails.OperationState === 2"
v-if="ConfirmationDetails.OperationState === -1 || ConfirmationDetails.OperationState === 2" class="confirmationOrderNormalBtn" @click="SetOrderConfirmation()">申请</span>
class="confirmationOrderNormalBtn" <span v-if="ConfirmationDetails.OperationState === 1" class="confirmationOrderNormalBtn"
@click="SetOrderConfirmation()" @click="toPDF('旅游行程确认件')">下载PDF</span>
>申请</span> <span class="confirmationOrderNormalBtn confirmationOrderNormalBtn2"
<!-- v-if="ConfirmationDetails.OperationState === 1" --> v-if="ConfirmationDetails.OperationState === 2" @click="outerVisible = true">修改账户</span>
<span
v-if="ConfirmationDetails.OperationState === 1"
class="confirmationOrderNormalBtn"
@click="toPDF('旅游行程确认件')"
>下载PDF</span>
<span class="confirmationOrderNormalBtn confirmationOrderNormalBtn2" v-if="ConfirmationDetails.OperationState === 2" @click="outerVisible = true">修改账户</span>
</template> </template>
<div style="width: 800px; margin: 10px auto 0;" id="pdfDom"> <div style="width: 800px; margin: 10px auto 0;" id="pdfDom">
<div <div v-if="ConfirmationDetails.ConfirmationContent" v-html="ConfirmationDetails.ConfirmationContent"></div>
v-if="ConfirmationDetails.ConfirmationContent"
v-html="ConfirmationDetails.ConfirmationContent"
></div>
<div class="confirmationOrder" v-else> <div class="confirmationOrder" v-else>
<p class="f22 center" style="margin: 20px 0 0 0;">{{list.CompanyTitle}}</p> <p class="f22 center" style="margin: 20px 0 0 0;">{{list.CompanyTitle}}</p>
<p class="f22 center">旅游行程确认件</p> <p class="f22 center">旅游行程确认件</p>
<p <p class="f14" style="text-indent: 36px;">
class="f14" 经甲乙双方友好协商,现甲方委托乙方承办甲方所组旅游团队/散客的游览事宜,达成如下协议,烦请仔细审核,核实无误后烦请签字盖章回传确认件(本确认件现为业务合同,传真件具有同等法律效力)。</p>
style="text-indent: 36px;"
>经甲乙双方友好协商,现甲方委托乙方承办甲方所组旅游团队/散客的游览事宜,达成如下协议,烦请仔细审核,核实无误后烦请签字盖章回传确认件(本确认件现为业务合同,传真件具有同等法律效力)。</p>
<table class="confirmationOrderTable" border="0" cellspacing="0" cellpadding="0"> <table class="confirmationOrderTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="20" rowspan="3">甲方</td> <td width="20" rowspan="3">甲方</td>
<td width="170" rowspan="3">委托社名称及许可证号</td> <td width="170" rowspan="3">委托社名称及许可证号</td>
<td width="160" rowspan="3"> <td width="160" rowspan="3">
<!-- <input v-if='!isPrint' class="wp100" v-model="list.CustomerName" type="text">
<span v-if='isPrint'>{{list.CustomerName}}</span>-->
<span class="__input" :contenteditable="true">{{list.CustomerName}}</span> <span class="__input" :contenteditable="true">{{list.CustomerName}}</span>
</td> </td>
<td width="80" rowspan="3">经办人</td> <td width="80" rowspan="3">经办人</td>
...@@ -86,9 +73,8 @@ ...@@ -86,9 +73,8 @@
<td colspan="4">团号:{{list.TCNUM}}</td> <td colspan="4">团号:{{list.TCNUM}}</td>
</tr> </tr>
<tr> <tr>
<td <td colspan="7">时间:{{list.StartDate}}-{{list.EndDate}}&nbsp;&nbsp;&nbsp;{{list.DayNum}}天{{list.NightNum}}晚
colspan="7" </td>
>时间:{{list.StartDate}}-{{list.EndDate}}&nbsp;&nbsp;&nbsp;{{list.DayNum}}天{{list.NightNum}}晚</td>
</tr> </tr>
<tr> <tr>
<td colspan="3">出境地:{{list.StartCity}}</td> <td colspan="3">出境地:{{list.StartCity}}</td>
...@@ -99,13 +85,13 @@ ...@@ -99,13 +85,13 @@
参团人数: 参团人数:
<span class="__input">{{list.GuestNum}}</span> <span class="__input">{{list.GuestNum}}</span>
大: 大:
<span class="__input" >{{list.ManNum}}</span> <span class="__input">{{list.ManNum}}</span>
小: 小:
<span class="__input" >{{list.ChildNum}}</span> <span class="__input">{{list.ChildNum}}</span>
</td> </td>
<td colspan="4"> <td colspan="4">
客户姓名: 客户姓名:
<span class="__input" >{{list.ClientName}}</span> <span class="__input">{{list.ClientName}}</span>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -121,9 +107,9 @@ ...@@ -121,9 +107,9 @@
<tr> <tr>
<td colspan="3"> <td colspan="3">
结算价格: 结算价格:
<span class="__input" >{{list.SettlePrice}}</span> <span class="__input">{{list.SettlePrice}}</span>
<br>合计: <br>合计:
<span class="__input" >{{list.PreferPrice}}</span> <span class="__input">{{list.PreferPrice}}</span>
</td> </td>
<td colspan="4"> <td colspan="4">
结算方式: 结算方式:
...@@ -154,20 +140,10 @@ ...@@ -154,20 +140,10 @@
<td colspan="7" :id="isSave ? 'selectBox' : ''"> <td colspan="7" :id="isSave ? 'selectBox' : ''">
<p> <p>
<span>甲方同意本订单所有费用在出发前支付到乙方指定账户:</span> <span>甲方同意本订单所有费用在出发前支付到乙方指定账户:</span>
<!-- && !isSave --> <el-select v-if="printShow===true" class="wp40 accountList" v-model="accountNum" @change="accountChange"
<el-select placeholder="请选择">
v-if="printShow===true" <el-option v-for="(item,index) in accountList" :key="index" :label="item.BankSubName" :value="index">
class="wp40 accountList" </el-option>
v-model="accountNum"
@change="accountChange"
placeholder="请选择"
>
<el-option
v-for="(item,index) in accountList"
:key="index"
:label="item.BankSubName"
:value="index"
></el-option>
</el-select> </el-select>
</p> </p>
<p class="fnormal"> <p class="fnormal">
...@@ -199,10 +175,6 @@ ...@@ -199,10 +175,6 @@
<br>确认章并签字: <br>确认章并签字:
</td> </td>
<td valign="bottom" colspan="2" style="position: relative;"> <td valign="bottom" colspan="2" style="position: relative;">
<!-- <img
:src="'data:image/jpeg;base64,'+list.ImagePath"
style="position: absolute; left: 10px; top: 10px;"
> -->
时间:{{list.Date}} 时间:{{list.Date}}
</td> </td>
</tr> </tr>
...@@ -211,122 +183,111 @@ ...@@ -211,122 +183,111 @@
<p>备注:以上确认件需完成双方确认章和签字视为生效!</p> <p>备注:以上确认件需完成双方确认章和签字视为生效!</p>
<p style="text-indent: 43px;">如因同行未按照约定时间结清费用导致的任何问题有由同行全权负责!</p> <p style="text-indent: 43px;">如因同行未按照约定时间结清费用导致的任何问题有由同行全权负责!</p>
<p style="text-indent: 43px;">如在此期间有任何纠纷,处理依据均参照《旅游合同》或《旅游法》相关规定执行!</p> <p style="text-indent: 43px;">如在此期间有任何纠纷,处理依据均参照《旅游合同》或《旅游法》相关规定执行!</p>
<p style="text-indent: 43px;">本公司行程中赠送一份意外险,我司默认为贵司征得旅客同意,且认可保险金额及范围,并授权乙方购买该保险,如旅客认为该赠送意外险,保险范围不够全面,可另自行购买其它险种的保险。</p> <p style="text-indent: 43px;">
本公司行程中赠送一份意外险,我司默认为贵司征得旅客同意,且认可保险金额及范围,并授权乙方购买该保险,如旅客认为该赠送意外险,保险范围不够全面,可另自行购买其它险种的保险。</p>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<el-dialog custom-class="w450" <el-dialog custom-class="w450" title="修改账户" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
title="修改账户" <p style="margin-bottom: 10px;">
:visible.sync="outerVisible" <span>账户:</span>
center <el-select class="wp40 accountList" v-model="accountNum" @change="accountChange()" placeholder="请选择">
:before-close="closeChangeMachie"> <el-option v-for="(item,index) in accountList" :key="index" :label="item.BankSubName" :value="index">
<p style="margin-bottom: 10px;"> </el-option>
<span>账户:</span> </el-select>
<!-- && !isSave --> </p>
<el-select <p class="fnormal" style="margin-bottom: 10px;">
class="wp40 accountList" 户名:
v-model="accountNum" <span class="__input" :contenteditable="true">{{accountInfo.BankName}}</span>
@change="accountChange()" </p>
placeholder="请选择" <p class="fnormal" style="margin-bottom: 10px;">
> 开户行名称:
<el-option <span class="__input" :contenteditable="true">{{accountInfo.BankSubName}}</span>
v-for="(item,index) in accountList" </p>
:key="index" <p class="fnormal" style="margin-bottom: 10px;">
:label="item.BankSubName" 帐号:
:value="index" <span class="__input" :contenteditable="true">{{accountInfo.BankNum}}</span>
></el-option> </p>
</el-select> <div slot="footer" class="dialog-footer">
</p> <button class="hollowFixedBtn" @click="outerVisible=false">取消</button>
<p class="fnormal" style="margin-bottom: 10px;"> <button class="normalBtn" @click="outerVisible = false">确定</button>
户名: </div>
<span class="__input" :contenteditable="true">{{accountInfo.BankName}}</span> </el-dialog>
</p>
<p class="fnormal" style="margin-bottom: 10px;">
开户行名称:
<span class="__input" :contenteditable="true">{{accountInfo.BankSubName}}</span>
</p>
<p class="fnormal" style="margin-bottom: 10px;">
帐号:
<span class="__input" :contenteditable="true">{{accountInfo.BankNum}}</span>
</p>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="outerVisible=false">取消</button>
<button class="normalBtn" @click="outerVisible = false">确定</button>
</div>
</el-dialog>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
cz: "", cz: "",
cz1: "", cz1: "",
yx: "", yx: "",
yx1: "", yx1: "",
isPrint: false, isPrint: false,
printShow: true, printShow: true,
list: {}, list: {},
bank: {}, bank: {},
accountNum: 0, accountNum: 0,
accountList: [], accountList: [],
accountInfo: { accountInfo: {
BankName: "111", BankName: "111",
BankSubName: "222", BankSubName: "222",
BankNum: "333" BankNum: "333"
}, },
ConfirmationDetails: {}, ConfirmationDetails: {},
BankSubName: "", BankSubName: "",
isSave: false, isSave: false,
outerVisible: false, outerVisible: false,
}; };
}, },
mounted() { mounted() {
this.apipost( this.apipost(
"sellorder_get_GetConfirmationInfoForFinance", "sellorder_get_GetConfirmationInfoForFinance", {
{ OrderId: this.$route.query.id }, OrderId: this.$route.query.id
res => { },
if (res.data.resultCode === 1) { res => {
this.accountList = res.data.data; if (res.data.resultCode === 1) {
this.accountChange(0); this.accountList = res.data.data;
// 获取确认函状态等信息 this.accountChange(0);
this.getConfifmationDetails(); // 获取确认函状态等信息
} else { this.getConfifmationDetails();
this.$message.error("账户信息获取失败"); } else {
} this.$message.error("账户信息获取失败");
}, }
err => {} },
); err => {}
this.apipost( );
"sellorder_get_GetOrderConfirmationInfo", this.apipost(
{ OrderId: this.$route.query.id }, "sellorder_get_GetOrderConfirmationInfo", {
res => { OrderId: this.$route.query.id
if (res.data.resultCode == 1) { },
this.list = res.data.data; res => {
} else { if (res.data.resultCode == 1) {
this.$message.error(res.data.message); this.list = res.data.data;
} } else {
}, this.$message.error(res.data.message);
err => {} }
); },
this.apipost( err => {}
"OnlinePay_post_GetPayConfigList", );
{ OrderId: this.$route.query.id }, this.apipost(
res => { "OnlinePay_post_GetPayConfigList", {
this.bank = res.data.data; OrderId: this.$route.query.id
}, },
err => {} res => {
); this.bank = res.data.data;
}, },
methods: { err => {}
setHtml: function() { );
let dom = document.getElementById("selectBox") },
if (!dom) return methods: {
let str = `<p> setHtml: function () {
let dom = document.getElementById("selectBox")
if (!dom) return
let str = `<p>
<span>甲方同意本订单所有费用在出发前支付到乙方指定账户:</span> <span>甲方同意本订单所有费用在出发前支付到乙方指定账户:</span>
<!-- && !isSave --> <!-- && !isSave -->
</p> </p>
...@@ -345,243 +306,267 @@ export default { ...@@ -345,243 +306,267 @@ export default {
<p class="fnormal"> <p class="fnormal">
帐号: 帐号:
<span class="__input" :contenteditable="true">${this.accountInfo.BankNum}</span> <span class="__input" :contenteditable="true">${this.accountInfo.BankNum}</span>
</p>`; </p>`;
document.getElementById("selectBox").innerHTML = str; document.getElementById("selectBox").innerHTML = str;
}, },
getConfifmationDetails: function() { getConfifmationDetails: function () {
this.apipost(
"sellorder_post_GetOrderConfirmationDetails",
{ orderId: this.$route.query.id },
res => {
if (res.data.resultCode === 1) {
let data = res.data.data;
data.ConfirmationContent = data.ConfirmationContent
? JSON.parse(data.ConfirmationContent)
: null;
this.accountNum = data.BankIndexNum;
this.ConfirmationDetails = data;
this.accountChange();
setTimeout(() => {
if (data.OperationState === 1 || data.OperationState === 0 || this.$route.query.isShen) {
let ele=document.getElementsByClassName('__input')
for(var i=0;i<ele.length;i++){
ele[i].contentEditable = false
}
}
if (data.OperationState !== -1) { this.setHtml(); }
}, 1000);
} else {
this.$message.error(res.data.message);
}
},
null
);
},
// 保存确认函
SetOrderConfirmation: function() {
this.isSave = true;
this.printShow = false
setTimeout(() => {
let msg = {
ID: this.ConfirmationDetails.ID,
OrderId: this.$route.query.id,
ConfirmationContent: JSON.stringify(
document.getElementById("pdfDom").innerHTML
),
OperationState: 0,
BankIndexNum: this.accountNum
};
this.apipost( this.apipost(
"sellorder_post_SetOrderConfirmation", "sellorder_post_GetOrderConfirmationDetails", {
msg, orderId: this.$route.query.id
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode === 1) {
this.getConfifmationDetails(); let data = res.data.data;
data.ConfirmationContent = data.ConfirmationContent ?
JSON.parse(data.ConfirmationContent) :
null;
this.accountNum = data.BankIndexNum;
this.ConfirmationDetails = data;
this.accountChange();
setTimeout(() => {
if (data.OperationState === 1 || data.OperationState === 0 || this.$route.query.isShen) {
let ele = document.getElementsByClassName('__input')
for (var i = 0; i < ele.length; i++) {
ele[i].contentEditable = false
}
}
if (data.OperationState !== -1) {
this.setHtml();
}
}, 1000);
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
null null
); );
}, 500); },
}, // 保存确认函
// toPDF: function (title) { SetOrderConfirmation: function () {
// this.printShow = false this.isSave = true;
// setTimeout(() => { this.printShow = false
// this.getPdf(title,() => { setTimeout(() => {
// this.printShow = true let msg = {
// }) ID: this.ConfirmationDetails.ID,
// }, 0) OrderId: this.$route.query.id,
// }, ConfirmationContent: JSON.stringify(
toPDF: function(title) { document.getElementById("pdfDom").innerHTML
this.isPrint = true; ),
this.$forceUpdate(); OperationState: 0,
setTimeout(() => { BankIndexNum: this.accountNum
let pageData = document.getElementById("pdfDom").innerHTML; };
let urlObj = this.domainManager(); this.apipost(
this.$http({ "sellorder_post_SetOrderConfirmation",
headers: { "Content-Type": "application/json" }, msg,
method: "post", res => {
url: urlObj.DomainUrl + "/api/file/GetWebHtmlTwo", if (res.data.resultCode == 1) {
data: { msg: pageData, sign: "new_file" } this.getConfifmationDetails();
}) } else {
.then(res => { this.$message.error(res.data.message);
if (res.data.resultCode === 1) { }
setTimeout(() => { },
// let sign = title+parseInt(Math.random()*1000) null
let sign = title; );
const a = document.createElement("a"); }, 500);
a.setAttribute("download", ""); },
a.setAttribute( toPDF: function (title) {
"href", this.isPrint = true;
urlObj.DomainUrl + this.$forceUpdate();
setTimeout(() => {
let pageData = document.getElementById("pdfDom").innerHTML;
let urlObj = this.domainManager();
this.$http({
headers: {
"Content-Type": "application/json"
},
method: "post",
url: urlObj.DomainUrl + "/api/file/GetWebHtmlTwo",
data: {
msg: pageData,
sign: "new_file"
}
})
.then(res => {
if (res.data.resultCode === 1) {
setTimeout(() => {
let sign = title;
const a = document.createElement("a");
a.setAttribute("download", "");
a.setAttribute(
"href",
urlObj.DomainUrl +
"/api/file/DownloadFileForPdf?fileName=" + "/api/file/DownloadFileForPdf?fileName=" +
sign + sign +
".pdf&&fPath=" + ".pdf&&fPath=" +
res.data.data res.data.data
); );
a.click(); a.click();
this.isPrint = false; this.isPrint = false;
}, 1000); }, 1000);
} else { } else {
this.$message.error("PDF获取失败"); this.$message.error("PDF获取失败");
} }
this.pdfLoading = false; this.pdfLoading = false;
}) })
.catch(err => { .catch(err => {
}); });
}, 500); }, 500);
}, },
accountChange: function() { accountChange: function () {
this.accountInfo.BankName = this.accountList[this.accountNum].BankName; this.accountInfo.BankName = this.accountList[this.accountNum].BankName;
this.accountInfo.BankSubName = this.BankSubName = this.accountList[ this.accountInfo.BankSubName = this.BankSubName = this.accountList[
this.accountNum this.accountNum
].BankSubName; ].BankSubName;
this.accountInfo.BankNum = this.accountList[this.accountNum].BankNum; this.accountInfo.BankNum = this.accountList[this.accountNum].BankNum;
this.setHtml() this.setHtml()
}, },
MaxMe(o) { MaxMe(o) {
if (window.navigator.userAgent.indexOf("Firefox") > -1) { if (window.navigator.userAgent.indexOf("Firefox") > -1) {
o.style.height = o.scrollTop + o.scrollHeight + "px";
} else {
if (o.scrollTop > 0)
o.style.height = o.scrollTop + o.scrollHeight + "px"; o.style.height = o.scrollTop + o.scrollHeight + "px";
} } else {
}, if (o.scrollTop > 0)
closeChangeMachie(done) { o.style.height = o.scrollTop + o.scrollHeight + "px";
//弹出框关闭初始化弹框内表单 }
done(); },
}, closeChangeMachie(done) {
} //弹出框关闭初始化弹框内表单
}; done();
},
}
};
</script> </script>
<style> <style>
@import "../assets/css/cssReset.css"; @import "../assets/css/cssReset.css";
.confirmationOrder {
line-height: 18px; .confirmationOrder {
} line-height: 18px;
.confirmationOrderNormalBtn { }
color: #fff;
float: right; .confirmationOrderNormalBtn {
width: 60px; color: #fff;
font-size: 14px; float: right;
box-sizing: content-box; width: 60px;
top: 10px; font-size: 14px;
text-align: center; box-sizing: content-box;
line-height: 30px; top: 10px;
padding: 0 10px; text-align: center;
display: block; line-height: 30px;
height: 30px; padding: 0 10px;
background: #e95252; display: block;
border: 1px solid #e95252; height: 30px;
cursor: pointer; background: #e95252;
border-radius: 15px; border: 1px solid #e95252;
position: absolute; cursor: pointer;
left: 70%; border-radius: 15px;
margin-left: -30px; position: absolute;
} left: 70%;
.confirmationOrderNormalBtn2{ margin-left: -30px;
left: 78%; }
}
.confirmationOrder { .confirmationOrderNormalBtn2 {
width: 800px; left: 78%;
font-weight: bold; }
margin: auto;
font-family: "宋体"; .confirmationOrder {
letter-spacing: 1px; width: 800px;
} font-weight: bold;
.confirmationOrder > p { margin: auto;
line-height: 26px; font-family: "宋体";
} letter-spacing: 1px;
.confirmationOrder .center { }
text-align: center;
} .confirmationOrder>p {
.confirmationOrder .fnormal { line-height: 26px;
font-weight: normal !important; }
}
.confirmationOrder .f22 { .confirmationOrder .center {
font-size: 22px; text-align: center;
} }
.confirmationOrder .f20 {
font-size: 20px; .confirmationOrder .fnormal {
} font-weight: normal !important;
.confirmationOrder .f18 { }
font-size: 18px;
} .confirmationOrder .f22 {
.confirmationOrder .f16 { font-size: 22px;
font-size: 16px; }
}
.confirmationOrder .f14 { .confirmationOrder .f20 {
font-size: 14px; font-size: 20px;
} }
.confirmationOrder .w40 {
width: 40px !important; .confirmationOrder .f18 {
} font-size: 18px;
.confirmationOrder .wp40 { }
width: 40%;
} .confirmationOrder .f16 {
.confirmationOrder .wp80 { font-size: 16px;
width: 80%; }
}
.confirmationOrder .wp100 { .confirmationOrder .f14 {
width: 100%; font-size: 14px;
} }
.confirmationOrderTable {
width: 800px; .confirmationOrder .w40 {
border: 1px solid #000; width: 40px !important;
} }
.confirmationOrderTable tr td {
background: #fff; .confirmationOrder .wp40 {
font-size: 14px; width: 40%;
padding: 3px 10px; }
border-bottom: 1px solid #000;
border-right: 1px solid #000; .confirmationOrder .wp80 {
} width: 80%;
.confirmationOrderTable tr:last-child td { }
border-bottom: none;
} .confirmationOrder .wp100 {
.confirmationOrderTable tr td:last-child { width: 100%;
border-right: none; }
}
.confirmationOrder input { .confirmationOrderTable {
display: inline-block; width: 800px;
border: none; border: 1px solid #000;
outline: none; }
font-size: 14px;
font-weight: bold; .confirmationOrderTable tr td {
color: #333; background: #fff;
font-family: "宋体"; font-size: 14px;
letter-spacing: 1px; padding: 3px 10px;
} border-bottom: 1px solid #000;
.accountList input { border-right: 1px solid #000;
border-bottom: 1px solid #dcdfe6; }
}
.__input { .confirmationOrderTable tr:last-child td {
display: inline-block; border-bottom: none;
min-width: 60px; }
}
</style> .confirmationOrderTable tr td:last-child {
\ No newline at end of file border-right: none;
}
.confirmationOrder input {
display: inline-block;
border: none;
outline: none;
font-size: 14px;
font-weight: bold;
color: #333;
font-family: "宋体";
letter-spacing: 1px;
}
.accountList input {
border-bottom: 1px solid #dcdfe6;
}
.__input {
display: inline-block;
min-width: 60px;
}
</style>
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
<a class="travelControlTripBtn" v-if="priceList!=null&& priceList[0]!=null && priceList[0].wordPath!=''" style="display:inline-block;text-decoration:none; <a class="travelControlTripBtn" v-if="priceList!=null&& priceList[0]!=null && priceList[0].wordPath!=''" style="display:inline-block;text-decoration:none;
width:135px;text-align:center;line-height:30px;font-size:13px;position:relative;top:2px;" width:135px;text-align:center;line-height:30px;font-size:13px;position:relative;top:2px;"
:href="domainManager().ViittoFileUrl+priceList[0].wordPath">下载WORD行程</a> :href="domainManager().ViittoFileUrl+priceList[0].wordPath">下载WORD行程</a>
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" /> <input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" />
<div id="pdfNode"> <div id="pdfNode">
<div id='pdfDom' style="padding:0 20px;"> <div id='pdfDom' style="padding:0 20px;">
......
...@@ -642,8 +642,6 @@ ...@@ -642,8 +642,6 @@
import threeday from './commonPage/threeday' import threeday from './commonPage/threeday'
import fourday from './commonPage/fourday' import fourday from './commonPage/fourday'
import fiveday from './commonPage/fiveday' import fiveday from './commonPage/fiveday'
// import saveAs from 'file-saver'
// import '../utils/jqueryWordexport.js'
import { import {
setTimeout setTimeout
} from 'timers'; } from 'timers';
......
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