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,8 +86,8 @@ ...@@ -91,8 +86,8 @@
<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>
...@@ -179,14 +174,12 @@ ...@@ -179,14 +174,12 @@
</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"
:key="item.CouponsId"
:label="item.CouponsName"
:value="item.CouponsId"> :value="item.CouponsId">
</el-option> </el-option>
</el-select> </el-select>
...@@ -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,7 +263,7 @@ ...@@ -267,7 +263,7 @@
}; };
}, },
methods: { methods: {
opSureAudit(){ opSureAudit() {
this.isSubmit = false; this.isSubmit = false;
this.apipost( this.apipost(
"sellorder_post_UpdateGuestBackScenic", "sellorder_post_UpdateGuestBackScenic",
...@@ -286,15 +282,15 @@ ...@@ -286,15 +282,15 @@
(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;
......
...@@ -9,30 +9,17 @@ ...@@ -9,30 +9,17 @@
</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%;"
border
v-loading="loading"
>
<el-table-column <el-table-column prop="ID" label="ID" width="100">
prop="ID"
label="ID" width="100">
</el-table-column> </el-table-column>
   
<el-table-column <el-table-column prop="TriggerTypeStr" label="触发事件">
prop="TriggerTypeStr"
label="触发事件">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="DiscountCouponName" label="优惠券">
prop="DiscountCouponName"
label="优惠券">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="GrantNum" :label="$t('objFill.v102.fafangcishu')">
prop="GrantNum"
:label="$t('objFill.v102.fafangcishu')">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.GrantNum==0"> <div v-if="scope.row.GrantNum==0">
无限制 无限制
...@@ -43,13 +30,9 @@ ...@@ -43,13 +30,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="GrantCouponNum" :label="$t('objFill.v102.fafangzhangshu')">
prop="GrantCouponNum"
:label="$t('objFill.v102.fafangzhangshu')">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="GrantNum" :label="$t('objFill.v102.fafangkeix')">
prop="GrantNum"
:label="$t('objFill.v102.fafangkeix')">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.SelfMotionType==0"> <div v-if="scope.row.SelfMotionType==0">
{{$t('Operation.Op_fellow')}} {{$t('Operation.Op_fellow')}}
...@@ -59,64 +42,57 @@ ...@@ -59,64 +42,57 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column fixed="right" label="操作" width="100">
fixed="right"
label="操作" width="100"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top" > <el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)"> <img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)">
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top" > <el-tooltip class="item" effect="dark" content="删除" placement="top">
<img src="../../assets/img/setup/del.png" alt="" class="imgstyle" @click="delete_b(scope.row)"> <img src="../../assets/img/setup/del.png" alt="" class="imgstyle" @click="delete_b(scope.row)">
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </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"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
</el-pagination> </el-pagination>
<addAutorelease v-if="addAutoreleaseShow" <addAutorelease v-if="addAutoreleaseShow" :infoData="infoData"
:infoData="infoData" @Success="infoData=null,addAutoreleaseShow=false,getDateList()" @close="infoData=null,addAutoreleaseShow=false" />
@Success="infoData=null,addAutoreleaseShow=false,getDateList()"
@close="infoData=null,addAutoreleaseShow=false"/>
</div> </div>
</template> </template>
<script> <script>
import addAutorelease from "./components/addAutorelease"; import addAutorelease from "./components/addAutorelease";
export default { export default {
name: "autorelease", name: "autorelease",
components: {addAutorelease}, components: {
data(){ addAutorelease
return{ },
msg:{ data() {
pageIndex:1, return {
pageSize:20, msg: {
pageIndex: 1,
pageSize: 20,
BranchId: -1, BranchId: -1,
TriggerType: -1 TriggerType: -1
}, },
tableData:[], tableData: [],
count:0, count: 0,
loading:false, loading: false,
addAutoreleaseShow: false, addAutoreleaseShow: false,
infoData: null, infoData: null,
options: [], options: [],
} }
}, },
created(){ created() {
this.getDateList(); this.getDateList();
}, },
methods:{ methods: {
getrigger(){ getrigger() {
this.apipost("coupon_post_GetTriggerTypeEnumList",{}, res => { this.apipost("coupon_post_GetTriggerTypeEnumList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.options = res.data.data; this.options = res.data.data;
this.options.unshift({ this.options.unshift({
...@@ -129,32 +105,33 @@ ...@@ -129,32 +105,33 @@
}) })
}, },
getDateList(){ getDateList() {
this.loading=true; this.loading = true;
this.apipost("coupon_post_GetSelfMotionPageLis", this.msg, res => { this.apipost("coupon_post_GetSelfMotionPageLis", this.msg, res => {
this.loading=false; this.loading = false;
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
this.count = res.data.data.count; this.count = res.data.data.count;
}else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
}) })
}, },
addRecharge(){ addRecharge() {
this.addAutoreleaseShow = true this.addAutoreleaseShow = true
}, },
Edit(row){ Edit(row) {
this.infoData = row this.infoData = row
this.addAutoreleaseShow = true this.addAutoreleaseShow = true
}, },
delete_b(row){ delete_b(row) {
let that=this; let that = this;
that.Confirm("是否删除?", function () { that.Confirm("是否删除?", function () {
that.apipost( that.apipost(
"coupon_post_DelDiscountSelfMotion", "coupon_post_DelDiscountSelfMotion", {
{Id:row.ID}, Id: row.ID
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.Success(res.data.message); that.Success(res.data.message);
...@@ -172,13 +149,15 @@ ...@@ -172,13 +149,15 @@
}, },
} }
} }
</script>
<style scoped> </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>
<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