Преглед на файлове

报告归档选择报告组件

lizhenhao преди 2 години
родител
ревизия
1a0df1f252

+ 4 - 1
src/views/modules/cw/projectReportArchive/ProjectReportArchiveTaskForm.vue

@@ -663,6 +663,8 @@
         }
         this.$refs.uploadComponent.clearUpload()
         this.$refs.inputForm.resetFields()
+        this.inputForm.reportId = ''
+        this.inputForm.projectId = ''
       },
       tabHandleClick (event) {
         // console.log(event)
@@ -714,7 +716,8 @@
       },
       // 打开审计报告选择组件
       openReportChoose () {
-        this.$refs.reportChooseByProjectCom.init(this.inputForm.projectId)
+        console.log(this.inputForm.id)
+        this.$refs.reportChooseByProjectCom.init(this.inputForm.projectId, this.inputForm.id)
       },
       // 审计报告选择结果获取
       getReport (row) {

+ 16 - 3
src/views/modules/cw/projectReportArchive/ReportChooseByProjectCom.vue

@@ -86,9 +86,12 @@
         },
         dataList: [],
         searchForm: {
-          reportNo: ''
+          reportNo: '',
+          projectId: '',
+          achiveId: ''
         },
-        projectId: ''
+        projectId: '',
+        achiveId: ''
       }
     },
     projectReportArchiveService: null,
@@ -98,8 +101,14 @@
     components: {
     },
     methods: {
-      init (projectId) {
+      init (projectId, achiveId) {
         this.projectId = projectId
+        if (this.commonJS.isNotEmpty(achiveId)) {
+          this.achiveId = achiveId
+        } else {
+          this.achiveId = ''
+          this.searchForm.achiveId = ''
+        }
         this.visible = true
         this.list()
       },
@@ -127,6 +136,9 @@
         this.loading = true
         if (this.commonJS.isNotEmpty(this.projectId)) {
           this.searchForm.projectId = this.projectId
+          if (this.commonJS.isNotEmpty(this.achiveId)) {
+            this.searchForm.achiveId = this.achiveId
+          }
           this.projectReportArchiveService.reportList({
             'current': this.tablePage.currentPage,
             'size': this.tablePage.pageSize,
@@ -154,6 +166,7 @@
         this.list()
       },
       close () {
+        this.searchForm.achiveId = ''
         this.$refs.searchForm.resetFields()
         this.visible = false
       }