Commit d424ade2 authored by liudong1993's avatar liudong1993
parents 491fdc03 671d26d1
...@@ -1338,9 +1338,6 @@ ...@@ -1338,9 +1338,6 @@
</el-table> </el-table>
</div> </div>
<div class="noData" v-show="noData">
{{$t('system.content_noData')}}
</div>
<div v-if="!BOSSBtn && !BOSSBtn2"> <div v-if="!BOSSBtn && !BOSSBtn2">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" layout="total,sizes,prev, pager, next, jumper" :page-size='msg.pageSize' :current-page.sync="currentPage" layout="total,sizes,prev, pager, next, jumper" :page-size='msg.pageSize'
......
...@@ -2688,8 +2688,8 @@ export default { ...@@ -2688,8 +2688,8 @@ export default {
handler (val, oldVal) { handler (val, oldVal) {
if (this.$route.query.BranchId) { if (this.$route.query.BranchId) {
this.msg.OutBranchId = Number(this.$route.query.BranchId) this.msg.OutBranchId = Number(this.$route.query.BranchId)
this.financeinfo_post_GetList()
} }
this.financeinfo_post_GetList()
}, },
deep: true, deep: true,
immediate: true immediate: true
......
...@@ -242,6 +242,19 @@ ...@@ -242,6 +242,19 @@
</el-select> </el-select>
</span> </span>
</li> </li>
<li>
<span>
<em>
{{ $t("system.query_airCompanyName") }}
</em>
</span>
<el-select v-model="msg.QAirlineId" filterable :placeholder="$t('system.ph_buxian')" class="w150">
<el-option :label="$t('system.ph_buxian')" :value="0">
</el-option>
<el-option v-for="item in AirlineList" :key="item.AirLineId" :label="item.AlName" :value="item.AirLineId">
</el-option>
</el-select>
</li>
<li> <li>
<span> <span>
<em>{{$t('admin.admin_czPerson')}}</em> <em>{{$t('admin.admin_czPerson')}}</em>
...@@ -320,7 +333,8 @@ ...@@ -320,7 +333,8 @@
QCityId: 0, QCityId: 0,
//操作人 //操作人
QCreateBy: "", QCreateBy: "",
FlightDate: "" FlightDate: "",
QAirlineId: "", //航空公司
}, },
//线路列表 //线路列表
LineList: [], LineList: [],
...@@ -338,10 +352,24 @@ ...@@ -338,10 +352,24 @@
EmployeeList: [], EmployeeList: [],
TotalCount: 0, TotalCount: 0,
TotalSeat: 0, TotalSeat: 0,
loading:false loading: false,
//航空公司
AirlineList: [],
}; };
}, },
methods: { methods: {
//获取航空公司
getAirlineList() {
this.apipost(
"airline_post_GetList", {},
(res) => {
if (res.data.resultCode == 1) {
this.AirlineList = res.data.data;
}
},
(err) => {}
);
},
//获取线路列表 //获取线路列表
GetLineList() { GetLineList() {
this.apipost( this.apipost(
...@@ -410,13 +438,13 @@ ...@@ -410,13 +438,13 @@
}, },
//点击获取机票库存数据 //点击获取机票库存数据
GetHoltelInventory() { GetHoltelInventory() {
this.loading=true; this.loading = true;
this.msg.FlightDate = this.currentYear + "-" + this.currentMonth + "-01"; this.msg.FlightDate = this.currentYear + "-" + this.currentMonth + "-01";
this.apipost( this.apipost(
"AirTicket_get_GetMonthAirticketFlight", "AirTicket_get_GetMonthAirticketFlight",
this.msg, this.msg,
res => { res => {
this.loading=false; this.loading = false;
this.DayData = res.data.data; this.DayData = res.data.data;
this.TotalCount = 0; this.TotalCount = 0;
this.TotalSeat = 0; this.TotalSeat = 0;
...@@ -488,6 +516,7 @@ ...@@ -488,6 +516,7 @@
let myDate = new Date(); let myDate = new Date();
this.currentYear = myDate.getFullYear(); this.currentYear = myDate.getFullYear();
this.currentMonth = myDate.getMonth() + 1; this.currentMonth = myDate.getMonth() + 1;
this.getAirlineList();
this.getEmployeeList(); this.getEmployeeList();
this.getCityList(); this.getCityList();
this.GetLineList(); this.GetLineList();
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
<span> <span>
<em>{{$t('commonPickUp.Pick_attractions')}}</em> <em>{{$t('commonPickUp.Pick_attractions')}}</em>
<el-select v-model="msg.CouponsIdList" :placeholder="$t('pub.pleaseSel')" multiple collapse-tags filterable <el-select v-model="msg.CouponsIdList" :placeholder="$t('pub.pleaseSel')" multiple collapse-tags filterable
@change="getMultipleChoice" @clear="getMultipleChoice"> :remote-method="getSecnicData" remote reserve-keyword>
<el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="defaultSelectValue"></el-option>
<el-option v-for="item in ScenicList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in ScenicList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
...@@ -264,7 +264,8 @@ ...@@ -264,7 +264,8 @@
<div> <div>
<p v-for="(item,subIndex) in dayItem.dayValue" :key="`d_`+index+`s_`+subIndex" style="padding-bottom:10px;"> <p v-for="(item,subIndex) in dayItem.dayValue" :key="`d_`+index+`s_`+subIndex" style="padding-bottom:10px;">
<el-tooltip class="item" effect="dark" <el-tooltip class="item" effect="dark"
:content="`地接团号:`+item.BookGroup+`,公司团号:`+item.TCNUM+`(`+item.TCID+`),总机位:`+item.TotalSeatNum" placement="top"> :content="`地接团号:`+item.BookGroup+`,公司团号:`+item.TCNUM+`(`+item.TCID+`),总机位:`+item.TotalSeatNum"
placement="top">
<span class="text_underLine"> <span class="text_underLine">
{{item.TicketName}}{{item.TicketNum}} {{item.TicketName}}{{item.TicketNum}}
</span> </span>
...@@ -283,9 +284,7 @@ ...@@ -283,9 +284,7 @@
msg: { msg: {
Year: 0, Year: 0,
Month: 0, Month: 0,
CouponsId: 0,
CouponsIdList: [], CouponsIdList: [],
CouponsIds: '',
QStatus: 0, QStatus: 0,
loading: false, loading: false,
uid: 0, uid: 0,
...@@ -303,27 +302,6 @@ ...@@ -303,27 +302,6 @@
}; };
}, },
methods: { methods: {
// 多选
getMultipleChoice() {
this.msg.CouponsId = 0;
if (this.msg.CouponsIdList.length > 1) {
if (this.msg.CouponsIdList.at(-1) == 0) {
this.msg.CouponsIdList = [0]
} else if (this.msg.CouponsIdList.at(-1) != 0) {
this.msg.CouponsIdList.forEach((x, index) => {
if (x == 0) {
this.msg.CouponsIdList.splice(index, 1)
}
})
}
this.msg.CouponsId = 0;
this.msg.CouponsIds = this.msg.CouponsIdList.join(',')
}
if (this.msg.CouponsIdList.length == 1) {
this.msg.CouponsId = this.msg.CouponsIdList[0]
this.msg.CouponsIds = ''
}
},
stockColor: function (type) { stockColor: function (type) {
if (type === 1) { if (type === 1) {
return 'hasStock_1' return 'hasStock_1'
...@@ -412,43 +390,37 @@ ...@@ -412,43 +390,37 @@
); );
}, },
//获取酒店列表 //获取酒店列表
GetScenicList() { getSecnicData(keyWords) {
this.ScenicList = [];
var postMsg = { var postMsg = {
QCountrys: "", QCountrys: "",
IsFree: 1, IsFree: 1,
Name: "",
}; };
if (keyWords && keyWords != '') {
postMsg.Name = keyWords;
}
if (this.userInfo.RB_Group_id == 2) { if (this.userInfo.RB_Group_id == 2) {
postMsg.QCountrys = "651"; postMsg.QCountrys = "651";
} }
console.log("getSecnicData", postMsg);
this.apipost( this.apipost(
"ticketcoupons_post_GetList", postMsg, "ticketcoupons_post_GetList", postMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ScenicList = res.data.data; this.ScenicList = res.data.data;
} }
}, }
err => {}
); );
}, },
//下载餐厅统计 //下载餐厅统计
DownLoadDinnerSalesBoard() { DownLoadDinnerSalesBoard() {
if (this.msg.CouponsId <= 0 && !this.msg.CouponsIds) { let cmdStr = "";
this.Info(this.$t('sm.qxzjingdian')); cmdStr = 'ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew'
return;
}
let url = "";
//单门票下载
if (this.msg.CouponsId > 0) {
url = 'ticketcouponsorder_post_DownLoadScenicMonthStatistics'
}
//多门票下载
else {
url = 'ticketcouponsorder_post_DownLoadScenicMonthStatisticsNew'
}
this.msg.loading = true; this.msg.loading = true;
this.msg.uid = this.userInfo.EmployeeId; this.msg.uid = this.userInfo.EmployeeId;
let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls"; let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile(url, this.msg, fileName, this.GetLocalFile(cmdStr, this.msg, fileName,
res => { res => {
this.msg.loading = false; this.msg.loading = false;
}); });
...@@ -463,7 +435,7 @@ ...@@ -463,7 +435,7 @@
this.msg.Year = this.currentYear; this.msg.Year = this.currentYear;
this.msg.Month = this.currentDay; this.msg.Month = this.currentDay;
this.GetScenicList(); this.getSecnicData();
this.initCalendar(); this.initCalendar();
this.GetHoltelInventory(); this.GetHoltelInventory();
} }
......
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