[update] 已封存企标启用流程的查看详情

This commit is contained in:
lideqin
2024-07-22 17:13:40 +08:00
parent e03bd8122e
commit 27f6a68517
2 changed files with 46 additions and 31 deletions
+37 -23
View File
@@ -113,6 +113,7 @@ import UploadFile from './UploadFile'
import { filterObj } from '../utils/util' import { filterObj } from '../utils/util'
import { kkFilePreview } from '../utils/kkFilePreview' import { kkFilePreview } from '../utils/kkFilePreview'
import { urgeProcessNode } from '../api/workCenter' import { urgeProcessNode } from '../api/workCenter'
import { ProcessKey } from '../enums/commonEnums'
// 支持预览的文件后缀 // 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'] const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx']
@@ -171,6 +172,18 @@ export default {
default: '' default: ''
} }
}, },
watch: {
nodeNameClick: {
immediate: true,
handler (val) {
if (val) {
this.columns[0].scopedSlots.customRender = 'taskNode'
} else {
this.columns[0].scopedSlots.customRender = 'text'
}
}
}
},
computed: { computed: {
yScrollHeight () { yScrollHeight () {
/** /**
@@ -195,7 +208,8 @@ export default {
{ {
dataIndex: 'taskName', dataIndex: 'taskName',
title: this.$t('workCenter.processDetail.taskNode'), title: this.$t('workCenter.processDetail.taskNode'),
width: 150 width: 150,
scopedSlots: { customRender: 'taskNode' }
}, },
// 任务受理人 // 任务受理人
{ {
@@ -406,91 +420,91 @@ export default {
// 跳转到对应流程页面 // 跳转到对应流程页面
switch (this.$route.query.processKey + '') { switch (this.$route.query.processKey + '') {
// 标准法规入库/变更流程 // 标准法规入库/变更流程
case '1': case ProcessKey.FB_ENTRY_CHANGE.value:
path = '/workCenter/StandardEntryOrChangeProcess' path = '/workCenter/StandardEntryOrChangeProcess'
break break
// 标准征求意见流程 // 标准征求意见流程
case '2': case ProcessKey.CONSULTATION.value:
path = '/workCenter/StandardConsultationProcess' path = '/workCenter/StandardConsultationProcess'
break break
// 项目合规评估流程 // 项目合规评估流程
case '3': case ProcessKey.PROJECT_COMPLIANCE_EVALUATION.value:
path = '/workCenter/ProjectComplianceEvaluationProcess' path = '/workCenter/ProjectComplianceEvaluationProcess'
break break
// 未符合项跟踪流程 // 未符合项跟踪流程
case '4': case ProcessKey.NO_MATCH_TRACKING.value:
path = '/workCenter/NoMatchTrackingProcess' path = '/workCenter/NoMatchTrackingProcess'
break break
// 法规合规评估流程 // 法规合规评估流程
case '5': case ProcessKey.REGULATORY_COMPLIANCE_ASSESSMENT.value:
path = '/workCenter/StandardComplianceProcess' path = '/workCenter/StandardComplianceProcess'
break break
// 法规采购流程 // 法规采购流程
case '6': case ProcessKey.LEGAL_PROCUREMENT.value:
path = '/workCenter/StandardProcurementProcess' path = '/workCenter/StandardProcurementProcess'
break break
// 企标立项、变更计划 // 企标立项、变更计划
case '7': case ProcessKey.ES_INIT_CHANGE.value:
path = '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow' path = '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow'
break break
// 年度制修订计划(各部门主动上报) // 年度制修订计划(各部门主动上报)
case '8': case ProcessKey.ES_ANNUAL_REPORT.value:
path = '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow' path = '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow'
break break
// 年度制修订计划(标准化发起) // 年度制修订计划(标准化发起)
case '9': case ProcessKey.ES_ANNUAL_INIT.value:
path = '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow' path = '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow'
break break
// 企标制修订流程 // 企标制修订流程
case '10': case ProcessKey.ES_EDIT.value:
path = '/workCenter/enterpriseStandardRevision/enterpriseStandardRevisionFlow' path = '/workCenter/enterpriseStandardRevision/enterpriseStandardRevisionFlow'
break break
// 企标更改流程 // 企标更改流程
case '11': case ProcessKey.ES_CHANGE.value:
path = '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow' path = '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow'
break break
// 企标复审流程 // 企标复审流程
case '12': case ProcessKey.ES_RECHECK.value:
path = '/workCenter/enterpriseStandardRecheck/enterpriseStandardRecheckFlow' path = '/workCenter/enterpriseStandardRecheck/enterpriseStandardRecheckFlow'
break break
// 企标废止流程 // 企标废止流程
case '13': case ProcessKey.ES_ABOLISH.value:
path = '/workCenter/enterpriseStandardAnnul/enterpriseStandardAnnulFlow' path = '/workCenter/enterpriseStandardAnnul/enterpriseStandardAnnulFlow'
break break
// 企标封存流程 // 企标封存流程
case '14': case ProcessKey.ES_ARCHIVE.value:
path = '/workCenter/enterpriseStandardSealSave/enterpriseStandardSealSaveFlow' path = '/workCenter/enterpriseStandardSealSave/enterpriseStandardSealSaveFlow'
break break
// 已封存企标启用流程 // 已封存企标启用流程
case '15': case ProcessKey.ES_ENABLE.value:
path = '/workCenter/enterpriseStandardStartUse/enterpriseStandardStartUseFlow' path = '/workCenter/enterpriseStandardStartUse/enterpriseStandardStartUseFlow'
break break
// 企标稽查计划 // 企标稽查计划
case '16': case ProcessKey.ES_INSPECTION_PLAN.value:
path = '/workCenter/EnterpriseStandardInspectionPlan' path = '/workCenter/EnterpriseStandardInspectionPlan'
break break
// 企标稽查流程 // 企标稽查流程
case '17': case ProcessKey.ES_INSPECTION_PROCESS.value:
path = '/workCenter/EnterpriseStandardInspectionProcess' path = '/workCenter/EnterpriseStandardInspectionProcess'
break break
// 稽查延期申请流程 // 稽查延期申请流程
case '18': case ProcessKey.INSPECTION_EXTENSION_REQUEST_PROCESS.value:
path = '/workCenter/InspectionExtensionRequestProcess' path = '/workCenter/InspectionExtensionRequestProcess'
break break
// 企标稽查整改 // 企标稽查整改
case '19': case ProcessKey.ES_INSPECTION_RECTIFICATION.value:
path = '/workCenter/EnterpriseStandardInspectionRectification' path = '/workCenter/EnterpriseStandardInspectionRectification'
break break
// 权限申请流程 // 权限申请流程
case '20': case ProcessKey.PERMISSION_APPLY.value:
path = '/workCenter/PermissionApplicationProcess' path = '/workCenter/PermissionApplicationProcess'
break break
// 标准宣贯流程 // 标准宣贯流程
case '21': case ProcessKey.STANDARD_PROMOTION.value:
path = '/workCenter/StandardPromotionProcess' path = '/workCenter/StandardPromotionProcess'
break break
// 会后管理流程 // 会后管理流程
case '22': case ProcessKey.POST_MEETING_MANAGE.value:
path = '/workCenter/PostMeetingManageProcess' path = '/workCenter/PostMeetingManageProcess'
break break
} }
@@ -179,14 +179,6 @@ export default {
} }
} }
}) })
if (this.$route.query.taskId && !this.$route.query.draftId) {
// 有流程id说明是从流程中心来的,需要初始化数据
this.getProcessData('todo', { taskId: this.$route.query.taskId })
}
if (this.$route.query.draftId) {
// 有草稿id,说明是从流程中心-草稿来的,需要初始化数据
this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId })
}
if (this.$route.query.isLook + '' === '1') { if (this.$route.query.isLook + '' === '1') {
// 是查看 // 是查看
this.isLook = true this.isLook = true
@@ -194,6 +186,15 @@ export default {
this.initPersonInfoData(false) this.initPersonInfoData(false)
// 查询数据 // 查询数据
this.getProcessData('look', { snapshotId: this.$route.query.snapshotId }) this.getProcessData('look', { snapshotId: this.$route.query.snapshotId })
} else {
if (this.$route.query.taskId && !this.$route.query.draftId) {
// 有流程id说明是从流程中心来的,需要初始化数据
this.getProcessData('todo', { taskId: this.$route.query.taskId })
}
if (this.$route.query.draftId) {
// 有草稿id,说明是从流程中心-草稿来的,需要初始化数据
this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId })
}
} }
if (this.$route.query.taskName) { if (this.$route.query.taskName) {
// 说明是已发起流程 // 说明是已发起流程