Commit 692d0202 authored by 黄奎's avatar 黄奎

新增旅客黑名单

parent f4dc8741
<style>
.CM_detail {
color: #3980C8;
cursor: pointer;
}
.CM_detail:hover {
text-decoration: underline;
color: #E95252;
}
</style>
<template>
<div class="flexOne">
<div class="query-box">
<ul>
<li>
<span>
<em>关键字</em>
<el-input placeholder="" v-model="queryMsg.IdCard"></el-input>
</span>
</li>
<li>
<input type="button" class="hollowFixedBtn" value="查询" @click="getList(),resetPageIndex()" />&nbsp;
<input type="button" class="normalBtn" value="新增" @click="showDialog(null)" />
</li>
</ul>
</div>
<div class="commonContent" v-loading="queryCommonData.loading">
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>编号</th>
<th>身份证号码</th>
<th>手机号码</th>
<th>护照</th>
<th>备注</th>
<th>创建人</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in queryCommonData.dataList" :key="index+10000">
<td>{{item.Id}}</td>
<td>
{{item.IdCard}}
</td>
<td>{{item.MobilePhone}}</td>
<td>{{item.PassportNo}}</td>
<td>{{item.Notes}}</td>
<td>{{item.CreateByName}}</td>
<td>
<span class="CM_detail" @click="showDialog(item)">修改</span>
<span class="CM_detail" @click="delGuest(item)">删除</span>
</td>
</tr>
</table>
<div class="noData" v-show="queryCommonData.noData">
{{$t('system.content_noData')}}
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryCommonData.currentPage"
layout="total,prev, pager, next, jumper" :page-size="queryCommonData.pageSize" :total="queryCommonData.total">
</el-pagination>
</div>
<el-dialog custom-class='w500' :title="editTitle" :visible.sync="isShowGuestForm" center
:before-close="closeDailog">
<table class="layerTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" align="right">身份证号码:</td>
<td>
<el-input v-model='postMsg.IdCard' maxlength='100' placeholder="请填写身份证号码"></el-input>
</td>
</tr>
<tr>
<td width="100" align="right">手机号码:</td>
<td>
<el-input v-model='postMsg.MobilePhone' maxlength='100' placeholder="请填写手机号码"></el-input>
</td>
</tr>
<tr>
<td width="100" align="right">护照号:</td>
<td>
<el-input v-model='postMsg.PassportNo' maxlength='100' placeholder="请填写护照号"></el-input>
</td>
</tr>
<tr>
<td width="100" align="right">备注:</td>
<td>
<el-input v-model='postMsg.Notes' maxlength='200' placeholder="最多输入200个字"></el-input>
</td>
</tr>
</table>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="closeDailog">取 消</button> &nbsp;
<button class="normalBtn" type="primary" @click="saveGuest">确定</button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
queryCommonData: {
//加载
loading: false,
//是否有数据
noData: false,
//总数
total: 0,
//第几页
currentPage: 1,
pageSize: 10,
//数据列表
dataList: [],
},
queryMsg: {
IdCard: "",
pageIndex: 1,
pageSize: 10,
},
//新增修改旅客黑名单参数
postMsg: {
Id: 0,
IdCard: "", //身份证号码
MobilePhone: "", //手机号码
PassportNo: "", //护照号
Notes: "", //备注
},
isShowGuestForm: false, //是否显示新增修改弹窗
editTitle: "新增旅客黑名单信息", //弹窗标题
}
},
methods: {
//添加修改投诉
showDialog(item) {
if (item) {
this.editTitle = "修改旅客黑名单信息";
this.postMsg.Id = item.Id;
this.postMsg.IdCard = item.IdCard;
this.postMsg.MobilePhone = item.MobilePhone;
this.postMsg.PassportNo = item.PassportNo;
this.postMsg.Notes = item.Notes;
}
this.isShowGuestForm = true;
},
//关闭弹窗
closeDailog() {
this.isShowGuestForm = false;
this.postMsg.Id = 0;
this.postMsg.IdCard = "";
this.postMsg.MobilePhone = "";
this.postMsg.PassportNo = "";
this.postMsg.Notes = "";
},
//新增修改旅客黑名单
saveGuest() {
this.apipost('travel_post_SetTravelGuestBlack', this.postMsg, res => {
if (res.data.resultCode == 1) {
this.closeDailog();
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message)
}
}, err => {})
},
getList() {
this.queryCommonData.loading = true
this.apipost('travel_post_GetGuestBlackPageList', this.queryMsg, res => {
this.queryCommonData.loading = false;
if (res.data.resultCode == 1) {
this.queryCommonData.total = res.data.data.count
this.queryCommonData.noData = !this.queryCommonData.total > 0
this.queryCommonData.dataList = res.data.data.pageData
} else {
this.Error(res.data.message)
}
}, err => {})
},
//翻页
handleCurrentChange(val) {
this.queryCommonData.pageIndex = val
this.getList()
},
//重新查询
resetPageIndex() {
this.queryCommonData.pageIndex = 1
this.queryMsg.pageIndex = 1
this.queryCommonData.currentPage = 1
},
//删除
delGuest(item) {
var that = this;
var tipMsg = "是否删除【" + item.IdCard + "/" + item.MobilePhone + "/" + item.PassportNo + "】?";
that.Confirm(tipMsg, function () {
var msg = {
ID: item.Id
};
that.apipost(
"travel_post_DelTravelGuestBlack", msg, res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
null
);
});
}
},
mounted() {
this.getList();
}
}
</script>
...@@ -1697,12 +1697,12 @@ ...@@ -1697,12 +1697,12 @@
<template v-if="item.contractNum && item.contractNum.length > 0"> <template v-if="item.contractNum && item.contractNum.length > 0">
<span v-for="sItem in item.contractNum" class="GO_Contract" @click="goContract(item, sItem)"> <span v-for="sItem in item.contractNum" class="GO_Contract" @click="goContract(item, sItem)">
{{ sItem.client_Name + "" + sItem.contractNum }} {{ sItem.client_Name + "" + sItem.contractNum }}
<template v-if="sItem.auditContract&& sItem.auditContract==3"> <template v-if="sItem.auditContract&& sItem.auditContract==3">
<font style="color:red">驳回</font> <font style="color:red">驳回</font>
</template> </template>
<template v-if="sItem.auditContract&&sItem.auditContract==2"> <template v-if="sItem.auditContract&&sItem.auditContract==2">
<font style="color:green">审核通过</font> <font style="color:green">审核通过</font>
</template> </template>
</span> </span>
</template> </template>
</div> </div>
......
...@@ -1170,8 +1170,6 @@ ...@@ -1170,8 +1170,6 @@
this.CtObj.orderId = this.$route.query.orderID; this.CtObj.orderId = this.$route.query.orderID;
this.VoluntaryArr = this.CtObj.shopProtocolList; this.VoluntaryArr = this.CtObj.shopProtocolList;
this.WillingPayArr = this.CtObj.payProtocolList; this.WillingPayArr = this.CtObj.payProtocolList;
console.log("travelcontract_post_GetContractInfoService", this.CtObj);
if (tempObj && tempObj.id <= 0) { if (tempObj && tempObj.id <= 0) {
this.CtObj.totalNumber = 2; this.CtObj.totalNumber = 2;
this.CtObj.eachNumber = 1; this.CtObj.eachNumber = 1;
......
...@@ -450,7 +450,6 @@ ...@@ -450,7 +450,6 @@
showContractDialog(item, type) { showContractDialog(item, type) {
this.auditMsg.Id = item.Id; this.auditMsg.Id = item.Id;
this.auditMsg.AuditContract = type; this.auditMsg.AuditContract = type;
console.log("item", item);
if (type == 2) { if (type == 2) {
this.AuditElec(); this.AuditElec();
} else { } else {
......
...@@ -4912,6 +4912,14 @@ export default { ...@@ -4912,6 +4912,14 @@ export default {
title: '投诉管理' title: '投诉管理'
} }
}, },
{
path: '/GuestBlock', //旅客黑名单管理
name: 'GuestBlock',
component: resolve => require(['@/components/Complaints/GuestBlock'], resolve),
meta: {
title: '旅客黑名单管理'
}
},
{ {
path: '/ComplaintsDetail', //投诉详情 path: '/ComplaintsDetail', //投诉详情
name: 'ComplaintsDetail', name: 'ComplaintsDetail',
......
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