Commit ada0a9a7 authored by 吴春's avatar 吴春
parents 62e8534e 724cf79b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.RegistrationStatistic .Rs_LtName{ .RegistrationStatistic .Rs_LtName{
text-align:left; text-align:left;
padding-left:20px; padding-left:20px;
} }
.RegistrationStatistic .RS_Nameover{ .RegistrationStatistic .RS_Nameover{
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -194,9 +194,9 @@ export default { ...@@ -194,9 +194,9 @@ export default {
}, },
//获取系列列表 //获取系列列表
getLineTeamList() { getLineTeamList() {
this.queryMsg.LineteamId = 0; this.queryMsg.ltID = 0;
let msg = { let msg = {
lineID: this.queryMsg.LineId, lineID: this.queryMsg.LineID,
isTOOP: 1 isTOOP: 1
}; };
this.apipost("team_post_GetList", msg, res => { this.apipost("team_post_GetList", msg, res => {
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
this.queryCommonData.loading = false; this.queryCommonData.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data; this.DataList = res.data.data;
this.DataList.forEach(item=>{ this.DataList.forEach(item=>{
switch(item.StartCityName){ switch(item.StartCityName){
case '成都': case '成都':
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.RegistrationStatistic .Rs_LtName{ .RegistrationStatistic .Rs_LtName{
text-align:left; text-align:left;
padding-left:20px; padding-left:20px;
} }
.RegistrationStatistic .RS_Nameover{ .RegistrationStatistic .RS_Nameover{
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -194,9 +194,9 @@ export default { ...@@ -194,9 +194,9 @@ export default {
}, },
//获取系列列表 //获取系列列表
getLineTeamList() { getLineTeamList() {
this.queryMsg.LineteamId = 0; this.queryMsg.ltID = 0;
let msg = { let msg = {
lineID: this.queryMsg.LineId, lineID: this.queryMsg.LineID,
isTOOP: 1 isTOOP: 1
}; };
this.apipost("team_post_GetList", msg, res => { this.apipost("team_post_GetList", msg, res => {
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
this.queryCommonData.loading = false; this.queryCommonData.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DataList = res.data.data; this.DataList = res.data.data;
this.DataList.forEach(item=>{ this.DataList.forEach(item=>{
switch(item.StartCityName){ switch(item.StartCityName){
case '成都': case '成都':
......
...@@ -318,6 +318,7 @@ export default { ...@@ -318,6 +318,7 @@ export default {
CloseIncomeBtn:false, CloseIncomeBtn:false,
loading:false, loading:false,
zhuanMsg: { zhuanMsg: {
NowTCNUM:'',
TCNUM: '', TCNUM: '',
FrIds: '', FrIds: '',
}, },
...@@ -327,6 +328,7 @@ export default { ...@@ -327,6 +328,7 @@ export default {
methods: { methods: {
initZhuanMsg(){ initZhuanMsg(){
this.zhuanMsg = { this.zhuanMsg = {
NowTCNUM:'',
TCNUM: '', TCNUM: '',
FrIds: '', FrIds: '',
} }
...@@ -347,7 +349,8 @@ export default { ...@@ -347,7 +349,8 @@ export default {
} }
}, },
TransferDocuments: function () { TransferDocuments: function () {
let TCNUM = this.DataList.TeamBalance.TCNUM let TCNUM = this.DataList.TeamBalance.TCNUM;
this.zhuanMsg.NowTCNUM=TCNUM;
if (this.zhuanMsg.TCNUM === '') { if (this.zhuanMsg.TCNUM === '') {
return this.$message.error("请输入团号!") return this.$message.error("请输入团号!")
} else if (this.zhuanMsg.TCNUM === TCNUM) { } else if (this.zhuanMsg.TCNUM === TCNUM) {
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<div class="travelControlTrip detail-box"> <div class="travelControlTrip detail-box">
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div> <div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading"></div>
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" /> <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版PDF" @click="toPDF(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游')" />
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载手机版WORD" @click="gernalFeature()" /> <input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载手机版WORD" @click="gernalFeature(0)" />
<input type="button" style="width: auto !important;" class="travelControlTripBtn" value="下载电脑版WORD" @click="gernalFeature(1)" />
<!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') --> <!-- ToWord(orderMsg.startDate + orderMsg.lineteamName+orderMsg.dayNum+'日游') -->
<!--&&isopOperation HK 注释 可以让销售修改基本信息--> <!--&&isopOperation HK 注释 可以让销售修改基本信息-->
<input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" /> <input type="button" v-if="orderId>0" class="travelControlTripBtn" value="修改信息" @click="editMsgShow=true" />
...@@ -642,7 +643,7 @@ ...@@ -642,7 +643,7 @@
}, 2000) }, 2000)
}, },
methods: { methods: {
gernalFeature(){ gernalFeature(type){
this.pdfLoading = true; this.pdfLoading = true;
let tcid = this.$route.query.tcid; let tcid = this.$route.query.tcid;
let UploadUrl = this.domainManager().UploadUrl let UploadUrl = this.domainManager().UploadUrl
...@@ -655,7 +656,7 @@ ...@@ -655,7 +656,7 @@
success: function (data) { success: function (data) {
let msg = JSON.parse(data) let msg = JSON.parse(data)
if (msg.ResultCode) { // 已经存在文件 直接调用下载 if (msg.ResultCode) { // 已经存在文件 直接调用下载
_this.ToWord(_this.orderMsg.startDate + _this.orderMsg.lineteamName + _this.orderMsg.dayNum + '日游') _this.ToWord(_this.orderMsg.startDate + _this.orderMsg.lineteamName + _this.orderMsg.dayNum + '日游',type)
} else { // 不存在图片保存图片后下载 } else { // 不存在图片保存图片后下载
document.querySelector("#gernalCanvas").querySelectorAll('img').forEach(x => { document.querySelector("#gernalCanvas").querySelectorAll('img').forEach(x => {
let src = x.src let src = x.src
...@@ -687,7 +688,6 @@ ...@@ -687,7 +688,6 @@
context.imageSmoothingEnabled = false context.imageSmoothingEnabled = false
var image = new Image(); var image = new Image();
image.src = canvas.toDataURL("image/png"); image.src = canvas.toDataURL("image/png");
// document.body.appendChild(image) upload.oytour.com
$.ajax({ $.ajax({
url: UploadUrl + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Feature/' + tcid, url: UploadUrl + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Feature/' + tcid,
type: "POST", type: "POST",
...@@ -697,16 +697,16 @@ ...@@ -697,16 +697,16 @@
}, },
datatype:"jsonP", datatype:"jsonP",
success: function (data) { success: function (data) {
// console.log("上传成功",data); //console.log("上传成功",data);
}, },
error: function () { error: function () {
// console.log("上传失败"); //console.log("上传失败");
} }
}); });
if (allNum!==document.querySelectorAll(cName).length) { if (allNum!==document.querySelectorAll(cName).length) {
allNum += 1 allNum += 1
} else { } else {
_this.ToWord(_this.orderMsg.startDate + _this.orderMsg.lineteamName + _this.orderMsg.dayNum + '日游') _this.ToWord(_this.orderMsg.startDate + _this.orderMsg.lineteamName + _this.orderMsg.dayNum + '日游',type)
} }
} }
}); });
...@@ -719,7 +719,7 @@ ...@@ -719,7 +719,7 @@
} }
}); });
} else { } else {
this.ToWord(this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游') this.ToWord(this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游',type)
} }
}, },
//保存基础数据 //保存基础数据
...@@ -899,7 +899,7 @@ ...@@ -899,7 +899,7 @@
console.log(err) console.log(err)
}) })
}, },
ToWord:function(title) ToWord:function(title,isPc)
{ {
let msg = { let msg = {
configId: this.$route.query.configId, configId: this.$route.query.configId,
...@@ -922,7 +922,7 @@ ...@@ -922,7 +922,7 @@
//是否显示同行备注 //是否显示同行备注
isShowB2B:this.vshowI?1:0, isShowB2B:this.vshowI?1:0,
//是否显示行程 //是否显示行程
isShowTrip:this.vshowK?1:0, isShowTrip:this.vshowD?1:0,
//是否显示标题 //是否显示标题
isShowTitle:this.vshowL?1:0, isShowTitle:this.vshowL?1:0,
//是否显示旅客名单 //是否显示旅客名单
...@@ -930,7 +930,11 @@ ...@@ -930,7 +930,11 @@
//是否显示紧急联系人 //是否显示紧急联系人
isShowMan:this.vshowLLR?1:0, isShowMan:this.vshowLLR?1:0,
//是否显示团号 //是否显示团号
isShowTCNUM:this.vshowTCNUM?1:0 isShowTCNUM:this.vshowTCNUM?1:0,
//是否显示行程图片
isShowTripImage:this.vshowK?1:0,
//isPc是否PC下载
isPc: type,
}; };
this.GetLocalFile("DownLoadTripWord", msg,title+ ".doc", res=>{ this.GetLocalFile("DownLoadTripWord", msg,title+ ".doc", res=>{
this.pdfLoading = false this.pdfLoading = false
......
...@@ -65,11 +65,17 @@ ...@@ -65,11 +65,17 @@
</td> </td>
<td>{{priceFlight.DepartureAirPortName}}</td> <td>{{priceFlight.DepartureAirPortName}}</td>
<td> <td>
{{priceFlight.DepartureTime}} <el-input v-if="priceFlight.IsShowTime||priceFlight.IsShow" placeholder="起飞时间" class="w120"
v-model="priceFlight.DepartureTime">
</el-input>
<span v-else>{{priceFlight.DepartureTime}}</span>
</td> </td>
<td>{{priceFlight.ArrivalAirPortName}}</td> <td>{{priceFlight.ArrivalAirPortName}}</td>
<td> <td>
{{priceFlight.ArrivalTime}} <el-input v-if="priceFlight.IsShowTime||priceFlight.IsShow" placeholder="到达时间" class="w120"
v-model="priceFlight.ArrivalTime">
</el-input>
<span v-else> {{priceFlight.ArrivalTime}}</span>
</td> </td>
<td> <td>
<el-date-picker v-if="priceFlight.IsShow" class="w110" :clearable="false" v-model="priceFlight.StartDate" <el-date-picker v-if="priceFlight.IsShow" class="w110" :clearable="false" v-model="priceFlight.StartDate"
...@@ -86,6 +92,18 @@ ...@@ -86,6 +92,18 @@
<span v-else>{{priceFlight.TicketType==1?'去程':'回程'}}</span> <span v-else>{{priceFlight.TicketType==1?'去程':'回程'}}</span>
</td> </td>
<td> <td>
<el-tooltip class="item" effect="dark" content="修改时间" placement="top-start"
v-if="!priceFlight.IsShowTime">
<el-button v-if="IsBindFlight" type="primary" icon="el-icon-edit" @click="TimeStatusChange(priceFlight)"
circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="保存时间" placement="top-start" v-if="priceFlight.IsShowTime">
<el-button v-if="IsBindFlight" type="primary" icon="iconfont icon-baocun"
@click="saveAirticketFlightTime(priceFlight)" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start" v-if="!priceFlight.IsShow"> <el-tooltip class="item" effect="dark" content="修改" placement="top-start" v-if="!priceFlight.IsShow">
<el-button v-if="!IsBindFlight" type="primary" icon="el-icon-edit" @click="StatusChange(priceFlight)" <el-button v-if="!IsBindFlight" type="primary" icon="el-icon-edit" @click="StatusChange(priceFlight)"
circle></el-button> circle></el-button>
...@@ -190,6 +208,10 @@ ...@@ -190,6 +208,10 @@
StatusChange (item) { StatusChange (item) {
item.IsShow = !item.IsShow item.IsShow = !item.IsShow
}, },
//状态切换
TimeStatusChange (item) {
item.IsShowTime = !item.IsShowTime
},
//初始化航空公司下拉 //初始化航空公司下拉
initAirlines () { initAirlines () {
this.apipost( this.apipost(
...@@ -253,7 +275,9 @@ ...@@ -253,7 +275,9 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (res.data.data != null) { if (res.data.data != null) {
console.log('res.data.data', res.data.data)
res.data.data.forEach(x => { res.data.data.forEach(x => {
x['IsShowTime'] = false
this.priceFlightList.push(x) this.priceFlightList.push(x)
}) })
this.headCallBack() this.headCallBack()
...@@ -306,6 +330,26 @@ ...@@ -306,6 +330,26 @@
) )
this.headCallBack() this.headCallBack()
}, },
//保存时间信息
saveAirticketFlightTime (item) {
item.IsShowTime = false
let msg = {
id: item.ID,
departureTime: item.DepartureTime,
arriveTime: item.ArrivalTime,
}
console.log('msg', msg)
this.apipost('travel_post_ModifyAirticketFlightTimeById', msg, res => {
if (res.data.resultCode == 1) {
} else {
this.Warning(res.data.message)
}
},
err => {
}
)
},
//删除航班信息 //删除航班信息
removePriceFlight (index, item, type) { removePriceFlight (index, item, type) {
var that = this var that = this
......
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