Commit d2c2a5c5 authored by 黄奎's avatar 黄奎

1

parent 622d3ed0
......@@ -109,11 +109,14 @@
<div class="trip_cover" v-show="pdfLoading" v-loading="pdfLoading" :element-loading-text="loadingText"></div>
<el-row style="padding: 0 0 20px 0;box-shadow: 1px 10px 10px#e6e6e6;">
<el-col :span="14" class="row-aic">
<a id="pdfDownLoad" style="display:none;" target="_blank" href="http://www.baidu.com" download="xx.pdf">{{$t('objFill.v101.yemiantiaoz')}}</a>
<a id="pdfDownLoad" style="display:none;" target="_blank" href="http://www.baidu.com"
download="xx.pdf">{{$t('objFill.v101.yemiantiaoz')}}</a>
<template v-if="orderId>0">
<el-button type="primary" @click="toPDF_2023()">
{{$t('objFill.v101.chuttzhisxz')}}</el-button>
<template v-if="lineId==119||lineId==168">
<el-button type="primary" @click="ToWord_2023()">
{{$t('objFill.v101.chuttzhisxz')}}WROD</el-button>
<!-- <template v-if="lineId==119||lineId==168">
<el-dropdown style="padding-left:20px;">
<el-button type="primary">
{{$t('Operation.Op_teamNotice')}}<i class="el-icon-arrow-down el-icon--right"></i>
......@@ -127,29 +130,34 @@
<template v-else>
<el-button type="primary" @click="ToWord_2023()">
{{$t('objFill.v101.chuttzhisxz')}}WROD</el-button>
</template>
</template> -->
</template>
<template v-else>
<el-button type="primary" @click="toPDF_2023(1)">
{{$t('Operation.Op_tripDownLoad')}}</el-button>
<template v-if="lineId==119||lineId==168">
<el-button type="primary" @click="ToWord_2023()" style="margin-left:20px;">
{{$t('Operation.Op_tripDownLoad')}}WORD</el-button>
<!-- <template v-if="lineId==119||lineId==168">
<el-dropdown style="padding-left:20px;">
<el-button type="primary">
{{$t('Operation.Op_tripDownLoad')}} WORD<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="ToWord_2023()">{{$t('Operation.Op_tripDownLoad')}}WORD</el-dropdown-item>
<el-dropdown-item @click.native="OuZhouPdf2024()">{{$t('Operation.Op_tripDownLoad')}}{{$t('objFill.v101.ouzhoupdf')}}</el-dropdown-item>
<el-dropdown-item @click.native="ToWord_2023()">{{$t('Operation.Op_tripDownLoad')}}WORD
</el-dropdown-item>
<el-dropdown-item @click.native="OuZhouPdf2024()">
{{$t('Operation.Op_tripDownLoad')}}{{$t('objFill.v101.ouzhoupdf')}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
<template v-else>
<el-button type="primary" @click="ToWord_2023()" style="margin-left:20px;">
{{$t('Operation.Op_tripDownLoad')}}WORD</el-button>
</template>
</template> -->
</template>
<!-- 可以让销售修改基本信息-->
<el-button v-if="orderId>0" type="primary" :value="$t('objFill.xiugaixinxi')" @click="editMsgShow=true" style="margin-left:20px;">
<el-button v-if="orderId>0" type="primary" :value="$t('objFill.xiugaixinxi')" @click="editMsgShow=true"
style="margin-left:20px;">
{{$t('objFill.xiugaixinxi')}}</el-button>
</el-col>
<el-col v-if="orderId<=0">
......@@ -264,8 +272,8 @@
<el-button type="danger" icon="el-icon-delete" @click="removePriceFlight(index,priceFlight,1)"
circle></el-button>
</el-tooltip>
<el-tooltip class="item" v-if="index!=0" style="margin-left:0" effect="dark" :content="$t('sm.shangyi')"
placement="top-start">
<el-tooltip class="item" v-if="index!=0" style="margin-left:0" effect="dark"
:content="$t('sm.shangyi')" placement="top-start">
<el-button type="danger" icon="iconfont icon-shangyi" @click="MoveItem(priceFlight,index,0)" circle>
</el-button>
</el-tooltip>
......@@ -556,7 +564,9 @@
responseType: 'arraybuffer',
onDownloadProgress: (progressEvent) => {
const progress = Math.round((progressEvent.loaded / progressEvent.total) * 100);
that.loadingText = that.$t('objFill.v101.zhengzxiaz') + (that.orderId > 0 ? that.$t('Operation.Op_teamNotice') : that.$t('Airticket.Air_Trip')) + that.$t('objFill.v101.hote.wenjian') + progress +
that.loadingText = that.$t('objFill.v101.zhengzxiaz') + (that.orderId > 0 ? that.$t(
'Operation.Op_teamNotice') : that.$t('Airticket.Air_Trip')) + that.$t(
'objFill.v101.hote.wenjian') + progress +
that.$t('objFill.v101.qingwugbhsxyem');
// 在这里处理下载进度, 如更新界面上的进度条
}
......@@ -643,7 +653,8 @@
return postData;
},
ToWord_2023: function (title) {
var title = this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t('objFill.v101.LeaveGroupDownload.riyou')
var title = this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t(
'objFill.v101.LeaveGroupDownload.riyou')
this.pdfLoading = true;
this.loadingText = this.$t('objFill.zhengzscpdf');
let msg = this.getPostMsg();
......@@ -692,7 +703,8 @@
title += this.dataAll.title;
}
} else {
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t('objFill.v101..LeaveGroupDownload.riyou');
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t(
'objFill.v101..LeaveGroupDownload.riyou');
}
this.pdfLoading = true;
this.loadingText = this.$t('objFill.zhengzscpdf2');
......@@ -746,7 +758,8 @@
title += this.dataAll.title;
}
} else {
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t('objFill.v101..LeaveGroupDownload.riyou');
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t(
'objFill.v101..LeaveGroupDownload.riyou');
}
//阿里云行程下载
var objFileKey = "TripDownLoad"
......@@ -915,7 +928,8 @@
this.airLineSelectChange(fItem.airLineID, fItem);
});
}
this.title = this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t('objFill.v101..LeaveGroupDownload.riyou')
this.title = this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + this.$t(
'objFill.v101..LeaveGroupDownload.riyou')
document.title = this.title;
//初始化行程
this.initTrip(res, data);
......
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