Commit c8a34dab authored by 黄奎's avatar 黄奎

11

parent b0d3821a
......@@ -1361,7 +1361,6 @@
this.addMsg.ESurName = this.options[0].label;
}, 500);
}
} else {
let findIndex = this.options.findIndex(x => x.label == this.addMsg.ESurName)
if (findIndex != -1) {
......@@ -1370,7 +1369,6 @@
this.addMsg.SurNameID = '';
this.addMsg.ESurName = '';
}
}
this.$forceUpdate()
}
......
<template>
<div class="passengerSaleList">
<div class="passengerSaleList_topBtn">
<template v-if="isOrder==0">
<template v-if="isOrder==0">
<span style="color:red;">{{$t('objFill.opygbddcz')}}</span>
</template>
<template v-if="isOrder==1 && !isDis" > <div v-show="tableList.length<guestNum&&IsLeaderOrder>0" @click="showSetLeader=true;getBranchList()">{{$t('objFill.v101.Rest.xuanzhelddy')}}</div>
<div v-show="tableList.length<guestNum" @click="goUrlA(0)">{{$t('pub.addBtn')}}</div>
</template>
<template v-if="isOrder==1 && !isDis">
<div v-show="tableList.length<guestNum&&IsLeaderOrder>0" @click="showSetLeader=true;getBranchList()">
{{$t('objFill.v101.Rest.xuanzhelddy')}}</div>
<div v-show="tableList.length<guestNum" @click="goUrlA(0)">{{$t('pub.addBtn')}}</div>
</template>
<div v-if="isOrder==1 && isOneDay !== 1 && !isDis" @click="goUrlP()">{{$t('op.Fenfang')}}</div>
......@@ -57,15 +59,18 @@
<td style="color:red;">{{item.IsHightSchool==1?$t('objFill.xuesheng'):""}}</td>
<td>
<el-button-group>
<el-tooltip v-if="isOrder==1 && !isDis" class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
<el-tooltip v-if="isOrder==1 && !isDis" class="item" effect="dark" :content="$t('pub.updateMsg')"
placement="top-start">
<el-button type="primary" style='background:#00C6FF; border-color:#00C6FF'
icon="iconfont icon-bianji-smal" @click="goUrlA(item.Id)"></el-button>
</el-tooltip>
<el-tooltip v-if="isOrder==1 && !isDis" class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-tooltip v-if="isOrder==1 && !isDis" class="item" effect="dark" :content="$t('system.table_delete')"
placement="top-start">
<el-button type="primary" style='background:#e95252; border-color:#e95252'
icon="iconfont icon-shanchu" @click="pal_del(item)"></el-button>
</el-tooltip>
<el-tooltip v-if="isOrder==1 && !isDis" class="item" effect="dark" :content="$t('objFill.xiazasqb')" placement="top-start">
<el-tooltip v-if="isOrder==1 && !isDis" class="item" effect="dark" :content="$t('objFill.xiazasqb')"
placement="top-start">
<el-button type="primary" style='background:#9E8DE3; border-color:#9E8DE3'
icon="iconfont icon-img_download" @click="goUrlB(item.Id)"></el-button>
</el-tooltip>
......@@ -80,7 +85,6 @@
</tbody>
</table>
</div>
<div class="combottomDiv" v-if="showSetLeader" v-loading="loadingSet">
<div class="combottomTitle">{{ $t("ground.szlindui") }}</div>
<div class="clearfix">
......@@ -103,7 +107,8 @@
</el-col>
<el-col :span="4">
<el-form-item :label="$t('system.query_name')" prop="lineCode">
<el-input v-model="leaderQueryMsg.LeaderName" @keyup.enter.native="getLeaderList" :placeholder="$t('tips.srgjzjxguolv')"></el-input>
<el-input v-model="leaderQueryMsg.LeaderName" @keyup.enter.native="getLeaderList"
:placeholder="$t('tips.srgjzjxguolv')"></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
......@@ -123,7 +128,7 @@
</div>
<div class="RL_ListDiv">
<div class="LeaderSpan" :class="{ ckedClass: ckedIndex == index }" v-for="(item, index) in leaderListArr"
:key="item.subCode" @click="getLeaderInfo(index, item.LeaderId)" style="margin:5px 0px 0px 5px;" >
:key="item.subCode" @click="getLeaderInfo(index, item.LeaderId)" style="margin:5px 0px 0px 5px;">
<span class="RL_LeaderName">{{ item.LeaderName }}:{{item.IdCard }}/ {{item.Passport }} /{{item.MobilePhone }}【{{
getLeaderTypeStr(item.Type, item.LeaderGuidClass)
}}】</span>
......@@ -133,11 +138,10 @@
</div>
</div>
<div class="clearfix " style="float: left;width: 5%;">
<div >
<input type="button" class="normalBtn" @click="setTheLeader"
:value="$t('pub.sureBtn')" />
</div>
</div>
<div>
<input type="button" class="normalBtn" @click="setTheLeader" :value="$t('pub.sureBtn')" />
</div>
</div>
</div>
</div>
......@@ -155,10 +159,10 @@
tcid: '0',
tcnum: '0'
},
setMsg:{
OrderId:0,
TCID:0,
NewGuestId:0,
setMsg: {
OrderId: 0,
TCID: 0,
NewGuestId: 0,
},
guestNum: 0,
isOrder: 0,
......@@ -167,7 +171,7 @@
LineId: 0,
EndDateStr: "",
isDis: false,
IsLeaderOrder:0,
IsLeaderOrder: 0,
leaderQueryMsg: {
QTCID: 0,
CountryID: 0,
......@@ -175,15 +179,15 @@
RB_Branch_id: 0,
LeaderName: "",
},
//验证重复提交
isSubmit: true,
ckedIndex:-1,
//领队或者领兼地
isLeaderType: "",
//验证重复提交
isSubmit: true,
ckedIndex: -1,
//领队或者领兼地
isLeaderType: "",
leaderTypeArray: [{
Id: 0,
Text: this.$t('objFill.qingxuanzhe'),
},{
}, {
Id: 2,
Text: this.$t('objFill.lingduijdy'),
},
......@@ -196,17 +200,17 @@
Text: this.$t('leader.leader_Guide'),
},
],
//分公司列表
BranchList: [],
showSetLeader:false,
loadingSet:false,
leaderListArr: [],
//分公司列表
BranchList: [],
showSetLeader: false,
loadingSet: false,
leaderListArr: [],
};
},
methods: {
//确定设置领队
setTheLeader() {
//确定设置领队
setTheLeader() {
if (this.isSubmit) {
this.isSubmit = false;
this.apipost(
......@@ -228,18 +232,17 @@
);
}
},
//点击选中名单
getLeaderInfo(index,LeaderId) {
//点击选中名单
getLeaderInfo(index, LeaderId) {
this.ckedIndex = index;
this.setMsg.NewGuestId=LeaderId
},
this.setMsg.NewGuestId = LeaderId
},
getLeaderTypeStr: function (type, clas) {
if (type == 2) {
return this.$t('leader.leader_leaderDi');
} else if (type ==3) {
} else if (type == 3) {
return this.$t('leader.leader_Guide');
}
else if (type == 1 && clas == 0) {
} else if (type == 1 && clas == 0) {
return this.$t('leader.leader_Leader');
} else if (type == 1 && clas == 1) {
return this.$t('op.THLeader');
......@@ -247,8 +250,8 @@
return this.$t('op.LXLeader');
}
},
//获取公司列表
getBranchList() {
//获取公司列表
getBranchList() {
let msg = {
Status: "0",
is_show: "",
......@@ -275,11 +278,11 @@
if (res.data.resultCode == 1) {
this.leaderListArr = res.data.data.LeaderData;
this.ScheduleArray = res.data.data.ScheduleData;
if (this.leaderQueryMsg.LeaderType == 1) {//1领队2领队兼导游3导游
if (this.leaderQueryMsg.LeaderType == 1) { //1领队2领队兼导游3导游
this.isLeaderType = this.$t('leader.leader_Leader');
} else if (this.leaderQueryMsg.LeaderType == 2){
} else if (this.leaderQueryMsg.LeaderType == 2) {
this.isLeaderType = this.$t('leader.leader_leaderDi');
}else if (this.leaderQueryMsg.LeaderType == 3){
} else if (this.leaderQueryMsg.LeaderType == 3) {
this.isLeaderType = this.$t('leader.leader_Guide');
}
}
......@@ -298,8 +301,8 @@
this.isOneDay = res.data.data.IsOneDay;
this.LineId = res.data.data.LineId;
this.EndDateStr = res.data.data.EndDateStr;
this.IsLeaderOrder= res.data.data.IsLeaderOrder;
this.leaderQueryMsg.QTCID= res.data.data.TCID;
this.IsLeaderOrder = res.data.data.IsLeaderOrder;
this.leaderQueryMsg.QTCID = res.data.data.TCID;
} else {
this.$message.error(res.data.message)
}
......@@ -307,19 +310,20 @@
});
},
pal_del: function (item) {
var that = this;
this.$confirm(this.$t('objFill.shifouscglvke'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.apipost('sellorder_post_DelTravelGuestInfo', {
that.apipost('sellorder_post_DelTravelGuestInfo', {
GuestId: item.Id
}, res => {
if (res.data.resultCode == 1) {
this.$message.Success(this.$t('tips.shanchuchenggong'))
this.getData()
that.Success(that.$t('tips.shanchuchenggong'))
that.getData()
} else {
this.$message.error(res.data.message)
that.Error(res.data.message)
}
}, err => {})
})
......@@ -377,17 +381,20 @@
background-color: #e95252 !important;
color: #fff;
}
.RL_ListDiv {
width: 100%;
height: 174px;
overflow: auto;
}
.RL_LeaderListDiv {
width: 200px;
height: 206px;
margin-left: 30px;
border: 1px solid #d1d1d1;
}
.RL_infoDiv {
width: 260px;
height: 140px;
......@@ -395,6 +402,7 @@
padding: 10px;
font-size: 14px;
}
.RL_LeaderTitle {
width: 100%;
height: 30px;
......@@ -404,6 +412,7 @@
line-height: 30px;
font-size: 14px;
}
.RL_LeaderName {
display: inline-block;
min-width: 50px;
......@@ -414,6 +423,7 @@
float: left;
margin-right: 20px;
}
.passengerSaleList {
width: 100%;
}
......@@ -479,7 +489,7 @@
}
/*拒签人员*/
.passengerSaleList_table .redTr td{
.passengerSaleList_table .redTr td {
color: #E95252;
}
......
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