|
@@ -170,6 +170,17 @@
|
|
|
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&scope.row.archiveStatus === '0'||scope.row.archiveStatus === '1'||scope.row.archiveStatus === '3'||scope.row.archiveStatus === '4'" type="text" icon="el-icon-circle-check" size="small" @click="archivePush(scope.row)">项目归档</el-button>
|
|
|
<el-button v-if="hasPermission('program:registered:edit')&&scope.row.archiveStatus === '2'" type="text" icon="el-icon-circle-check" size="small" @click="archiveReback(scope.row)">校审撤回</el-button>
|
|
|
+
|
|
|
+ <!--一级校审ftl文件下载-->
|
|
|
+ <!--<el-button v-if="hasPermission('program:registered:edit')" type="text" icon="el-icon-circle-check" size="small" @click="downloadFirstAuditTpl(scope.row)">一级校审下载</el-button>
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')" type="text" icon="el-icon-circle-check" size="small" @click="downloadSecondAuditTpl(scope.row)">二级校审下载</el-button>
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')" type="text" icon="el-icon-circle-check" size="small" @click="downloadThirdlyAuditTpl(scope.row)">三级校审下载</el-button>
|
|
|
+ -->
|
|
|
+
|
|
|
+ <!--自校功能ftl文件下载-->
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')" type="text" icon="el-icon-circle-check" size="small" @click="downloadProofreadAuditTpl(scope.row)">校对审核</el-button>
|
|
|
+ <el-button v-if="hasPermission('program:registered:edit')" type="text" icon="el-icon-circle-check" size="small" @click="downloadAuditRecordFormAfterBindingTpl(scope.row)">评估报告装订后</el-button>
|
|
|
+
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
@@ -798,6 +809,81 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 下载一级校审
|
|
|
+ downloadFirstAuditTpl (row) {
|
|
|
+ // this.$utils.downloadExcel('/sys/project/import/template')
|
|
|
+ this.loading = true
|
|
|
+ this.programProjectListInfoService.downloadFirstAuditTpl(row.id, row.auditId1).then((res) => {
|
|
|
+ // 将二进制流文件写入excel表,以下为重要步骤
|
|
|
+ this.$utils.downloadWord(res.data, '一级校审')
|
|
|
+ this.loading = false
|
|
|
+ }).catch(function (err) {
|
|
|
+ this.loading = false
|
|
|
+ if (err.response) {
|
|
|
+ console.log(err.response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 下载二级校审
|
|
|
+ downloadSecondAuditTpl (row) {
|
|
|
+ // this.$utils.downloadExcel('/sys/project/import/template')
|
|
|
+ this.loading = true
|
|
|
+ this.programProjectListInfoService.downloadSecondAuditTpl(row.id, row.auditId2).then((res) => {
|
|
|
+ // 将二进制流文件写入excel表,以下为重要步骤
|
|
|
+ this.$utils.downloadWord(res.data, '二级校审')
|
|
|
+ this.loading = false
|
|
|
+ }).catch(function (err) {
|
|
|
+ this.loading = false
|
|
|
+ if (err.response) {
|
|
|
+ console.log(err.response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 下载三级校审
|
|
|
+ downloadThirdlyAuditTpl (row) {
|
|
|
+ // this.$utils.downloadExcel('/sys/project/import/template')
|
|
|
+ this.loading = true
|
|
|
+ this.programProjectListInfoService.downloadThirdlyAuditTpl(row.id, row.auditId3).then((res) => {
|
|
|
+ // 将二进制流文件写入excel表,以下为重要步骤
|
|
|
+ this.$utils.downloadWord(res.data, '三级校审')
|
|
|
+ this.loading = false
|
|
|
+ }).catch(function (err) {
|
|
|
+ this.loading = false
|
|
|
+ if (err.response) {
|
|
|
+ console.log(err.response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 下载评估报告装订后浏览审核记录表
|
|
|
+ downloadProofreadAuditTpl (row) {
|
|
|
+ // this.$utils.downloadExcel('/sys/project/import/template')
|
|
|
+ this.loading = true
|
|
|
+ this.programProjectListInfoService.downloadProofreadAuditTpl(row.id).then((res) => {
|
|
|
+ // 将二进制流文件写入excel表,以下为重要步骤
|
|
|
+ this.$utils.downloadExcel(res.data, '评估报告装订后浏览审核记录表')
|
|
|
+ this.loading = false
|
|
|
+ }).catch(function (err) {
|
|
|
+ this.loading = false
|
|
|
+ if (err.response) {
|
|
|
+ console.log(err.response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 下载评估报告装订后浏览审核记录表
|
|
|
+ downloadAuditRecordFormAfterBindingTpl (row) {
|
|
|
+ // this.$utils.downloadExcel('/sys/project/import/template')
|
|
|
+ this.loading = true
|
|
|
+ this.programProjectListInfoService.downloadAuditRecordFormAfterBindingTpl(row.id).then((res) => {
|
|
|
+ // 将二进制流文件写入excel表,以下为重要步骤
|
|
|
+ this.$utils.downloadExcel(res.data, '评估报告装订后浏览审核记录表')
|
|
|
+ this.loading = false
|
|
|
+ }).catch(function (err) {
|
|
|
+ this.loading = false
|
|
|
+ if (err.response) {
|
|
|
+ console.log(err.response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
is () {
|
|
|
this.userService.is().then(({data}) => {
|
|
|
this.isAdmin = data
|