Commit 6dddffdf authored by youjie's avatar youjie

机票未绑团查看

parent a4f9f6a8
<template>
<el-dialog custom-class='w800 PingFangSC' title="机票未绑团提醒" :visible.sync="outerVisibleNot" center
:before-close="closeChangeMachie">
<div v-if="UnboundDate.Type==1&&UnboundDate.TravelList&&UnboundDate.TravelList.length>0">
<p style="font-size: 18px;font-weight: bold;background: #d1d1d1;padding: 5px 10px;">团队未绑机票列表</p>
<el-table :data="UnboundDate.TravelList" tooltip-effect="dark" style="width: 100%">
<el-table-column label="团ID/团号" width="">
<template slot-scope="scope">
{{scope.row.TCID}}
<p>{{scope.row.TCNUM}}</p>
</template>
</el-table-column>
<el-table-column prop="LineName" label="线路"></el-table-column>
<el-table-column prop="StartDate" label="出团日期">
<template slot-scope="scope">
{{getBeforeDate(0, new Date(scope.row.StartDate).Format("yyyy-MM-dd"))}}
</template>
</el-table-column>
<el-table-column prop="TeamTypeName" label="团队类型"></el-table-column>
<el-table-column prop="TotalNumber" label="客人人数"></el-table-column>
<el-table-column prop="OPName" label="开团OP"></el-table-column>
</el-table>
</div>
<div v-if="UnboundDate.AirList&&UnboundDate.AirList.length>0" style="margin-top: 20px;">
<p style="font-size: 18px;font-weight: bold;background: #d1d1d1;padding: 5px 10px;">机票未绑团列表</p>
<el-table :data="UnboundDate.AirList" tooltip-effect="dark" style="width: 100%">
<el-table-column label="机票编码" width="">
<template slot-scope="scope">
{{scope.row.ID}}
</template>
</el-table-column>
<el-table-column prop="TicketNum" label="机位数量"></el-table-column>
<el-table-column prop="FlightDate" label="航班日期"></el-table-column>
<el-table-column prop="TicketPrice" label="成本金额"></el-table-column>
<el-table-column prop="BindFinance" label="关联单据"></el-table-column>
<el-table-column prop="TicketCreateByName" label="开票人"></el-table-column>
</el-table>
</div>
</el-dialog>
</template>
<script>
export default {
props:["UnboundDate"],
data() {
return {
outerVisibleNot: true
}
},
watch: {
},
methods: {
closeChangeMachie(done) {
this.$emit('unbundlingVisible')
},
}
}
</script>
...@@ -214,6 +214,11 @@ ...@@ -214,6 +214,11 @@
CRM系统 CRM系统
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item class="clearfix _dropdown_other" @click.native="unbundlingVisible=true">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
机票未绑团查看
<i class="iconfont icon-right1"></i>
</el-dropdown-item>
<el-dropdown-item class="clearfix _dropdown_other" @click.native="goUrlPersonal()"> <el-dropdown-item class="clearfix _dropdown_other" @click.native="goUrlPersonal()">
<i class="iconfont icon-menu-shezhi1" style="color:#2c3e50"></i> <i class="iconfont icon-menu-shezhi1" style="color:#2c3e50"></i>
设置 设置
...@@ -1187,6 +1192,9 @@ ...@@ -1187,6 +1192,9 @@
</div> </div>
<!-- 投票 --> <!-- 投票 -->
<Voting v-show="VotingShow" :NowVoteData="NowVoteData" :NowVoteType="NowVoteType"></Voting> <Voting v-show="VotingShow" :NowVoteData="NowVoteData" :NowVoteType="NowVoteType"></Voting>
<!-- 机票未绑团提示 -->
<unbundlingMessage v-if="unbundlingVisible"
:UnboundDate="UnboundDate" @unbundlingVisible="unbundlingVisible=false"></unbundlingMessage>
</div> </div>
</template> </template>
...@@ -1209,6 +1217,7 @@ ...@@ -1209,6 +1217,7 @@
import commissonBill from './commonPage/commissonBill'; import commissonBill from './commonPage/commissonBill';
import commissionDetail from "./commonPage/commissionDetail.vue"; import commissionDetail from "./commonPage/commissionDetail.vue";
import Voting from "../components/administrative/model/Voting"; import Voting from "../components/administrative/model/Voting";
import unbundlingMessage from "../components/administrative/model/unbundlingMessage";
export default { export default {
components: { components: {
ChatList, ChatList,
...@@ -1218,10 +1227,13 @@ ...@@ -1218,10 +1227,13 @@
saleRnk, saleRnk,
commissonBill, commissonBill,
commissionDetail, commissionDetail,
Voting Voting,
unbundlingMessage
}, },
data() { data() {
return { return {
UnboundDate: {},
unbundlingVisible: false,//未绑团提醒
b2bDomain: "", b2bDomain: "",
useRed: false, useRed: false,
//提成账单弹窗 //提成账单弹窗
...@@ -1701,6 +1713,7 @@ ...@@ -1701,6 +1713,7 @@
this.MsgBus.$on('comMsgTips', function () { this.MsgBus.$on('comMsgTips', function () {
that.getNumber(); that.getNumber();
}); });
setInterval(function () { setInterval(function () {
that.getNumber(); that.getNumber();
}, 600000) }, 600000)
...@@ -1823,6 +1836,18 @@ ...@@ -1823,6 +1836,18 @@
this.getNewSaleRnkInfo(); this.getNewSaleRnkInfo();
this.GetSupperOrderEditAuth(); this.GetSupperOrderEditAuth();
// 获取未绑定团的数据
if(!localStorage.getItem("UnboundDateTime")||
(localStorage.getItem("UnboundDateTime")!=this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))){
this.GetTravelAirNotBind()
}else{
if(localStorage.getItem("UnboundDate")){
this.UnboundDate = JSON.parse(localStorage.getItem("UnboundDate"))
// this.unbundlingVisible = true
}
}
}, },
created() { created() {
if (!localStorage.getItem("tsNumber") || localStorage.getItem("tsNumber") != this.tsNumber) { if (!localStorage.getItem("tsNumber") || localStorage.getItem("tsNumber") != this.tsNumber) {
...@@ -1857,6 +1882,29 @@ ...@@ -1857,6 +1882,29 @@
} }
}, },
methods: { methods: {
// 获取未绑定团的数据
GetTravelAirNotBind(){
if(this.userInfo.DepartName.indexOf("操作部")!=-1 ||
(this.userInfo.RB_Branch_id == 1245
&& this.userInfo.DepartName.indexOf("引流")==-1
&& this.userInfo.DepartName.indexOf("市场")==-1)){
this.apipost(
"opcommission_GetTravelAirNotBind", {},
res => {
if(res.data.resultCode==1){
localStorage.setItem("UnboundDate", JSON.stringify(res.data.data));
localStorage.setItem("UnboundDateTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")));
if((res.data.data.TravelList&&res.data.data.TravelList.length>0)
||(res.data.data.AirList&&res.data.data.AirList.length>0)){
this.UnboundDate = res.data.data
this.unbundlingVisible = true
}
}
}
);
}
},
testApi() { testApi() {
var postMsg = { var postMsg = {
PageIndex: 1, PageIndex: 1,
......
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