Commit e56fbee4 authored by 王悦's avatar 王悦
parents 1f29a7cb a38e578d
...@@ -427,7 +427,7 @@ tr._item_list td:last-child { ...@@ -427,7 +427,7 @@ tr._item_list td:last-child {
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <!-- <el-col :span="4">
<el-form-item label="出发城市:"> <el-form-item label="出发城市:">
<el-select filterable v-model="msg.StartCityId" class> <el-select filterable v-model="msg.StartCityId" class>
<el-option :value="0" label="不限"></el-option> <el-option :value="0" label="不限"></el-option>
...@@ -439,8 +439,8 @@ tr._item_list td:last-child { ...@@ -439,8 +439,8 @@ tr._item_list td:last-child {
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="4"> <!-- <el-col :span="4">
<el-form-item label="线路:"> <el-form-item label="线路:">
<el-select filterable v-model="msg.LineId" @change="getLineTeamList(msg.LineId)"> <el-select filterable v-model="msg.LineId" @change="getLineTeamList(msg.LineId)">
<el-option :value="0" label="不限"></el-option> <el-option :value="0" label="不限"></el-option>
...@@ -452,8 +452,8 @@ tr._item_list td:last-child { ...@@ -452,8 +452,8 @@ tr._item_list td:last-child {
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="4"> <!-- <el-col :span="4">
<el-form-item label="系列:"> <el-form-item label="系列:">
<el-select filterable v-model="msg.LineTeamId" class> <el-select filterable v-model="msg.LineTeamId" class>
<el-option :value="0" label="不限"></el-option> <el-option :value="0" label="不限"></el-option>
...@@ -465,7 +465,7 @@ tr._item_list td:last-child { ...@@ -465,7 +465,7 @@ tr._item_list td:last-child {
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="4" class="year"> <el-col :span="4" class="year">
<el-form-item label="年份:"> <el-form-item label="年份:">
<el-date-picker <el-date-picker
...@@ -476,17 +476,17 @@ tr._item_list td:last-child { ...@@ -476,17 +476,17 @@ tr._item_list td:last-child {
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <!-- <el-col :span="4">
<el-form-item label="团队编号:"> <el-form-item label="团队编号:">
<el-input v-model="msg.TCID" class></el-input> <el-input v-model="msg.TCID" class></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
</el-row> </el-row>
</el-form> </el-form>
<ul class="clearfix"> <ul class="clearfix">
<li class="hight_query"> <li class="hight_query">
<button class="normalBtn" @click="togbu()">{{$t('pub.searchBtn')}}</button> <button class="normalBtn" @click="togbu()">{{$t('pub.searchBtn')}}</button>
<!-- <button class="hollowFixedBtn" @click="method5()">导出</button> --> <button class="hollowFixedBtn" @click="method5()">导出</button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -575,9 +575,6 @@ export default { ...@@ -575,9 +575,6 @@ export default {
userId: 0, userId: 0,
msg: { msg: {
OutBranchId: "", OutBranchId: "",
StartCityId: "",
LineId: "",
LineTeamId: "",
TCID: "", TCID: "",
QStartDate: "", QStartDate: "",
QEndDate: "", QEndDate: "",
...@@ -596,7 +593,7 @@ export default { ...@@ -596,7 +593,7 @@ export default {
tableData: [], tableData: [],
LineList: [], LineList: [],
LineTeamList: [], LineTeamList: [],
startCityList1: [], // startCityList1: [],
multipleSort: false, multipleSort: false,
kaiqiZzBox: false, kaiqiZzBox: false,
KaiqiZzTime: [], KaiqiZzTime: [],
...@@ -608,42 +605,7 @@ export default { ...@@ -608,42 +605,7 @@ export default {
Is_Open: "" Is_Open: ""
}, },
defaultMonth: [], defaultMonth: [],
pickerOptions: {
onPick: ({ maxDate, minDate }) => {
this.choiceDate = minDate.getTime();
if (maxDate) {
this.choiceDate = "";
}
},
disabledDate: time => {
if(time < new Date("2018-12-31")){
return true;
} else{
if (this.choiceDate) {
const one = 365 * 24 * 3600 * 1000;
const minTime = this.choiceDate - one;
const maxTime = this.choiceDate + one;
return time.getTime() < minTime || time.getTime() > maxTime;
}
}
}
},
pickerOptions2: {
onPick: ({ maxDate, minDate }) => {
this.choiceDate = minDate.getTime();
if (maxDate) {
this.choiceDate = "";
}
},
disabledDate: time => {
if (this.choiceDate) {
const one = 30 * 24 * 3600 * 1000;
const minTime = this.choiceDate - one;
const maxTime = this.choiceDate + one;
return time.getTime() < minTime || time.getTime() > maxTime;
}
}
},
columns: [], columns: [],
footer: [], footer: [],
pageSize: 6, pageSize: 6,
...@@ -665,8 +627,8 @@ export default { ...@@ -665,8 +627,8 @@ export default {
this.userId = userInfo.EmployeeId; this.userId = userInfo.EmployeeId;
this.getCompanyList(); this.getCompanyList();
// this.getPageList(); // this.getPageList();
this.getLineList(); // this.getLineList();
this.getStartList1(); // this.getStartList1();
this.togbu() this.togbu()
}, },
methods: { methods: {
...@@ -681,9 +643,6 @@ export default { ...@@ -681,9 +643,6 @@ export default {
this.loading = true; this.loading = true;
if (!this.msg.OutBranchId && this.msg.OutBranchId !== 0) if (!this.msg.OutBranchId && this.msg.OutBranchId !== 0)
this.msg.OutBranchId = -1; this.msg.OutBranchId = -1;
if (!this.msg.StartCityId) this.msg.StartCityId = 0;
if (!this.msg.LineId) this.msg.LineId = 0;
if (!this.msg.LineTeamId) this.msg.LineTeamId = 0;
if (!this.msg.TCID) this.msg.TCID = 0; if (!this.msg.TCID) this.msg.TCID = 0;
if (this.msg.QStartDate == "") this.msg.QStartDate = "2019"; if (this.msg.QStartDate == "") this.msg.QStartDate = "2019";
this.apipost('financestatistics_get_GetTravelMonthReportList', this.msg, res=>{ this.apipost('financestatistics_get_GetTravelMonthReportList', this.msg, res=>{
...@@ -717,8 +676,7 @@ export default { ...@@ -717,8 +676,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "FEB", field: "FEB",
...@@ -726,8 +684,7 @@ export default { ...@@ -726,8 +684,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "MAR", field: "MAR",
...@@ -735,8 +692,7 @@ export default { ...@@ -735,8 +692,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "FirstQuarter", field: "FirstQuarter",
...@@ -744,8 +700,7 @@ export default { ...@@ -744,8 +700,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "APR", field: "APR",
...@@ -753,8 +708,7 @@ export default { ...@@ -753,8 +708,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "MAY", field: "MAY",
...@@ -762,8 +716,7 @@ export default { ...@@ -762,8 +716,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "JUN", field: "JUN",
...@@ -771,8 +724,7 @@ export default { ...@@ -771,8 +724,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "TwoQuarter", field: "TwoQuarter",
...@@ -780,8 +732,7 @@ export default { ...@@ -780,8 +732,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "FirstHalf", field: "FirstHalf",
...@@ -789,8 +740,7 @@ export default { ...@@ -789,8 +740,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "JUL", field: "JUL",
...@@ -798,8 +748,7 @@ export default { ...@@ -798,8 +748,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "AUG", field: "AUG",
...@@ -807,8 +756,7 @@ export default { ...@@ -807,8 +756,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "SEP", field: "SEP",
...@@ -816,8 +764,7 @@ export default { ...@@ -816,8 +764,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "ThreeQuarter", field: "ThreeQuarter",
...@@ -825,8 +772,7 @@ export default { ...@@ -825,8 +772,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "OCT", field: "OCT",
...@@ -834,8 +780,7 @@ export default { ...@@ -834,8 +780,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "NOV", field: "NOV",
...@@ -843,8 +788,7 @@ export default { ...@@ -843,8 +788,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "DEC", field: "DEC",
...@@ -852,8 +796,7 @@ export default { ...@@ -852,8 +796,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "FourQuarter", field: "FourQuarter",
...@@ -861,8 +804,7 @@ export default { ...@@ -861,8 +804,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "EndHalf", field: "EndHalf",
...@@ -870,8 +812,7 @@ export default { ...@@ -870,8 +812,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true
}, },
{ {
field: "Total", field: "Total",
...@@ -879,8 +820,7 @@ export default { ...@@ -879,8 +820,7 @@ export default {
width: 80, width: 80,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true
isFrozen: true,
} }
] ]
...@@ -929,9 +869,9 @@ export default { ...@@ -929,9 +869,9 @@ export default {
method5: function() { method5: function() {
this.loading = true; this.loading = true;
this.GetLocalFile( this.GetLocalFile(
"financestatistics_post_OutToExcelYearReportList", "financestatistics_post_OutToExcelTravelMonthReportList",
this.msg, this.msg,
"月度营收报表.xls" "团队营收统计表.xls"
); );
this.loading = false; this.loading = false;
}, },
...@@ -947,50 +887,50 @@ export default { ...@@ -947,50 +887,50 @@ export default {
} }
}, },
getStartList1() { // getStartList1() {
// 获取出发城市 // // 获取出发城市
this.apipost( // this.apipost(
"city_post_GetList", // "city_post_GetList",
{ // {
isDefault: -1, // isDefault: -1,
priceType: -1 // priceType: -1
}, // },
res => { // res => {
if (res.data.resultCode == 1) { // if (res.data.resultCode == 1) {
this.startCityList1 = res.data.data; // this.startCityList1 = res.data.data;
} else { // } else {
console.log(res.data); // console.log(res.data);
} // }
} // }
); // );
}, // },
getLineTeamList(lineId) { // getLineTeamList(lineId) {
//获取系列列表 // //获取系列列表
this.LineTeamList = []; // this.LineTeamList = [];
this.apipost( // this.apipost(
"team_post_GetList", // "team_post_GetList",
{ // {
lineID: lineId, // 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 = "-1";
this.LineTeamList = res.data.data; // this.LineTeamList = res.data.data;
} // }
} // }
); // );
}, // },
getLineList() { // getLineList() {
// 获取线路 // // 获取线路
this.apipost("line_post_GetAllList", {}, res => { // this.apipost("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) { // if (res.data.resultCode == 1) {
this.LineList = res.data.data; // this.LineList = res.data.data;
} else { // } else {
this.$message.error(res.data.message); // this.$message.error(res.data.message);
} // }
}); // });
}, // },
customCompFunc(param) { customCompFunc(param) {
console.log(param); console.log(param);
}, },
...@@ -1023,6 +963,7 @@ export default { ...@@ -1023,6 +963,7 @@ export default {
}, },
// 数据筛选 // 数据筛选
filterMethod(filters) { filterMethod(filters) {
console.log("filters",filters)
this.total = tableData.length; this.total = tableData.length;
}, },
......
...@@ -363,12 +363,12 @@ ...@@ -363,12 +363,12 @@
this.Error('请选择结束日期'); this.Error('请选择结束日期');
isSubmit = false; isSubmit = false;
} }
if (this.PostData.SubList.length == 0) {
this.Error('请选择星期');
isSubmit = false;
}
} }
}); });
if (this.PostData.SubList.length == 0) {
this.Error('请选择星期');
isSubmit = false;
}
} }
if (isSubmit&&this.isSaved) { if (isSubmit&&this.isSaved) {
this.isSaved = false; this.isSaved = false;
......
...@@ -349,8 +349,6 @@ ...@@ -349,8 +349,6 @@
callback(new Error("请输入航班号")); callback(new Error("请输入航班号"));
} else if (!reg3.test(value)) { } else if (!reg3.test(value)) {
callback(new Error("请输入数字或字母")); callback(new Error("请输入数字或字母"));
} else if (!reg.test(value.slice(0,1))) {
callback(new Error("首字母必须为字母"));
} else if(!reg2.test(value.charAt(value.length - 1))){ } else if(!reg2.test(value.charAt(value.length - 1))){
callback(new Error("尾数必须为数字")); callback(new Error("尾数必须为数字"));
} else { } else {
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; " class="ownScrollbarStyle">
<table border="0" cellspacing="1" cellpadding="0" class="dmcTotalTable" v-loading="loading"> <table border="0" cellspacing="1" cellpadding="0" class="dmcTotalTable" v-loading="loading">
<tr> <tr>
<th colspan="9">公司通用信息</th> <th colspan="10">公司通用信息</th>
<th colspan="5">团队需求表</th> <th colspan="5">团队需求表</th>
<th colspan="7">地接op操作</th> <th colspan="7">地接op操作</th>
</tr> </tr>
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
<th width="125">公司团号</th> <th width="125">公司团号</th>
<th width="75">线路<br />负责人</th> <th width="75">线路<br />负责人</th>
<th width="75">进出点</th> <th width="75">进出点</th>
<th width="70">订单人数</th>
<th width="80">机位总数<br />(Y/E/F)</th> <th width="80">机位总数<br />(Y/E/F)</th>
<th width="60">领队</th> <th width="60">领队</th>
<th width="60">导游</th> <th width="60">导游</th>
...@@ -141,6 +142,9 @@ ...@@ -141,6 +142,9 @@
<td> <td>
{{item.InOut}} {{item.InOut}}
</td> </td>
<td>
{{item.CommonReport.HouseStatistics.RealityNum}}
</td>
<td> <td>
<div class="link"> <div class="link">
<p @click="goUrlT('RegistrationList',item.TCIDS,'报名清单')"> <p @click="goUrlT('RegistrationList',item.TCIDS,'报名清单')">
...@@ -252,7 +256,7 @@ ...@@ -252,7 +256,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="20" style="text-align: left!important;padding:0 20px;"> <td colspan="21" style="text-align: left!important;padding:0 20px;">
<div class="link"> <div class="link">
<p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')" style="padding-top:4px;">{{item.Titles}}</p> <p @click="goUrlT('productQuery',item.TCNUMS,'产品查询')" style="padding-top:4px;">{{item.Titles}}</p>
<div v-if="outItem.StaticsReportList[index].DMCNum && outItem.StaticsReportList[index].DMCNum!=''" class="colorE95252" style="padding-top:5px;">地接备注团号:{{outItem.StaticsReportList[index].DMCNum}}</div> <div v-if="outItem.StaticsReportList[index].DMCNum && outItem.StaticsReportList[index].DMCNum!=''" class="colorE95252" style="padding-top:5px;">地接备注团号:{{outItem.StaticsReportList[index].DMCNum}}</div>
......
...@@ -394,6 +394,112 @@ ...@@ -394,6 +394,112 @@
err => {} err => {}
); );
}, },
/*保存数据*/
SaveData_V2(SaveType) {
this.MsgBus.$emit('saveTravel', true);
this.FeatureData.IsSave = true;
this.submitText = "保存中";
//团队配置
var basicData = {};
basicData.PriceList = this.PostPrice;
//配置编号
basicData.ID = this.ConfigId;
basicData.LineId = this.PostConfig.LineId;
basicData.LineteamId = this.PostConfig.LineteamId;
basicData.Title = this.PostConfig.Title;
basicData.OpRemark = this.PostConfig.OpRemark;
basicData.ProductRecommend = this.PostConfig.ProductRecommend;
basicData.VideoStr = this.PostConfig.VideoStr;
basicData.PDFAlias = this.PostConfig.PDFAlias;
basicData.ImgCover = this.PostConfig.ImgCover;
basicData.PriceIsDirect = this.PostConfig.PriceIsDirect;
basicData.IsDirect = this.PostConfig.IsDirect;
basicData.RemoveChild = this.PostConfig.RemoveChild;
basicData.TeamType = this.PostConfig.TeamType;
basicData.DayNum = (this.PostDaysTrip && this.PostDaysTrip.DayNum != "") ? this.PostDaysTrip.DayNum : 0;
basicData.NightNum = (this.PostDaysTrip && this.PostDaysTrip.NightNum != "") ? this.PostDaysTrip.NightNum : 0;
basicData.StartCityId = (this.PostDaysTrip && this.PostDaysTrip.StartCityId != "") ? this.PostDaysTrip.StartCityId :
0;
basicData.ReturnArriveCityId = (this.PostDaysTrip && this.PostDaysTrip.ReturnArriveCityId != "") ? this.PostDaysTrip
.ReturnArriveCityId : 0;
basicData.SelfpayingList = this.PostConfig.SelfpayingList;
basicData.ShopList = this.PostConfig.ShopList;
basicData.DinnerList = this.PostDaysTrip.DinnerList;
basicData.FreedomList = this.PostDaysTrip.FreedomList;
var tripHotelArray = this.PostDaysTrip.HotelList;
var chooseHotelArray=[];
var newHotelArray=[];
// chooseHotelArray.forEach(item=>{
// tripHotelArray.forEach(subItem=>{
// if(item.Hotel==1 && item.DayNum==1)
// {
// newHotelArray.push(subItem)
// }
// });
// });
basicData.HotelList=newHotelArray;
basicData.ScenicList = this.PostDaysTrip.ScenicList;
basicData.TrafficList = this.PostDaysTrip.TrafficList;
basicData.WarmTipList = this.PostDaysTrip.WarmTipList;
basicData.TitleList = this.PostDaysTrip.TitleList;
basicData.RemoveImg = this.PostDaysTrip.RemoveImg;
//行程特色数据
var TripFeature = {};
if (this.PostFeature == "") {
TripFeature = this.FeatureData;
} else {
TripFeature = this.PostFeature;
}
TripFeature.FeatureHtmlJson = TripFeature.FeatureHtmlJson ?
JSON.stringify(TripFeature.FeatureHtmlJson) :
"";
TripFeature.FeatureHtmlJsonDelete = TripFeature.FeatureHtmlJsonDelete ? JSON.stringify(TripFeature.FeatureHtmlJsonDelete) :
"";
TripFeature.FeeInclude = this.PostNotice.FeeInclude;
TripFeature.FeeNonInclude = this.PostNotice.FeeNonInclude;
TripFeature.ImportantTip = this.PostNotice.ImportantTip;
TripFeature.WarmTip = this.PostNotice.WarmTip;
TripFeature.B2BRemark = this.PostNotice.B2BRemark;
TripFeature.ShopRemark = this.PostNotice.ShopRemark;
TripFeature.VisaRemark = this.PostNotice.VisaRemark;
if (
basicData.TrafficList != null &&
basicData.TrafficList.length > 0 &&
basicData.TrafficList[0].SubTraffic != null &&
basicData.TrafficList[0].SubTraffic.length > 0
) {
basicData["ArriveCityId"] =
basicData.TrafficList[0].SubTraffic[0].ArrivalCityId;
}
if (basicData.OpenState == 1) {
basicData["AfterOpenModify"] = true;
}
//"另存"新增团期
if (SaveType == 3) {
basicData.TravelInfoIsCopy = true;
}
//小包团
if (this.flagWangYue) {
basicData.TeamType = 1;
} else {
basicData.TeamType = 0;
}
this.apipost(
"travel_post_SetTravelConfigInfo_V2",
basicData,
res => {
if (res.data.resultCode == 1) {
console.log("res",res.data);
}
},
err => {}
);
},
//初始化团的幻灯片 //初始化团的幻灯片
initFileList() { initFileList() {
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
......
...@@ -400,7 +400,7 @@ ...@@ -400,7 +400,7 @@
</el-checkbox> </el-checkbox>
<el-checkbox v-model="priceData.IsBookTeam" :true-label="CheckedVaule" :false-label="UnCheckedVaule" style="display:none;">订团 <el-checkbox v-model="priceData.IsBookTeam" :true-label="CheckedVaule" :false-label="UnCheckedVaule" style="display:none;">订团
</el-checkbox> </el-checkbox>
<input type="button" class="normalBtn" value="酒店使用情况" style="display:none;" @click="outerVisible=true" /> <input type="button" class="normalBtn" value="酒店使用情况" @click="outerVisible=true" style="display:none;" />
</div> </div>
<el-form-item prop="B2BMemberPrice"> <el-form-item prop="B2BMemberPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" @keyup.native="checkPrice(priceData,'B2BMemberPrice')"> <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" @keyup.native="checkPrice(priceData,'B2BMemberPrice')">
...@@ -713,21 +713,19 @@ ...@@ -713,21 +713,19 @@
:AirTicketId="priceData.AirTicketId" :DeleteAirticketIds="priceData.DeleteAirticketIds" :selectFilghtList="selectFilghtList"></TravelPriceFlightList> :AirTicketId="priceData.AirTicketId" :DeleteAirticketIds="priceData.DeleteAirticketIds" :selectFilghtList="selectFilghtList"></TravelPriceFlightList>
</div> </div>
<el-dialog custom-class='Tp_hotelDialog' title="酒店使用情况" :visible.sync="outerVisible" center> <el-dialog custom-class='Tp_hotelDialog' title="酒店使用情况" :visible.sync="outerVisible" center>
<table class="TphotelTable" border="0" cellspacing='1' v-if="returnPriceList.length>0"> <!-- <table class="TphotelTable" border="0" cellspacing='1' v-if="returnPriceList.length>0">
<tr v-if="returnPriceList[0].PriceHotelList" v-for="item in returnPriceList[0].PriceHotelList"> <tr v-if="returnPriceList[0].PriceHotelList" v-for="item in returnPriceList[0].PriceHotelList">
<td style="background-color:#E6E6E6;color:#333;" width="120">{{item.UseDay}}</td> <td style="background-color:#E6E6E6;color:#333;" width="120">{{item.UseDay}}</td>
<td> <td>
<div class="tp_divList" v-for="(subItem,index) in item.SubList"> <div class="tp_divList" v-for="(subItem,index) in item.SubList">
<div> <div>
{{index+1}}.{{subItem.HotelName}}&nbsp;&nbsp;【<span style="color:#E95252;">库存:{{subItem.RemainingInventory}}</span>】&nbsp;&nbsp; {{index+1}}.{{subItem.HotelName}}&nbsp;&nbsp;【<span style="color:#E95252;">库存:{{subItem.RemainingInventory}}</span>】&nbsp;&nbsp;
<el-checkbox v-model="item.CheckList[index].CheckStatus" @change="changeHotelStatus(item,index)"></el-checkbox>
{{item.CheckList[index].CheckStatus}}
<el-checkbox :checked="item.CheckList[index].CheckStatus===true" @change="changeHotelStatus(item,index,item.CheckList[index].CheckStatus)"></el-checkbox>
</div> </div>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table> -->
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary">{{$t('pub.saveBtn')}}</button> &nbsp; <button class="normalBtn" type="primary">{{$t('pub.saveBtn')}}</button> &nbsp;
<button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
...@@ -764,6 +762,8 @@ ...@@ -764,6 +762,8 @@
SaleBranchIdArray: [] SaleBranchIdArray: []
}, },
returnPriceList: this.priceList, returnPriceList: this.priceList,
//选中的酒店数组
ChooseHotelArray:[],
companyList: [], companyList: [],
offerList: [], offerList: [],
selectFilghtList: [], selectFilghtList: [],
...@@ -920,7 +920,9 @@ ...@@ -920,7 +920,9 @@
//可销售机票数量 //可销售机票数量
CanSellTicketNum: 2, CanSellTicketNum: 2,
//是否订团,0-不订,1需要订 //是否订团,0-不订,1需要订
IsBookTeam: 0 IsBookTeam: 0,
//是否重新生成行程数据
IsNew:false,
}; };
} }
this.returnPriceList.push(objItem); this.returnPriceList.push(objItem);
...@@ -1343,14 +1345,12 @@ ...@@ -1343,14 +1345,12 @@
} }
}, },
//每一天只能选择一个酒店 //每一天只能选择一个酒店
changeHotelStatus(item, index,flag) { changeHotelStatus(item, index) {
if (item.CheckList != null && item.CheckList.length > 0) { item.CheckList.forEach((subItem, subIndex) => {
item.CheckList.forEach(subItem => { if (subIndex != index) {
subItem.CheckStatus = false; subItem.CheckStatus = false;
}); }
item.CheckList[index].CheckStatus = !flag; });
}
console.log("CheckList",item.CheckList);
} }
}, },
mounted() { mounted() {
......
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