Commit b7fe01b0 authored by 黄奎's avatar 黄奎

页面修改

parent f495610b
...@@ -2,10 +2,34 @@ ...@@ -2,10 +2,34 @@
<div> <div>
<div class="query-box" style="border-bottom: none;"> <div class="query-box" style="border-bottom: none;">
<ul> <ul>
<li><span><em>{{$t('advmanager.v_xilie')}}</em> <li>
<span>
<em>{{$t('advmanager.v_line')}}</em>
<el-select v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')" @change="getLinePlaceList()">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="item in queryCommonData.LineList" :label='item.LineName' :value='item.LineID'
:key='item.LineID'>
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('Operation.Op_Country')}}/{{$t('system.query_dest')}}</em>
<el-select v-model="msg.PlaceID" filterable :placeholder="$t('pub.pleaseSel')" @change="getLineTeamList()">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option v-for="item in queryCommonData.PlaceList" :label="item.PlaceName" :value="item.PlaceID"
:key="item.LtID"></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('advmanager.v_xilie')}}</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="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" :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 queryCommonData.LineTeamList" :label='item.LtName' :value='item.LtID'
:key='item.LtID'>
</el-option> </el-option>
</el-select> </el-select>
</span> </span>
...@@ -85,7 +109,8 @@ ...@@ -85,7 +109,8 @@
</tr> </tr>
</table> </table>
<el-button slot="reference" class="normalBtn mt5" <el-button slot="reference" class="normalBtn mt5"
style='height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'>{{$t('fnc.xiangqing')}} style='height:24px; padding: 0 10px; background: #2AAEF2; border-color: #2AAEF2;'>
{{$t('fnc.xiangqing')}}
</el-button> </el-button>
</el-popover> </el-popover>
</td> </td>
...@@ -105,12 +130,14 @@ ...@@ -105,12 +130,14 @@
{{thirdItem.UseTimeStr}} {{thirdItem.UseTimeStr}}
</td> </td>
<td style="text-align:left;padding-left:3px;"> <td style="text-align:left;padding-left:3px;">
{{thirdItem.ScenicName}}<span style="color:red">{{getUseTypeStr(thirdItem.TicketPriceList)}}</span> {{thirdItem.ScenicName}}<span
style="color:red">{{getUseTypeStr(thirdItem.TicketPriceList)}}</span>
</td> </td>
<td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'> <td :rowspan="item.itemRowSpan" v-if='subIndex==0&&thirdIndex==0'>
<div class="link"> <div class="link">
<div class="w80"> <div class="w80">
<p @click="goUrl('admissionStatisticsDetails',item,outItem,'门票详情')">{{$t('fnc.xiangqing')}}</p> <p @click="goTicketDetails(item,outItem,'门票详情')">{{$t('fnc.xiangqing')}}
</p>
</div> </div>
</div> </div>
</td> </td>
...@@ -140,6 +167,7 @@ ...@@ -140,6 +167,7 @@
export default { export default {
data() { data() {
return { return {
userInfo: {}, //用户信息
loading: false, loading: false,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
...@@ -147,13 +175,18 @@ ...@@ -147,13 +175,18 @@
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
SelectType: 3, SelectType: 3,
LineId: 14, LineId: 0,
LineteamId: "-1", PlaceID: 0,
LineteamId: 0,
StartDate: '', StartDate: '',
EndDate: '' EndDate: ''
}, },
LineList: [], queryCommonData: {
LineTeamList: [],
PlaceList: [],
LineList: [],
LineTeamList: [],
},
DataList: [], DataList: [],
} }
}, },
...@@ -172,35 +205,49 @@ ...@@ -172,35 +205,49 @@
if (childItem.PeopleType == 3) { if (childItem.PeopleType == 3) {
useStr = "小人" useStr = "小人"
} }
str+=useStr+":"+childItem.UsePeopleNum+","; str += useStr + ":" + childItem.UsePeopleNum + ",";
}); });
} }
return str.substring(0,str.lastIndexOf(',')); return str.substring(0, str.lastIndexOf(','));
}, },
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.queryCommonData.LineList = res.data.data;
this.queryCommonData.PlaceList = []
this.queryCommonData.LineTeamList = []
} else { } else {
this.$message.error(res.data.message); this.Error(res.data.message);
} }
}); });
}, },
//获取目的地列表
getLinePlaceList() {
this.msg.PlaceID = 0;
this.msg.LineteamId = 0;
let msg = {
lineID: this.msg.LineId,
}
this.apipost('team_post_GetLinePlace', msg, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.PlaceList = res.data.data
this.queryCommonData.LineTeamList = []
}
})
},
//获取系列列表 //获取系列列表
getLineTeamList(lineId) { getLineTeamList() {
this.LineTeamList = []; this.msg.LineteamId = 0
this.apipost( let msg = {
"team_post_GetList", { lineID: this.msg.LineId,
lineID: 14, placeID: this.msg.PlaceID,
isTOOP: 1 isTOOP: 1
}, }
res => { this.apipost('team_post_GetList', msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.msg.LineteamId = "-1"; this.queryCommonData.LineTeamList = res.data.data
this.LineTeamList = res.data.data;
}
} }
); })
}, },
goUrlT(path, obj, title) { goUrlT(path, obj, title) {
this.$router.push({ this.$router.push({
...@@ -212,7 +259,11 @@ ...@@ -212,7 +259,11 @@
} }
}) })
}, },
goUrl(path, obj, outItem, title) { goTicketDetails(obj, outItem, title) {
var path = "admissionStatisticsDetails";
if (this.userInfo.RB_Group_id == 91) {
path = "admissionStatisticsDetails_SWT";
}
this.$router.push({ this.$router.push({
name: path, name: path,
query: { query: {
...@@ -264,6 +315,10 @@ ...@@ -264,6 +315,10 @@
}, },
}, },
mounted() { mounted() {
this.userInfo = this.getLocalStorage();
if (this.userInfo.RB_Group_id == 2) {
this.msg.LineId = 14;
}
let myDate = new Date(); let myDate = new Date();
let nowDate = let nowDate =
myDate.getFullYear() + myDate.getFullYear() +
...@@ -272,6 +327,7 @@ ...@@ -272,6 +327,7 @@
"-" + "-" +
myDate.getDate(); myDate.getDate();
this.msg.StartDate = nowDate; this.msg.StartDate = nowDate;
this.getLineList();
this.getList() this.getList()
}, },
} }
......
...@@ -210,18 +210,19 @@ ...@@ -210,18 +210,19 @@
</el-select> </el-select>
</span> </span>
</li> </li>
<li > <li>
<span> <span>
<em>{{$t('advmanager.v_type')}}</em> <em>{{$t('advmanager.v_type')}}</em>
<el-select v-model="msg.QStatus" :placeholder="$t('pub.pleaseSel')" filterable> <el-select v-model="msg.QStatus" :placeholder="$t('pub.pleaseSel')" filterable>
<el-option :key="0" :label="$t('ground.djmpdd')" :value="0"></el-option> <el-option :key="0" :label="$t('ground.djmpdd')" :value="0"></el-option>
<el-option :key="1" :label="$t('ground.xcmp')" :value="1"></el-option> <el-option :key="1" :label="$t('ground.xcmp')" :value="1"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li style="margin-right:50px;"> <li style="margin-right:50px;">
<button class="normalBtn" type="button" @click="GetHoltelInventory()">{{$t('pub.searchBtn')}}</button> <button class="normalBtn" type="button" @click="GetHoltelInventory()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button" @click="DownLoadDinnerSalesBoard()" >{{$t('adm.adm_download')}}</button> <button class="normalBtn" type="button"
@click="DownLoadDinnerSalesBoard()">{{$t('adm.adm_download')}}</button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -272,12 +273,14 @@ ...@@ -272,12 +273,14 @@
export default { export default {
data() { data() {
return { return {
userInfo: {}, //当前用户登录信息
msg: { msg: {
Year: 0, Year: 0,
Month: 0, Month: 0,
CouponsId: 0, CouponsId: 0,
QStatus:0, QStatus: 0,
loading: false loading: false,
uid:0,
}, },
//餐厅列表 //餐厅列表
ScenicList: [], ScenicList: [],
...@@ -353,7 +356,7 @@ ...@@ -353,7 +356,7 @@
var that = this; var that = this;
this.msg.Year = this.currentYear; this.msg.Year = this.currentYear;
this.msg.Month = this.currentMonth; this.msg.Month = this.currentMonth;
this.DayData=[]; this.DayData = [];
this.apipost( this.apipost(
"ticketcouponsorder_post_GetScenicMonthStatistics", "ticketcouponsorder_post_GetScenicMonthStatistics",
this.msg, this.msg,
...@@ -367,7 +370,7 @@ ...@@ -367,7 +370,7 @@
d.getMonth() + 1, d.getMonth() + 1,
d.getDate() d.getDate()
); );
dayItem.dayValue=[]; dayItem.dayValue = [];
for (var j = 0; j < this.DayData.length; j++) { for (var j = 0; j < this.DayData.length; j++) {
if (this.DayData[j].Day == myDate) { if (this.DayData[j].Day == myDate) {
dayItem.dayValue = this.DayData[j].SubList; dayItem.dayValue = this.DayData[j].SubList;
...@@ -382,7 +385,9 @@ ...@@ -382,7 +385,9 @@
//获取酒店列表 //获取酒店列表
GetScenicList() { GetScenicList() {
this.apipost( this.apipost(
"ticketcoupons_post_GetList", {QCountry:651}, "ticketcoupons_post_GetList", {
QCountrys: "651,1252"
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ScenicList = res.data.data; this.ScenicList = res.data.data;
...@@ -398,6 +403,7 @@ ...@@ -398,6 +403,7 @@
return; return;
} }
this.msg.loading = true; this.msg.loading = true;
this.msg.uid=this.userInfo.EmployeeId;
let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls"; let fileName = "门票下载" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("ticketcouponsorder_post_DownLoadScenicMonthStatistics", this.msg, fileName, this.GetLocalFile("ticketcouponsorder_post_DownLoadScenicMonthStatistics", this.msg, fileName,
res => { res => {
...@@ -406,6 +412,7 @@ ...@@ -406,6 +412,7 @@
} }
}, },
mounted() { mounted() {
this.userInfo = this.getLocalStorage();
//初始化日历 //初始化日历
let myDate = new Date(); let myDate = new Date();
this.currentYear = myDate.getFullYear(); this.currentYear = myDate.getFullYear();
......
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