Commit 183fc7bc authored by 黄奎's avatar 黄奎

11

parent 45b40909
<template>
<!-- border-top: 1px solid #cccccc;margin-top: 5px -->
<!-- border-top: 1px solid #cccccc;margin-top: 5px -->
<div class="passengerSaleList">
<div v-if="OrderBackScenicList!=null&&OrderBackScenicList.length>0 " style="width: 70%;font-size:14px;float:left;margin-bottom: 10px;">
<el-collapse accordion v-model="activeName">
<el-collapse-item name="1">
<template slot="title" > &nbsp;&nbsp;{{$t('ground.tuiJingdian')}}<i class="header-icon el-icon-info"></i> </template>
<div style="margin:0px 10px;">
<span v-for="(childItem,subIndex) in OrderBackScenicList" >
<font style="color:green;">{{subIndex+1}}、{{ childItem.CouponsName }}</font>退票<font style="color:red;">{{childItem.Number}}</font>人:<font style="color: blue">{{childItem.GuestBackScenicName}}</font>
&nbsp;&nbsp; &nbsp;&nbsp;
</span></div>
</el-collapse-item>
</el-collapse >
</div>
<div class="passengerSaleList_topBtn" style="width: 30%;float:right;margin-bottom: 10px;">
<template v-if="isOrder==0">
<span style="color:red;">{{$t('objFill.opygbddcz')}}</span>
......@@ -28,9 +14,18 @@
<div v-if="isOrder==1 && isOneDay !== 1 && !isDis" @click="goUrlP()">{{$t('op.Fenfang')}}</div>
</div>
<div class="passengerSaleList_tableBox">
<table class="passengerSaleList_table" border="0" cellspacing="0" cellpadding="0" :loading="loading">
<thead>
<tr v-if="OrderBackScenicList!=null&&OrderBackScenicList.length>0 ">
<th colspan="19" style="text-align:left;padding:5px;">
<span v-for="(childItem,subIndex) in OrderBackScenicList">
<font style="color:green;">{{subIndex+1}}、{{ childItem.CouponsName }}</font>退<font style="color:red;">
{{childItem.Number}}</font>人:<font style="color: blue">{{childItem.GuestBackScenicName}}</font>
&nbsp;&nbsp; &nbsp;&nbsp;
</span>
</th>
</tr>
<tr>
<th width="2%">ID</th>
<th width="2%">{{$t('op.Fenfang')}}</th>
......@@ -91,9 +86,9 @@
<el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3'
icon="iconfont icon-img_download" @click="goUrlB(item.Id)"></el-button>
</el-tooltip>
<el-tooltip v-if="OrderBackScenicList!=null&&OrderBackScenicList.length>0 " class="item" effect="dark" :content="$t('ground.tuiJingdian')"
placement="top-start">
<el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3'
<el-tooltip v-if="OrderBackScenicList!=null&&OrderBackScenicList.length>0 " class="item" effect="dark"
:content="$t('ground.tuiJingdian')" placement="top-start">
<el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3'
icon="iconfont el-icon-notebook-2" @click="updateGuestBackScenic(item)"></el-button>
</el-tooltip>
</el-tooltip>
......@@ -179,17 +174,15 @@
</div>
</div>
<el-dialog custom-class="w450" :title="$t('sm.exitsure')" :visible.sync="isShowOpSure" center style="padding:25px 25px 55px;">
<el-dialog custom-class="w450" :title="$t('sm.exitsure')" :visible.sync="isShowOpSure" center
style="padding:25px 25px 55px;">
<el-form label-width="110px">
<el-form-item :label="$t('ground.tuiJingdian')">
<el-select v-model="UpdateGuestBackScenic.CouponsIds" multiple collapse-tags placeholder="请选择">
<el-option
v-for="item in OrderBackScenicList"
:key="item.CouponsId"
:label="item.CouponsName"
:value="item.CouponsId">
</el-option>
</el-select>
<el-select v-model="UpdateGuestBackScenic.CouponsIds" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in OrderBackScenicList" :key="item.CouponsId" :label="item.CouponsName"
:value="item.CouponsId">
</el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -209,9 +202,12 @@
data() {
return {
loading: false,
isShowOpSure:false,
activeName:"1",
UpdateGuestBackScenic:{Id:0,CouponsIds:[]},
isShowOpSure: false,
activeName: "1",
UpdateGuestBackScenic: {
Id: 0,
CouponsIds: []
},
msg: {
id: '0',
tcid: '0',
......@@ -225,7 +221,7 @@
guestNum: 0,
isOrder: 0,
tableList: [],
OrderBackScenicList:[],
OrderBackScenicList: [],
isOneDay: 0,
LineId: 0,
EndDateStr: "",
......@@ -267,34 +263,34 @@
};
},
methods: {
opSureAudit(){
this.isSubmit = false;
this.apipost(
"sellorder_post_UpdateGuestBackScenic",
this.UpdateGuestBackScenic,
(res) => {
this.isSubmit = true;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.GBGuestBackScenic();
this.getData();
} else {
this.Error(res.data.message);
}
this.isSubmit = false;
},
(err) => {}
);
opSureAudit() {
this.isSubmit = false;
this.apipost(
"sellorder_post_UpdateGuestBackScenic",
this.UpdateGuestBackScenic,
(res) => {
this.isSubmit = true;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.GBGuestBackScenic();
this.getData();
} else {
this.Error(res.data.message);
}
this.isSubmit = false;
},
(err) => {}
);
},
updateGuestBackScenic(item){
this.UpdateGuestBackScenic.CouponsIds=item.CouponsIds;
this.UpdateGuestBackScenic.Id=item.Id;
this.isShowOpSure=true;
updateGuestBackScenic(item) {
this.UpdateGuestBackScenic.CouponsIds = item.CouponsIds;
this.UpdateGuestBackScenic.Id = item.Id;
this.isShowOpSure = true;
},
GBGuestBackScenic(){
GBGuestBackScenic() {
this.isShowOpSure = false;
this.UpdateGuestBackScenic.Id=0;
this.UpdateGuestBackScenic.CouponsIds=[];
this.UpdateGuestBackScenic.Id = 0;
this.UpdateGuestBackScenic.CouponsIds = [];
},
//确定设置领队
setTheLeader() {
......@@ -385,7 +381,7 @@
if (res.data.resultCode == 1) {
this.guestNum = res.data.data.GuestNum;
this.tableList = res.data.data.list;
this.OrderBackScenicList=res.data.data.OrderBackScenicList;
this.OrderBackScenicList = res.data.data.OrderBackScenicList;
this.isOneDay = res.data.data.IsOneDay;
this.LineId = res.data.data.LineId;
this.EndDateStr = res.data.data.EndDateStr;
......
This diff is collapsed.
<template>
<div class="flexOne">
<div class="query-box" style="border-bottom: none;">
<ul>
<li>
<span><em>{{$t('sm.company')}}</em>
<el-select filterable @change='getUser' v-model='msg.RB_BranchId'>
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for='item in companyList' :label='item.BName' :value='item.Id' :key='item.Id'></el-option>
</el-select>
</span>
</li>
<li>
<span><em>上传人</em>
<el-select filterable v-model='msg.QCreateBy' clearable @clear="getList()">
<el-option v-for='item in userList' :label='item.name' :value='item.empId' :key='item.empId'></el-option>
</el-select>
</span>
</li>
<li><span><em>{{$t('salesModule.ApplyTime')}}</em>
<el-date-picker :picker-options="pickerOptions0" v-model='msg.QStartDate' class='w135'
value-format="yyyy-MM-dd" type="date">
</el-date-picker>
-
<el-date-picker :picker-options="pickerOptions1" v-model='msg.QEndDate' class='w135'
value-format="yyyy-MM-dd" type="date"></el-date-picker>
</span>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()" />
<input type="button" class="normalBtn" value="下载" @click="downLoadTemplateStatic()" />
</li>
</ul>
</div>
<div style="width: 100%; overflow: auto;">
<el-table :data="tableData" style="width: 100%;" height="650" border v-loading="loading">
<el-table-column prop="CreateByName" label="上传人" width="200">
</el-table-column>
<el-table-column prop="CreateTime" label="上传时间">
</el-table-column>
<el-table-column prop="TripCount" label="行程模版数量">
</el-table-column>
<el-table-column prop="AdCount" label="广告模版数量">
</el-table-column>
<el-table-column prop="TotalCount" label="上传总数量">
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
export default {
data() {
return {
pickerOptions0: {
disabledDate: (time) => {
let endTime = new Date(this.msg.QEndDate)
return time.getTime() > Date.now() || time.getTime() > endTime.getTime()
}
},
pickerOptions1: {
disabledDate: (time) => {
let starTime = new Date(this.msg.QStartDate)
return time.getTime() > Date.now() || time.getTime() < starTime.getTime()
}
},
loading: true,
//请求数据
msg: {
RB_BranchId: '-1',
QCreateBy: '',
QStartDate: '',
QEndDate: '',
},
getCompanyMsg: {
RB_Group_Id: '0',
Status: '0',
},
getUserMsg: {
RB_Branch_id: '-1',
},
//返回数据
tableData: [],
companyList: [],
userList: [],
}
},
methods: {
//Excel下载
downLoadTemplateStatic() {
this.loading = true;
let fileName = "模板统计下载"+ this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("template_post_GetDownloadTemplateStatic", this.msg, fileName,
res => {
this.loading = false;
});
},
getCompany() {
this.apipost('admin_get_BranchGetList', this.getCompanyMsg, res => {
if (res.data.resultCode == 1) {
this.companyList = res.data.data;
}
})
},
getUser() {
this.msg.QCreateBy = '';
this.getUserMsg.RB_Branch_id = this.msg.RB_BranchId;
this.apipost('app_get_company_employee', this.getUserMsg, res => {
if (res.data.resultCode == 1) {
this.userList = res.data.data;
}
})
},
getList() {
this.loading = true;
this.apipost('triptemplate_GetTemplateStatic', this.msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.tableData = res.data.data;
}
})
},
},
created() {
let myDate = new Date();
let _year = myDate.getFullYear();
let _month = myDate.getMonth() >= 9 ? myDate.getMonth() + 1 : '0' + (myDate.getMonth() + 1);
let _date = myDate.getDate() > 9 ? myDate.getDate() : '0' + myDate.getDate();
this.msg.QStartDate = _year + '-' + _month + '-' + '01';
this.msg.QEndDate = _year + '-' + _month + '-' + _date;
//this.msg.QStartDate = "2025-06-01";
},
mounted() {
let userInfo = this.getLocalStorage();
this.getUserMsg.RB_Group_id = this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
this.getCompany()
this.getUser()
this.getList()
}
}
</script>
......@@ -678,6 +678,14 @@ export default {
title: '审批统计'
},
},
{
path: '/templateStatic', //模板统计
name: 'templateStatic',
component: resolve => require(['@/components/administrative/templateStatic'], resolve),
meta: {
title: '模板统计'
},
},
{
path: '/LianMengManagement', //联盟管理
name: 'LianMengManagement',
......
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