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