Commit 47fb0f10 authored by 王悦's avatar 王悦
parents 551845be 8291c39b
...@@ -2,9 +2,20 @@ ...@@ -2,9 +2,20 @@
<div> <div>
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
<ul> <ul>
<li><span><em>系列</em> <li>
<span>
<em>所属线路</em>
<el-select class="w150" v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')" @change="getLineTeamList(msg.LineId)">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option v-for="item in LineList" :label="item.LineName" :value="item.LineID" :key="item.LineID"></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>系列</em>
<el-select v-model="msg.LineteamId" filterable :placeholder="$t('pub.pleaseSel')"> <el-select v-model="msg.LineteamId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" value='-1'></el-option> <el-option label="不限" :value='0'></el-option>
<el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'> <el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'>
</el-option> </el-option>
</el-select> </el-select>
...@@ -193,8 +204,8 @@ ...@@ -193,8 +204,8 @@
pageSize: 8, pageSize: 8,
//购物店 //购物店
SelectType: 7, SelectType: 7,
LineId: 14, LineId: 0,
LineteamId: "-1", LineteamId: 0,
StartDate: '', StartDate: '',
EndDate: '', EndDate: '',
currentPage: 1, currentPage: 1,
...@@ -232,12 +243,12 @@ ...@@ -232,12 +243,12 @@
this.LineTeamList = []; this.LineTeamList = [];
this.apipost( this.apipost(
"team_post_GetList", { "team_post_GetList", {
lineID: 14, lineID: lineId,
isTOOP: 1 isTOOP: 1
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.msg.LineteamId = "-1"; this.msg.LineteamId = 0;
this.LineTeamList = res.data.data; this.LineTeamList = res.data.data;
} }
} }
...@@ -362,8 +373,8 @@ ...@@ -362,8 +373,8 @@
myDate.getDate(); myDate.getDate();
this.msg.StartDate = nowDate; this.msg.StartDate = nowDate;
//this.msg.StartDate = '2019-01-01'; //this.msg.StartDate = '2019-01-01';
this.getLineTeamList(); this.getLineList();
this.getList() this.getList();
}, },
} }
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</li> </li>
<li> <li>
<span><em>日期</em> <span><em>报名日期</em>
<el-date-picker v-model='msg.StartTime' @change="dataDui()" class='w150' value-format="yyyy-MM-dd" <el-date-picker v-model='msg.StartTime' @change="dataDui()" class='w150' value-format="yyyy-MM-dd"
type="date"></el-date-picker> type="date"></el-date-picker>
- -
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<table class="groupTourOrderSearchTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'> <table class="groupTourOrderSearchTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'>
<tr class="title_tr"> <tr class="title_tr">
<th>单号</th> <th>单号</th>
<th>机票编码</th>
<th>客户信息</th> <th>客户信息</th>
<th>机票编码</th>
<th>客人数量</th> <th>客人数量</th>
<th>单价</th> <th>单价</th>
<th>成交单价</th> <th>成交单价</th>
...@@ -93,16 +93,11 @@ ...@@ -93,16 +93,11 @@
</tr> </tr>
<tbody v-for="(item,index) in dataList" :key="index"> <tbody v-for="(item,index) in dataList" :key="index">
<tr> <tr>
<td>{{item.Id}} </td> <td>{{item.Id}}<br/>{{item.EnterName}}<br/>{{item.CreateDate}} </td>
<td> <td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.CustomerName}}<br/>{{item.CustomerMobile}}</p></td>
<span @click="goUrl('散客机票','individualTicket',item.AirTicketId)" class="guest_num">{{item.AirTicketId}}</span> <td><span @click="goUrl('散客机票','individualTicket',item.AirTicketId)" class="guest_num">{{item.AirTicketId}}</span></td>
</td><!-- 机票编码 -->
<td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.ContactName}}</p>
<!-- <p class="fz12">123456</p> -->
</td>
<td> <td>
<span class="guest_num">{{item.GuestNum}}/{{item.SeatNum}}/{{item.FreightSpace}}</span> <span class="guest_num">{{item.GuestNum}}/{{item.SeatNum}}{{item.FreightSpace}}</span>
</td> </td>
<td class="fz12">{{item.TC_Price}}</td> <td class="fz12">{{item.TC_Price}}</td>
<td class="fz12">{{item.Unit_Price}}</td> <td class="fz12">{{item.Unit_Price}}</td>
...@@ -236,7 +231,7 @@ export default { ...@@ -236,7 +231,7 @@ export default {
StartTime: moment().format("YYYY-MM-DD"), StartTime: moment().format("YYYY-MM-DD"),
EndTime: "" EndTime: ""
}, },
status: [{ title: "全部", num: 0 },{ title: "待付款", num: 3 },{ title: "正常", num: 1 }, { title: "取消", num: 2 }], status: [{ title: "不限", num: 0 },{ title: "待付款", num: 3 },{ title: "正常", num: 1 }, { title: "取消", num: 2 }],
dataList:[], dataList:[],
loading:false, loading:false,
total:0, total:0,
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<tr class="title_tr"> <tr class="title_tr">
<th>单号</th> <th>单号</th>
<th>客户信息</th> <th>客户信息</th>
<!-- <th>联系人</th> -->
<th>客人数量</th> <th>客人数量</th>
<th>单价</th> <th>单价</th>
<th>成交单价</th> <th>成交单价</th>
...@@ -41,11 +42,10 @@ ...@@ -41,11 +42,10 @@
</tr> </tr>
<tbody v-for="item in dataList" :key="item.ContactName"> <tbody v-for="item in dataList" :key="item.ContactName">
<tr> <tr>
<td>{{item.AirProductId}} </td> <td>{{item.Id}}<br/>{{item.EnterName}}<br/>{{item.CreateDate}} </td>
<td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.ContactName}}</p> <td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.CustomerName}}<br/>{{item.CustomerMobile}}</p></td>
<!-- <p class="fz12">123456</p> --> <!-- <td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.ContactName}}<br/>{{item.ContactMobile}}</p></td> -->
</td> <td>{{item.GuestNum}}/{{item.SeatNum}}{{item.FreightSpace}}</td>
<td>{{item.GuestNum}}</td>
<td class="fz12">{{item.TC_Price}}</td> <td class="fz12">{{item.TC_Price}}</td>
<td class="fz12">{{item.Unit_Price}}</td> <td class="fz12">{{item.Unit_Price}}</td>
<td style="color:#FF9C00">{{item.PreferPrice}}</td> <td style="color:#FF9C00">{{item.PreferPrice}}</td>
...@@ -160,11 +160,9 @@ ...@@ -160,11 +160,9 @@
<!-- 取消订单列表 --> <!-- 取消订单列表 -->
<tbody v-show="toggle_status" v-for="(item,index) in CancelList" :key="index"> <tbody v-show="toggle_status" v-for="(item,index) in CancelList" :key="index">
<tr> <tr>
<td>{{item.AirProductId}} </td> <td>{{item.Id}}<br/>{{item.EnterName}}<br/>{{item.CreateDate}} </td>
<td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.ContactName}}</p> <td><p class="fz12 over_ellipsis" style="width: 120px;">{{item.CustomerName}}<br/>{{item.CustomerMobile}}</p></td>
<!-- <p class="fz12">123456</p> --> <td>{{item.GuestNum}}/{{item.SeatNum}}{{item.FreightSpace}}</td>
</td>
<td>{{item.GuestNum}}</td>
<td class="fz12">{{item.TC_Price}}</td> <td class="fz12">{{item.TC_Price}}</td>
<td class="fz12">{{item.Unit_Price}}</td> <td class="fz12">{{item.Unit_Price}}</td>
<td style="color:#FF9C00">{{item.PreferPrice}}</td> <td style="color:#FF9C00">{{item.PreferPrice}}</td>
...@@ -180,7 +178,7 @@ ...@@ -180,7 +178,7 @@
<td colspan="15" class="RL_Order" style="height:20px"> <td colspan="15" class="RL_Order" style="height:20px">
<span class="RL-remarkTitle">名单:</span> <span class="RL-remarkTitle">名单:</span>
<span class="RL-redType RL-remarkCon" v-if="item.GuestList.length>0"> <span class="RL-redType RL-remarkCon" v-if="item.GuestList.length>0">
<span v-for="(childItem) in item.GuestList" :key="childItem.Name">{{childItem.Name}}&nbsp;&nbsp;</span> <!-- <span v-for="(childItem) in item.GuestList" :key="childItem.Name">{{childItem.Name}}&nbsp;&nbsp;</span> -->
<el-popover <el-popover
placement="right" placement="right"
width="1000" width="1000"
......
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
<li> <li>
<span> <span>
<em>航班号</em> <em>航班号</em>
<el-input v-model="msg.Flight_number" placeholder="机票编号"></el-input> <el-input v-model="msg.Flight_number" placeholder="航班号"></el-input>
</span> </span>
</li> </li>
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
</ul> </ul>
<div class="_ol_info"> <div class="_ol_info">
<ul class="_ol_list" v-loading="loading"> <ul class="_ol_list" v-loading="loading">
<li v-for="(item,index) in dataList" :data-id="item.ID"> <li v-for="(item,index) in dataList" :data-id="item.AirTickerId">
<span class="_oll_line" v-if="item.FreightSpace==1"></span> <span class="_oll_line" v-if="item.FreightSpace==1"></span>
<span class="_oll_line _o_green" v-if="item.FreightSpace==2"></span> <span class="_oll_line _o_green" v-if="item.FreightSpace==2"></span>
<span class="_oll_line _o_blu" v-if="item.FreightSpace==3"></span> <span class="_oll_line _o_blu" v-if="item.FreightSpace==3"></span>
...@@ -388,7 +388,7 @@ ...@@ -388,7 +388,7 @@
<el-col :span="2"> <el-col :span="2">
<span class="_lian_style" v-if="item.IsSetUnion==1"></span> <span class="_lian_style" v-if="item.IsSetUnion==1"></span>
<div class="_oll_img_box"> <div class="_oll_img_box">
<span class="TICK_Code PingFangSC">编号:{{item.ID}}</span> <span class="TICK_Code PingFangSC">编号:{{item.AirTickerId}}</span>
<img v-if="!item.AirlineUrl" class="_oll_img" :src="defaultImg"> <img v-if="!item.AirlineUrl" class="_oll_img" :src="defaultImg">
<img v-else class="_oll_img" :src="item.AirlineUrl" :onerror="defaultImg"> <img v-else class="_oll_img" :src="item.AirlineUrl" :onerror="defaultImg">
</div> </div>
...@@ -472,7 +472,7 @@ ...@@ -472,7 +472,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="2" class="vmiddle"> <el-col :span="2" class="vmiddle">
<el-button type="primary" size="mini" @click="goUrl('/IndividualTicketOrderDetails',item)">查看详情</el-button> <el-button type="primary" size="mini" @click="goUrl('/IndividualTicketOrderDetails',item)">查看订单</el-button>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<div> <div>
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
<ul> <ul>
<li><span><em>线路</em> <li>
<span>
<em>线路</em>
<el-select v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')" class="w150" @change="getLineTeamList()"> <el-select v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')" class="w150" @change="getLineTeamList()">
<el-option label="不限" :value='0'></el-option> <el-option label="不限" :value='0'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
...@@ -10,7 +12,9 @@ ...@@ -10,7 +12,9 @@
</el-select> </el-select>
</span> </span>
</li> </li>
<li><span><em>系列</em> <li>
<span>
<em>系列</em>
<el-select v-model="msg.LineteamId" filterable :placeholder="$t('pub.pleaseSel')" class="w150"> <el-select v-model="msg.LineteamId" filterable :placeholder="$t('pub.pleaseSel')" class="w150">
<el-option label="不限" value='-1'></el-option> <el-option label="不限" value='-1'></el-option>
<el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'> <el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'>
...@@ -39,7 +43,7 @@ ...@@ -39,7 +43,7 @@
<li> <li>
<span> <span>
<em>地接团号</em> <em>地接团号</em>
<el-input v-model='msg.CombinationNum' class="w150"></el-input> <el-input v-model='msg.CombinationNum'></el-input>
</span> </span>
</li> </li>
<li> <li>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<th width="150">餐厅</th> <th width="150">餐厅</th>
<th width="150">门票</th> <th width="150">门票</th>
<th width="150">车资</th> <th width="150">车资</th>
<th width="150">其它</th>
<th width="150">总计</th> <th width="150">总计</th>
</tr> </tr>
<tr v-for="item in msgList"> <tr v-for="item in msgList">
...@@ -31,7 +32,8 @@ ...@@ -31,7 +32,8 @@
<td>{{moneyFormat(eatPay)}}</td> <td>{{moneyFormat(eatPay)}}</td>
<td>{{moneyFormat(ticketPay)}}</td> <td>{{moneyFormat(ticketPay)}}</td>
<td>{{moneyFormat(busPay)}}</td> <td>{{moneyFormat(busPay)}}</td>
<td>{{moneyFormat(hotelPay+eatPay+ticketPay+busPay)}}</td> <td>{{moneyFormat(otherPay)}}</td>
<td>{{moneyFormat(hotelPay+eatPay+ticketPay+busPay+otherPay)}}</td>
</tr> </tr>
</table> </table>
<p class="teamRevenueExpenditureTitle"> <p class="teamRevenueExpenditureTitle">
...@@ -266,6 +268,64 @@ ...@@ -266,6 +268,64 @@
<td colspan="9" class="color666">没有找到你需要的财务数据</td> <td colspan="9" class="color666">没有找到你需要的财务数据</td>
</tr> </tr>
</table> </table>
<p class="teamRevenueExpenditureTitle">
其它
<span class="fr" style="margin-top: -8px;">
<input type="button" class="normalBtn" value="新增付款" @click="goUrl(14,2)" /><input type="button" class="normalBtn"
value="新增收款" @click="goUrl(14,1)" />
</span>
</p>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr>
<th width="100">序号</th>
<th width="10%">单号</th>
<th width="10%">费用说明</th>
<th width="10%">日期</th>
<th width="20%">备注</th>
<th width="10%">应付/应付金额</th>
<th width="10%">业务员</th>
<th>付款凭证</th>
<th width="10%">状态</th>
</tr>
<tr v-for="(item,index) in otherList">
<td>{{index+1}}</td>
<td><a style="color:blue;cursor:pointer" @click="goFinaceURL(item.FrID)"> {{item.FrID}} </a></td>
<td>
<span class="padding10" v-for="i in item.CostTypeList">{{i}}</span>
</td>
<td>{{item.CreateDate}}</td>
<td><div v-for="childItem in item.TradeWayList">
支付方式:{{childItem.Alias}}<span class="TB_Rate">币种:{{childItem.CurrencyName}}</span>
<span class="Team_Coins">{{childItem.OriginalMoney}}*{{childItem.Rate}}</span>
<span class="TB_Rate">汇率:{{childItem.Rate}}</span>
</div></td>
<td>
<span>¥{{item.Type === 2 ? '-' : ''}}{{moneyFormat(item.Money)}}</span>
</td>
<td>{{item.EmName}}</td>
<td>
<template v-for="(son,sIndex) in item.VorcherInos">
<template v-if="son.Type==1||son.Type==2">
<i class="iconfont icon-excel" @click="showUpLoadFile(son)"></i>
</template>
<template v-if="son.Type==3">
<img class="vorcherInosImg" @click="showImg(item.VorcherInos)" :src="son.Content" alt="">
</template>
</template>
</td>
<td>{{item.StatusStr}}</td>
</tr>
<tr v-if='otherList.length!=0'>
<td>成本总价</td>
<td style="text-align:left;padding-left:5px;" colspan="8">
¥{{getTotalMoney(otherList)}}
</td>
</tr>
<tr v-if='otherList.length==0'>
<td colspan="9" class="color666">没有找到你需要的财务数据</td>
</tr>
</table>
<div v-if='picIsShow' class="viewBigPicLayer" @click="picIsShow=false,picObj=[]"> <div v-if='picIsShow' class="viewBigPicLayer" @click="picIsShow=false,picObj=[]">
<el-carousel height="600px" :interval="5000" trigger="click"> <el-carousel height="600px" :interval="5000" trigger="click">
<el-carousel-item v-for="(item,index) in picObj" :key="index"> <el-carousel-item v-for="(item,index) in picObj" :key="index">
...@@ -287,10 +347,12 @@ ...@@ -287,10 +347,12 @@
eatList: [], eatList: [],
ticketList: [], ticketList: [],
busList: [], busList: [],
otherList: [],
hotelPay: 0, hotelPay: 0,
eatPay: 0, eatPay: 0,
ticketPay: 0, ticketPay: 0,
busPay: 0, busPay: 0,
otherPay:0,
} }
}, },
methods: { methods: {
...@@ -347,6 +409,9 @@ ...@@ -347,6 +409,9 @@
case 5: case 5:
this.busPay = money this.busPay = money
break; break;
case 14:
this.otherPay = money
break;
default: default:
break; break;
} }
...@@ -406,7 +471,7 @@ ...@@ -406,7 +471,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
switch (type) { switch (type) {
case 1: case 1:
this.hotelList = res.data.data this.hotelList = res.data.data
break; break;
case 2: case 2:
this.eatList = res.data.data this.eatList = res.data.data
...@@ -417,12 +482,15 @@ ...@@ -417,12 +482,15 @@
case 5: case 5:
this.busList = res.data.data this.busList = res.data.data
break; break;
case 14:
this.otherList = res.data.data
break;
default: default:
break; break;
} }
} else { } else {
this.$message.error(res.data.message) this.Error(res.data.message)
} }
}, err => {}) }, err => {})
} }
...@@ -432,6 +500,7 @@ ...@@ -432,6 +500,7 @@
this.getList(2) this.getList(2)
this.getList(3) this.getList(3)
this.getList(5) this.getList(5)
this.getList(14)
this.getTuanMsg() this.getTuanMsg()
} }
} }
......
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
type: contentType type: contentType
}); });
}, },
getHtml: function (postData, SaveType,postType) { getHtml: function (postData, SaveType) {
var FeatureData = { var FeatureData = {
B2BRemark: postData.B2BRemark, B2BRemark: postData.B2BRemark,
ConfigId: postData.ConfigId, ConfigId: postData.ConfigId,
...@@ -369,7 +369,6 @@ ...@@ -369,7 +369,6 @@
} else { } else {
flagWangYue = true; flagWangYue = true;
} }
if (this.$refs.newFeature != undefined) { if (this.$refs.newFeature != undefined) {
var obj = ''; var obj = '';
try { try {
...@@ -389,100 +388,53 @@ ...@@ -389,100 +388,53 @@
setTimeout(() => { setTimeout(() => {
try { try {
FeatureData.FeatureHtml = document.getElementById("newFeatureBox").innerHTML; FeatureData.FeatureHtml = document.getElementById("newFeatureBox").innerHTML;
} catch (err) {} } catch (err) {
if (postType == 1) { }
this.apipost("travel_post_SetFeature", FeatureData, res => { this.apipost("travel_post_SetFeature", FeatureData, res => {
try { try {
this.$refs.newFeature.setReadOnly(false) this.$refs.newFeature.setReadOnly(false)
} catch (ex) {} } catch (ex) {}
try { try {
this.$refs.newFeature2.canEditChange(true) this.$refs.newFeature2.canEditChange(true)
} catch (ex) {} } catch (ex) {}
//解锁表单重复提交 //解锁表单重复提交
this.$emit("unlockFormCommit", true); this.$emit("unlockFormCommit", true);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//保存按钮跳转当当前页码 //保存按钮跳转当当前页码
if (SaveType == 1) { if (SaveType == 1) {
let path = flagWangYue ? 'TravelManager3' : 'TravelManager2'; let path = flagWangYue ? 'TravelManager3' : 'TravelManager2';
this.Success("保存成功"); this.Success("保存成功");
if (flagWangYue || this.isNewConfig) { if (flagWangYue || this.isNewConfig) {
this.$router.push({
path: path,
query: {
flag: flagWangYue,
configId: FeatureData.ConfigId,
openState: 1
}
});
if (localStorage.openMode === "0") {
this.loadConfigInfo();
}
} else {
this.loadConfigInfo();
}
}
//提交按钮和另存模板跳转团控列表
else if (SaveType == 2 || SaveType == 3) {
this.$router.push({ this.$router.push({
path: "TravelControlList", path: path,
query: { query: {
cache: true flag: flagWangYue,
configId: FeatureData.ConfigId,
openState: 1
} }
}); });
} if (localStorage.openMode === "0") {
}
this.MsgBus.$emit('saveTravel', false);
this.FeatureData.IsSave = false;
},
err => {}
)
} else {
this.ApiPost2("TripSetFeature", FeatureData, res => {
try {
this.$refs.newFeature.setReadOnly(false)
} catch (ex) {}
try {
this.$refs.newFeature2.canEditChange(true)
} catch (ex) {}
//解锁表单重复提交
this.$emit("unlockFormCommit", true);
if (res.data.resultCode == 1) {
//保存按钮跳转当当前页码
if (SaveType == 1) {
let path = flagWangYue ? 'TravelManager3' : 'TravelManager2';
this.Success("保存成功");
if (flagWangYue || this.isNewConfig) {
this.$router.push({
path: path,
query: {
flag: flagWangYue,
configId: FeatureData.ConfigId,
openState: 1
}
});
if (localStorage.openMode === "0") {
this.loadConfigInfo();
}
} else {
this.loadConfigInfo(); this.loadConfigInfo();
} }
} } else {
//提交按钮和另存模板跳转团控列表 this.loadConfigInfo();
else if (SaveType == 2 || SaveType == 3) {
this.$router.push({
path: "TravelControlList",
query: {
cache: true
}
});
} }
} }
this.MsgBus.$emit('saveTravel', false); //提交按钮和另存模板跳转团控列表
this.FeatureData.IsSave = false; else if (SaveType == 2 || SaveType == 3) {
}, this.$router.push({
err => {} path: "TravelControlList",
) query: {
} cache: true
}
});
}
}
this.MsgBus.$emit('saveTravel', false);
this.FeatureData.IsSave = false;
},
err => {}
)
}, 2000) }, 2000)
}, },
//切换tab事件 //切换tab事件
......
...@@ -371,52 +371,28 @@ ...@@ -371,52 +371,28 @@
} else { } else {
basicData.TeamType = 0; basicData.TeamType = 0;
} }
var postType = 1; this.apipost(
if (postType == 1) { "travel_post_SetTravelConfigInfo",
this.apipost( basicData,
"travel_post_SetTravelConfigInfo", res => {
basicData, if (res.data.resultCode == 1) {
res => { //配置编号
if (res.data.resultCode == 1) { TripFeature.ConfigId = res.data.data;
//配置编号 this.$refs.TravelFeature.getHtml(TripFeature, SaveType);
TripFeature.ConfigId = res.data.data; } else if (res.data.resultCode == 10009) {
this.$refs.TravelFeature.getHtml(TripFeature, SaveType,postType); this.FeatureData.IsSave = false;
} else if (res.data.resultCode == 10009) { //表单重复提交
this.FeatureData.IsSave = false; this.isSubmit = true;
//表单重复提交 } else {
this.isSubmit = true; this.FeatureData.IsSave = false;
} else { this.Error(res.data.message);
this.FeatureData.IsSave = false; this.isSubmit = true;
this.Error(res.data.message); this.submitText = "提交";
this.isSubmit = true; this.$refs.TravelFeature.del_show = true;
this.submitText = "提交"; }
this.$refs.TravelFeature.del_show = true; },
} err => {}
}, );
err => {}
);
} else {
this.ApiPost2(
"TripSetTravelConfigInfo",
basicData,
res => {
if (res.data.resultCode == 1) {
//配置编号
TripFeature.ConfigId = res.data.data;
this.$refs.TravelFeature.getHtml(TripFeature, SaveType,postType);
} else if (res.data.resultCode == 10009) {
this.FeatureData.IsSave = false;
//表单重复提交
this.isSubmit = true;
} else {
this.FeatureData.IsSave = false;
this.Error(res.data.message);
this.isSubmit = true;
this.submitText = "提交";
this.$refs.TravelFeature.del_show = true;
}
});
}
}, },
//初始化团的幻灯片 //初始化团的幻灯片
initFileList() { initFileList() {
......
...@@ -356,6 +356,9 @@ ...@@ -356,6 +356,9 @@
<el-checkbox v-model="priceData.IsSupportChildren" <el-checkbox v-model="priceData.IsSupportChildren"
:true-label="CheckedVaule" :false-label="UnCheckedVaule">支持儿童出游 :true-label="CheckedVaule" :false-label="UnCheckedVaule">支持儿童出游
</el-checkbox> </el-checkbox>
<el-checkbox v-model="priceData.IsBookTeam" style="display:none"
:true-label="CheckedVaule" :false-label="UnCheckedVaule">订团
</el-checkbox>
</div> </div>
<el-form-item prop="B2BMemberPrice"> <el-form-item prop="B2BMemberPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice"
...@@ -885,6 +888,8 @@ ...@@ -885,6 +888,8 @@
AirportService:"",//机场服务 AirportService:"",//机场服务
//可销售机票数量 //可销售机票数量
CanSellTicketNum:2, CanSellTicketNum:2,
//是否订团,0-不订,1需要订
IsBookTeam:0
}; };
} }
// if (this.modifyTcid > 0) { // if (this.modifyTcid > 0) {
......
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