Просмотр исходного кода

Merge branch 'master' of http://116.204.116.5:3000/zzw/cbjsxt-front-master

shiyanyu 1 месяц назад
Родитель
Сommit
6c0e9b7432

+ 2 - 0
src/views/costAudit/auditInfo/auditManage/index.vue

@@ -186,6 +186,8 @@
       :visible.sync="mainDetailsVisible"
       :current-node="selectedProject && selectedProject.currentNode"
       :current-status="selectedProject && selectedProject.status"
+      :project-name="selectedProject && selectedProject.projectName"
+      :audit-object="selectedProject && selectedProject.auditObject"
       @close="handleMainDetailsClose"
       @refresh="handleMainRefresh"
     />

+ 28 - 4
src/views/costAudit/auditInfo/auditManage/mainDetails.vue

@@ -33,6 +33,8 @@
             :id="id"
             :current-node="currentNode"
             :current-status="currentStatus"
+            :project-name="projectName"
+            :audit-object="auditObject"
           />
         </el-tab-pane>
         <el-tab-pane
@@ -84,6 +86,14 @@
         type: String,
         default: '',
       },
+      projectName: {
+        type: String,
+        default: '',
+      },
+      auditObject: {
+        type: String,
+        default: '',
+      },
     },
     data() {
       return {
@@ -101,21 +111,35 @@
     },
     computed: {
       dialogTitle() {
+        // 基础标题
+        let baseTitle = ''
         // 根据节点类型设置标题
         if (
           this.currentNode === 'sdshenhe' &&
           this.currentStatus === '审核中'
         ) {
-          return '审核详情'
+          baseTitle = '审核详情'
         } else if (this.currentNode === 'clcs') {
-          return '成本调查详情'
+          baseTitle = '成本调查详情'
         } else if (
           this.currentNode === 'yjgaozhi' ||
           this.currentNode === 'yjfk'
         ) {
-          return '意见告知'
+          baseTitle = '意见告知'
+        } else {
+          baseTitle = '成本审核详情'
+        }
+
+        // 添加项目名称和监审对象
+        let titleParts = [baseTitle]
+        if (this.projectName) {
+          titleParts.push(` - ${this.projectName}`)
         }
-        return '成本审核详情'
+        if (this.auditObject) {
+          titleParts.push(` (${this.auditObject})`)
+        }
+
+        return titleParts.join('')
       },
     },
     watch: {