Commit 66f220ea by liudx

联调导出页面

parent 61205354
No preview for this file type
No preview for this file type
......@@ -96,6 +96,7 @@ export default {
},
],
});
window.addEventListener("resize", myChart.resize);
},
},
};
......
......@@ -1217,7 +1217,7 @@ export default {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
//formData文件流
that.blobToBase64(out, that.formState.email);
that.blobToBase64(out, that.formState.email,that.baseinfo.company_name);
// 将目标文件对象保存为目标类型的文件,并命名
// saveAs(out, `企业科创能力报告.docx`);
}
......@@ -1230,7 +1230,7 @@ export default {
// 处理验证失败的情况
});
},
blobToBase64(blob, email) {
blobToBase64(blob, email,name) {
return new Promise((resolve, reject) => {
const fileReader = new FileReader();
fileReader.onload = (e) => {
......@@ -1238,6 +1238,7 @@ export default {
exportword({
report_data: e.target.result,
email: email,
name:name
}).then((res) => {
if (res.code == 0) {
message.success(res.msg);
......
......@@ -418,8 +418,8 @@ export default {
cursor: pointer;
}
.rank_item {
height: 45px;
line-height: 45px;
height: 40px;
line-height: 40px;
color: #555770;
cursor: pointer;
}
......
......@@ -607,23 +607,31 @@ export default {
let list = that.list;
list.forEach((item) => {
// if (item.high_new == 1) {
// qualif.push("高新技术企业");
// } else if (item.zjtg == 1) {
// qualif.push("专精特新企业");
// } else if (item.zjtg_sjxjr == 1) {
// qualif.push("专精特新小巨人企业");
// } else if (item.quoted_company == 1) {
// qualif.push("上市企业");
// }
if(item.patents.length>3){
item.patents.splice(2,item.patents.length-3)
}
item.qualif = [];
if (item.high_new == 1) {
item.qualif.push("高新技术企业");
}
if (item.zjtg == 1) {
item.qualif.push("专精特新企业");
}
if (item.zjtg_sjxjr == 1) {
item.qualif.push("专精特新小巨人企业");
}
if (item.quoted_company == 1) {
item.qualif.push("上市企业");
}
if (item.patents.length > 3) {
item.patents.splice(2, item.patents.length - 3);
}
item.business_scope_clone = [...item.business_scope];
item.business_scope_clone.forEach((it, index) => {
item.business_scope_clone[index] = it.replace(
/<[^<>]+>/g,
""
);
});
});
// that.list.patents = this.submitInfo.auditResult.split('\n')
// 设置模板变量的值
doc.setData({
...details,
......@@ -652,9 +660,9 @@ export default {
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
});
//formData文件流
that.blobToBase64(out, that.formState.email);
that.blobToBase64(out, that.formState.email,that.details.gkh);
// 将目标文件对象保存为目标类型的文件,并命名
saveAs(out, `专利成果转移转化智能推荐报告.docx`);
// saveAs(out, `专利成果转移转化智能推荐报告.docx`);
that.visible = false;
}
);
......@@ -666,7 +674,7 @@ export default {
// 处理验证失败的情况
});
},
blobToBase64(blob, email) {
blobToBase64(blob, email,name) {
return new Promise((resolve, reject) => {
const fileReader = new FileReader();
fileReader.onload = (e) => {
......@@ -674,6 +682,7 @@ export default {
exportword({
report_data: e.target.result,
email: email,
name:name
}).then((res) => {
if (res.code == 0) {
message.success(res.msg);
......
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