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

11

parent 45b40909
<template> <template>
<!-- border-top: 1px solid #cccccc;margin-top: 5px --> <!-- border-top: 1px solid #cccccc;margin-top: 5px -->
<div class="passengerSaleList"> <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;"> <div class="passengerSaleList_topBtn" style="width: 30%;float:right;margin-bottom: 10px;">
<template v-if="isOrder==0"> <template v-if="isOrder==0">
<span style="color:red;">{{$t('objFill.opygbddcz')}}</span> <span style="color:red;">{{$t('objFill.opygbddcz')}}</span>
...@@ -28,9 +14,18 @@ ...@@ -28,9 +14,18 @@
<div v-if="isOrder==1 && isOneDay !== 1 && !isDis" @click="goUrlP()">{{$t('op.Fenfang')}}</div> <div v-if="isOrder==1 && isOneDay !== 1 && !isDis" @click="goUrlP()">{{$t('op.Fenfang')}}</div>
</div> </div>
<div class="passengerSaleList_tableBox"> <div class="passengerSaleList_tableBox">
<table class="passengerSaleList_table" border="0" cellspacing="0" cellpadding="0" :loading="loading"> <table class="passengerSaleList_table" border="0" cellspacing="0" cellpadding="0" :loading="loading">
<thead> <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> <tr>
<th width="2%">ID</th> <th width="2%">ID</th>
<th width="2%">{{$t('op.Fenfang')}}</th> <th width="2%">{{$t('op.Fenfang')}}</th>
...@@ -91,9 +86,9 @@ ...@@ -91,9 +86,9 @@
<el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3' <el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3'
icon="iconfont icon-img_download" @click="goUrlB(item.Id)"></el-button> icon="iconfont icon-img_download" @click="goUrlB(item.Id)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="OrderBackScenicList!=null&&OrderBackScenicList.length>0 " class="item" effect="dark" :content="$t('ground.tuiJingdian')" <el-tooltip v-if="OrderBackScenicList!=null&&OrderBackScenicList.length>0 " class="item" effect="dark"
placement="top-start"> :content="$t('ground.tuiJingdian')" placement="top-start">
<el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3' <el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3'
icon="iconfont el-icon-notebook-2" @click="updateGuestBackScenic(item)"></el-button> icon="iconfont el-icon-notebook-2" @click="updateGuestBackScenic(item)"></el-button>
</el-tooltip> </el-tooltip>
</el-tooltip> </el-tooltip>
...@@ -179,17 +174,15 @@ ...@@ -179,17 +174,15 @@
</div> </div>
</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 label-width="110px">
<el-form-item :label="$t('ground.tuiJingdian')"> <el-form-item :label="$t('ground.tuiJingdian')">
<el-select v-model="UpdateGuestBackScenic.CouponsIds" multiple collapse-tags placeholder="请选择"> <el-select v-model="UpdateGuestBackScenic.CouponsIds" multiple collapse-tags placeholder="请选择">
<el-option <el-option v-for="item in OrderBackScenicList" :key="item.CouponsId" :label="item.CouponsName"
v-for="item in OrderBackScenicList" :value="item.CouponsId">
:key="item.CouponsId" </el-option>
:label="item.CouponsName" </el-select>
:value="item.CouponsId">
</el-option>
</el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -209,9 +202,12 @@ ...@@ -209,9 +202,12 @@
data() { data() {
return { return {
loading: false, loading: false,
isShowOpSure:false, isShowOpSure: false,
activeName:"1", activeName: "1",
UpdateGuestBackScenic:{Id:0,CouponsIds:[]}, UpdateGuestBackScenic: {
Id: 0,
CouponsIds: []
},
msg: { msg: {
id: '0', id: '0',
tcid: '0', tcid: '0',
...@@ -225,7 +221,7 @@ ...@@ -225,7 +221,7 @@
guestNum: 0, guestNum: 0,
isOrder: 0, isOrder: 0,
tableList: [], tableList: [],
OrderBackScenicList:[], OrderBackScenicList: [],
isOneDay: 0, isOneDay: 0,
LineId: 0, LineId: 0,
EndDateStr: "", EndDateStr: "",
...@@ -267,34 +263,34 @@ ...@@ -267,34 +263,34 @@
}; };
}, },
methods: { methods: {
opSureAudit(){ opSureAudit() {
this.isSubmit = false; this.isSubmit = false;
this.apipost( this.apipost(
"sellorder_post_UpdateGuestBackScenic", "sellorder_post_UpdateGuestBackScenic",
this.UpdateGuestBackScenic, this.UpdateGuestBackScenic,
(res) => { (res) => {
this.isSubmit = true; this.isSubmit = true;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.GBGuestBackScenic(); this.GBGuestBackScenic();
this.getData(); this.getData();
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
this.isSubmit = false; this.isSubmit = false;
}, },
(err) => {} (err) => {}
); );
}, },
updateGuestBackScenic(item){ updateGuestBackScenic(item) {
this.UpdateGuestBackScenic.CouponsIds=item.CouponsIds; this.UpdateGuestBackScenic.CouponsIds = item.CouponsIds;
this.UpdateGuestBackScenic.Id=item.Id; this.UpdateGuestBackScenic.Id = item.Id;
this.isShowOpSure=true; this.isShowOpSure = true;
}, },
GBGuestBackScenic(){ GBGuestBackScenic() {
this.isShowOpSure = false; this.isShowOpSure = false;
this.UpdateGuestBackScenic.Id=0; this.UpdateGuestBackScenic.Id = 0;
this.UpdateGuestBackScenic.CouponsIds=[]; this.UpdateGuestBackScenic.CouponsIds = [];
}, },
//确定设置领队 //确定设置领队
setTheLeader() { setTheLeader() {
...@@ -385,7 +381,7 @@ ...@@ -385,7 +381,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.guestNum = res.data.data.GuestNum; this.guestNum = res.data.data.GuestNum;
this.tableList = res.data.data.list; 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.isOneDay = res.data.data.IsOneDay;
this.LineId = res.data.data.LineId; this.LineId = res.data.data.LineId;
this.EndDateStr = res.data.data.EndDateStr; this.EndDateStr = res.data.data.EndDateStr;
......
<template> <template>
<div class="page_fnDm page_RecPayQuery"> <div class="page_fnDm page_RecPayQuery">
<div class="query-box" style="margin-bottom: 0px;"> <div class="query-box" style="margin-bottom: 0px;">
<ul class="clearfix"> <ul class="clearfix">
<li class="hight_query"> <li class="hight_query">
<button class="hollowFixedBtn" @click="getDateList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="getDateList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="addRecharge">{{$t('objFill.v102.tianjzdfffa')}}</button> <button class="normalBtn" @click="addRecharge">{{$t('objFill.v102.tianjzdfffa')}}</button>
</li> </li>
</ul> </ul>
</div> </div>
<div class="_fnDm_content" v-loading='loading' style="padding-top: 20px;"> <div class="_fnDm_content" v-loading='loading' style="padding-top: 20px;">
<el-table <el-table :data="tableData" style="width: 100%;" border v-loading="loading">
:data="tableData"
style="width: 100%;" <el-table-column prop="ID" label="ID" width="100">
border </el-table-column>
v-loading="loading"  
>
<el-table-column prop="TriggerTypeStr" label="触发事件">
<el-table-column </el-table-column>
prop="ID" <el-table-column prop="DiscountCouponName" label="优惠券">
label="ID" width="100"> </el-table-column>
</el-table-column> <el-table-column prop="GrantNum" :label="$t('objFill.v102.fafangcishu')">
  <template slot-scope="scope">
<div v-if="scope.row.GrantNum==0">
<el-table-column 无限制
prop="TriggerTypeStr" </div>
label="触发事件"> <div v-if="scope.row.GrantNum>0">
</el-table-column> {{scope.row.GrantNum}}
<el-table-column </div>
prop="DiscountCouponName" </template>
label="优惠券"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="GrantCouponNum" :label="$t('objFill.v102.fafangzhangshu')">
prop="GrantNum" </el-table-column>
:label="$t('objFill.v102.fafangcishu')"> <el-table-column prop="GrantNum" :label="$t('objFill.v102.fafangkeix')">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.GrantNum==0"> <div v-if="scope.row.SelfMotionType==0">
无限制 {{$t('Operation.Op_fellow')}}
</div> </div>
<div v-if="scope.row.GrantNum>0"> <div v-else-if="scope.row.SelfMotionType==1">
{{scope.row.GrantNum}} {{$t('Operation.Op_direct')}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="100">
<el-table-column <template slot-scope="scope">
prop="GrantCouponNum"
:label="$t('objFill.v102.fafangzhangshu')"> <el-tooltip class="item" effect="dark" content="编辑" placement="top">
</el-table-column> <img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)">
<el-table-column </el-tooltip>
prop="GrantNum" <el-tooltip class="item" effect="dark" content="删除" placement="top">
:label="$t('objFill.v102.fafangkeix')"> <img src="../../assets/img/setup/del.png" alt="" class="imgstyle" @click="delete_b(scope.row)">
<template slot-scope="scope"> </el-tooltip>
<div v-if="scope.row.SelfMotionType==0"> </template>
{{$t('Operation.Op_fellow')}} </el-table-column>
</div> </el-table>
<div v-else-if="scope.row.SelfMotionType==1">
{{$t('Operation.Op_direct')}}
</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
label="操作" width="100"
>
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top" >
<img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top" >
<img src="../../assets/img/setup/del.png" alt="" class="imgstyle" @click="delete_b(scope.row)">
</el-tooltip>
</template>
</el-table-column>
</el-table>
</div> </div>
<el-pagination style="text-align:right" <el-pagination style="text-align:right" background @current-change="handleCurrentChange" :page-size="msg.pageSize"
background layout="prev, pager, next" :total="count">
@current-change="handleCurrentChange" </el-pagination>
:page-size="msg.pageSize" <addAutorelease v-if="addAutoreleaseShow" :infoData="infoData"
layout="prev, pager, next" @Success="infoData=null,addAutoreleaseShow=false,getDateList()" @close="infoData=null,addAutoreleaseShow=false" />
:total="count"> </div>
</el-pagination> </template>
<addAutorelease v-if="addAutoreleaseShow"
:infoData="infoData" <script>
@Success="infoData=null,addAutoreleaseShow=false,getDateList()" import addAutorelease from "./components/addAutorelease";
@close="infoData=null,addAutoreleaseShow=false"/> export default {
</div> name: "autorelease",
</template> components: {
addAutorelease
<script> },
import addAutorelease from "./components/addAutorelease"; data() {
export default { return {
name: "autorelease", msg: {
components: {addAutorelease}, pageIndex: 1,
data(){ pageSize: 20,
return{ BranchId: -1,
msg:{ TriggerType: -1
pageIndex:1,
pageSize:20,
BranchId: -1,
TriggerType: -1
},
tableData:[],
count:0,
loading:false,
addAutoreleaseShow: false,
infoData: null,
options: [],
}
}, },
created(){ tableData: [],
this.getDateList(); count: 0,
loading: false,
}, addAutoreleaseShow: false,
methods:{ infoData: null,
getrigger(){ options: [],
this.apipost("coupon_post_GetTriggerTypeEnumList",{}, res => { }
if (res.data.resultCode == 1) { },
this.options = res.data.data; created() {
this.options.unshift({ this.getDateList();
Name: '不限',
Id: -1 },
}) methods: {
} else { getrigger() {
this.Info(res.data.message); this.apipost("coupon_post_GetTriggerTypeEnumList", {}, res => {
} if (res.data.resultCode == 1) {
this.options = res.data.data;
}) this.options.unshift({
Name: '不限',
Id: -1
})
} else {
this.Info(res.data.message);
}
})
},
getDateList() {
this.loading = true;
this.apipost("coupon_post_GetSelfMotionPageLis", this.msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.tableData = res.data.data.pageData;
this.count = res.data.data.count;
} else {
this.Info(res.data.message);
}
})
},
addRecharge() {
this.addAutoreleaseShow = true
},
Edit(row) {
this.infoData = row
this.addAutoreleaseShow = true
},
delete_b(row) {
let that = this;
that.Confirm("是否删除?", function () {
that.apipost(
"coupon_post_DelDiscountSelfMotion", {
Id: row.ID
}, },
getDateList(){ res => {
this.loading=true; if (res.data.resultCode == 1) {
this.apipost("coupon_post_GetSelfMotionPageLis", this.msg, res => { that.Success(res.data.message);
this.loading=false; that.getDateList();
if(res.data.resultCode==1){ } else {
this.tableData = res.data.data.pageData; that.Error(res.data.message);
this.count = res.data.data.count;
}else {
this.Info(res.data.message);
} }
},
}) );
}, });
addRecharge(){ },
this.addAutoreleaseShow = true handleCurrentChange(val) {
}, this.msg.pageIndex = val;
Edit(row){ this.getDateList();
this.infoData = row },
this.addAutoreleaseShow = true }
}, }
delete_b(row){
let that=this; </script>
that.Confirm("是否删除?", function () { <style scoped>
that.apipost(
"coupon_post_DelDiscountSelfMotion",
{Id:row.ID},
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getDateList();
} else {
that.Error(res.data.message);
}
},
);
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getDateList();
},
}
}
</script>
<style scoped>
/deep/.el-table th.el-table__cell { /deep/.el-table th.el-table__cell {
background-color: #E6E6E6; background-color: #E6E6E6;
} }
.el-form-item{
margin-bottom:5px; .el-form-item {
margin-bottom: 5px;
} }
</style> </style>
\ No newline at end of file
<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 { ...@@ -678,6 +678,14 @@ export default {
title: '审批统计' title: '审批统计'
}, },
}, },
{
path: '/templateStatic', //模板统计
name: 'templateStatic',
component: resolve => require(['@/components/administrative/templateStatic'], resolve),
meta: {
title: '模板统计'
},
},
{ {
path: '/LianMengManagement', //联盟管理 path: '/LianMengManagement', //联盟管理
name: '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