Commit 627001a7 authored by 华国豪's avatar 华国豪 🙄

合并代码

parents 973bdf2d fcc6cd56
...@@ -369,6 +369,7 @@ ...@@ -369,6 +369,7 @@
query: { query: {
HotelId: item.HotelId, HotelId: item.HotelId,
HotelUseTime: item.subList[subIndex].DateStr, HotelUseTime: item.subList[subIndex].DateStr,
IsUnionCked:0,
blank: 'y', blank: 'y',
tab: "团控查询", tab: "团控查询",
} }
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<tr> <tr>
<td width="70" style="text-align:center;" colspan="2"> <td width="70" style="text-align:center;" colspan="2">
<span style="color:red">{{subItem.NewHotelName}}</span> <span style="color:red">{{subItem.NewHotelName}}</span>
<el-popover placement="right" width="500" trigger="click" v-model="subItem.isShowPop"> <el-popover placement="right" width="540" trigger="click" v-model="subItem.isShowPop">
<comCheckHotel :ref="'comCheckHotel'+index+subIndex+''" v-on:childHotel="childHotelList" :UseDate="item.UseTimeStr"> <comCheckHotel :ref="'comCheckHotel'+index+subIndex+''" v-on:childHotel="childHotelList" :UseDate="item.UseTimeStr">
</comCheckHotel> </comCheckHotel>
<el-button size="small" type="danger" :data-index="'comCheckHotel'+index+subIndex+''" <el-button size="small" type="danger" :data-index="'comCheckHotel'+index+subIndex+''"
......
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
AirTicketId: 0, AirTicketId: 0,
AirOrderId: 0, AirOrderId: 0,
status: 0, status: 0,
startDate: moment().format("YYYY-MM-DD"), startDate:"",
endDate: "", endDate: "",
searchKey:"", searchKey:"",
rbBranchId:-1, rbBranchId:-1,
......
...@@ -710,8 +710,8 @@ ...@@ -710,8 +710,8 @@
<tr> <tr>
<th width="100">日期</th> <th width="100">日期</th>
<th style="border-right:1px solid #E5E5E5;width:150px;">酒店</th> <th style="border-right:1px solid #E5E5E5;width:150px;">酒店</th>
<th style="border-right:1px solid #E5E5E5;width:240px;">酒店情况</th> <th style="width:150px;">更换酒店</th>
<th style="width:100px;">状态</th>
</tr> </tr>
<template v-for="subItem in item.HotelOrderListReports"> <template v-for="subItem in item.HotelOrderListReports">
<tr v-for="(childItem,childIndex) in subItem.SubList"> <tr v-for="(childItem,childIndex) in subItem.SubList">
...@@ -721,19 +721,26 @@ ...@@ -721,19 +721,26 @@
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
{{childItem.HotelName}} {{childItem.HotelName}}
</td> </td>
<td style="text-align:left;padding-left:3px;color:red">
{{childItem.HotelName!=childItem.NewHotelName?""+childItem.NewHotelName:""}}
</td>
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
<a style="color:green" v-if="childItem.HotelName!='温馨的家'"> <span v-if="childItem.HotelName!='温馨的家'">
<template v-if="childItem.OPState==1"> <template v-if="childItem.OPState==1">
OP-OK <a style="color:green">OP-OK</a>
</template> </template>
<template v-else-if="childItem.OPState==2&&childItem.DMCState==0"> <template v-else-if="childItem.OPState==2&&childItem.DMCState==0">
OP-暂定 <a style="color:red">OP-暂定</a>
</template>
<template v-else>
<template v-if="childItem.DMCState==1">
<a style="color:green">地接-OK</a>
</template> </template>
<template v-else> <template v-else>
{{childItem.DMCState==1?"地接-OK":(childItem.DMCState==2?"地接-暂定":"地接-未操作")}} <a style="color:red"> {{childItem.DMCState==2?"地接-暂定":"地接-未操作"}}</a>
</template>
</template> </template>
</span>
</a>
</td> </td>
</tr> </tr>
</template> </template>
......
...@@ -100,6 +100,15 @@ ...@@ -100,6 +100,15 @@
</el-option> </el-option>
</el-select> </el-select>
</span></li> </span></li>
<li>
<span>
<em>订单状态</em><el-select v-model='msg.VisaOrderStatus'>
<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-date-picker v-model='msg.StartTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> - <li><span><em>报入日期</em><el-date-picker v-model='msg.StartTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> -
<el-date-picker v-model='msg.EndTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.EndTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
</span> </span>
...@@ -171,7 +180,9 @@ ...@@ -171,7 +180,9 @@
<span>{{moneyFormat(item.ZaiTu)}}</span> <span>{{moneyFormat(item.ZaiTu)}}</span>
</td> </td>
<td> <td>
{{item.VisaOrderStatus==1?"正常":"已取消"}}</br> <span v-if="item.VisaOrderStatus==1">正常</span>
<span v-if="item.VisaOrderStatus==2">取消</span>
<span v-if="item.VisaOrderStatus==3">待付款</span>
<span class="fz12" v-if="item.VisaOrderStatus==2">操作:{{item.UpdateName}}</span> <span class="fz12" v-if="item.VisaOrderStatus==2">操作:{{item.UpdateName}}</span>
</td> </td>
<td> <td>
...@@ -278,6 +289,7 @@ export default { ...@@ -278,6 +289,7 @@ export default {
EndTime:'', EndTime:'',
Pid:'', Pid:'',
EmId:'-1', EmId:'-1',
VisaOrderStatus:"0",
}, },
dataList:[], dataList:[],
EmployeeList:[], EmployeeList:[],
......
...@@ -53,8 +53,15 @@ ...@@ -53,8 +53,15 @@
<td>{{item.Refund}}</td> <td>{{item.Refund}}</td>
<td>{{item.PlatformTax}}</td> <td>{{item.PlatformTax}}</td>
<td> <td>
<span v-if="item.Status==1" type="success">正常</span> <p v-if="item.RefundStatus!=1">
<span v-if="item.RefundStatus==2">退款中</span>
<span v-if="item.RefundStatus==3">已退款</span>
</p>
<p v-else>
<span v-if="item.Status==1">正常</span>
<span v-if="item.Status==2">取消</span> <span v-if="item.Status==2">取消</span>
<span v-if="item.Status==3">待付款</span>
</p>
</td> </td>
</tr> </tr>
<tr style="height:20px"> <tr style="height:20px">
...@@ -306,7 +313,7 @@ export default { ...@@ -306,7 +313,7 @@ export default {
"ticket_get_GetScatteringOrderForAirTicketList", "ticket_get_GetScatteringOrderForAirTicketList",
this.msg, this.msg,
res => { res => {
// console.log(res); console.log(res);
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
......
...@@ -389,7 +389,6 @@ import moment from "moment" ...@@ -389,7 +389,6 @@ import moment from "moment"
query: { query: {
customId: item.customId, customId: item.customId,
allotId: item.allotId, allotId: item.allotId,
blank: "y",
tab: "行程定制方案" tab: "行程定制方案"
} }
}); });
......
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
.TC_HotelPop table th { .TC_HotelPop table th {
text-align: center; text-align: center;
} }
</style> </style>
<template> <template>
<div class="TC_Content"> <div class="TC_Content">
...@@ -489,13 +490,15 @@ ...@@ -489,13 +490,15 @@
<span class="TCL-greenType">{{item.ClearOrderHour}}小时</span> <span class="TCL-greenType">{{item.ClearOrderHour}}小时</span>
</p> </p>
<p v-if="item.LineID==14 && item.HotelOrderListReports && item.HotelOrderListReports.length>0 "> <p v-if="item.LineID==14 && item.HotelOrderListReports && item.HotelOrderListReports.length>0 ">
<el-popover width="600" trigger="click" popper-class="TC_HotelPop"> <el-popover width="700" trigger="click" popper-class="TC_HotelPop">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable">
<tr> <tr>
<th width="100">日期</th> <th width="100">日期</th>
<th style="border-right:1px solid #E5E5E5;width:150px;">酒店</th> <th style="width:150px;">酒店</th>
<th style="border-right:1px solid #E5E5E5;width:240px;">酒店情况</th> <th style="width:150px;">更换酒店</th>
<th style="border-right:1px solid #E5E5E5;width:100px">占房时间</th> <th style="width:100px;">状态</th>
<th style="width:150px;">使用数量/价格</th>
<th style="width:120px">占房时间</th>
</tr> </tr>
<template v-for="subItem in item.HotelOrderListReports"> <template v-for="subItem in item.HotelOrderListReports">
<tr v-for="(childItem,childIndex) in subItem.SubList"> <tr v-for="(childItem,childIndex) in subItem.SubList">
...@@ -505,30 +508,42 @@ ...@@ -505,30 +508,42 @@
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
{{childItem.HotelName}} {{childItem.HotelName}}
</td> </td>
<td style="text-align:left;padding-left:3px;color:red">
{{childItem.HotelName!=childItem.NewHotelName?""+childItem.NewHotelName:""}}
</td>
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
<a style="color:green" v-if="childItem.HotelName!='温馨的家'"> <span v-if="childItem.HotelName!='温馨的家'">
<template v-if="childItem.OPState==1"> <template v-if="childItem.OPState==1">
OP-OK <a style="color:green">OP-OK</a>
</template> </template>
<template v-else-if="childItem.OPState==2&&childItem.DMCState==0"> <template v-else-if="childItem.OPState==2&&childItem.DMCState==0">
OP-暂定 <a style="color:red">OP-暂定</a>
</template> </template>
<template v-else> <template v-else>
{{childItem.DMCState==1?"地接-OK":(childItem.DMCState==2?"地接-暂定":"地接-未操作")}} <template v-if="childItem.DMCState==1">
<a style="color:green">地接-OK</a>
</template> </template>
<template v-else>
</a> <a style="color:red"> {{childItem.DMCState==2?"地接-暂定":"地接-未操作"}}</a>
<a v-if="(childItem.OPState==1||(childItem.OPState==2 && childItem.DMCState==0))&& childItem.UseCount>0 " style="color:green"> </template>
【使用: {{childItem.UseCount}} 间 {{childItem.CostPrice!=0?"价格:"+childItem.CostPrice:""}} 】 </template>
</span>
</td>
<td>
<a v-if="(childItem.OPState==1|| childItem.OPState==2 || childItem.DMCState==1 )">
{{childItem.UseCount>0? childItem.UseCount+" 间" :""}}
{{childItem.CostPrice!=0?" 价格:"+childItem.CostPrice:""}}
</a> </a>
</td> </td>
<td> <td>
<template v-if="childItem.OPState==1||(childItem.OPState==2 && childItem.DMCState==0)"> {{childItem.CreateDateStr}}</template> <template v-if="childItem.OPState==1||(childItem.OPState==2 && childItem.DMCState==0)">
{{childItem.CreateDateStr}}</template>
</td> </td>
</tr> </tr>
</template> </template>
</table> </table>
<span slot="reference" class="price" style="cursor:pointer;text-decoration:underline;">酒店预订状况</span> <span slot="reference" class="price"
style="cursor:pointer;text-decoration:underline;">酒店预订状况</span>
</el-popover> </el-popover>
</p> </p>
<p class="travelnowrap" v-if="item.LineID==14 && item.IsOpenHotel==1"> <p class="travelnowrap" v-if="item.LineID==14 && item.IsOpenHotel==1">
...@@ -666,7 +681,7 @@ ...@@ -666,7 +681,7 @@
<div class="TC_SeatList" v-if="item.BindNum>0" style="color:red;">绑定数量: {{item.BindNum}}</div> <div class="TC_SeatList" v-if="item.BindNum>0" style="color:red;">绑定数量: {{item.BindNum}}</div>
<div class="TC_SeatList" v-if="item.TicketNum>0 && item.TicketList"> <div class="TC_SeatList" v-if="item.TicketNum>0 && item.TicketList">
<el-popover width="440" trigger="click" popper-class="TC_customerInfo"> <el-popover width="440" trigger="click" popper-class="TC_customerInfo">
<table width="440" border="0" cellspacing="0" cellpadding="0" > <table width="440" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th width="70" style="text-align:center;">绑定数量</th> <th width="70" style="text-align:center;">绑定数量</th>
<th width="70" style="text-align:center;">机票数量</th> <th width="70" style="text-align:center;">机票数量</th>
...@@ -782,10 +797,12 @@ ...@@ -782,10 +797,12 @@
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown" class="TC-dropdown"> <el-dropdown-menu slot="dropdown" class="TC-dropdown">
<el-dropdown-item @click.native="SetGroupRecommendType(item,1)" v-if="item.b2b&&item.GroupRecommendType==0"> <el-dropdown-item @click.native="SetGroupRecommendType(item,1)"
v-if="item.b2b&&item.GroupRecommendType==0">
设为精品推荐 设为精品推荐
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click.native="SetGroupRecommendType(item,0)" v-if="item.b2b&&item.GroupRecommendType==1"> <el-dropdown-item @click.native="SetGroupRecommendType(item,0)"
v-if="item.b2b&&item.GroupRecommendType==1">
取消设为精品 取消设为精品
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item @click.native="goTeamBalance(item.TCID,item.OutBranchId)"> <el-dropdown-item @click.native="goTeamBalance(item.TCID,item.OutBranchId)">
...@@ -1108,10 +1125,10 @@ ...@@ -1108,10 +1125,10 @@
} }
}, },
methods: { methods: {
SetGroupRecommendType(item,num){ SetGroupRecommendType(item, num) {
let msg={}; let msg = {};
msg.groupRecommendType=num; msg.groupRecommendType = num;
msg.tcid=item.TCID; msg.tcid = item.TCID;
this.apipost( this.apipost(
'travel_post_SetGroupRecommendType', msg, 'travel_post_SetGroupRecommendType', msg,
...@@ -1119,7 +1136,7 @@ ...@@ -1119,7 +1136,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message) this.Success(res.data.message)
this.getControlList() this.getControlList()
}else{ } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
...@@ -1259,8 +1276,8 @@ ...@@ -1259,8 +1276,8 @@
this.queryCommonData.dataList.forEach(item => { this.queryCommonData.dataList.forEach(item => {
item.SalePlatList = [] item.SalePlatList = []
if (item.SalePlat !== null) { if (item.SalePlat !== null) {
if(item.SalePlat.indexOf("1") != -1){ if (item.SalePlat.indexOf("1") != -1) {
item.b2b=true; item.b2b = true;
} }
var SalePlatArr = item.SalePlat.split(',') var SalePlatArr = item.SalePlat.split(',')
SalePlatArr.forEach(y => { SalePlatArr.forEach(y => {
...@@ -1268,7 +1285,7 @@ ...@@ -1268,7 +1285,7 @@
}) })
} }
}); });
console.log("this.queryCommonData.dataList",this.queryCommonData.dataList); console.log("this.queryCommonData.dataList", this.queryCommonData.dataList);
} }
}, },
err => {} err => {}
...@@ -1850,6 +1867,10 @@ ...@@ -1850,6 +1867,10 @@
if (this.$route.query.HotelUseTime) { if (this.$route.query.HotelUseTime) {
this.queryMsg.HotelUseTime = this.$route.query.HotelUseTime this.queryMsg.HotelUseTime = this.$route.query.HotelUseTime
} }
//只看主团
if (this.$route.query.IsUnionCked) {
this.queryMsg.IsShowUnion = this.$route.query.IsUnionCked;
}
if (this.CurrentUserInfo.IsParentCompany == undefined) { if (this.CurrentUserInfo.IsParentCompany == undefined) {
this.queryCommonData.IsParentCompany = 2 this.queryCommonData.IsParentCompany = 2
......
<style> <style>
.comCheckHotel>div { .comCheckHotel .comCheckHotel {
width: 100%; width: 100%;
height: 150px; height: 150px;
overflow: auto overflow: auto
} }
.comCk_list { .comCheckHotel .comCk_list {
cursor: pointer;
padding: 0 20px; padding: 0 20px;
margin: 0 15px 5px 0; margin: 0 15px 5px 0;
} }
.cm_Inventory { .comCheckHotel .cm_Inventory {
margin-left: 20px; margin-left: 20px;
color: red; color: red;
display: inline-block; display: inline-block;
} }
.cm_hotelTitle { .comCheckHotel .cm_hotelTitle {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
...@@ -26,15 +25,15 @@ ...@@ -26,15 +25,15 @@
padding: 0 20px 10px 20px; padding: 0 20px 10px 20px;
} }
.com_SaveBtn { .comCheckHotel .com_SaveBtn {
margin: 10px 20px 0 45%; margin: 10px 20px 0 45%;
} }
.ckedList { .comCheckHotel .ckedList {
background-color: #E95252; background-color: #E95252;
color: #fff; color: #fff;
} }
.Ck_hotelInfo{ .comCheckHotel .Ck_hotelInfo{
width:100%; width:100%;
height:40px; height:40px;
background-color: #F6F8FB; background-color: #F6F8FB;
...@@ -42,31 +41,41 @@ ...@@ -42,31 +41,41 @@
line-height: 40px; line-height: 40px;
margin-bottom:10px; margin-bottom:10px;
} }
.comCheckHotel .ck_goUrl{
color:blue;
cursor: pointer;
margin-left:10px;
}
</style> </style>
<template> <template>
<div> <div class="comCheckHotel">
<div class="Ck_hotelInfo"> <div class="Ck_hotelInfo">
<span style="color:red">{{UseDate}}</span> 酒店库存信息 <span style="color:red">{{UseDate}}</span> 酒店库存信息
</div> </div>
<div class="cm_hotelTitle"> <div class="cm_hotelTitle clearfix">
<div style="float:left;">
地区筛选: 地区筛选:
<el-select filterable v-model="ProvinceId" @change="getCheckHotel()" :placeholder="$t('pub.pleaseSel')"> <el-select filterable v-model="qMsg.ProvinceId" class="w120" :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" :value='0'></el-option> <el-option label="不限" :value='0'></el-option>
<el-option v-for="item in ProvinceList" :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for="item in ProvinceList" :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="float:left;margin-left:20px;">
酒店名称:
<el-input type="text" v-model="qMsg.Name" class="w120" @keyup.native.enter="getCheckHotel()" placeholder="请输入关键字"></el-input>
<input type="button" class="normalBtn" value="查询" @click="getCheckHotel()" />
</div>
</div>
<div> <div>
<el-tabs type="border-card" v-loading="loading"> <el-tabs type="border-card" v-loading="loading" v-if="IsShow" >
<el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" :key="index"> <el-tab-pane :label="item.ProvinceName" v-for="(item,index) in dataList" :key="item.subCode">
<div class="clearfix comCheckHotel"> <div class="clearfix comCheckHotel">
<div>
<div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList"> <div class="comCk_list" v-for="(subItem,subIndex) in item.HotelList">
<input type="checkbox" v-model="subItem.isChecked" @click="getCheck(item.HotelList,subIndex)" <input type="checkbox" v-model="subItem.isChecked" @click="getCheck(item.HotelList,subIndex)"/>
style="" />
{{subItem.Name}}<span class="cm_Inventory">{{subItem.Inventory}}</span> {{subItem.Name}}<span class="cm_Inventory">{{subItem.Inventory}}</span>
</div> <span class="ck_goUrl" @click="goUrl(subItem.ID)">新增库存</span>
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -83,12 +92,18 @@ ...@@ -83,12 +92,18 @@
loading:false, loading:false,
dataList: [], dataList: [],
ProvinceList: [], ProvinceList: [],
qMsg:{
ProvinceId: 0, //选择个省份编号 ProvinceId: 0, //选择个省份编号
Name:"",//酒店名称
},
IsShow:false,
ckedHotel:{}
}; };
}, },
methods: { methods: {
getCheckHotel() { getCheckHotel() {
this.loading=true; this.loading=true;
this.IsShow=false;
this.dataList = []; this.dataList = [];
this.HotelList = []; this.HotelList = [];
this.apipost('hotel_post_GetHasStockHotelList_V2', { this.apipost('hotel_post_GetHasStockHotelList_V2', {
...@@ -96,10 +111,12 @@ ...@@ -96,10 +111,12 @@
IsMoreThanZero: 0, IsMoreThanZero: 0,
Country: "651", Country: "651",
IsAllHotel: 1, IsAllHotel: 1,
Province: this.ProvinceId, Province: this.qMsg.ProvinceId,
Name:this.qMsg.Name,
sDate: this.UseDate sDate: this.UseDate
}, res => { }, res => {
this.loading=false; this.loading=false;
this.IsShow=true;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
this.dataList.forEach(x => { this.dataList.forEach(x => {
...@@ -116,6 +133,7 @@ ...@@ -116,6 +133,7 @@
hotelList.forEach((x, subIndex) => { hotelList.forEach((x, subIndex) => {
if (index == subIndex) { if (index == subIndex) {
x.isChecked = !x.isChecked; x.isChecked = !x.isChecked;
this.ckedHotel = x;
} else { } else {
x.isChecked = false; x.isChecked = false;
} }
...@@ -125,18 +143,14 @@ ...@@ -125,18 +143,14 @@
//向父组件传递选中酒店 //向父组件传递选中酒店
sendCkedHotel() { sendCkedHotel() {
var ckHotelObj = {}; var ckHotelObj = {};
this.dataList.forEach((x, index) => { if(this.ckedHotel){
x.HotelList.forEach(subItem => { ckHotelObj.ID = this.ckedHotel.ID;
if (subItem.isChecked) { ckHotelObj.Address = this.ckedHotel.Address;
ckHotelObj.ID = subItem.ID; ckHotelObj.Inventory = this.ckedHotel.Inventory;
ckHotelObj.Address = subItem.Address; ckHotelObj.Name = this.ckedHotel.Name;
ckHotelObj.Inventory = subItem.Inventory; ckHotelObj.PayStyle = this.ckedHotel.PayStyle;
ckHotelObj.Name = subItem.Name; ckHotelObj.Tel = this.ckedHotel.Tel;
ckHotelObj.PayStyle = subItem.PayStyle;
ckHotelObj.Tel = subItem.Tel;
} }
});
})
this.$emit("childHotel", ckHotelObj); this.$emit("childHotel", ckHotelObj);
}, },
//获取日本下面的市->下拉框用 //获取日本下面的市->下拉框用
...@@ -154,6 +168,19 @@ ...@@ -154,6 +168,19 @@
err => {} err => {}
); );
}, },
goUrl(ID){
this.$router.push({
path: 'HotelProductManage2',
query: {
id: ID,
Country: 651,
IsSelfBook: 1,
blank: 'y',
tab: '报价详情'
}
});
}
}, },
mounted() { mounted() {
this.getProvinceList(); this.getProvinceList();
......
...@@ -265,13 +265,16 @@ ...@@ -265,13 +265,16 @@
</div> </div>
<p <p
v-if="item.LineId==14 && item.CommonReport.PriceHotelResult && item.CommonReport.PriceHotelResult.length>0"> v-if="item.LineId==14 && item.CommonReport.PriceHotelResult && item.CommonReport.PriceHotelResult.length>0">
<el-popover width="600" trigger="click" popper-class="TC_HotelPop"> <el-popover width="700" trigger="click" popper-class="TC_HotelPop">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable">
<tr> <tr>
<th width="100">日期</th> <th width="100">日期</th>
<th style="border-right:1px solid #E5E5E5;width:150px;">酒店</th> <th style="width:150px;">酒店</th>
<th style="border-right:1px solid #E5E5E5;width:240px;">酒店情况</th> <th style="width:150px;">更换酒店</th>
<th style="border-right:1px solid #E5E5E5;width:100px">占房时间</th> <th style="width:100px;">状态</th>
<th style="width:150px;">使用数量/价格</th>
<th style="width:120px">占房时间</th>
</tr> </tr>
<template v-for="hotelItem in item.CommonReport.PriceHotelResult"> <template v-for="hotelItem in item.CommonReport.PriceHotelResult">
<tr v-for="(hotelSubItem,hotelSubIndex) in hotelItem.SubList"> <tr v-for="(hotelSubItem,hotelSubIndex) in hotelItem.SubList">
...@@ -281,28 +284,35 @@ ...@@ -281,28 +284,35 @@
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
{{hotelSubItem.HotelName}} {{hotelSubItem.HotelName}}
</td> </td>
<td style="text-align:left;padding-left:3px;color:red">
{{hotelSubItem.HotelName!=hotelSubItem.NewHotelName?""+hotelSubItem.NewHotelName:""}}
</td>
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
<a style="color:green" v-if="hotelSubItem.HotelName!='温馨的家'"> <span v-if="hotelSubItem.HotelName!='温馨的家'">
<template v-if="hotelSubItem.OPState==1"> <template v-if="hotelSubItem.OPState==1">
OP-OK <a style="color:green">OP-OK</a>
</template> </template>
<template v-else-if="hotelSubItem.OPState==2&&hotelSubItem.DMCState==0"> <template v-else-if="hotelSubItem.OPState==2&&hotelSubItem.DMCState==0">
OP-暂定 <a style="color:red">OP-暂定</a>
</template> </template>
<template v-else> <template v-else>
{{hotelSubItem.DMCState==1?"地接-OK":(hotelSubItem.DMCState==2?"地接-暂定":"地接-未操作")}} <template v-if="hotelSubItem.DMCState==1">
<a style="color:green">地接-OK</a>
</template> </template>
<template v-else>
</a> <a style="color:red"> {{hotelSubItem.DMCState==2?"地接-暂定":"地接-未操作"}}</a>
<a v-if="(hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0))&& hotelSubItem.UseCount>0 " </template>
style="color:green"> </template>
【使用: {{hotelSubItem.UseCount}} 间 </span>
{{hotelSubItem.CostPrice!=0?"价格:"+hotelSubItem.CostPrice:""}} 】 </td>
<td>
<a v-if="(hotelSubItem.OPState==1|| hotelSubItem.OPState==2 || hotelSubItem.DMCState==1 )">
{{hotelSubItem.UseCount>0? hotelSubItem.UseCount+" 间" :""}}
{{hotelSubItem.CostPrice!=0?" 价格:"+hotelSubItem.CostPrice:""}}
</a> </a>
</td> </td>
<td> <td>
<template <template v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)">
v-if="hotelSubItem.OPState==1||(hotelSubItem.OPState==2 && hotelSubItem.DMCState==0)">
{{hotelSubItem.CreateDateStr}}</template> {{hotelSubItem.CreateDateStr}}</template>
</td> </td>
</tr> </tr>
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
border-collapse: collapse; border-collapse: collapse;
background-color: #fff; background-color: #fff;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.leaderPayTable th { .leaderPayTable th {
background: #e6e6e6; background: #e6e6e6;
padding: 8px 0; padding: 8px 0;
...@@ -22,6 +23,16 @@ ...@@ -22,6 +23,16 @@
height: 32px; height: 32px;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
} }
.leaderPayTable2 tr td{
border: 1px solid #ccc;
line-height: 17px;
height: 25px;
font-size: 12px;
background: #fff;
text-align: center;
padding: 0;;
margin: 0;
}
.LeaderPrintDiv .LeaderTitle { .LeaderPrintDiv .LeaderTitle {
padding: 10px; padding: 10px;
text-align: left; text-align: left;
...@@ -41,6 +52,7 @@ ...@@ -41,6 +52,7 @@
} }
.LeaderPrintDiv { .LeaderPrintDiv {
width: 100%; width: 100%;
background: #f8f8f8;
position: absolute; position: absolute;
} }
.LeaderPrintDiv .childDiv { .LeaderPrintDiv .childDiv {
...@@ -113,92 +125,222 @@ input[type="number"] { ...@@ -113,92 +125,222 @@ input[type="number"] {
<td colspan="10">暂无数据</td> <td colspan="10">暂无数据</td>
</tr> </tr>
</table> </table>
<table border="0" cellspacing="1" class="leaderPayTable"> <table border="0" cellspacing="1" class="leaderPayTable leaderPayTable2">
<tbody>
<tr> <tr>
<th>项目类型</th> <th colspan="8" class="bgwhite">门票使用</th>
<th>项目内容</th>
<th>实付金额</th>
<th>备注</th>
</tr> </tr>
<template v-for="(item,index) in dataList.ScenicList">
<tr> <tr>
<td v-if="index==0" :rowspan="dataList.ScenicList.length">景点门票</td> <th width="180">景点名称</th>
<th width="">门票类型</th>
<th width="">单价</th>
<th width="">付款方式 </th>
<th width="">金额小计</th>
<th width="">预计总金额</th>
<th width="">实付金额</th>
<th width="100">备注</th>
</tr>
<template v-for='(item,index) in list.ScenicList'>
<template v-for="(subItem,subIndex) in item.ScenicStatisticsList">
<tr v-for="(childItem,childIndex) in subItem.TicketPriceList">
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{subItem.ScenicName}}
</td>
<td> <td>
<div {{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}}
class="itemName"
v-for="subItem in item.ScenicStatisticsList"
>{{subItem.ScenicName}}</div>
</td> </td>
<td> <td>
<div <p>
v-for="subItem in item.ScenicStatisticsList" {{subItem.PayStyle === 1 ? moneyFormat(childItem.PeoplePrice) : 0}}
>{{subItem.TotalPrice}} {{subItem.CurrencyStr}}</div> </p>
</td>
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
<span v-if="subItem.PayStyle === 1">现付</span>
<span v-else-if="subItem.PayStyle === 2">公司结算</span>
<span v-else-if="subItem.PayStyle === 3">预付</span>
<span v-else-if="subItem.PayStyle === 6">公司合团支付</span>
<span v-else></span>
</br>
<span v-show="subItem.PayStyle==6">付款团号:{{subItem.PayTypeTCNUM}}</span>
</td> </td>
<td> <td>
<template v-for="(sitem,sindex) in item.ScenicStatisticsList">{{sitem.Remarks}}</template> {{subItem.PayStyle === 1 ? moneyFormat((childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice) : 0}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{scenicTotalPrice(subItem, subItem.TicketPriceList)}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{subItem.TradingTotalPrice}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.TicketPriceList.length">
{{subItem.Remarks}}
</td> </td>
</tr> </tr>
</template> </template>
<tr v-for="(item,index) in dataList.BusList"> </template>
<td v-if="index==0" :rowspan="dataList.BusList.length">交通</td> </table>
<table border="0" cellspacing="1" class="leaderPayTable leaderPayTable2">
<tr>
<th colspan="4" class="bgwhite">车辆使用</th>
</tr>
<tr>
<th width="">使用日期</th>
<th width="">高速公路费</th>
<!-- <th width="">预计总金额</th>-->
<th width="">实付金额</th>
<th width="">备注</th>
</tr>
<tr v-for='(item,index) in list.BusList'>
<td>{{item.PlanDateStr}}</td>
<td>
{{item.HighSpeedPrice >= 0 && item.HighSpeedPrice !== null && item.HighSpeedPayType > 0 ? (item.HighSpeedPayType === 1 ? moneyFormat(item.HighSpeedPrice) : 0) : ''}}
</td>
<!-- <td v-if='index==0' :rowspan='list.BusList.length'>-->
<!-- {{busTotalPrice(list.BusList)}}-->
<!-- </td>-->
<td> <td>
{{item.ParkExplain}} {{item.TotalPrice}}
<!-- <span v-if='index==0'>接机</span>
<span v-if='index!=0&&index!=dataList.BusList.length-1'>{{item.AirportPickUpStr}}</span>
<span v-if='index==dataList.BusList.length-1'>送机</span>-->
</td> </td>
<td>{{moneyFormat(item.TotalPrice)}} {{item.CurrencyStr}}</td> <td>
<td>{{item.Remarks}}</td> {{item.Remarks}}
</td>
</tr>
</table>
<table border="0" cellspacing="1" class="leaderPayTable leaderPayTable2">
<tr>
<th colspan="9" class="bgwhite">餐食使用</th>
</tr>
<tr>
<th width="180">餐厅名称</th>
<th width="">类别</th>
<th width="">用餐人数</th>
<th width="">单价</th>
<th width="">付款方式</th>
<th width="">金额小计</th>
<th width="">预计总金额</th>
<th width="">实付金额</th>
<th width="100">备注</th>
</tr> </tr>
<template v-for="(item,index) in dataList.DiningList"> <template v-for='(item,index) in list.DiningList'>
<tr class="splitP ScenicTr"> <template v-for="(subItem,subIndex) in item.DiningSummaryList">
<td v-if="index==0" :rowspan="dataList.DiningList.length">餐饮</td> <tr v-for="(childItem,childIndex) in subItem.DiningPriceList">
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{subItem.RealName? subItem.RealName : subItem.DiningName}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{subItem.UseDinnerTypeStr}}
</td>
<td> <td>
<div {{peopleStrToWord(childItem.PeopleType)}}:{{childItem.PeopleNum}}
class="itemName"
v-for="subItem in item.DiningSummaryList"
>{{subItem.NewDiningName}}</div>
</td> </td>
<td> <td>
<div <p>
v-for="subItem in item.DiningSummaryList" {{subItem.PayStyle === 1 ? moneyFormat(childItem.PeoplePrice) : 0}}
>{{subItem.TotalPrice}} {{subItem.CurrencyStr}}</div> </p>
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
<span v-if="subItem.PayStyle === 1">现付</span>
<span v-else-if="subItem.PayStyle === 2">公司结算</span>
<span v-else-if="subItem.PayStyle === 3">预付</span>
<span v-else-if="subItem.PayStyle === 6">公司合团支付</span>
<span v-else></span>
</br>
<span v-show="subItem.PayStyle==6">付款团号:{{subItem.PayTypeTCNUM}}</span>
</td>
<td> <td>
<template v-for="(sitem,sindex) in item.DiningSummaryList">{{sitem.Remarks}}</template> {{subItem.PayStyle === 1 ? moneyFormat((childItem.PeopleNum-childItem.Discount)*childItem.PeoplePrice) : 0}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{diningTotalPrice(subItem, subItem.DiningPriceList)}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">{{subItem.TradingTotalPrice}}</td>
<td v-if="childIndex==0" :rowspan="subItem.DiningPriceList.length">
{{subItem.Remarks}}
</td> </td>
</tr> </tr>
</template> </template>
<template v-for="(item,index) in dataList.HotelList"> </template>
</table>
<table border="0" cellspacing="1" class="leaderPayTable leaderPayTable2">
<tr>
<th colspan="9" class="bgwhite">酒店使用</th>
</tr>
<tr> <tr>
<td v-if="index==0" :rowspan="dataList.HotelList.length">酒店</td> <th width="180">酒店名称</th>
<td width="30%"> <th width="">房间类型</th>
<div class="itemName">{{item.NewHotelName}}</div> <th width="">预定人数 </th>
<th width="">单价/人</th>
<th width="">付款方式</th>
<th width="">金额小计</th>
<th width="">预计总金额</th>
<th width="">实付金额</th>
<th width="100">备注</th>
</tr>
<template v-for='(outItem,outIndex) in list.HotelOrderListReport'>
<template v-for="(subItem,subIndex) in outItem.HotelOrderList">
<tr v-for="(childItem,childIndex) in subItem.OrderDetailsList">
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{subItem.HotelName}}
</td>
<td>
<span v-if="childItem.HouseType === 1">单间</span>
<span v-if="childItem.HouseType === 2">标准双人间</span>
<span v-if="childItem.HouseType === 3">大床房</span>
<span v-if="childItem.HouseType === 4">三人间</span>
<span v-if="childItem.HouseType === 5">司导间</span>
</td>
<td>
{{childItem.BookNum}}
</td>
<td>
<p>
{{subItem.PayStyle === 1 ? moneyFormat(childItem.UnitPrice) : 0}}
</p>
</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
<span v-if="subItem.PayStyle === 1">现付</span>
<span v-else-if="subItem.PayStyle === 2">签单</span>
<span v-else-if="subItem.PayStyle === 4">预付</span>
<span v-else-if="subItem.PayStyle === 5">实物抵扣</span>
<span v-else-if="subItem.PayStyle === 6">公司合团支付</span>
<span v-else></span>
</br>
<span v-show="subItem.PayStyle==6">付款团号:{{subItem.PayTypeTCNUM}}</span>
</td>
<td>
{{moneyFormat(childItem.UnitPrice*(childItem.BookNum-childItem.HotelDiscount))}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{hotelTotalPrice(subItem.OrderDetailsList)}}
</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">{{subItem.TradingTotalPrice}}</td>
<td v-if="childIndex==0" :rowspan="subItem.OrderDetailsList.length">
{{subItem.Remarks}}
</td> </td>
<td>{{item.TotalPrice}} {{item.CurrencyStr}}</td>
<td>{{item.Remarks}}</td>
</tr> </tr>
</template> </template>
<tr v-if="(dataList.ScenicList && !dataList.ScenicList.length) || </template>
(dataList.BusList && !dataList.BusList.length) ||
(dataList.DiningList && !dataList.DiningList.length) ||
(dataList.HotelList && !dataList.HotelList.length)">
<td colspan="4">暂无数据</td>
</tr>
</tbody>
</table> </table>
<table border="0" cellspacing="1" class="leaderPayTable"> <table border="0" cellspacing="1" class="leaderPayTable">
<tr> <tr>
<th>类型</th> <th>类型</th>
<th>预计总金额</th>
<th>金额</th> <th>金额</th>
</tr> </tr>
<tr v-show="totalList.SelfPayingExpendTotalPrice>0"> <tr v-show="totalList.SelfPayingExpendTotalPrice>0">
<td>自费支出</td> <td>自费支出</td>
<td>0</td>
<td>{{moneyFormat(totalList.SelfPayingExpendTotalPrice)}}</td> <td>{{moneyFormat(totalList.SelfPayingExpendTotalPrice)}}</td>
</tr> </tr>
<tr v-show="totalList.SelfPayingIncomeTotalPrice>0"> <tr v-show="totalList.SelfPayingIncomeTotalPrice>0">
<td>自费收入</td> <td>自费收入</td>
<td>0</td>
<td>{{moneyFormat(totalList.SelfPayingIncomeTotalPrice)}}</td> <td>{{moneyFormat(totalList.SelfPayingIncomeTotalPrice)}}</td>
</tr> </tr>
<!-- <tr v-show="totalList.IncomeTotalPrice>0"> <!-- <tr v-show="totalList.IncomeTotalPrice>0">
...@@ -209,22 +351,27 @@ input[type="number"] { ...@@ -209,22 +351,27 @@ input[type="number"] {
v-show="(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)>0" v-show="(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)>0"
> >
<td>其他费用</td> <td>其他费用</td>
<td>0</td>
<td>{{moneyFormat(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)}}</td> <td>{{moneyFormat(totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)}}</td>
</tr> </tr>
<tr v-show="totalScenicPrice>0"> <tr v-show="totalScenicPrice>0">
<td>景点门票</td> <td>景点门票</td>
<td>{{moneyFormat(OtherTotalPrice)}}</td>
<td>{{moneyFormat(totalScenicPrice)}}</td> <td>{{moneyFormat(totalScenicPrice)}}</td>
</tr> </tr>
<tr v-show="totalTrafficPrice>0"> <tr v-show="totalTrafficPrice>0">
<td>交通</td> <td>交通</td>
<td>{{moneyFormat(SelfPayingExpendTotalPrice)}}</td>
<td>{{moneyFormat(totalTrafficPrice)}}</td> <td>{{moneyFormat(totalTrafficPrice)}}</td>
</tr> </tr>
<tr v-show="totalDinnerPrice>0"> <tr v-show="totalDinnerPrice>0">
<td>餐饮</td> <td>餐饮</td>
<td>{{moneyFormat(IncomeTotalPrice)}}</td>
<td>{{moneyFormat(totalDinnerPrice)}}</td> <td>{{moneyFormat(totalDinnerPrice)}}</td>
</tr> </tr>
<tr v-show="totalHotelPrice>0"> <tr v-show="totalHotelPrice>0">
<td>酒店</td> <td>酒店</td>
<td>{{moneyFormat(ExpendTotalPrice)}}</td>
<td>{{moneyFormat(totalHotelPrice)}}</td> <td>{{moneyFormat(totalHotelPrice)}}</td>
</tr> </tr>
</table> </table>
...@@ -289,7 +436,7 @@ input[type="number"] { ...@@ -289,7 +436,7 @@ input[type="number"] {
<td colspan="7">暂无数据</td> <td colspan="7">暂无数据</td>
</tr> </tr>
</table> </table>
<table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" >
<tr> <tr>
<th width="140">团号</th> <th width="140">团号</th>
<th width="200">实际领款</th> <th width="200">实际领款</th>
...@@ -421,6 +568,11 @@ export default { ...@@ -421,6 +568,11 @@ export default {
blankUrl: "", blankUrl: "",
TotalNav: [], TotalNav: [],
TimeXiao: false, TimeXiao: false,
list:[],
OtherTotalPrice:0,
SelfPayingExpendTotalPrice:0,
IncomeTotalPrice:0,
ExpendTotalPrice:0,
}; };
}, },
methods: { methods: {
...@@ -501,6 +653,7 @@ export default { ...@@ -501,6 +653,7 @@ export default {
this.totalDinnerPrice this.totalDinnerPrice
).toFixed(2); ).toFixed(2);
this.isShowRemark = true; this.isShowRemark = true;
console.log(this.dataList)
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -618,17 +771,100 @@ export default { ...@@ -618,17 +771,100 @@ export default {
// tab: '领队报账' // tab: '领队报账'
// } // }
// }) // })
},
getnewList(){
this.loading = true;
this.apipost('dmcstatistics_post_GetNewLeaderPayStatics_V1', this.msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.list = res.data.data;
// this.UseCount = this.list.UseCount;
// if (this.list.OtherOrderReportList.OtherList && this.list.OtherOrderReportList.OtherList.length > 0) {
// this.list.OtherOrderReportList.OtherList.forEach(x => {
// x.CostProject = x.CostProject.toString();
// });
// }
} else {
this.$message.error(res.data.message);
}
}, err => {})
},
peopleStrToWord(str) {
if (str == '1')
return '成人'
if (str == '2')
return '儿童'
if (str == '3')
return '小人'
},
scenicTotalPrice(sObj, obj) {
let totalPrice = 0
obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.UsePeopleNum - x.Discount) * (1 - x.DiscountPrice / 100)
})
if (sObj.PayStyle !== 1) {
totalPrice = 0
}
return this.moneyFormat(totalPrice)
},
busTotalPrice(obj) {
let totalPrice = 0
obj.forEach(item => {
totalPrice += (item.PayType === 1 ? Number(item.CostPrice) : 0) + (item.HighSpeedPayType === 1 ? Number(
item.HighSpeedPrice) : 0) + Number(item.StopPrice)
})
return this.moneyFormat(totalPrice)
},
diningTotalPrice(sObj, obj) {
let totalPrice = 0
obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.PeopleNum - x.Discount) * (1 - x.DiscountPrice / 100)
})
if (sObj.PayStyle !== 1) {
totalPrice = 0
}
return this.moneyFormat(totalPrice)
},
hotelTotalPrice(obj) {
let totalPrice = 0
obj.forEach(x => {
if (x.PayStyle === 1) {
totalPrice += x.UnitPrice * (x.BookNum - x.HotelDiscount) * (1 - x.RebateRatio / 100)
} else {
totalPrice += 0
}
})
return this.moneyFormat(totalPrice)
},
getzongJE(){
this.apipost('dmcstatistics_post_GetNewPlanTotalPrice', {
TCIDs: this.msg.TCIDs
}, res => {
if (res.data.resultCode == 1) {
let data = res.data.data.reimburseTotalPrice;
this.OtherTotalPrice = data.OtherTotalPrice
this.SelfPayingExpendTotalPrice = data.SelfPayingExpendTotalPrice
this.IncomeTotalPrice = data.IncomeTotalPrice
this.ExpendTotalPrice = data.ExpendTotalPrice
} else {
this.$message.error(res.data.message);
}
}, err => {})
} }
}, },
created() {}, created() {},
mounted() { mounted() {
this.isUpdate = this.$route.query.isUpdate; this.isUpdate = this.$route.query.isUpdate;
this.msg.TCIDs = this.$route.query.id; this.msg.TCIDs = this.$route.query.id;
this.getzongJE()
this.getNav(); this.getNav();
this.getList(); this.getList();
this.getTotalMoney(); this.getTotalMoney();
this.getTotalPrice(); this.getTotalPrice();
this.getNavT(); this.getNavT();
this.getnewList()
this.getzongJE()
} }
}; };
</script> </script>
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<th>客户信息</th> <th>客户信息</th>
<th>联系人信息</th> <th>联系人信息</th>
<th>订单状态</th> <th>订单状态</th>
<th>创建日期</th>
<th>退款状态</th> <th>退款状态</th>
</tr> </tr>
<tr> <tr>
...@@ -102,6 +103,7 @@ ...@@ -102,6 +103,7 @@
<span v-if="item.status==2">取消</span> <span v-if="item.status==2">取消</span>
<span v-if="item.status==3">待付款</span> <span v-if="item.status==3">待付款</span>
</td> </td>
<td>{{item.createDate}}</td>
<td> <td>
<p v-if="item.RefundStatus!=1"> <p v-if="item.RefundStatus!=1">
<span v-if="item.RefundStatus==2">退款中</span> <span v-if="item.RefundStatus==2">退款中</span>
...@@ -185,7 +187,7 @@ export default { ...@@ -185,7 +187,7 @@ export default {
AirTicketId: 0, AirTicketId: 0,
AirOrderId: 0, AirOrderId: 0,
status: 0, status: 0,
startDate: moment().format("YYYY-MM-DD"), startDate: "",
endDate: "", endDate: "",
searchKey:"", searchKey:"",
rbBranchId:-1, rbBranchId:-1,
......
...@@ -452,7 +452,7 @@ input[type="number"] { ...@@ -452,7 +452,7 @@ input[type="number"] {
<div class="combottomDiv" v-if="isShowDIv"> <div class="combottomDiv" v-if="isShowDIv">
<div class="combottomTitle">{{divTitle}}</div> <div class="combottomTitle">{{divTitle}}</div>
<div class=""> <div class="">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="130px">
<el-col :span="5"> <el-col :span="5">
<el-form-item :label="$t('system.query_lineName')" prop="lineName"> <el-form-item :label="$t('system.query_lineName')" prop="lineName">
<el-input v-model="addMsg.lineName"></el-input> <el-input v-model="addMsg.lineName"></el-input>
...@@ -521,7 +521,7 @@ input[type="number"] { ...@@ -521,7 +521,7 @@ input[type="number"] {
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="线路方向" prop="LineDirection"> <el-form-item label="线路方向" prop="LineDirection">
<el-select v-model="addMsg.LineDirection" :placeholder="$t('pub.pleaseSel')" class="w290"> <el-select v-model="addMsg.LineDirection" :placeholder="$t('pub.pleaseSel')">
<el-option label='入境' :value='1'></el-option> <el-option label='入境' :value='1'></el-option>
<el-option label='出境' :value='2'></el-option> <el-option label='出境' :value='2'></el-option>
<el-option label='一日游' :value='3'></el-option> <el-option label='一日游' :value='3'></el-option>
...@@ -529,7 +529,7 @@ input[type="number"] { ...@@ -529,7 +529,7 @@ input[type="number"] {
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="线路图片"> <el-form-item label="B2B线路背景图">
<div class="TFimgList"> <div class="TFimgList">
<img v-if="!addMsg.BackgroundImage" src="../../assets/img/bg_c3@3x.png"> <img v-if="!addMsg.BackgroundImage" src="../../assets/img/bg_c3@3x.png">
<img v-else :src='addMsg.BackgroundImage'> <img v-else :src='addMsg.BackgroundImage'>
...@@ -546,6 +546,25 @@ input[type="number"] { ...@@ -546,6 +546,25 @@ input[type="number"] {
</div> </div>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="B2B线路侧边长图">
<div class="TFimgList" style="width:90px">
<img v-if="!addMsg.BroadsideImage" src="../../assets/img/bg_c3@3x.png">
<img v-else :src='addMsg.BroadsideImage'>
<div class="TFIMGzhe">
<div class="TFreupload">
<el-upload :file-list="fileList2" :http-request="uploadTest2" :multiple="true" :limit="2"
:on-change="handleChange2"
accept="image/jpeg, image/gif, image/png, image/bmp"
:show-file-list="false" action="">
<i class="iconfont icon-Edit"></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
</el-col> </el-col>
<div class="LM_Btcontent"> <div class="LM_Btcontent">
<input type="button" class="normalBtn" @click="submitForm('addMsg')" :value="$t('pub.saveBtn')"/> <input type="button" class="normalBtn" @click="submitForm('addMsg')" :value="$t('pub.saveBtn')"/>
...@@ -635,6 +654,7 @@ export default { ...@@ -635,6 +654,7 @@ export default {
data() { data() {
return { return {
fileList:[], fileList:[],
fileList2:[],
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 6, pageSize: 6,
...@@ -657,6 +677,7 @@ export default { ...@@ -657,6 +677,7 @@ export default {
Is_PacketGroup: 0, Is_PacketGroup: 0,
LineDirection:2, LineDirection:2,
BackgroundImage:"", BackgroundImage:"",
BroadsideImage:'',
}, },
departCompany: "", departCompany: "",
departDepartment: "", departDepartment: "",
...@@ -701,6 +722,19 @@ export default { ...@@ -701,6 +722,19 @@ export default {
this.fileList = fileList.slice(-1); this.fileList = fileList.slice(-1);
}, },
handleChange2(file, fileList) {
this.fileList2 = fileList.slice(-1);
},
uploadTest2(file) {
let newArr = [];
newArr.push(file.file);
let path = "/Upload/DMC/Icon/";
this.UploadSelfFileT(path, newArr, x => {
let url = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.addMsg.BroadsideImage = url;
});
},
uploadTest(file) { uploadTest(file) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
...@@ -810,6 +844,8 @@ export default { ...@@ -810,6 +844,8 @@ export default {
this.addMsg.Is_PacketGroup = getInfo.is_PacketGroup; this.addMsg.Is_PacketGroup = getInfo.is_PacketGroup;
this.addMsg.LineDirection = getInfo.lineDirection; this.addMsg.LineDirection = getInfo.lineDirection;
this.addMsg.BackgroundImage = getInfo.BackgroundImage; this.addMsg.BackgroundImage = getInfo.BackgroundImage;
this.addMsg.BroadsideImage = getInfo.BroadsideImage;
console.log("this.addMsg.BackgroundImage",getInfo) console.log("this.addMsg.BackgroundImage",getInfo)
}, },
deletelist(lineID) { deletelist(lineID) {
......
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