Commit c9bfdf02 authored by 黄奎's avatar 黄奎

新增同步信息到车行

parent 241ed32e
......@@ -140,14 +140,14 @@
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" />
<input type="button" class="normalBtn" :value="$t('adm.adm_download')" @click="DownLoad.ShowDownLoad=true" />
<input type="button" class="normalBtn" :value="$t('adm.adm_download')" @click="DownLoad.ShowDownLoad=true" />
</li>
</ul>
</div>
<div class="mt10 fz14 color333 dmcTotalIconStyle">
{{$t('ground.yiqueding')}}:<span style="color:#4BCA81 ;"></span>{{$t('ground.daiqueding')}}:<span
style="color: #E95252;">O</span>{{$t('salesModule.NotDeal')}}:<span style="color:#E95252 ;">X</span>
<span style="font-size: 12px; float: right;">*注意领队交接表一定要在出团日期前维护(需点击保存),否则此团所有操作无提成</span>
<span style="font-size: 12px; float: right;">*注意领队交接表一定要在出团日期前维护(需点击保存),否则此团所有操作无提成</span>
</div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; " class="ownScrollbarStyle">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
......@@ -343,7 +343,8 @@
<span style="color: #4BCA81;" v-if="item.HotelResult==1"></span>
<span class="colorE95252" v-else>{{item.HotelResult=='-1'?"x":"O"}}</span>
</div>
<p v-if="item.LineId==14 && item.PriceHotelResult && item.PriceHotelResult.length>0">
<p
v-if="(item.LineId==14||item.LineId==118) && item.PriceHotelResult && item.PriceHotelResult.length>0">
<el-popover width="1100" trigger="click" popper-class="DMC_HotelPop">
<commonHotelInfo :HotelObj="item.PriceHotelResult" :showHotelObj="showHotelObj" :TCID="item.TCID"
:DMCNum="item.DMCNum" :TCNUM="item.TCNUMS"
......@@ -376,6 +377,21 @@
v-else>{{item.BusResult=='-1'?"x":"O"}}</span>
<span @click="GoShoupei(outItem)"
style="cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;">{{$t('ground.cheliangxinxi')}}</span>
<template v-if="(item.LineId==14||item.LineId==118) &&(item.JapanBusOrder==0||item.JapanBusOrder==2)">
<el-tooltip class="item" effect="dark" content="同步车信息到印象车行" placement="top-start">
<span
style="cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;padding-top:2px;"
@click="SetBusOrder(outItem,item)">同步</span>
</el-tooltip>
</template>
<template v-else-if="(item.LineId==14||item.LineId==118) &&item.JapanBusOrder==1">
<el-tooltip class="item" effect="dark" content="取消印象车行订单" placement="top-start">
<span
style="cursor:pointer;text-decoration:underline;display:block;color:#666;font-size:12px;padding-top:2px;"
@click="CancelBusOrder(outItem,item)">取消同步</span>
</el-tooltip>
</template>
</div>
</td>
<td>
......@@ -574,18 +590,23 @@
</el-dialog>
<el-dialog :visible.sync="DownLoad.ShowDownLoad" width="386px" title="预计用款下载">
<div style="height:120px;"><ul>
<li><span><em>{{$t('hotel.table_CheckInDate')}}</em>
<el-date-picker v-model='DownLoad.StartDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateBeforeDownLoad"></el-date-picker>
-
<el-date-picker v-model='DownLoad.EndDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateAfterDownLoad"></el-date-picker>
</span>
</li>
<li> <input style="margin-top:25px;float:right;" type="button" class="normalBtn" :value="$t('adm.adm_download')" @click="DownLoadExpectedUsage()" /> <input style="margin-top:25px;float:right;" type="button" class="normalBtn" :value="$t('pub.cancelBtn')" @click="CancelDownLoad()" /></li>
</ul></div>
<el-dialog :visible.sync="DownLoad.ShowDownLoad" width="386px" title="预计用款下载">
<div style="height:120px;">
<ul>
<li><span><em>{{$t('hotel.table_CheckInDate')}}</em>
<el-date-picker v-model='DownLoad.StartDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateBeforeDownLoad"></el-date-picker>
-
<el-date-picker v-model='DownLoad.EndDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateAfterDownLoad"></el-date-picker>
</span>
</li>
<li> <input style="margin-top:25px;float:right;" type="button" class="normalBtn"
:value="$t('adm.adm_download')" @click="DownLoadExpectedUsage()" /> <input
style="margin-top:25px;float:right;" type="button" class="normalBtn" :value="$t('pub.cancelBtn')"
@click="CancelDownLoad()" /></li>
</ul>
</div>
</el-dialog>
</div>
</template>
......@@ -735,11 +756,11 @@
return startTime.getTime() >= time.getTime()
}
},
DownLoad:{
ShowDownLoad:false,
DownLoad: {
ShowDownLoad: false,
StartDate: "", //开始日期
EndDate: "", //结束日期
EmployeeID:0,
EmployeeID: 0,
}
}
},
......@@ -750,38 +771,71 @@
priceDialog
},
methods: {
CancelDownLoad(){
this.DownLoad.ShowDownLoad=false;
this.DownLoad.StartDate="";
this.DownLoad.EndDate="";
this.DownLoad.EmployeeID=0;
},
DownLoadExpectedUsage(item) {
//同步用车到车行订单
SetBusOrder(rootItem, item) {
this.loading = true;
//导出报表
if (this.DownLoad.StartDate == "" || this.DownLoad.EndDate == "") {
this.Error('请选择出团日期')
var postMsg = {
TCIDS: rootItem.TCIDS,
NewCombinationNum: rootItem.NewCombinationNum,
TCID: item.TCID
};
this.apipost('dmcstatistics_get_SetBusJapanOrder', postMsg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.loading = false;
return
this.Error(res.data.message);
}
if(new Date(this.DownLoad.EndDate)-new Date(this.DownLoad.StartDate)>1*24*60*60 *1000 *30)
{
this.Error("选择出团时间范围不能超过一个月")
});
},
//取消车行用车订单
CancelBusOrder(rootItem, item) {
this.loading = true;
var postMsg = {
TCIDS: rootItem.TCIDS,
NewCombinationNum: rootItem.NewCombinationNum,
TCID: item.TCID
};
this.apipost('dmcstatistics_get_CancelBusJapanOrder', postMsg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList();
} else {
this.loading = false;
return
this.Error(res.data.message);
}
this.DownLoad.EmployeeID=this.getLocalStorage().EmployeeId;
});
},
CancelDownLoad() {
this.DownLoad.ShowDownLoad = false;
this.DownLoad.StartDate = "";
this.DownLoad.EndDate = "";
this.DownLoad.EmployeeID = 0;
},
DownLoadExpectedUsage(item) {
this.loading = true;
//导出报表
if (this.DownLoad.StartDate == "" || this.DownLoad.EndDate == "") {
this.Error('请选择出团日期')
this.loading = false;
return
}
if (new Date(this.DownLoad.EndDate) - new Date(this.DownLoad.StartDate) > 1 * 24 * 60 * 60 * 1000 * 30) {
this.Error("选择出团时间范围不能超过一个月")
this.loading = false;
return
}
this.DownLoad.EmployeeID = this.getLocalStorage().EmployeeId;
var fileName = "团预计用款下载.xls";
this.GetLocalFile("dmcstatistics_post_GetHotelPriceDownLoad", this.DownLoad, fileName,
res => {
this.DownLoad.ShowDownLoad = false;
this.loading = false;
this.DownLoad.StartDate = "";
this.DownLoad.EndDate = "";
this.DownLoad.EmployeeID=0;
this.DownLoad.EmployeeID = 0;
});
},
showDialog(ConfigId, OfferId) {
......@@ -1290,7 +1344,7 @@
this.loading = false;
});
},
goRoomTip() {
this.Error("请联系组团OP提供分房表文件!");
},
......
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