|
|
@@ -1,10 +1,18 @@
|
|
|
<template>
|
|
|
<div v-loading="fullscreenLoading">
|
|
|
- <el-dialog top="35vh" width="640px" title="文件下载" :visible.sync="contractVisible" :close-on-click-modal="false">
|
|
|
- <el-button @click="DownGroupContractFile(hetonggroupId, 1)" type="primary">预付款80%合同</el-button>
|
|
|
+ <el-dialog top="35vh" width="578px" title="文件下载" :visible.sync="contractVisible" :close-on-click-modal="false">
|
|
|
+ <!-- <el-button @click="DownGroupContractFile(hetonggroupId, 1)" type="primary">预付款80%合同</el-button>
|
|
|
<el-button @click="DownGroupContractFile(hetonggroupId, 2)" type="primary">团组结束后付款合同</el-button>
|
|
|
<el-button @click="GroupQuotationsFileDown(hetonggroupId)" type="primary">报价单(收款单)</el-button>
|
|
|
- <el-button @click="GroupQuotationsDetailFileDown(hetonggroupId)" type="primary">报价细项单</el-button>
|
|
|
+ <el-button @click="GroupQuotationsDetailFileDown(hetonggroupId)" type="primary">报价细项单</el-button> -->
|
|
|
+ <div class="group-htbtn">
|
|
|
+ <el-button v-if="Governmentsign" @click="DownGroupContractFile(hetonggroupId, 4)" type="primary">85%(政府团-预付款及尾款结算合同)</el-button>
|
|
|
+ <el-button v-if="Governmentsign" @click="DownGroupContractFile(hetonggroupId, 6)" type="primary">100%(政府团-出访前结算合同)</el-button>
|
|
|
+ <el-button v-if="Governmentsign" @click="DownGroupContractFile(hetonggroupId, 5)" type="primary">100%(政府团-归国后结算合同)</el-button>
|
|
|
+ <el-button v-if="Enterprisesign" @click="DownGroupContractFile(hetonggroupId, 3)" type="primary">100%(企业团-出访前结算合同)</el-button>
|
|
|
+ <el-button v-if="Conferencesign" @click="DownGroupContractConferenceFile(hetonggroupId, 1)" type="primary">100%(会务服务合同)</el-button>
|
|
|
+ <div style="text-align: center;" v-if="!Governmentsign&&!Enterprisesign&&!Conferencesign">暂无合同下载</div>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
<el-dialog top="35vh" width="400px" title="团组清单下载" :visible.sync="groupVisible" :close-on-click-modal="false">
|
|
|
<el-date-picker style="width:100%;" v-model="downloadtime" type="daterange" align="right" unlink-panels
|
|
|
@@ -252,6 +260,10 @@ export default {
|
|
|
notificationVisible:false,
|
|
|
stepOperationTime:'',
|
|
|
timeID:'',
|
|
|
+
|
|
|
+ Governmentsign:false,
|
|
|
+ Enterprisesign:false,
|
|
|
+ Conferencesign:false,
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -416,6 +428,36 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ //合同下载
|
|
|
+ DownGroupContractConferenceFile(val, vals) {
|
|
|
+ var url = "/api/Groups/DownGroupContractConferenceFile"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer '
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ groupId: val,
|
|
|
+ fileType: vals,
|
|
|
+ userId: that.userid,
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ window.open(res.data.data.url);
|
|
|
+ that.contractVisible = false;
|
|
|
+ } else {
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ that.contractVisible = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
//报价word
|
|
|
GroupQuotationsFileDown(val) {
|
|
|
var url = "/api/Groups/GroupQuotationsFileDown"
|
|
|
@@ -554,6 +596,16 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
contracton(val) {
|
|
|
+ this.Governmentsign=false;
|
|
|
+ this.Enterprisesign=false;
|
|
|
+ this.Conferencesign=false;
|
|
|
+ if (val.teamType.includes("政府")) {
|
|
|
+ this.Governmentsign=true;
|
|
|
+ }else if(val.teamType.includes("企业")){
|
|
|
+ this.Enterprisesign=true;
|
|
|
+ }else if (val.teamType.includes("会务")) {
|
|
|
+ this.Conferencesign=true;
|
|
|
+ }
|
|
|
this.hetonggroupId = 0;
|
|
|
this.hetonggroupId = val.id;
|
|
|
this.contractVisible = true
|
|
|
@@ -825,4 +877,14 @@ export default {
|
|
|
text-align: right;
|
|
|
margin-top: 30px;
|
|
|
}
|
|
|
+.group-htbtn .el-button{
|
|
|
+ margin: 0;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ width: 265px;
|
|
|
+}
|
|
|
+.group-htbtn{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
</style>
|