Commit 8dd39b28 authored by liudong1993's avatar liudong1993
parents 2d161898 efe9a3da
......@@ -228,7 +228,7 @@
.restaurantList .el-button {
width: 29px;
}
/* 餐厅列表 */
</style>
......@@ -282,8 +282,27 @@
</div>
<el-table :data="tableData" tooltip-effect="dark" style="width: 100%;min-height:450px;" v-loading="loading">
<el-table-column prop="NewDinnerName" label="餐厅名称">
<template slot-scope="scope">
<template v-if="scope.row.URL&&scope.row.URL.length>5">
<a style="text-decoration:underline;cursor:pointer;" :href="scope.row.URL" target="_blank"
>{{scope.row.NewDinnerName}}</a>
</template>
<template v-else>
{{scope.row.NewDinnerName}}
</template>
</template>
</el-table-column>
<el-table-column prop="DinnerRealName" label="餐厅真实名称">
<template slot-scope="scope">
<template v-if="scope.row.URL&&scope.row.URL.length>5">
<a style="text-decoration:underline;cursor:pointer;"
:href="scope.row.URL" target="_blank">{{scope.row.DinnerRealName}}</a>
</template>
<template v-else>
{{scope.row.DinnerRealName}}
</template>
</template>
</el-table-column>
<el-table-column width="150" prop="UserNum" label="使用次数">
<template slot-scope="scope">
......@@ -466,6 +485,12 @@
query: qMsg
});
},
goToGuWangUrl(url){
this.$router.push({
path: url,
});
},
getSellorCompany() {
//出团公司
this.apipost(
......
......@@ -988,7 +988,7 @@
<span class="TCL-redType"> {{item.VisaOPName}}</span>
</p>
<template v-if="item.VisaAssistantList&&item.VisaAssistantList.length>0">
<p >
<p>
<span> 签证助理OP</span>
<template v-for="(subItem,subIndex) in item.VisaAssistantList">
<span :key="subIndex" style="padding-right:3px;">{{subItem}}</span>
......@@ -1369,32 +1369,36 @@
</el-col>
</el-form>
</div>
<!--修改op信息-->
<div class="combottomDiv OPremarkDiv" v-show="VisaOPMsg.VisaShow">
<!--修改op信息-->
<div class="combottomDiv OPremarkDiv" style="height:150px;" v-show="VisaOPMsg.VisaShow">
<div class="combottomTitle">签证OP设置</div>
<el-form label-width="100px">
<el-col :span="4">
<el-form-item label="签证OP" prop="Remark">
<el-select filterable style="width: 80%" clearable v-model="VisaOPMsg.VisaId" :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in VisaEmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId">
</el-option>
</el-select>
<el-select filterable style="width: 80%" clearable v-model="VisaOPMsg.VisaId"
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in VisaEmployeeList" :label="item.EmName" :value="item.EmployeeId"
:key="item.EmployeeId">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="签证助手" prop="Remark">
<el-select multiple filterable style="width: 80%" clearable v-model="VisaOPMsg.VisaAssistIds" :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in VisaEmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId">
</el-option>
</el-select>
<el-select multiple filterable style="width: 80%;height:auto;" clearable v-model="VisaOPMsg.VisaAssistIds"
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in VisaEmployeeList" :label="item.EmName" :value="item.EmployeeId"
:key="item.EmployeeId">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="VisaOPMsg.VisaShow = false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SetVisaOPInfo">{{$t('pub.sureBtn')}}</button>
</div>
</div>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="VisaOPMsg.VisaShow = false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SetVisaOPInfo">{{$t('pub.sureBtn')}}</button>
</div>
</div>
<div v-if="dialog.show">
......@@ -1459,7 +1463,7 @@
FenFangBiaoXiaZai: false, //分房表下载
LookOPCommission: false, //查看OP提成
IsSanKeTicket: false, //是否有散客票权限
VisaEmployeeList:[],
VisaEmployeeList: [],
//查询数据列表
queryCommonData: {
//线路列表
......@@ -1476,7 +1480,7 @@
AirlineList: [],
//员工列表
EmployeeList: [],
//公司数据
BranchList: [],
//是否为分公司
......@@ -1597,11 +1601,11 @@
ProductRecommend: ""
},
VisaOPMsg: {
VisaShow:false,
VisaShow: false,
TCID: 0,
VisaId: "",
VisaAssistIds: [],
VisaAssistId:"",
VisaAssistId: "",
},
flightStatus: [{
Id: 0,
......@@ -2187,43 +2191,43 @@
)
},
getDiningDetailsList() {
let Ids=[];
this.queryCommonData.dataList.forEach((item,index) => {
if((item.LineID==14 || item.LineID==90|| item.LineID==168||item.LineID==118)){
let Ids = [];
this.queryCommonData.dataList.forEach((item, index) => {
if ((item.LineID == 14 || item.LineID == 90 || item.LineID == 168 || item.LineID == 118)) {
Ids.push(item.TCID)
}
});
if(Ids&&Ids.length>0){
let msg = [...new Set(Ids)]
this.apipost(
"dmcstatistics_get_GetDiningStatisticsList", {
tcids: msg.join(',')
},
res => {
if (res.data.resultCode == 1) {
let DiningStatisticsList = []
DiningStatisticsList = res.data.data
this.queryCommonData.dataList.forEach(x => {
DiningStatisticsList.forEach(y => {
if (x.TCID == y.TCID) {
x.DiningList = y.OrderList
}
if (Ids && Ids.length > 0) {
let msg = [...new Set(Ids)]
this.apipost(
"dmcstatistics_get_GetDiningStatisticsList", {
tcids: msg.join(',')
},
res => {
if (res.data.resultCode == 1) {
let DiningStatisticsList = []
DiningStatisticsList = res.data.data
this.queryCommonData.dataList.forEach(x => {
DiningStatisticsList.forEach(y => {
if (x.TCID == y.TCID) {
x.DiningList = y.OrderList
}
})
})
})
this.$forceUpdate()
this.$forceUpdate()
}
}
}
)
)
}
},
getPriceHotelResultStatisticsList() {
let Ids=[];
this.queryCommonData.dataList.forEach((item,index) => {
if((item.LineID==14 || item.LineID==90|| item.LineID==168||item.LineID==118)){
let Ids = [];
this.queryCommonData.dataList.forEach((item, index) => {
if ((item.LineID == 14 || item.LineID == 90 || item.LineID == 168 || item.LineID == 118)) {
Ids.push(item.TCID)
}
});
if(Ids&&Ids.length>0){
if (Ids && Ids.length > 0) {
let msg = [...new Set(Ids)]
this.apipost(
"travel_get_GetPriceHotelResultStatisticsList", {
......@@ -2243,7 +2247,7 @@
this.$forceUpdate()
}
}
)
)
}
},
getTravelAccountStatus() {
......@@ -2686,21 +2690,22 @@
err => {}
);
},
//签证op设置
ckOPInfo(item) {
//签证op设置
ckOPInfo(item) {
this.VisaOPMsg.VisaShow = true;
this.VisaOPMsg.VisaId = item.VisaOPId==0?'':item.VisaOPId;
this.VisaOPMsg.VisaAssistId ='';
this.VisaOPMsg.VisaId = item.VisaOPId == 0 ? '' : item.VisaOPId;
this.VisaOPMsg.VisaAssistId = '';
// this.VisaOPMsg.VisaAssistId = item.VisaAssistantId;
this.VisaOPMsg.VisaAssistIds = (item.VisaAssistantId&&item.VisaAssistantId.length>0)? item.VisaAssistantId.split(",").map((item) => Number(item)):[];
this.VisaOPMsg.VisaAssistIds = (item.VisaAssistantId && item.VisaAssistantId.length > 0) ? item.VisaAssistantId
.split(",").map((item) => Number(item)) : [];
this.VisaOPMsg.TCID = item.TCID;
this.getVisaEmployeeList();
},
//签证op设置
SetVisaOPInfo() {
this.VisaOPMsg.VisaAssistId ='';
//签证op设置
SetVisaOPInfo() {
this.VisaOPMsg.VisaAssistId = '';
console.log(" this.VisaOPMsg", this.VisaOPMsg);
if(this.VisaOPMsg.VisaAssistIds&&this.VisaOPMsg.VisaAssistIds.length>0){
if (this.VisaOPMsg.VisaAssistIds && this.VisaOPMsg.VisaAssistIds.length > 0) {
this.VisaOPMsg.VisaAssistId = this.VisaOPMsg.VisaAssistIds.join(',')
}
this.apipost(
......@@ -2720,8 +2725,16 @@
},
//根据当前员工所在部门获取该部门及子部门员工信息
getVisaEmployeeList() {
let userInfo = this.getLocalStorage();
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: "-1",
DepartmentId: "232",
PostId: "-1",
IsLeave: "0"
};
this.apipost(
"admin_get_GetEmpByDepPostNameList", {},
"admin_get_EmployeeGetList", msg,
(res) => {
if (res.data.resultCode == 1) {
this.VisaEmployeeList = res.data.data;
......
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