Commit f2a39184 authored by 黄奎's avatar 黄奎

页面修改

parent 4b7de2f4
<style> <style>
@import "../../../assets/css/newTravelManager.css"; @import "../../../assets/css/newTravelManager.css";
.flex { .flex {
display: flex; display: flex;
} }
.w-25 { .w-25 {
width: 25%; width: 25%;
} }
.w-50 { .w-50 {
width: 50% width: 50%
} }
.p20 { .p20 {
padding: 20px; padding: 20px;
} }
.TC_companyList span, .TC_companyList span,
.TC_OtherCompany span { .TC_OtherCompany span {
display: inline-block; display: inline-block;
...@@ -119,80 +124,51 @@ ...@@ -119,80 +124,51 @@
.comSearchDiv .el-checkbox { .comSearchDiv .el-checkbox {
margin-right: 0; margin-right: 0;
} }
</style> </style>
<template> <template>
<div class="TC_Content"> <div class="TC_Content">
<div class=" TC-MyList"> <div class=" TC-MyList">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>{{$t('system.table_ssLine')}}</em> <em>{{$t('system.table_ssLine')}}</em>
<el-select class="w150" v-model="queryMsg.LineId" filterable :placeholder="$t('pub.pleaseSel')" <el-select class="w150" v-model="queryMsg.LineId" filterable :placeholder="$t('pub.pleaseSel')"
@change="getLinePlaceList()"> @change="resetQuery">
<el-option :label="$t('pub.unlimitedSel')" :value="queryCommonData.SelectDefaultValue"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option v-for="item in queryCommonData.LineList" :label="item.LineName" :value="item.LineID" <el-option v-for="item in queryDataObj.LineList" :label="item.LineName" :value="item.LineID"
:key="item.LineID"></el-option> :key="item.LineID"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>{{$t('Operation.Op_Country')}}/{{$t('system.query_dest')}}</em> <em>业务名称</em>
<el-select class="w150" v-model="queryMsg.PlaceID" filterable :placeholder="$t('pub.pleaseSel')" <el-input maxlength="50" v-model="queryMsg.GTeamName" class="permiss-input w150"
@change="getLineTeamList()"> @keyup.native.enter="resetQuery" :placeholder="$t('pub.pleaseImport')"></el-input>
<el-option :label="$t('pub.unlimitedSel')" :value="queryCommonData.SelectDefaultValue"></el-option>
<el-option v-for="item in queryCommonData.PlaceList" :label="item.PlaceName" :value="item.PlaceID"
:key="item.LtID"></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('active.ad_xlmc')}}</em>
<el-select class="w150" v-model="queryMsg.LineteamId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value="queryCommonData.SelectDefaultValue"></el-option>
<el-option v-for="item in queryCommonData.LineTeamList" :label="item.LtName" :value="item.LtID"
:key="item.LtID"></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('visa.v_tuanhao')}}</em>
<el-input maxlength="50" v-model="queryMsg.TCNUM" class="permiss-input w150"
@keyup.native.enter="getControlList" :placeholder="$t('pub.pleaseImport')"></el-input>
</span>
</li>
<li>
<span>
<em>{{$t('hotel.hotel_SerialNumber')}}</em>
<el-input maxlength="6" v-model="queryMsg.TCID" class="permiss-input w150"
:placeholder="$t('pub.pleaseImport')" @keyup.native="checkInteger(queryMsg,'TCID')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>{{$t('scen.sc_ftTime')}}</em> <em>{{$t('scen.sc_ftTime')}}</em>
<el-date-picker class="w150" type="date" v-model="queryMsg.StartGroupDate" <el-date-picker class="w150" type="date" v-model="queryMsg.SelectStartDate"
:picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker> :picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker>
<el-date-picker class="w150" type="date" v-model="queryMsg.EndGroupDate" <el-date-picker class="w150" type="date" v-model="queryMsg.SelectEndDate"
:picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker> :picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
<button class="hollowFixedBtn" @click="resetPageIndex(),getControlList()">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="resetQuery">{{$t('pub.searchBtn')}}</button>
</li> </li>
</ul> </ul>
</div> </div>
<div class="TravelTclList" v-loading="queryCommonData.loading"> <div class="TravelTclList" v-loading="queryMsg.loading">
<ul> <ul>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="queryMsg.currentPage"
layout="total,prev, pager, next, jumper" :page-size="queryMsg.pageSize" :total="queryMsg.total"> layout="total,prev, pager, next, jumper" :page-size="queryMsg.pageSize" :total="queryMsg.total">
</el-pagination> </el-pagination>
<li v-for="(item,index) in queryCommonData.dataList" :key="index" <li v-for="(item,index) in queryDataObj.dataList" :key="index"
:class="{'TC_hasContent':item.OPInnerRemark==''&&item.OPRemark==''}"> :class="{'TC_hasContent':item.OPInnerRemark==''&&item.OPRemark==''}">
<div class="TC_remarkContent"> <div class="TC_remarkContent">
<div class="el-col w-25"> <div class="el-col w-25">
...@@ -200,20 +176,23 @@ ...@@ -200,20 +176,23 @@
<div><span>韩国包机业务</span></div> <div><span>韩国包机业务</span></div>
<div>流水号<span>1234546</span></div> <div>流水号<span>1234546</span></div>
<div><span>韩国包机业务</span></div> <div><span>韩国包机业务</span></div>
<div><span>韩国包机业务</span></div></div> <div><span>韩国包机业务</span></div>
</div>
</div> </div>
<div class="el-col w-25 "> <div class="el-col w-25 ">
<div class="p20"> <div class="p20">
<div><span>航空公司</span></div> <div><span>航空公司</span></div>
<div>航班号<span>1234546</span></div> <div>航班号<span>1234546</span></div>
<div><span>出发日期</span></div> <div><span>出发日期</span></div>
<div><span>起飞日期</span></div></div> <div><span>起飞日期</span></div>
</div>
</div> </div>
<div class="el-col w-25 "> <div class="el-col w-25 ">
<div class="p20"> <div class="p20">
<div><span>经济舱</span></div> <div><span>经济舱</span></div>
<div>商务舱</div> <div>商务舱</div>
<div><span>头等舱</span></div></div> <div><span>头等舱</span></div>
</div>
</div> </div>
<div class="el-colw-25"> <div class="el-colw-25">
<div class="p20"> <div class="p20">
...@@ -246,8 +225,12 @@ ...@@ -246,8 +225,12 @@
</div> </div>
</div> </div>
<div class="TC_remarkContent"> <div class="TC_remarkContent">
<div class="el-col w-50"><div class="p20">发起人</div></div> <div class="el-col w-50">
<div class="el-col w-50"><div class="p20">合作伙伴</div></div> <div class="p20">发起人</div>
</div>
<div class="el-col w-50">
<div class="p20">合作伙伴</div>
</div>
</div> </div>
<div class="TC_remarkContent"> <div class="TC_remarkContent">
<div class="p20">备注</div> <div class="p20">备注</div>
...@@ -261,79 +244,9 @@ ...@@ -261,79 +244,9 @@
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<div class="combottomDiv TC_divCon" v-if="queryCommonData.setPlatDialog">
<div class="combottomTitle">{{$t('Operation.Op_choicePlat')}}</div>
<span class="setPlatLeft">{{$t('Operation.Op_salesPlat')}}</span>
<span>
<el-checkbox v-model="queryCommonData.checkDialogAll" @change="checkAllDialog" style="margin-right:20px;">
{{$t('system.table_chekAll')}}</el-checkbox>
<el-checkbox-group v-model="queryCommonData.ckedplat" @change="checkDialog">
<el-checkbox v-for="sales in $tripUtils.TeamStatesList.salsPlat" :label="sales.Id" :key="sales.Name">
{{sales.Name}}</el-checkbox>
</el-checkbox-group>
</span>
<span>
<button class="normalBtn" style="margin-left:50px;" @click="SetshelvesUp">{{$t('pub.sureBtn')}}</button>
<button class="hollowFixedBtn" @click="queryCommonData.setPlatDialog=false">{{$t('pub.cancelBtn')}}</button>
</span>
</div>
<div class="combottomDiv OPremarkDiv" v-if="queryCommonData.outerVisible">
<div class="combottomTitle">{{$t('Operation.Op_remark')}}</div>
<el-form label-width="100px">
<el-col :span="8">
<el-form-item :label="$t('Operation.Op_duiwaiRemark')" prop="Remark">
<el-input type="textarea" v-model="remarkMsg.OPRemark" rows="6"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="$t('Operation.Op_duineiRemark')" prop="Remark">
<el-input type="textarea" v-model="remarkMsg.OPInnerRemark" rows="6"></el-input>
</el-form-item>
</el-col>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="queryCommonData.outerVisible = false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="setOPremark">{{$t('pub.sureBtn')}}</button>
</div>
</div>
<div class="combottomDiv OPremarkDiv" v-if="queryCommonData.SellingPoints">
<div class="combottomTitle">{{$t('Operation.Op_bentuanMaidian')}}</div>
<el-form label-width="100px">
<el-col :span="8">
<el-form-item :label="$t('Operation.Op_bentuanMaidian')" prop="Remark">
<el-input type="textarea" v-model="remarkMsg.ProductRecommend" rows="6"></el-input>
</el-form-item>
</el-col>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="queryCommonData.SellingPoints = false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SetSellingPoints">{{$t('pub.sureBtn')}}</button>
</div>
</div>
<div class="combottomDiv OPremarkDiv" v-if="queryCommonData.UploadWORDTip"
v-loading="queryCommonData.uploadLoading">
<div class="combottomTitle">
<template v-if="queryCommonData.UploadItem.Type==1"> {{$t('Operation.Op_scTrip')}}</template>
<template v-else> {{$t('op.UploadFFB')}}</template>
<button style="float:right;margin-right:100px;" class="hollowFixedBtn" type="primary"
@click="queryCommonData.UploadWORDTip = false">{{$t('pub.cancelBtn')}}
</button>
</div>
<el-form label-width="100px">
<el-col :span="8" class="_pic_upload">
<el-upload :http-request="uploadFileBtn" drag :multiple="true" :show-file-list="false" action=""
accept="*.doc,*.docx">
<i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">{{$t('active.ld_djscwj')}}</div>
</el-upload>
</el-col>
</el-form>
</div>
</div> </div>
</template> </template>
<script> <script>
// import commonHotelInfo from "../../commonPage/commonHotelInfo.vue";
export default { export default {
provide() { provide() {
return { return {
...@@ -342,252 +255,47 @@ ...@@ -342,252 +255,47 @@
}, },
data() { data() {
return { return {
isCommissionDetails: false, //团控提成详情权限
QSendCommissionStateList: [{
Name: '不限',
ID: 0
},
{
Name: '已发放',
ID: 1
},
{
Name: '未发放',
ID: 2
},
],
TeamShouZhi: false, //团队收支明细权限
OutHotel: false, //酒店下架权限
FenXiaoLianYun: false, //分销联运
ShangChuanFenFangbiao: false, //上传分房表
ChaKanGuest: false, //查看旅客调查
FenFangBiaoXiaZai: false, //分房表下载
LookOPCommission: false, //查看OP提成
IsSanKeTicket: false, //是否有散客票权限
//查询数据列表
queryCommonData: {
//线路列表
LineList: [],
//目的地
PlaceList: [],
//系列列表
LineTeamList: [],
//下拉框默认值
SelectDefaultValue: 0,
//公司选项卡默认选中
activeName: "-1",
//航空公司
AirlineList: [],
//员工列表
EmployeeList: [],
//公司数据
BranchList: [],
//是否为分公司
IsParentCompany: "",
//显示销售平台
showPlatForm: false,
//团期全选
checkGroupALL: false,
//销售平台全选
checkPlatForm: false,
//团队状态全选
checkTCStateAll: false,
//是否显示弹出框
setPlatDialog: false,
//弹出框全选
checkDialogAll: false,
//选择上架平台
ckedplat: [],
//loading
loading: false,
//中间变量ID
comID: "",
//中间变量TCState
comState: "",
//标题
comPlatTitle: "",
//高级搜索
showHigradeSearch: false,
//预警搜索
showWarningSearch: false,
//数据列表
dataList: [],
//中国下面城市
CityList: [],
//销售公司
companyList: [],
singleTCID: 0,
outerVisible: false,
flightCKed: [],
IsUnionCked: [],
loading: false,
checkCompanyAll: true,
//本团卖点
SellingPoints: false,
defaultCheckValue: 0,
defaultCheckChooseValue: 1,
//上传WORD提示层
UploadWORDTip: false,
//选择上传项
UploadItem: {},
//word上传提示层
uploadLoading: false
},
//查询参数 //查询参数
queryMsg: { queryMsg: {
QOutGroupAuditReject: 0, //只查看审核驳回 1
QSendCommissionState: 0, //提成状态 0不限, 1已发放, 2未发放
//出团公司集合
OutBranchIds: [],
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
LineId: 0,
PlaceID: 0,
LineIdList: [],
LineteamId: 0,
TCNUM: "",
StartGroupDate: "",
EndGroupDate: "",
OutBranchId: -1,
AirTicketId: 0,
TeamMinNum: "",
TeamMaxNum: "",
CreateBy: 0,
ApplyMinNum: "",
ApplyMaxNum: "",
DayNum: "",
OnlyShowOverTeam: false,
TCState: [3], //去掉默认显示
GroupState: [],
SalePlat: [],
UnionCityId: 0,
SaleBranchId: [],
total: 0, total: 0,
//是否有数据 //是否有数据
noData: false, noData: false,
currentPage: 1, currentPage: 1,
//航班配置 loading: false, //加载层
FlightState: 0, GTeamName: "", //业务名称
//预警团 SelectStartDate: "", //开始时间
IsWarning: false, SelectEndDate: "", //结束时间
WarningQuery: "-1",
RateOnDay: "-1",
RateOn: "-1",
TeamType: 0, //一般常规团
IsShowUnion: -1,
TCID: "",
HotelId: 0, //酒店编号
HotelUseTime: "", //酒店使用时间
QBusNumber: "",
PriceTeamType: "", //团队类型
},
TeamListArr: [], //团队类型
//报价单查询条件
offerQMsg: {
CreateBy: 0, //报价单创建人
QStartDate: "", //报价单开始时间
QEndDate: "", //报价单结束时间
},
offerDataList: [], //报价单列表
remarkMsg: {
TCID: 0,
OPRemark: "",
OPInnerRemark: "",
//配置
ConfigId: 0,
//本团卖点
ProductRecommend: ""
},
flightStatus: [{
Id: 0,
Name: "不限",
Checked: true
},
{
Id: 1,
Name: "已配置",
Checked: false
}, },
{ queryDataObj: {
Id: 2, LineList: [], //线路列表
Name: "未配置", AirlineList: [], //航空公司列表
Checked: false dataList: [], //数据列表
}
],
//联运状态
unionStatus: [{
Id: -1,
Name: "全部",
Checked: true
},
{
Id: 0,
Name: "主团",
Checked: false
}, },
{
Id: 1,
Name: "分销团",
Checked: false
}
],
//当前登录用户信息 //当前登录用户信息
CurrentUserInfo: {}, CurrentUserInfo: {},
showHotelObj: {
showPrice: true, //是否显示价格
showPay: false, //是否显示支付方式
showZhan: true, //占房时间
showBtnList: false, //是否下载、确认按钮
ShowTaxType: false, //显示税入税别
ShowRebateRatio: false, //显示返佣比列
ShowSupplier: true, //是否显示供应商
showCaozuoTime: true, //操作时间
colspanLength: 5 //跨行
},
//更新可售机票数量
updateAirticketObj: {
TCID: 0,
CanSellTicketNum: 2
},
IsModifyTravelControl: 0, //分公司是否有修改团控权限 IsModifyTravelControl: 0, //分公司是否有修改团控权限
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: time => { disabledDate: time => {
if (this.queryMsg.EndGroupDate == null) { if (this.queryMsg.SelectEndDate == null) {
return false; return false;
} else { } else {
let endTime = new Date(this.queryMsg.EndGroupDate); let endTime = new Date(this.queryMsg.SelectEndDate);
return endTime.getTime() < time.getTime(); return endTime.getTime() < time.getTime();
} }
} }
}, },
pickerBeginDateAfter: { pickerBeginDateAfter: {
disabledDate: time => { disabledDate: time => {
let startTime = new Date(this.queryMsg.StartGroupDate); let startTime = new Date(this.queryMsg.SelectStartDate);
return startTime.getTime() >= time.getTime();
}
},
//报价单列表
offerBeginDateBefore: {
disabledDate: time => {
if (this.offerQMsg.QEndDate == null) {
return false;
} else {
let endTime = new Date(this.offerQMsg.QEndDate);
return endTime.getTime() < time.getTime();
}
}
},
offerBeginDateAfter: {
disabledDate: time => {
let startTime = new Date(this.offerQMsg.QStartDate);
return startTime.getTime() >= time.getTime(); return startTime.getTime() >= time.getTime();
} }
}, },
}; };
}, },
components: { components: {
// commonHotelInfo
}, },
//监听器 //监听器
watch: { watch: {
...@@ -597,172 +305,10 @@ ...@@ -597,172 +305,10 @@
}, },
}, },
methods: { methods: {
// 查看团详情
goRoyaltyUrl(row, Royalty, item) {
let name
let obj = {
isSearch: true,
blank: "y"
}
if (Royalty.Type == 3) {
name = 'OpComPersonDetails'
obj.EmployeeId = item.UserId
obj.TCNUM = row.TCNUM
} else if (Royalty.Type == 2) {
name = 'OPsalesCommissiondetails'
obj.UserId = item.UserId
obj.TCNUM = row.TCNUM
} else {
name = 'ServiceCommissiondetails'
obj.UserId = item.UserId
obj.TCNUM = row.TCNUM
obj.Type = 2
}
this.$router.push({
name: name,
query: obj
})
},
//获取团队类型
getTeamList() {
this.apipost("travel_get_GetTravelPriceTeamTypeList", {}, res => {
if (res.data.resultCode == 1) {
this.TeamListArr = res.data.data;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
//获取TCID
clickAirticket(item) {
this.updateAirticketObj.TCID = item.TCID;
},
//开启散客机票
openAirticket() {
this.apipost(
"travel_post_SetCanSellTicketNumService",
this.updateAirticketObj,
res => {
if (res.data.resultCode == 1) {
this.Success("开启成功!");
this.updateAirticketObj.TCID = 0;
this.updateAirticketObj.CanSellTicketNum = 2;
this.getControlList();
} else {
this.Error(res.data.data);
}
},
null
);
},
//关闭散客机票
closeAirticket(TCID) {
var that = this;
this.Confirm("是否要关闭可售机票?", function () {
var tempMsg = {
TCID: TCID,
CanSellTicketNum: 0
};
that.apipost(
"travel_post_SetCanSellTicketNumService",
tempMsg,
res => {
if (res.data.resultCode == 1) {
that.Success("关闭成功!");
that.getControlList();
} else {
that.Error(res.data.data);
}
},
null
);
});
},
// 跳转调查列表
goInvetig: function (path, tcid, orderId) {
this.$router.push({
name: path,
query: {
OrderId: orderId,
TCID: tcid,
blank: "y"
}
});
},
//更新手配书状态
SetShouPeiShu(TCID, ShouPeiStatus) {
var msg = {
TCID: TCID,
ShouPeiStatus: ShouPeiStatus == 0 ? 1 : 0
};
this.apipost(
"dmcstatistics_post_SetPriceShouPeiShuService",
msg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
},
SetGroupRecommendType(item, num) {
let msg = {};
msg.groupRecommendType = num;
msg.tcid = item.TCID;
this.apipost(
"travel_post_SetGroupRecommendType",
msg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
downloadFile: function (item) {
let reg = /^http(s)?:\/\/(.*?)\//;
this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name);
},
goOPCommissionInfo(tcid, item) {
if (item.TravelEndAudit == 1) {
this.$router.push({
path: "OPsalesCommissiondetails",
query: {
TCNUM: item.TCNUM,
blank: "y"
}
});
} else {
this.$router.push({
path: "OpComPersonDetails",
query: {
TrPerIods: tcid,
blank: "y"
}
});
}
},
//翻页 //翻页
handleCurrentChange(val) { handleCurrentChange(val) {
this.queryMsg.pageIndex = val; this.queryMsg.pageIndex = val;
this.getControlList(); this.getTravelTeamList();
},
//重新查询
resetPageIndex() {
this.queryMsg.pageIndex = 1;
this.queryMsg.currentPage = 1;
}, },
//获取线路列表 //获取线路列表
getLineList() { getLineList() {
...@@ -772,1045 +318,49 @@ ...@@ -772,1045 +318,49 @@
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.queryCommonData.LineList = res.data.data; this.queryDataObj.LineList = res.data.data;
this.queryCommonData.PlaceList = [];
this.queryCommonData.LineTeamList = [];
} }
} }
); );
}, },
//获取目的地列表
getLinePlaceList() {
this.queryMsg.PlaceID = 0;
this.queryMsg.LineteamId = 0;
let msg = {
lineID: this.queryMsg.LineId
};
this.apipost("team_post_GetLinePlace", msg, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.PlaceList = res.data.data;
this.queryCommonData.LineTeamList = [];
}
});
},
//获取系列列表
getLineTeamList() {
this.queryMsg.LineteamId = 0;
let msg = {
lineID: this.queryMsg.LineId,
placeID: this.queryMsg.PlaceID,
isTOOP: 1
};
this.apipost("team_post_GetList", msg, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.LineTeamList = res.data.data;
}
});
},
//切换公司
getCompanyTab(Id) {
this.queryMsg.OutBranchId = Id;
this.queryMsg.currentPage = 1;
this.getControlList();
},
//获取航空公司 //获取航空公司
getAirlineList() { getAirlineList() {
this.apipost( this.apipost(
"airline_post_GetList", {}, "airline_post_GetList", {},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.queryCommonData.AirlineList = res.data.data; this.queryDataObj.AirlineList = res.data.data;
} }
},
err => {}
);
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
let userInfo = this.getLocalStorage();
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: "-1",
DepartmentId: "-1",
PostId: "-1",
IsLeave: "0"
};
this.apipost(
"admin_get_EmployeeGetList", {},
res => {
if (res.data.resultCode == 1) {
this.queryCommonData.EmployeeList = res.data.data;
} }
},
err => {}
); );
}, },
//重新查询
//新获取列表数据 resetQuery() {
getControlList() { this.queryMsg.pageIndex = 1;
var msg = JSON.parse(JSON.stringify(this.queryMsg)); this.getTravelTeamList();
if (msg.TeamMinNum == "") { },
msg.TeamMinNum = -1; //获取包机列表
} getTravelTeamList() {
if (msg.TeamMaxNum == "") { this.queryMsg.loading = true;
msg.TeamMaxNum = -1;
}
if (msg.ApplyMinNum == "") {
msg.ApplyMinNum = -1;
}
if (msg.ApplyMaxNum == "") {
msg.ApplyMaxNum = -1;
}
if (msg.DayNum == "") {
msg.DayNum = -1;
}
if (msg.TCID == "") {
msg.TCID = 0;
}
this.queryCommonData.loading = true;
this.apipost( this.apipost(
"travel_get_GetTravelPrciePageList_V2", "travel_get_GetTravelPrciePageList_V2",
msg, this.queryMsg,
res => { res => {
this.queryCommonData.loading = false; this.queryMsg.loading = false;
if (this.queryMsg.TCID == "0") {
this.queryMsg.TCID = "";
}
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.queryCommonData.dataList = res.data.data.pageData; this.queryDataObj.dataList = res.data.data.pageData;
this.queryMsg.total = res.data.data.count; this.queryMsg.total = res.data.data.count;
this.queryMsg.noData = !this.queryMsg.total > 0;
this.queryCommonData.dataList.forEach(item => {
item.SalePlatList = [];
if (item.SalePlat !== null) {
if (item.SalePlat.indexOf("1") != -1) {
item.b2b = true;
}
var SalePlatArr = item.SalePlat.split(",");
SalePlatArr.forEach(y => {
item.SalePlatList.push(parseInt(y));
});
}
});
if (!this.isCommissionDetails) return
this.getDetailsOfRoyalty()
}
},
err => {}
);
},
getDetailsOfRoyalty() {
let Ids = this.queryCommonData.dataList.map(x => {
return x.TCID
})
let msg = [...new Set(Ids)]
this.apipost(
"commission_get_GetTravelOPCommissionList", {
TCIDStr: msg.join(',')
},
res => {
if (res.data.resultCode == 1) {
let RoyaltyList = []
RoyaltyList = res.data.data
this.queryCommonData.dataList.forEach(x => {
RoyaltyList.forEach(y => {
if (x.TCID == y.TCID) {
x.Royalty = y
}
})
})
this.$forceUpdate()
}
}
)
},
//验证大小
checkTeamNum(queryMsg) {
var TeamMinNum = parseInt(queryMsg.TeamMinNum);
var TeamMaxNum = parseInt(queryMsg.TeamMaxNum);
var ApplyMinNum = parseInt(queryMsg.ApplyMinNum);
var ApplyMaxNum = parseInt(queryMsg.ApplyMaxNum);
if (TeamMaxNum < TeamMinNum) {
queryMsg.TeamMaxNum = "";
}
if (ApplyMaxNum < ApplyMinNum) {
queryMsg.ApplyMaxNum = "";
}
},
//初始化公司
getCompanyList() {
let userInfo = this.getLocalStorage();
var RB_Group_id = userInfo.RB_Group_id;
let msg = {
Status: 0,
is_show: 0,
RB_Group_Id: RB_Group_id
};
this.apipost(
"admin_get_BranchGetList",
msg,
res => {
if (res.data.resultCode == 1) {
this.queryCommonData.BranchList = res.data.data;
this.queryCommonData.BranchList.forEach(x => {
x.isShow = false;
});
}
},
err => {}
);
},
//团期状态全选
checkGroupAll(val) {
this.queryMsg.GroupState = [];
if (val) {
this.$tripUtils.TeamStatesList.teamDateStates.forEach(x => {
this.queryMsg.GroupState.push(x.Id);
});
}
},
checkGroup(value) {
let checkedCount = value.length;
this.queryCommonData.checkGroupALL =
checkedCount ===
this.$tripUtils.TeamStatesList.teamDateStates.length;
},
//销售平台全选
checkAllSales(val) {
this.queryMsg.SalePlat = [];
if (val) {
this.$tripUtils.TeamStatesList.salsPlat.forEach(x => {
this.queryMsg.SalePlat.push(x.Id);
});
}
},
checkSales(value) {
let checkedCount = value.length;
this.queryCommonData.checkPlatForm =
checkedCount === this.$tripUtils.TeamStatesList.salsPlat.length;
},
//团队状态全选
checkAllTeam(val) {
this.queryMsg.TCState = [];
if (val) {
this.$tripUtils.TeamStatesList.TeamStates.forEach(x => {
this.queryMsg.TCState.push(x.Id);
});
}
if (
this.queryMsg.TCState.indexOf(
this.$tripUtils.TeamStatesList.TeamStates[2].Id
) > -1
) {
this.queryCommonData.showPlatForm = true;
} else {
this.queryCommonData.showPlatForm = false;
}
},
checkedTeamList(value) {
if (
value.indexOf(this.$tripUtils.TeamStatesList.TeamStates[2].Id) >
-1
) {
this.queryCommonData.showPlatForm = true;
} else {
this.queryCommonData.showPlatForm = false;
}
let checkedCount = value.length;
this.queryCommonData.checkTCStateAll =
checkedCount ===
this.$tripUtils.TeamStatesList.TeamStates.length;
},
//全选弹出框
checkAllDialog(val) {
this.queryCommonData.ckedplat = [];
if (val) {
this.$tripUtils.TeamStatesList.salsPlat.forEach(x => {
this.queryCommonData.ckedplat.push(x.Id);
});
}
},
checkDialog(value) {
let checkedCount = value.length;
this.queryCommonData.checkDialogAll =
checkedCount === this.$tripUtils.TeamStatesList.salsPlat.length;
},
//点击上架
setUpPlat(item) {
this.queryCommonData.outerVisible = false;
this.queryCommonData.setPlatDialog = true;
this.queryCommonData.singleTCID = item.TCID;
if (item.TCState == 2) {
this.queryCommonData.ckedplat = [];
this.queryCommonData.checkDialogAll = false;
} else if (item.TCState == 3) {
item.SalePlatList.forEach(x => {
this.queryCommonData.ckedplat.push(parseInt(x));
});
if (
item.SalePlatList.length ==
this.$tripUtils.TeamStatesList.salsPlat.length
) {
this.queryCommonData.checkDialogAll = true;
}
}
},
//单团酒店下架
RemoveHotelJourneyOrder(TCID) {
var that = this;
this.Confirm("是否要下架酒店?下架过后将释放酒店库存!", function () {
let msg = {
TCID: TCID
};
that.apipost(
"travel_post_RemoveHotelJourneyOrderService",
msg,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getControlList();
} else {
that.Info(res.data.message);
}
}
);
});
},
//单团设置下架
Setshelves(TCID) {
let msg = {
TCID: TCID,
TCState: 2,
SalePlat: ""
};
this.apipost("travel_post_SetPriceTCState", msg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
this.queryCommonData.checkDialogAll = false;
this.queryCommonData.ckedplat = [];
} else {
this.Info(res.data.message);
}
});
},
//单团设置上架
SetshelvesUp() {
let msg = {
TCID: this.queryCommonData.singleTCID,
TCState: 3,
SalePlat: this.queryCommonData.ckedplat.join(",")
};
if (msg.SalePlat == "") {
this.Error("请选择上架平台");
return;
}
this.apipost("travel_post_SetPriceTCState", msg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
this.queryCommonData.setPlatDialog = false;
this.queryCommonData.checkDialogAll = false;
this.queryCommonData.ckedplat = [];
}
});
},
goUrl(path, id, name) {
this.$store.commit("pageConditionUpdate", this.queryMsg);
this.$router.push({
name: path,
query: {
id: id,
blank: "y",
tab: name
}
});
},
goUrlR(path, item) {
var cityId = item.StartCityID;
if (item.IsUnion == 1 && item.UnionTypeStr == 2) {
cityId = item.UnionCityId;
}
let routeData = this.$router.resolve({
name: path,
query: {
configId: item.ID,
cityId: cityId,
tcid: item.TCID,
orderId: 0,
vshowL: false,
vshowM: false,
vshowTCNUM: true,
isClick: 1 //不计算点击
}
});
window.open(routeData.href, "_blank");
},
//控制是否显示确认单按钮
showSureOrder(code, createBy) {
let UserInfo = this.getLocalStorage();
if (
createBy == UserInfo.EmployeeId ||
UserInfo.ActionMenuCode.indexOf(code) != -1
) {
return true;
} else {
return false;
}
},
goSureOrder(path, TCID) {
this.$router.push({
name: path,
query: {
TCID: TCID,
blank: "y",
tab: "收入确认单"
}
});
},
goUrlMake(path, LineID, TCID, name) {
this.$router.push({
name: path,
query: {
LineID: LineID,
TCID: TCID,
blank: "y",
tab: name
}
});
},
goB2B(ConfigId, tcid, type) {
var B2BDomain = this.CurrentUserInfo.B2BDomain;
if (type == 1) {
if (this.CurrentUserInfo.RB_Group_id == 81) {
this.$tripUtils.GotoB2BPage2(B2BDomain, ConfigId, tcid);
} else {
this.$tripUtils.GotoB2BPage(B2BDomain, ConfigId, tcid);
}
} else {
this.$tripUtils.GotoB2CPage(B2BDomain, ConfigId, tcid);
}
},
goTeamBalance(id, OutBranchId) {
this.$router.push({
name: "TeamBalancePayment",
query: {
id: id,
OutBranchId: OutBranchId,
IsHaveAuth: true,
blank: "y",
tab: "团队收支明细"
}
});
},
//开团或修改
goToOpenTravel(path, configId, tcid) {
if (configId > 0) {
this.$store.commit("pageConditionUpdate", this.queryMsg);
this.$router.push({
name: path,
query: {
configId: configId,
openState: 1,
tcid: tcid,
blank: "y",
tab: "团期配置"
}
});
} else {
this.$router.push({
name: path
});
}
},
//当团修改
goTonowTeam(path, configId, tcid, TCNUM) {
if (configId > 0) {
this.$store.commit("pageConditionUpdate", this.queryMsg);
this.$router.push({
name: path,
query: {
configId: configId,
openState: 1,
tcid: tcid,
TCNUM: TCNUM,
blank: "y",
tab: "团期配置"
} }
});
} else {
this.$router.push({
name: path
});
}
},
//删除团期
removeTeamInfo(TCID) {
var that = this;
that.Confirm("是否删除?", function () {
var msg = {
TCID: TCID
};
that.apipost(
"travel_post_RemoveTravelPrice",
msg,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getControlList();
} else {
that.Error(res.data.message);
}
},
null
);
});
},
//获取城市
getCountryCity() {
this.apipost("sellorder_get_GetAllStartCity", {}, res => {
if (res.data.resultCode == 1) {
this.queryCommonData.CityList = res.data.data;
}
});
},
getSellorCompany() {
//出团公司
this.apipost(
"sellorder_post_GetBranchList", {},
res => {
if (res.data.resultCode == 1) {
this.queryCommonData.companyList = res.data.data;
}
},
err => {}
);
},
//点击op备注
ckOPremark(item) {
this.remarkMsg.TCID = item.TCID;
this.remarkMsg.OPRemark = item.OPRemark;
this.remarkMsg.OPInnerRemark = item.OPInnerRemark;
this.queryCommonData.setPlatDialog = false;
this.queryCommonData.outerVisible = true;
},
//设置OP备注
setOPremark() {
this.apipost(
"travel_post_SetTravelPrcieOpRemark",
this.remarkMsg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.queryCommonData.outerVisible = false;
this.getControlList();
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
//点击本团卖点
ckSellPoint(item) {
this.queryCommonData.SellingPoints = true;
this.remarkMsg.ConfigId = item.ID;
this.remarkMsg.ProductRecommend = item.ProductRecommend;
this.remarkMsg.TCID = item.TCID;
},
//本团卖点
SetSellingPoints() {
this.apipost(
"travel_post_SetSellingPoints",
this.remarkMsg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.queryCommonData.SellingPoints = false;
this.getControlList();
} else {
this.Error(res.data.message);
} }
},
err => {}
); );
}, },
checkedFlight(item) {
this.queryMsg.FlightState = item.Id;
this.queryCommonData.flightCKed = [];
this.queryCommonData.flightCKed.push(item.Id);
},
checkedUnion(item) {
this.queryMsg.IsShowUnion = item.Id;
this.queryCommonData.IsUnionCked = [];
this.queryCommonData.IsUnionCked.push(item.Id);
},
//点击选取出团公司
getCompanyCheck(item) {
item.isShow = !item.isShow;
this.queryCommonData.checkCompanyAll = false;
this.$forceUpdate();
this.queryMsg.OutBranchIds = [];
this.queryCommonData.BranchList.forEach(x => {
if (x.isShow) {
this.queryMsg.OutBranchIds.push(x.Id);
}
});
if (
this.queryMsg.OutBranchIds.length ==
this.queryCommonData.BranchList.length ||
this.queryMsg.OutBranchIds.length == 0
) {
this.queryCommonData.checkCompanyAll = true;
}
this.resetPageIndex();
this.getControlList();
},
//查询全部
getCompanyCheckAll() {
this.queryCommonData.checkCompanyAll = true;
this.queryMsg.OutBranchIds = [];
this.queryCommonData.BranchList.forEach(x => {
x.isShow = false;
});
this.getControlList();
},
SetPrice(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
},
//隐藏显示
ShowUnionList(item) {
// this.queryCommonData.showUnion = !this.queryCommonData.showUnion;
item.isshowUnion = !item.isshowUnion;
if (item.isshowUnion) {
item.UnionText = "隐藏联运";
} else {
item.UnionText = "显示联运";
}
this.$forceUpdate();
},
//酒店餐厅处理跳转
goHotelDiningBus(item, HotelDiningBus, type) {
if (type == 1) {
this.$router.push({
name: "ChangeHotel",
query: {
TCNUM: item.TCNUM,
id: item.TCID,
blank: "y",
tab: "酒店变更"
}
});
} else {
this.$router.push({
name: "ChangeDining",
query: {
TCNUM: item.TCNUM,
id: item.TCID,
blank: "y",
tab: "餐厅变更"
}
});
}
},
//显示弹窗层
ShowUploadWord(item, type) {
this.queryCommonData.UploadWORDTip = true;
this.queryCommonData.UploadItem = item;
this.queryCommonData.UploadItem.Type = type;
},
//保存WORD路劲
uploadFileBtn(file) {
var that = this;
let newArr = [];
newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WordTrip/";
this.UploadSelfFileT(path, newArr, res => {
if (res.data.StatusCode == 1) {
that.queryCommonData.uploadLoading = true;
let uploadMsg = {
TCID: that.queryCommonData.UploadItem.TCID,
Type: that.queryCommonData.UploadItem.Type,
wordPath: res.data.FilePath
};
that.apipost(
"travel_post_UploadWord",
uploadMsg,
res => {
that.queryCommonData.uploadLoading = false;
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.queryCommonData.UploadWORDTip = false;
that.getControlList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
} else {
that.Error("上传文件失败!");
}
});
},
//结团/正常
OutGroup(TCID, Status, TravelEndAudit) {
let msg = {
TCID: TCID,
Status: Status
};
if (TravelEndAudit == 1) {
let that = this;
that.$confirm('此团线路已开启结团审批,一旦申请结团,不能再进行财务单据的操作,确定结团?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.setPriceStatus(msg)
}).catch(() => {
});
} else {
this.setPriceStatus(msg)
}
},
setPriceStatus(msg) {
this.apipost("travel_post_SetPriceStatus", msg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
this.queryCommonData.checkDialogAll = false;
this.queryCommonData.ckedplat = [];
} else {
this.Info(res.data.message);
}
});
},
//分房表下载
exportExcel_singleRoom(item) {
this.queryCommonData.loading = true;
//导出报表
let msg = {
TCID: item.TCID,
isGetTicket: 1, //不查询机票
isGetZiYouXing: 0, //查询自由行
isOnlyFenFang: 1 //只查询已分房的
};
var fileName =
"【" +
item.TCNUM +
"】分房表[" +
this.getCurrentTime() +
"].xls";
this.GetLocalFile(
"travel_get_GetTravelRoomExport",
msg,
fileName,
res => {
this.queryCommonData.loading = false;
}
);
},
getCurrentTime() {
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
var hour = date.getHours();
var minute = date.getMinutes();
var second = date.getSeconds();
return (
year +
"_" +
month +
"_" +
day +
"_" +
hour +
"_" +
minute +
"_" +
second
);
},
//报价单查询
getOfferQuery(createBy) {
this.offerQMsg.CreateBy = createBy;
//this.offerQMsg.CreateBy = 0;
this.apipost("travel_get_GetOfferListExtService", this.offerQMsg, res => {
if (res.data.resultCode == 1) {
this.offerDataList = res.data.data;
} else {
this.Info(res.data.message);
}
});
},
//报价单选中
clickOfferItem(oItem) {
this.offerDataList.forEach(item => {
item.IsCheck = false;
});
oItem.IsCheck = true;
},
//保存报价单
saveOffer(item) {
var offerId = 0;
this.offerDataList.forEach(item => {
if (item.IsCheck) {
offerId = item.OfferId;
}
});
if (offerId > 0) {
var updateMsg = {
OfferId: offerId,
ConfigId: item.ID
};
this.apipost("travel_post_UpdateConfigOfferIdService", updateMsg, res => {
item.IsShowOffer = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
} else {
this.Info(res.data.message);
}
});
} else {
this.Info("请选择报价单!");
}
},
//清空报价单信息
clearOfferMsg() {
this.offerQMsg.CreateBy = 0;
this.offerQMsg.QStartDate = "";
this.offerQMsg.QEndDate = "";
var myDate = new Date();
var nowDate =
myDate.getFullYear() +
"-" +
parseInt(myDate.getMonth() + 1) +
"-" +
myDate.getDate();
this.offerQMsg.QStartDate = nowDate;
this.offerDataList = [];
},
//跳转到报价单
gotoOffer(item) {
this.$router.push({
path: 'QuotationNewPrice',
query: {
offerid: item.Config_OfferId,
blank: 'y',
tab: '报价单'
}
});
},
//保存报价单
setIsSetOutOffer(item, IsSetOut) {
var updateMsg = {
TCID: item.TCID,
IsSetOut: IsSetOut
};
this.apipost("travel_post_SetIsSetOutService", updateMsg, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getControlList();
} else {
this.Info(res.data.message);
}
});
},
//权限验证
checkAuth() {
var actionCode = this.$AuthCode.TeamShouZhi;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.TeamShouZhi = true;
}
});
//酒店下架
var OutHotel_Code = this.$AuthCode.OutHotel;
this.CheckUserAuth(OutHotel_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.OutHotel = true;
}
});
//分销联运
var FenXiaoLianYun_Code = this.$AuthCode.FenXiaoLianYun;
this.CheckUserAuth(FenXiaoLianYun_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.FenXiaoLianYun = true;
}
});
//上传分房表
var ShangChuanFenFangbiao_Code = this.$AuthCode.ShangChuanFenFangbiao;
this.CheckUserAuth(ShangChuanFenFangbiao_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.ShangChuanFenFangbiao = true;
}
});
//查看旅客调查
var ChaKanGuest_Code = this.$AuthCode.ChaKanGuest;
this.CheckUserAuth(ChaKanGuest_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.ChaKanGuest = true;
}
});
//分房表下载
var FenFangBiaoXiaZai_Code = this.$AuthCode.FenFangBiaoXiaZai;
this.CheckUserAuth(FenFangBiaoXiaZai_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.FenFangBiaoXiaZai = true;
}
});
//查看OP提成
var LookOPCommission_Code = this.$AuthCode.LookOPCommission;
this.CheckUserAuth(LookOPCommission_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.LookOPCommission = true;
}
});
//是否有散客票权限
var IsSanKeTicket_Code = this.$AuthCode.IsSanKeTicket;
this.CheckUserAuth(IsSanKeTicket_Code, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.IsSanKeTicket = true;
}
});
},
},
filters: {
formatStartDate(value) {
let dataArr = value.split("-");
return dataArr[1] + "-" + dataArr[2];
},
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
}
}, },
mounted() { mounted() {
this.checkAuth(); this.getTravelTeamList();
//销售公司
this.getSellorCompany();
this.getCompanyList();
this.getLineList();
this.getAirlineList();
this.getEmployeeList();
this.getCountryCity();
this.IsModifyTravelControl = 0;
if (
this.CurrentUserInfo.RB_Branch_id == 0 ||
this.CurrentUserInfo.RB_Branch_id == 1216 ||
this.CurrentUserInfo.RB_Branch_id == 49 ||
this.CurrentUserInfo.RB_Branch_id == 1218
) {
this.IsModifyTravelControl = 1;
} else {
//检查分公司是否有权限
this.CheckUserAuth("T_EditTravelControl", res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.IsModifyTravelControl = 1;
}
});
}
}, },
created() { created() {
let userinfo = this.getLocalStorage(); this.CurrentUserInfo = this.getLocalStorage();
this.getLineList();
//默认显示联运
this.queryMsg.IsShowUnion = -1;
let userInfo = this.getLocalStorage();
// 团提成权限
let ActionMenuCode = userinfo.ActionMenuCode;
if (ActionMenuCode.indexOf("isCommissionDetails") != -1) {
this.isCommissionDetails = true;
}
this.CurrentUserInfo = userInfo;
if (this.$route.query.TCID) {
this.queryMsg.TCID = this.$route.query.TCID;
}
if (this.$route.query.tcmun) {
this.queryMsg.TCNUM = this.$route.query.tcmun;
}
if (this.$route.query.HotelId) {
this.queryMsg.HotelId = this.$route.query.HotelId;
}
if (this.$route.query.HotelUseTime) {
this.queryMsg.HotelUseTime = this.$route.query.HotelUseTime;
}
//只看主团
if (this.$route.query.IsUnionCked) {
this.queryMsg.IsShowUnion = this.$route.query.IsUnionCked;
}
if (this.CurrentUserInfo.IsParentCompany == undefined) {
this.queryCommonData.IsParentCompany = 2;
} else {
this.queryCommonData.IsParentCompany = this.CurrentUserInfo.IsParentCompany;
}
if (this.$route.query.hasOwnProperty("cache")) {
if (this.$store.state.pageCondition != null) {
this.queryMsg = this.$store.state.pageCondition;
}
}
var myDate = new Date();
var nowDate =
myDate.getFullYear() +
"-" +
parseInt(myDate.getMonth() + 1) +
"-" +
myDate.getDate();
if (!this.$route.query.tcmun) {
this.queryMsg.StartGroupDate = nowDate;
}
if (
this.queryCommonData.IsParentCompany != 1 &&
this.CurrentUserInfo.RB_Branch_id != 49
) {
this.queryMsg.OutBranchIds.push(this.CurrentUserInfo.RB_Branch_id);
}
var routeName = this.$route.name
if (routeName == 'TravelControlList') {
this.queryMsg.TeamType = 0;
}
if (routeName == 'TravelControlList2') {
this.queryMsg.TeamType = 0;
}
this.getTeamList();
this.getControlList();
} }
}; };
</script> </script>
\ No newline at end of file
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