[update] 流程查看详情
This commit is contained in:
@@ -95,13 +95,14 @@ import { JeroListMixin } from '../mixins/JeroListMixin.js'
|
||||
import JTable from './jero/JTable.vue'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN } from '../store/mutation-types.js'
|
||||
import { downloadFile, getFileAccessHttpUrl, getAction } from '../api/manage.js'
|
||||
import { getFileAccessHttpUrl, getAction } from '../api/manage.js'
|
||||
import { previewPdf } from '../utils/previewPdf.js'
|
||||
import FlowChartModal from './FlowChartModal.vue'
|
||||
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']
|
||||
@@ -376,22 +377,23 @@ export default {
|
||||
// 跳转流程基本信息页面
|
||||
handleLookDetail (record) {
|
||||
let path = ''
|
||||
console.log('-------processKey', this.$route.query.processKey)
|
||||
// 跳转到对应流程页面
|
||||
switch (record.prcType + '') {
|
||||
switch (this.$route.query.processKey + '') {
|
||||
// 新法规导入流程
|
||||
case '1':
|
||||
case ProcessKey.NEW_REGULATIONS_IMPORT.value:
|
||||
path = '/workCenter/NewRegulationIntroductionProcess'
|
||||
break
|
||||
// 标准解读流程
|
||||
case '2':
|
||||
case ProcessKey.STANDARD_INTERPRETATION_PROCESS.value:
|
||||
path = '/workCenter/StandardInterpretationProcess'
|
||||
break
|
||||
// 法规符合性排查流程
|
||||
case '3':
|
||||
case ProcessKey.REGULATORY_COMPLIANCE_CHECK.value:
|
||||
path = '/workCenter/RegulatoryComplianceCheckProcess'
|
||||
break
|
||||
// 市场清单发布流程
|
||||
case '4':
|
||||
case ProcessKey.MARKET_LIST_RELEASE.value:
|
||||
path = '/workCenter/MarketListReleaseProcess'
|
||||
break
|
||||
}
|
||||
@@ -399,10 +401,10 @@ export default {
|
||||
query.taskName = record.taskName
|
||||
query.snapshotId = record.snapshotId // 快照id
|
||||
query.nodeId = record.nodeId // 节点的id
|
||||
query.isLook = 1
|
||||
this.$router.push({
|
||||
path: path,
|
||||
query: query,
|
||||
isLook: 1
|
||||
query: query
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,7 +165,8 @@ import {
|
||||
marketListReleaseReject,
|
||||
marketListReleaseSave,
|
||||
getDataDraft,
|
||||
processTransfer
|
||||
processTransfer,
|
||||
getLookData
|
||||
} from '@/api/workCenter'
|
||||
import pick from 'lodash.pick'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
@@ -233,6 +234,14 @@ export default {
|
||||
// 有草稿id,说明是从流程中心-草稿来的,需要初始化数据
|
||||
this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId })
|
||||
}
|
||||
if (this.$route.query.isLook + '' === '1') {
|
||||
// 是查看
|
||||
this.isLook = true
|
||||
// 人员信息全部不可选
|
||||
this.initPersonInfoData(false)
|
||||
// 查询数据
|
||||
this.getProcessData('look', { snapshotId: this.$route.query.snapshotId })
|
||||
}
|
||||
if (this.$route.query.taskName) {
|
||||
// 说明是已发起流程
|
||||
this.currentNodeName = this.$route.query.taskName
|
||||
@@ -329,6 +338,9 @@ export default {
|
||||
if (type === 'todo') {
|
||||
func = marketListReleaseGetDataById
|
||||
params = param.taskId
|
||||
} else if (type === 'look') {
|
||||
func = getLookData
|
||||
params = param
|
||||
} else {
|
||||
func = getDataDraft
|
||||
params = param
|
||||
@@ -380,7 +392,6 @@ export default {
|
||||
}
|
||||
}
|
||||
if (this.$refs.baseInfoRef) {
|
||||
|
||||
this.$refs.baseInfoRef.initData(this.draftModel ? this.draftModel.businessInfoDTO : this.model.businessInfoDTO)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user