Merge remote-tracking branch 'origin/fourthStage-snapshot' into fourthStage
# Conflicts: # src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue # src/views/workCenter/annualRevisionPlanStandardizationInit/RevisionPlanStandardizationInitFlow.vue
This commit is contained in:
@@ -56,6 +56,16 @@
|
||||
<!-- </a-tooltip>-->
|
||||
<!--</template>-->
|
||||
|
||||
<!-- 任务节点 -->
|
||||
<template v-slot:taskNode="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a v-if="text && record.snapshotId" class="link-a" @click="handleLookDetail(record)">{{ text }}</a>
|
||||
<div v-else-if="text && !record.snapshotId" class="table-text">{{ text }}</div>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!--审批意见-->
|
||||
<template v-slot:approvalOpinion="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
@@ -103,6 +113,7 @@ import UploadFile from './UploadFile'
|
||||
import { filterObj } from '../utils/util'
|
||||
import { kkFilePreview } from '../utils/kkFilePreview'
|
||||
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']
|
||||
@@ -147,6 +158,30 @@ export default {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 是否可以点击节点名称跳转
|
||||
nodeNameClick: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 详情页从哪里点进来的(已办,已发还是监控流程)
|
||||
detailFrom: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
nodeNameClick: {
|
||||
immediate: true,
|
||||
handler (val) {
|
||||
if (val) {
|
||||
this.columns[0].scopedSlots.customRender = 'taskNode'
|
||||
} else {
|
||||
this.columns[0].scopedSlots.customRender = 'text'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -173,7 +208,8 @@ export default {
|
||||
{
|
||||
dataIndex: 'taskName',
|
||||
title: this.$t('workCenter.processDetail.taskNode'),
|
||||
width: 150
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'taskNode' }
|
||||
},
|
||||
// 任务受理人
|
||||
{
|
||||
@@ -248,6 +284,10 @@ export default {
|
||||
if (this.$route.query.source === 'monitorList' && this.$route.query.prcStatus === '3') {
|
||||
params.finishFlagSearch = '2,3,4'
|
||||
}
|
||||
// 是已办,已发还是监控流程的查审批记录
|
||||
if (this.detailFrom) {
|
||||
params.type = this.detailFrom
|
||||
}
|
||||
if (this.$route.query.processInstanceId) {
|
||||
params.processInstanceId = this.$route.query.processInstanceId
|
||||
} else {
|
||||
@@ -372,6 +412,112 @@ export default {
|
||||
}
|
||||
// 其余可预览文件仍使用KKFile进行预览
|
||||
kkFilePreview(fileFullUrl)
|
||||
},
|
||||
// 跳转流程基本信息页面
|
||||
handleLookDetail (record) {
|
||||
let path = ''
|
||||
console.log('-------processKey', this.$route.query.processKey)
|
||||
// 跳转到对应流程页面
|
||||
switch (this.$route.query.processKey + '') {
|
||||
// 标准法规入库/变更流程
|
||||
case ProcessKey.FB_ENTRY_CHANGE.value:
|
||||
path = '/workCenter/StandardEntryOrChangeProcess'
|
||||
break
|
||||
// 标准征求意见流程
|
||||
case ProcessKey.CONSULTATION.value:
|
||||
path = '/workCenter/StandardConsultationProcess'
|
||||
break
|
||||
// 项目合规评估流程
|
||||
case ProcessKey.PROJECT_COMPLIANCE_EVALUATION.value:
|
||||
path = '/workCenter/ProjectComplianceEvaluationProcess'
|
||||
break
|
||||
// 未符合项跟踪流程
|
||||
case ProcessKey.NO_MATCH_TRACKING.value:
|
||||
path = '/workCenter/NoMatchTrackingProcess'
|
||||
break
|
||||
// 法规合规评估流程
|
||||
case ProcessKey.REGULATORY_COMPLIANCE_ASSESSMENT.value:
|
||||
path = '/workCenter/StandardComplianceProcess'
|
||||
break
|
||||
// 法规采购流程
|
||||
case ProcessKey.LEGAL_PROCUREMENT.value:
|
||||
path = '/workCenter/StandardProcurementProcess'
|
||||
break
|
||||
// 企标立项、变更计划
|
||||
case ProcessKey.ES_INIT_CHANGE.value:
|
||||
path = '/workCenter/enterpriseStandardInitChange/planApprovalChangeFlow'
|
||||
break
|
||||
// 年度制修订计划(各部门主动上报)
|
||||
case ProcessKey.ES_ANNUAL_REPORT.value:
|
||||
path = '/workCenter/annualRevisionPlanActivelyReport/revisionPlanActivelyReportFlow'
|
||||
break
|
||||
// 年度制修订计划(标准化发起)
|
||||
case ProcessKey.ES_ANNUAL_INIT.value:
|
||||
path = '/workCenter/annualRevisionPlanStandardizationInit/revisionPlanStandardizationInitFlow'
|
||||
break
|
||||
// 企标制修订流程
|
||||
case ProcessKey.ES_EDIT.value:
|
||||
path = '/workCenter/enterpriseStandardRevision/enterpriseStandardRevisionFlow'
|
||||
break
|
||||
// 企标更改流程
|
||||
case ProcessKey.ES_CHANGE.value:
|
||||
path = '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow'
|
||||
break
|
||||
// 企标复审流程
|
||||
case ProcessKey.ES_RECHECK.value:
|
||||
path = '/workCenter/enterpriseStandardRecheck/enterpriseStandardRecheckFlow'
|
||||
break
|
||||
// 企标废止流程
|
||||
case ProcessKey.ES_ABOLISH.value:
|
||||
path = '/workCenter/enterpriseStandardAnnul/enterpriseStandardAnnulFlow'
|
||||
break
|
||||
// 企标封存流程
|
||||
case ProcessKey.ES_ARCHIVE.value:
|
||||
path = '/workCenter/enterpriseStandardSealSave/enterpriseStandardSealSaveFlow'
|
||||
break
|
||||
// 已封存企标启用流程
|
||||
case ProcessKey.ES_ENABLE.value:
|
||||
path = '/workCenter/enterpriseStandardStartUse/enterpriseStandardStartUseFlow'
|
||||
break
|
||||
// 企标稽查计划
|
||||
case ProcessKey.ES_INSPECTION_PLAN.value:
|
||||
path = '/workCenter/EnterpriseStandardInspectionPlan'
|
||||
break
|
||||
// 企标稽查流程
|
||||
case ProcessKey.ES_INSPECTION_PROCESS.value:
|
||||
path = '/workCenter/EnterpriseStandardInspectionProcess'
|
||||
break
|
||||
// 稽查延期申请流程
|
||||
case ProcessKey.INSPECTION_EXTENSION_REQUEST_PROCESS.value:
|
||||
path = '/workCenter/InspectionExtensionRequestProcess'
|
||||
break
|
||||
// 企标稽查整改
|
||||
case ProcessKey.ES_INSPECTION_RECTIFICATION.value:
|
||||
path = '/workCenter/EnterpriseStandardInspectionRectification'
|
||||
break
|
||||
// 权限申请流程
|
||||
case ProcessKey.PERMISSION_APPLY.value:
|
||||
path = '/workCenter/PermissionApplicationProcess'
|
||||
break
|
||||
// 标准宣贯流程
|
||||
case ProcessKey.STANDARD_PROMOTION.value:
|
||||
path = '/workCenter/StandardPromotionProcess'
|
||||
break
|
||||
// 会后管理流程
|
||||
case ProcessKey.POST_MEETING_MANAGE.value:
|
||||
path = '/workCenter/PostMeetingManageProcess'
|
||||
break
|
||||
}
|
||||
const query = {}
|
||||
query.taskName = record.taskName
|
||||
query.taskId = record.taskId // 为了不影响部分节点的导出
|
||||
query.snapshotId = record.snapshotId // 快照id
|
||||
query.nodeId = record.nodeId // 节点的id
|
||||
query.isLook = 1
|
||||
this.$router.push({
|
||||
path: path,
|
||||
query: query
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user