|
|
@@ -3,14 +3,14 @@
|
|
|
<avue-crud
|
|
|
v-bind="bindVal"
|
|
|
v-on="onEvent"
|
|
|
- v-model="form"
|
|
|
- :before-open="handleBeforeOpen"
|
|
|
+ :data="list"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
icon="el-icon-download"
|
|
|
+ :disabled="confirmLoading"
|
|
|
@click="handleDownAll('/api/kd-scientific/archive/center/download', 0)"
|
|
|
>
|
|
|
一键下载
|
|
|
@@ -20,6 +20,7 @@
|
|
|
size="small"
|
|
|
plain
|
|
|
icon="el-icon-download"
|
|
|
+ :disabled="confirmLoading"
|
|
|
@click="handleDownAll('/api/kd-scientific/archive/center/download', 1)"
|
|
|
>
|
|
|
一键导出高新备查
|
|
|
@@ -29,6 +30,7 @@
|
|
|
size="small"
|
|
|
plain
|
|
|
icon="el-icon-download"
|
|
|
+ :disabled="confirmLoading"
|
|
|
@click="handleDownAll('/api/kd-scientific/archive/center/download', 2)"
|
|
|
>
|
|
|
一键导出加计备查
|
|
|
@@ -40,22 +42,6 @@
|
|
|
<h3 class="page-title">{{ pageTitle }}</h3>
|
|
|
<year-month-select v-model="params.year" :showMonth="false"></year-month-select>
|
|
|
</template>
|
|
|
-
|
|
|
- <!-- <template slot="menu" slot-scope="{row}">
|
|
|
- <el-button type="text" icon="el-icon-download" size="mini" @click="handleRowDown(row)">下载</el-button>
|
|
|
- </template> -->
|
|
|
-
|
|
|
- <template slot="fileList" slot-scope="{row}">
|
|
|
- <el-link
|
|
|
- v-for="(item, index) of row.fileList"
|
|
|
- :key="index"
|
|
|
- type="primary"
|
|
|
- @click="handleDownFile(item)"
|
|
|
- :style="{marginRight: index === row.fileList.length - 1 ? 0 : '16px'}"
|
|
|
- >
|
|
|
- {{ item.label }}
|
|
|
- </el-link>
|
|
|
- </template>
|
|
|
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
@@ -86,8 +72,66 @@ export default window.$crudCommon({
|
|
|
|
|
|
wideTableColumns: [],
|
|
|
printTitle: "",
|
|
|
+ confirmLoading: false,
|
|
|
|
|
|
- currIndex: 0
|
|
|
+ currIndex: 0,
|
|
|
+ list: [{
|
|
|
+ fileName: '高新技术企业资格证书',
|
|
|
+ }, {
|
|
|
+ fileName: '高新技术企业认定资料',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除情况说明',
|
|
|
+ }, {
|
|
|
+ fileName: '研发立项决议文件',
|
|
|
+ }, {
|
|
|
+ fileName: '高新研发项目汇总表',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除研发项目汇总表',
|
|
|
+ }, {
|
|
|
+ fileName: '高新研发项目全套技术资料',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除研发项目全套技术资料',
|
|
|
+ }, {
|
|
|
+ fileName: '高新研发人员与科技人员资料',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除研发人员与科技人员资料',
|
|
|
+ }, {
|
|
|
+ fileName: '全部知识产权资料',
|
|
|
+ }, {
|
|
|
+ fileName: '高新项目知识产权资料',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除项目知识产权资料',
|
|
|
+ }, {
|
|
|
+ fileName: '高新口径研发费用辅助账',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除口径研发费用辅助账',
|
|
|
+ }, {
|
|
|
+ fileName: '会计口径研发费用辅助账',
|
|
|
+ }, {
|
|
|
+ fileName: '会计口径研发费用附件凭证资料及相关说明',
|
|
|
+ }, {
|
|
|
+ fileName: '高新研发费用附件凭证资料及相关说明',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除研发费用附件凭证资料及相关说明',
|
|
|
+ }, {
|
|
|
+ fileName: 'A107012研发费用加计扣除优惠明细表',
|
|
|
+ }, {
|
|
|
+ fileName: '当年和前两个会计年度研发费用总额及占同期销售收入比例的说明',
|
|
|
+ }, {
|
|
|
+ fileName: '年度主要产品(服务)发挥核心支持作用的技术属于《国家重点支持的高新技术领域》规定范围的说明',
|
|
|
+ }, {
|
|
|
+ fileName: '高新技术产品(服务)及对应收入资料',
|
|
|
+ }, {
|
|
|
+ fileName: '研发管理制度',
|
|
|
+ }, {
|
|
|
+ fileName: '高新项目技术鉴定资料',
|
|
|
+ }, {
|
|
|
+ fileName: '加计扣除项目技术鉴定资料',
|
|
|
+ }, {
|
|
|
+ fileName: '其他高新备查资料',
|
|
|
+ }, {
|
|
|
+ fileName: '其他加计扣除备查资料',
|
|
|
+ }],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -104,6 +148,7 @@ export default window.$crudCommon({
|
|
|
},
|
|
|
methods: {
|
|
|
loadData() {
|
|
|
+ return;
|
|
|
this.loading = true;
|
|
|
this.api.getList(this.getSearchParams()).then(({ data }) => {
|
|
|
|
|
|
@@ -228,18 +273,6 @@ export default window.$crudCommon({
|
|
|
this.loading = false;
|
|
|
})
|
|
|
},
|
|
|
- handleBeforeOpen(done) {
|
|
|
- this.currIndex = this.form.$index + 1;
|
|
|
- done();
|
|
|
- },
|
|
|
- handleExport() {
|
|
|
- exportBlob(`/api/kd-scientific/fjbczl/export?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
- downloadXls(res.data, `${this.params.year}附件补充.xlsx`);
|
|
|
- });
|
|
|
- },
|
|
|
- handleDownFile(file) {
|
|
|
- downloadFileByUrl(file.value, file.label);
|
|
|
- },
|
|
|
handleDownAll(downUrl, type) {
|
|
|
let fileNameObj = {
|
|
|
0: '全部档案资料',
|
|
|
@@ -256,9 +289,20 @@ export default window.$crudCommon({
|
|
|
setStore({ name: storeName, content: taskId });
|
|
|
|
|
|
if (status == 2) {
|
|
|
+ this.confirmLoading = true;
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '文件正在下载中,请耐心等待...',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
exportBlob(`${downUrl}?${this.website.tokenHeader}=${getToken()}`, { taskId }).then(res => {
|
|
|
+ loading.close();
|
|
|
+ this.confirmLoading = false;
|
|
|
downloadXls(res.data, `${this.params.year}年${fileNameObj[type]}.zip`);
|
|
|
- removeStore({ name: storeName })
|
|
|
+ }).catch(() => {
|
|
|
+ this.confirmLoading = false;
|
|
|
+ loading.close();
|
|
|
});
|
|
|
} else if (status == 3) {
|
|
|
this.$message.warning("下载任务已过期,请点击按钮,重新生成下载任务...");
|
|
|
@@ -270,30 +314,6 @@ export default window.$crudCommon({
|
|
|
|
|
|
})
|
|
|
},
|
|
|
- handleRowDown() {
|
|
|
- this.$message.warning("功能建设中...");
|
|
|
- },
|
|
|
- getFormData() {
|
|
|
- return { id: this.form.id, yearAndMonth: this.params.year, [`d${this.currIndex}`]: JSON.stringify(this.form.fileList) }
|
|
|
- },
|
|
|
- handleDownTemp(templateKey) {
|
|
|
- getDictValueByKey('fjbczl-template', templateKey).then(({ data }) => {
|
|
|
- if (data.code == 200) {
|
|
|
- if (typeof data.data === 'object') {
|
|
|
- this.$message.error('暂未配置模板');
|
|
|
- return;
|
|
|
- }
|
|
|
- let tempObj = {
|
|
|
- 'template1': '当年和前两个会计年度研发费用总额及占同期销售收入比例的说明.doc',
|
|
|
- 'template2': '年度职工和科技人员情况说明.doc',
|
|
|
- 'template3': '年度主要产品(服务)发挥核心支持作用的技术属于《国家重点支持的高新技术领域》规定范围的说明.doc',
|
|
|
- 'template4': '研发费用结构明细表.xls'
|
|
|
- };
|
|
|
-
|
|
|
- downloadFileByUrl(data.data, tempObj[templateKey]);
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
},
|
|
|
}, {
|
|
|
// 模块路径
|