Parcourir la source

fix: 企业端状态是补充材料的时候操作显示补充材料,点击打开报送资料补充材料

shiyanyu il y a 3 semaines
Parent
commit
67b87e4366

+ 20 - 1
src/views/EntDeclaration/auditTaskManagement/taskFillIn.vue

@@ -960,10 +960,29 @@
         }
       },
       // 打开弹窗方法(供外部调用)
-      open(taskInfo, viewMode = false) {
+      open(taskInfo, viewMode = false, options = {}) {
         this.localTaskInfo = taskInfo || {}
         this.initData()
         this.drawerVisible = true
+        // 可选:默认切换指定标签页
+        if (options && options.activeTab) {
+          this.activeTab = options.activeTab
+          // 同步标题
+          const titleMap = {
+            projectInfo: '立项信息',
+            auditDocument: '监审文书',
+            dataRequirements: '报送资料',
+            costSurvey: '成本调查表',
+            auditOpinion: '监审意见',
+            messageNotice: '消息通知',
+          }
+          this.pageTitle = titleMap[options.activeTab] || this.pageTitle
+        }
+        // 可选:直接打开补充材料弹窗
+        if (options && options.openMaterialDialog) {
+          this.getTaskRequirementPage()
+          this.materialDialogVisible = true
+        }
       },
       // 关闭弹窗方法
       close() {

+ 22 - 1
src/views/EntDeclaration/auditTaskProcessing/index.vue

@@ -174,7 +174,7 @@
         </template> -->
       </el-table-column>
 
-      <el-table-column label="操作" width="180" align="center">
+      <el-table-column label="操作" width="250" align="center">
         <template slot-scope="scope">
           <!-- 文字按钮样式 -->
           <el-button
@@ -201,6 +201,14 @@
           >
             意见反馈
           </el-button>
+          <el-button
+            v-if="scope.row.status === '600'"
+            size="mini"
+            type="text"
+            @click="handleMaterials(scope.row)"
+          >
+            补充材料
+          </el-button>
           <el-button size="mini" type="text" @click="handleMessage(scope.row)">
             查看
           </el-button>
@@ -335,6 +343,19 @@
           }
         })
       },
+      // 补充材料:打开 TaskFillIn,默认切到“报送资料”并打开补充材料弹窗
+      handleMaterials(row) {
+        this.currentTaskInfo = row || {}
+        this.taskViewMode = false
+        this.$nextTick(() => {
+          if (this.$refs.taskFillIn) {
+            this.$refs.taskFillIn.open(row, false, {
+              activeTab: 'dataRequirements',
+              openMaterialDialog: true,
+            })
+          }
+        })
+      },
       // 填报任务弹窗关闭
       handleTaskFillInClose() {
         this.taskFillInVisible = false