会计报表上传

main
JiilingLee 1 year ago
parent 59ae5ba703
commit aaade2d611

@ -88,12 +88,17 @@
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table-column label="报表文件名称" align="center" prop="name" />
<el-table-column label="报表文件url" align="center" prop="url" />
<el-table-column label="报表文件" align="center" prop="url">
<template slot-scope="scope">
<el-button type="text" @click="openLink(scope.row.url)">
{{ scope.row.name }}
</el-button>
</template>
</el-table-column>
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="细分类型" align="center" prop="type" />
<el-table-column label="会计年度" align="center" prop="year" />
<el-table-column label="会计期间" align="center" prop="period" />
<el-table-column label="归档状态" align="center" prop="fileStatus" />
<el-table-column
label="创建时间"
align="center"
@ -355,7 +360,7 @@ export default {
},
uploadUrl:
process.env.VUE_APP_BASE_API +
"/admin-api//archives/accounting-report/upload", //
"/admin-api/archives/accounting-report/upload", //
headers: { Authorization: "Bearer " + getAccessToken() }, //
type0: "资产负债表",
type1: "现金流量表",
@ -368,6 +373,16 @@ export default {
this.getOrganizationList();
},
methods: {
// /**
// *
// * @param fileUrl
// */
openLink(fileUrl) {
const url =
process.env.VUE_APP_ONLINE_API +
`/onlinePreview?url=${encodeURIComponent(this.base64Encode(fileUrl))}`;
window.open(url);
},
/** 查询列表 */
getList() {
this.loading = true;

@ -139,7 +139,13 @@
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="报表文件名称" align="center" prop="name" />
<el-table-column label="报表文件url" align="center" prop="url" />
<el-table-column label="报表文件" align="center" prop="url" >
<template slot-scope="scope">
<el-button type="text" @click="openLink(scope.row.url)">
{{ scope.row.name }}
</el-button>
</template>
</el-table-column>
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="细分类型" align="center" prop="type" />
<el-table-column label="会计年度" align="center" prop="year" />

@ -440,7 +440,13 @@
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="报表文件名称" align="center" prop="name" />
<el-table-column label="报表文件url" align="center" prop="url" />
<el-table-column label="报表文件" align="center" prop="url" >
<template slot-scope="scope">
<el-button type="text" @click="openLink(scope.row.url)">
{{ scope.row.name }}
</el-button>
</template>
</el-table-column>
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="细分类型" align="center" prop="type" />
<el-table-column label="会计年度" align="center" prop="year" />

Loading…
Cancel
Save