Commit 790afc86 authored by 黄奎's avatar 黄奎

页面修改

parent 06385054
......@@ -2331,26 +2331,12 @@
if (this.openSessions[index].id == this.currentSession.id) {
this.openSessions.splice(index, 1);
this.currentSession = this.openSessions[0];
//this.$store.dispatch('resetCurrSession')
this.enterChat(this.openSessions[0]);
} else {
this.openSessions.splice(index, 1);
}
},
closeOpenSession() {
// let i=0
// this.openSessions.forEach((x,index)=>{
// if(x.id==this.currentSession.id){
// i=index
// }
// })
// this.openSessions.splice(i,1)
// if(this.openSessions.length>0){
// this.currentSession=this.openSessions[0]
// this.enterChat(this.openSessions[0])
// }else{
// this.IM_Chatlayer=false
// }
this.$store.dispatch("resetCurrSession");
this.IM_Chatlayer = false;
this.openSessions.splice(0, this.openSessions.length);
......
......@@ -598,7 +598,6 @@
<span>{{$t('Airticket.Air_StartTime')}}</span>
<span class="go_date">{{item.StartDate}}</span>
</p>
<p class="travelnowrap flex" v-if="item.OfferShouPeiFee>0">
<span>手配费</span>
<span class="go_date">
......@@ -783,30 +782,34 @@
<p style="color:red;font-size:12px;">
{{$t('op.TotalClicks')}}:{{item.TotalClickCount}}
</p>
<p class="color:red;margin:20px 0 10px 0;font-size:12px;" v-if="item.OfferUrlExtArray&&item.OfferUrlExtArray.length>0">
<p v-if="item.OfferUrlExtArray&&item.OfferUrlExtArray.length>0" style="margin-top:5px;">
<span>报价单</span>
<span class="go_date">
<template v-for="(subItem,subIndex) in item.OfferUrlExtArray">
<a :key="subIndex" style="margin-left:20px;color:blue;cursor:pointer;" :href="subItem.Url"
v-if="subItem.Url" target="_blank" :download="subItem.Name">{{subItem.Name}}</a>
<span> <template v-for="(subItem,subIndex) in item.OfferUrlExtArray">
<el-tooltip :key="subIndex" class="item" effect="dark" content="点击下载报价单" placement="top">
<a :key="subIndex+10000" style="color:blue;cursor:pointer;text-decoration:underline;"
:href="subItem.Url" v-if="subItem.Url" target="_blank"
:download="subItem.Name">{{subItem.Name}}</a>
</el-tooltip>
<template v-if="item.OfferUrlExtArray.length>1 && subIndex<item.OfferUrlExtArray.length">
<br :key="subIndex+1000" />
</template>
</template>
</span>
</p>
<p class="color:red;margin:20px 0 10px 0;font-size:12px;" v-else-if="item.PriceOfferUrl&&item.PriceOfferUrl!=''">
<p v-else-if="item.PriceOfferUrl&&item.PriceOfferUrl!=''" style="margin-top:5px;">
<span>报价单</span>
<span class="go_date">
<a style="margin-left:20px;color:blue;cursor:pointer;" :href="item.PriceOfferUrl"
v-if="item.PriceOfferUrl" target="_blank">下载报价单</a>
<span>
<el-tooltip class="item" effect="dark" content="点击下载报价单" placement="top">
<a :href="item.PriceOfferUrl" style="color:blue;cursor:pointer;text-decoration:underline;"
v-if="item.PriceOfferUrl" target="_blank">下载报价单</a>
</el-tooltip>
</span>
</p>
<p class="travelnowrap" v-if="item.Config_OfferId&&item.Config_OfferId>0">
<p v-if="item.Config_OfferId&&item.Config_OfferId>0" style="margin-top:5px;">
<span style="cursor:pointer;text-decoration:underline;color:blue;"
@click="showDialog(item.ID, item.Config_OfferId)">报价详情</span>
</p>
<p v-if="item.Config_OfferId==0">
<p v-if="item.Config_OfferId==0" style="margin-top:5px;">
<span style="cursor:pointer;text-decoration:underline;color:red;"
@click="NewCopyPriceSheet(item,0)">新增报价单</span>
<span style="cursor:pointer;text-decoration:underline;color:red;"
......@@ -1545,51 +1548,47 @@
}
},
//跳转到报价单
gotoOffer(item, type) {
let name = 'QuotationNewPrice'
gotoOffer(item) {
let query = {
offerid: item.Config_OfferId,
TCID: item.TCID,
blank: 'y',
tab: '报价单'
}
if (type) { //新增报价单
query.TeamType = item.TeamType;
query.TCID = item.TCID;
query.LineID = item.LineID;
query.ltID = item.ltID;
query.DayNum = item.DayNum;
query.OutDateTime = item.StartCityTime;
query.OutBranchId = item.OutBranchId;
query.ForbidChange = true;
query.Title = item.Title;
this.$router.push({
path: name,
query
});
} else {
this.$router.push({
path: name,
query
});
}
this.$router.push({
path: 'QuotationNewPrice',
query
});
},
// 复制报价单
CopyConfigOffer(item) {
this.queryCommonData.loading = true;
let msg = {
ID: item.ID,
TCID: item.TCID,
}
this.apipost(
var that = this;
that.apipost(
"travel_post_CopyConfigOffer", msg,
res => {
that.queryCommonData.loading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message)
var tipMsg = "复制成功!查看报价单!"
that.getControlList();
this.Confirm(tipMsg, function () {
if (res.data.data && res.data.data > 0) {
let query = {
offerid: res.data.data,
blank: 'y',
tab: '报价单'
}
//跳转到新报价单页面
that.OpenNewPage('/QuotationNewPrice', query)
}
})
} else {
this.Error(res.data.message);
that.Error(res.data.message);
}
},
err => {}
);
});
},
//跳转到用款计划
GoToleaderReimbursement(item) {
......
......@@ -226,8 +226,13 @@
}
let msg = {
offerId: offerId,
TCID: 0,
};
if (this.$route.query.TCID && this.$route.query.TCID > 0) {
msg.TCID = this.$route.query.TCID
}
this.loading = true;
console.log("msg",msg);
this.apipost(
"travel_get_GetMyTravelInfo_V4",
msg,
......@@ -297,30 +302,30 @@
this.postData.OfferId = this.$route.query.offerid > 0 ? this.$route.query.offerid : 0;
this.getPostData();
//从团控列表跳转信息
if (this.$route.query.TeamType && this.$route.query.TeamType >= 0) {
this.postData.TeamType = Number(this.$route.query.TeamType);
}
// if (this.$route.query.TeamType && this.$route.query.TeamType >= 0) {
// this.postData.TeamType = Number(this.$route.query.TeamType);
// }
if (this.$route.query.TCID && this.$route.query.TCID > 0) {
this.postData.TCID = this.$route.query.TCID
}
if (this.$route.query.LineID && this.$route.query.LineID > 0) {
this.postData.LineId = Number(this.$route.query.LineID);
}
if (this.$route.query.ltID && this.$route.query.ltID > 0) {
this.postData.LineteamId = Number(this.$route.query.ltID);
}
if (this.$route.query.DayNum && this.$route.query.DayNum > 0) {
this.postData.DayNum = this.$route.query.DayNum;
}
if (this.$route.query.OutDateTime && this.$route.query.OutDateTime != '') {
this.postData.OutDateTime = this.$route.query.OutDateTime;
}
if (this.$route.query.OutBranchId && this.$route.query.OutBranchId != '') {
this.postData.OutBranchId = Number(this.$route.query.OutBranchId);
}
if (this.$route.query.Title && this.$route.query.Title != '') {
this.postData.Title = this.$route.query.Title;
}
// if (this.$route.query.LineID && this.$route.query.LineID > 0) {
// this.postData.LineId = Number(this.$route.query.LineID);
// }
// if (this.$route.query.ltID && this.$route.query.ltID > 0) {
// this.postData.LineteamId = Number(this.$route.query.ltID);
// }
// if (this.$route.query.DayNum && this.$route.query.DayNum > 0) {
// this.postData.DayNum = this.$route.query.DayNum;
// }
// if (this.$route.query.OutDateTime && this.$route.query.OutDateTime != '') {
// this.postData.OutDateTime = this.$route.query.OutDateTime;
// }
// if (this.$route.query.OutBranchId && this.$route.query.OutBranchId != '') {
// this.postData.OutBranchId = Number(this.$route.query.OutBranchId);
// }
// if (this.$route.query.Title && this.$route.query.Title != '') {
// this.postData.Title = this.$route.query.Title;
// }
//团控列表跳转参数结束
console.log("this.post", this.postData);
},
......
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