立案审批表、打印预览功能

This commit is contained in:
yuyan02 2025-04-11 18:03:01 +08:00
parent 974f846573
commit 8e5faeb6e9
3 changed files with 3 additions and 44 deletions

View File

@ -1,7 +1,9 @@
<template> <template>
<!-- 安全基础管理信息 --> <!-- 安全基础管理信息 -->
<el-row> <el-row>
<el-col :span="24" style="border-bottom: 1px solid #ebeef5;">
<div style="text-align: left; font-size: 16px; font-weight: 600; width: 100%; padding: 8px 0;">以下为基础指标项选填</div>
</el-col>
<el-col :span="24" style="border-bottom: 1px solid #ebeef5; margin-bottom: 10px;"> <el-col :span="24" style="border-bottom: 1px solid #ebeef5; margin-bottom: 10px;">
<div style="text-align: center; font-size: 16px; font-weight: 600; width: 100%; padding: 8px 0;">安全管理机构人员</div> <div style="text-align: center; font-size: 16px; font-weight: 600; width: 100%; padding: 8px 0;">安全管理机构人员</div>
</el-col> </el-col>

View File

@ -115,42 +115,6 @@ const generatePDF = async () => {
} }
} }
const porpData = ref(props) const porpData = ref(props)
// const exportToWord = async () => {
// try {
//
// const templatePath = '/laspb.docx';
// const templateContent = await fetchTemplate(templatePath);
//
// const zip = new PizZip(templateContent);
// const doc = new Docxtemplater(zip, {
// paragraphLoop: true,
// linebreaks: true
// });
//
// let data = porpData.value.documenContent
// data.documentCode=porpData.value.documentCode
// data.documentName=porpData.value.documentName.replace('','').replace('','')
//
// doc.setData(data);
// doc.render();
//
// const out = doc.getZip().generate({ type: 'blob' });
// saveAs(out, '.docx');
// } catch (error) {
// if (error.properties && error.properties.errors) {
// error.properties.errors.forEach(e => console.error(":", e));
// }
// }
// };
//
// const fetchTemplate = (path) => {
// return new Promise((resolve, reject) => {
// JSZipUtils.getBinaryContent(path, (err, content) => {
// if (err) reject(err);
// else resolve(content);
// });
// });
// };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.ws-container { .ws-container {

View File

@ -138,13 +138,6 @@ function handleDetail(row) {
let area = '' let area = ''
let wsmu = [ let wsmu = [
{
documentNo: 1,
documentName: '立案审批表',
documentType: '立案类',
documentCode: '(西安)应急立〔' + year + '' + area + xh + '号',
documenContent: {}
},
{ {
documentNo: 2, documentNo: 2,
documentName: '案件移送审批表', documentName: '案件移送审批表',