Browse Source

代码提交:
1022项目登记归档添加签字评估师

sunruiqi 2 years atrás
parent
commit
cf0b146b2d

+ 2 - 1
src/api/program/ProgramProjectListInfoService.js

@@ -8,10 +8,11 @@ export default class ProgramProjectListInfoService {
       params: params
     })
   }
-  exportFile () {
+  exportFile (params) {
     return request({
       url: '/program/projectList/exportFile',
       method: 'get',
+      params: params,
       responseType: 'blob'
     })
   }

+ 5 - 1
src/views/modules/program/registered/ProjectList.vue

@@ -152,6 +152,7 @@
               <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' && commonJS.isEmpty(scope.row.reportNo) && scope.row.createBy === createName" type="text" size="small" @click="saveReportNo(scope.row.id)">生成报告号</el-button>
 
               <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&scope.row.createBy === createName && commonJS.isNotEmpty(scope.row.reportNo)&&(scope.row.status1 === '0'||scope.row.status1 === '1'||scope.row.status1 === '3'||scope.row.status1 === '4')" type="text" size="small" @click="firstAuditPush(scope.row)">一级校审</el-button>
+              <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status === '5' &&scope.row.createBy === createName && commonJS.isNotEmpty(scope.row.reportNo)&&(scope.row.status1 === '0'||scope.row.status1 === '1'||scope.row.status1 === '3'||scope.row.status1 === '4')" type="text" size="small" @click="firstAuditPush(scope.row)">一级校审</el-button>
               <el-button v-if="hasPermission('program:registered:edit')&&scope.row.status1 === '2' &&scope.row.createBy === createName && commonJS.isNotEmpty(scope.row.reportNo)" type="text" size="small" @click="firstAuditReback(scope.row)">校审撤回</el-button>
 
               <el-button v-if="hasPermission('program:registered:edit')&&scope.row.createBy === createName&&scope.row.status1 === '5'&&(scope.row.status2 === '0'||scope.row.status2 === '1'||scope.row.status2 === '3'||scope.row.status2 === '4')" type="text" size="small" @click="secondAuditPush(scope.row)">二级校审</el-button>
@@ -912,7 +913,10 @@
       // 下载文档
       exportFile () {
         this.loading = true
-        this.programProjectListInfoService.exportFile().then((res) => {
+        this.programProjectListInfoService.exportFile({
+          'itemType': '1',
+          ...this.searchForm
+        }).then((res) => {
           // 将二进制流文件写入excel表,以下为重要步骤
           this.$utils.downloadExcel(res.data, '项目登记列表信息')
           this.loading = false