Переглянути джерело

项目ftl文档部门功能开发

user5 2 роки тому
батько
коміт
4f93ab7ecb

+ 9 - 0
src/api/program/ProgramProjectListInfoService.js

@@ -152,4 +152,13 @@ export default class ProgramProjectListInfoService {
       responseType: 'blob'
     })
   }
+  /* 三级校审文档下载 */
+  downloadReportAusstellungTpl (id) {
+    return request({
+      url: '/program/projectList/downloadReportAusstellungTpl',
+      method: 'get',
+      params: {id: id},
+      responseType: 'blob'
+    })
+  }
 }

+ 23 - 6
src/views/modules/program/registered/ProjectList.vue

@@ -137,7 +137,7 @@
               <el-button  type="text" @click="issuedDetail(scope.row)" :type="$dictUtils.getDictLabel('program_project_list_info_status_info', scope.row.issuedStatus, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("program_project_list_info_status", scope.row.issuedStatus, '-')}} </el-button>
             </template>
           </vxe-column>
-          <vxe-column title="操作" min-width="230px" fixed="right" align="center">
+          <vxe-column title="操作" min-width="1000px" fixed="right" align="center">
             <template  slot-scope="scope">
               <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '1'" type="text"  icon="el-icon-delete" size="small" @click="registeredPush(scope.row)">送审</el-button>
               <el-button v-if="hasPermission('program:registered:edit')&&(scope.row.status === '1' || scope.row.status === '3'||scope.row.status === '4')" type="text"  icon="el-icon-delete" size="small" @click="registeredPush(scope.row)">修改</el-button>
@@ -172,15 +172,17 @@
               <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="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>
 
+              <!--报告签发单-->
+              <el-button v-if="hasPermission('program:registered:edit')" type="text"  icon="el-icon-circle-check" size="small" @click="downloadReportAusstellungTpl(scope.row)">报告签发单</el-button>
+
             </template>
           </vxe-column>
         </vxe-table>
@@ -854,13 +856,13 @@
           }
         })
       },
-      // 下载评估报告装订后浏览审核记录表
+      // 下载资产评估项目(校对)审核记录表
       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.$utils.downloadExcel(res.data, '资产评估项目(校对)审核记录表.xls')
           this.loading = false
         }).catch(function (err) {
           this.loading = false
@@ -875,7 +877,22 @@
         this.loading = true
         this.programProjectListInfoService.downloadAuditRecordFormAfterBindingTpl(row.id).then((res) => {
           // 将二进制流文件写入excel表,以下为重要步骤
-          this.$utils.downloadExcel(res.data, '评估报告装订后浏览审核记录表')
+          this.$utils.downloadExcel(res.data, '评估报告装订后浏览审核记录表.xls')
+          this.loading = false
+        }).catch(function (err) {
+          this.loading = false
+          if (err.response) {
+            console.log(err.response)
+          }
+        })
+      },
+      // 下载报告签发单
+      downloadReportAusstellungTpl (row) {
+        // this.$utils.downloadExcel('/sys/project/import/template')
+        this.loading = true
+        this.programProjectListInfoService.downloadReportAusstellungTpl(row.id).then((res) => {
+          // 将二进制流文件写入excel表,以下为重要步骤
+          this.$utils.downloadWord(res.data, '报告签发单')
           this.loading = false
         }).catch(function (err) {
           this.loading = false