Commit b6948ff0 authored by 黄奎's avatar 黄奎

1111

parent bd258d55
......@@ -431,7 +431,6 @@
<div class="TCL_Content" style="width:90%">
{{item.Title}}
</div>
</div>
</div>
<div>
......@@ -944,7 +943,8 @@
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<input type="button" class="normalBtn" :value="$t('pub.saveBtn')" @click="openAirticket()" />
<input type="button" class="normalBtn" :value="$t('pub.saveBtn')"
@click="openAirticket()" />
</td>
</tr>
</table>
......@@ -1033,15 +1033,9 @@
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="TC-dropdown">
<!-- <el-dropdown-item @click.native="goToOpenTravel('TravelManager2',item.ID,0,item)">
{{$t('Operation.Op_xilieModyfi')}}
</el-dropdown-item> -->
<el-dropdown-item @click.native="goToOpenTravel('TravelManager',item.ID,0,item)">
系列团新版面
</el-dropdown-item>
<!-- <el-dropdown-item @click.native="goTonowTeam('TravelManager2',item.ID,item.TCID,item.TCNUM,item)">
{{$t('Operation.Op_dangtuanModify')}}
</el-dropdown-item> -->
<el-dropdown-item @click.native="goTonowTeam('TravelManager',item.ID,item.TCID,item.TCNUM,item)">
当团新版面
</el-dropdown-item>
......@@ -1054,7 +1048,7 @@
</el-button>
<template v-if="item.LineID==14||item.LineID==118">
<el-button v-if="item.IsPush==0" @click.native='PushMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">推送消息
style="background:#00C6FF; border-color:#00C6FF;">订房推送
</el-button>
<el-tooltip v-else-if="item.IsPush==1" class="item" effect="dark" content="点击取消推送" placement="top">
<el-button @click.native='PushMessage(item)' type="primary" style="background:red !important;">已推送
......@@ -1064,6 +1058,20 @@
style="background:#00C6FF; border-color:#00C6FF;">重新推送
</el-button>
</template>
<template v-if="item.LineID==14||item.LineID==118">
<el-button v-if="item.IsPush==0" @click.native='PushBusMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">订车推送
</el-button>
<el-tooltip v-else-if="item.IsPush==1" class="item" effect="dark" content="点击取消推送" placement="top">
<el-button @click.native='PushBusMessage(item)' type="primary" style="background:red !important;">
已推送
</el-button>
</el-tooltip>
<el-button v-if="item.IsPush==2" @click.native='PushBusMessage(item)' type="primary"
style="background:#00C6FF; border-color:#00C6FF;">重新推送
</el-button>
</template>
<el-button @click="ckOPremark(item)" type="primary" style="background:#F16C3C; border-color:#F16C3C">
{{$t('Operation.Op_remark')}}
</el-button>
......@@ -1105,7 +1113,8 @@
<el-dropdown-item v-if="item.Status==1" @click.native="OutGroup(item.TCID,2,item.TravelEndAudit)">
{{$t('Operation.Op_jietuan')}}
</el-dropdown-item>
<el-dropdown-item v-if="item.IsEditOutBranch==1" @click.native="GroupTypeObj=item,GroupTypeVisible=true">
<el-dropdown-item v-if="item.IsEditOutBranch==1"
@click.native="GroupTypeObj=item,GroupTypeVisible=true">
<div>修改出团公司 </div>
</el-dropdown-item>
<el-dropdown-item v-if="item.Status==2" @click.native="OutGroup(item.TCID,1,item.TravelEndAudit)">
......@@ -1664,6 +1673,7 @@
},
//推送消息
PushMessage(item) {
this.queryCommonData.loading = true;
var pMsg = {
TCID: item.TCID
......@@ -1683,6 +1693,27 @@
}
});
},
//订车推送
PushBusMessage(item) {
this.queryCommonData.loading = true;
var pMsg = {
TCID: item.TCID
};
var tipMessage = "订车推送消息";
var cmdStr = "travel_post_PushTravelBusToQYWork"; //推送消息
if (item.IsPush == 1) {
cmdStr = "travel_post_CancelPushTravelBusToQYWork"; //取消推送
tipMessage = "订车【取消】推送";
}
this.apipost(cmdStr, pMsg, res => {
if (res.data.resultCode == 1) {
this.Success(tipMessage + '成功!');
this.getControlList();
} else {
this.Error(tipMessage + '失败!');
}
});
},
showDialog(ConfigId, OfferId) {
this.dialog = {
show: true,
......
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