Commit c663057a authored by zhangyanni's avatar zhangyanni

提交

parent be0a35ce
......@@ -24,5 +24,17 @@ export default {
//运营通过/拒绝合作伙伴验收
repectPartnerAxios(params){
return api.fetchLoadingPost("/base/partner/checkBasePartner",params);
}
},
//销售导出列表
exportManagePartnerList(params) {
return api.fetchLoadingPostex('/base/partner/exportSalesPartnerList',params);
},
//运营导出列表
exportAuditPartnerList(params) {
return api.fetchLoadingPostex('/base/partner/exportPartnerList',params);
},
}
\ No newline at end of file
......@@ -164,7 +164,7 @@
endTime: "",
orgIdList:[],
cur_page: 1, //页数
numberData: 1, //设置个数
numberData: 10, //设置个数
keyWord: "",
tableData: [],
total: 2,
......@@ -323,9 +323,13 @@
//导出
exportFunc() {
let params = {
startDate: this.startTime,
endDate: this.endTime,
keyWord: this.keyWord
startTime: this.startTime,
endTime: this.endTime,
keyWord: this.keyWord,
contactsName:this.contactsName,
orgIdList:this.orgIdList,
checkState:this.currentStatus,
starRating:this.currentStar
};
if (this.startTime && this.endTime) {
if (this.publicFun.getDataCheck(this.startTime, this.endTime)) {
......@@ -333,13 +337,13 @@
return;
}
}
api.exportDiscussRedList(params).then(response => {
api.exportAuditPartnerList(params).then(response => {
let blob = new Blob([response], {
type: "application/vnd.ms-excel" //word文档为msword,pdf文档为pdf
});
let objectUrl = URL.createObjectURL(blob);
let link = document.createElement("a");
let fname = `我维护的合作伙伴-` + `${titleData}` + `.xls`; //下载文件的名字
let fname = `验收的合作伙伴` + `.xls`; //下载文件的名字
link.href = objectUrl;
link.setAttribute("download", fname);
document.body.appendChild(link);
......
......@@ -14,7 +14,7 @@
<el-tab-pane label="详细资料" name="first" style="position: relative;">
<div style="margin: 10px 30px 0;">
<el-row style="margin: 10px 30px">
<p :style="{color:partnerInfo.checkState==0?'#FF5D5D':partnerInfo.checkState==1?'#0ABB87 ':'unset'}"><i :class="partnerInfo.checkState==0?'el-icon-error':partnerInfo.checkState==1?'el-icon-success ':''" style="margin-right: 10px"></i>{{partnerInfo.checkState==0?'验收驳回':partnerInfo.checkState==1?'已验收 ':''}}</p>
<p v-if="partnerInfo.checkState!=2" style="padding: 10px;background: rgb(255, 239, 239);border: 1px solid rgb(255, 93, 93);" :style="{color:partnerInfo.checkState==0?'#FF5D5D':partnerInfo.checkState==1?'#0ABB87 ':'unset'}">{{partnerInfo.checkState==0?'您提交的KOL专家未通过验收,请修改后重新提交。驳回理由:'+partnerInfo.checkDesc:partnerInfo.checkState==1?'已验收 ':''}}</p>
</el-row>
<el-form :inline="true" label-width="160px" :model="partnerInfo" class="contnetform">
<el-form-item label="单位名称:" style="width: 100%;">
......@@ -30,7 +30,12 @@
<span>{{partnerInfo.contactInformation}}</span>
</el-form-item>
<el-form-item label="协议/证明材料:" style="width: 100%;">
<span>{{partnerInfo.partnerName}}</span>
<div v-for="item in partnerInfo.materialUrlList">
<el-button type="text" @click="handleUpload(item)"
class="iconfont icon-download-fill">{{item.fileName}}
</el-button>
</div>
</el-form-item>
<el-row>
<el-form-item style="width: 100%;">
......@@ -97,7 +102,26 @@
handleEdit(){
this.$router.push({path:"/addPartner",query:{id:this.$route.query.id}})
}
},
//下载
handleUpload(data) {
var nameArr = data.fileName.split('.');
const img = ['png', 'jpg', 'PNG', 'JPG', 'jpeg', 'JPEG', 'gif', 'GIF', 'heic', 'HEIC', 'hevc', 'HEVC', 'heif', 'HEIF', 'xls', 'xlsx', 'doc', 'docx', 'pdf', 'pptx', 'ppt']
const fileName = img.indexOf(nameArr[nameArr.length - 1]) != -1;
// const file = ['xls','xlsx','doc','docx','pdf','pptx','ppt'];
// const isFile = file.indexOf(nameArr[nameArr.length - 1]) != -1;
if (data.fileUrl) {
const elink = document.createElement('a');
elink.href = data.fileUrl;
elink.setAttribute("download", data.fileName);
document.body.appendChild(elink);
elink.click();
document.body.removeChild(elink);
} else {
this.$message.error(this.$t('releasejson.excelno'));
}
},
},
mounted() {
this.getInitData();
......
......@@ -214,8 +214,8 @@
//导出
exportFunc() {
let params = {
startDate: this.startTime,
endDate: this.endTime,
startTime: this.startTime,
endTime: this.endTime,
keyWord: this.keyWord
};
if (this.startTime && this.endTime) {
......@@ -224,13 +224,13 @@
return;
}
}
api.exportDiscussRedList(params).then(response => {
api.exportManagePartnerList(params).then(response => {
let blob = new Blob([response], {
type: "application/vnd.ms-excel" //word文档为msword,pdf文档为pdf
});
let objectUrl = URL.createObjectURL(blob);
let link = document.createElement("a");
let fname = `我维护的合作伙伴-` + `${titleData}` + `.xls`; //下载文件的名字
let fname = `我维护的合作伙伴` + `.xls`; //下载文件的名字
link.href = objectUrl;
link.setAttribute("download", fname);
document.body.appendChild(link);
......
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