update 稽查延期申请

This commit is contained in:
danshihao
2023-11-28 18:19:31 +08:00
parent 51ee05e817
commit 554255bf20
14 changed files with 246 additions and 79 deletions
@@ -76,7 +76,7 @@
</div>
<!-- 人员信息 -->
<div v-show="switchValue === 'user'" class="detail-page-scroll-content p-0">
<process-detail-list>
<process-detail-list :process-key="processKey">
<template #personnelInfo>
<personnel-info ref="personnelInfo" :data="personnelInfoData" :current-node="currentNodeName" />
</template>
@@ -108,7 +108,7 @@ import ProcessDetailList from '@comp/ProcessDetailList'
import InspectionProcessTable
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessTable'
import UserSelectModal from '@comp/selection/UserSelectModal'
import { EsInspectionProcess, ProcessKey } from '@/enums/commonEnums'
import { EsInspectionPlan, EsInspectionProcess, ProcessKey } from '@/enums/commonEnums'
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
import {
approvalInspectProcess,
@@ -141,6 +141,8 @@ export default {
xs: { span: 24 },
sm: { span: 22 }
},
// 流程key
processKey: ProcessKey.ES_INSPECTION_PROCESS.value,
// 当前流程信息
EsInspectionProcess,
info: {},
@@ -192,9 +194,14 @@ export default {
this.currentNode = nodeId || EsInspectionProcess.initiate.value
this.currentNodeName = taskName || EsInspectionProcess.initiate.text
this.projectId = projectId
this.btn = EsInspectionProcess.propertyOfValue('btn', this.currentNode)
this.btn = EsInspectionProcess.propertyOfValue('btn', this.currentNode) || 0
// 如果有nodeId,但是匹配不到任何节点,就是是增加的审批节点
if (nodeId && !EsInspectionPlan.keyOfValue(nodeId)) {
// 审批和同意按钮
this.btn = 24
}
// 查询人员信息
this.getPersonInfoStructure(ProcessKey.ES_INSPECTION_PROCESS.value, () => {
this.getPersonInfoStructure(this.processKey, () => {
this.initPersonInfoData(this.currentNode === EsInspectionProcess.initiate.value)
})
// 如果是待办进来,就获取详情数据
@@ -225,7 +232,6 @@ export default {
*/
loadPage () {
const { projectId, taskId } = this.$route.query
this.btn = EsInspectionProcess.propertyOfValue('btn', this.currentNode)
this.loading = true
getInspectProcessDetail({
projectId,
@@ -142,7 +142,7 @@ export default {
const url = previewPdf(file.id)
this.iframeSrc = url
} else if (fileSuffix === 'docx') {
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/download/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.fileName}`
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/view/${file.id}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${file.fileName}`
// word文件仍使用KKFile进行预览
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
this.iframeSrc = url
@@ -211,6 +211,7 @@ export default {
},
edit (data, record) {
this.data = Object.assign({}, data)
this.model = Object.assign({}, record)
// 获取章节条款下拉
this.initSectionClauseList()
const { inspectContentId, requirement, executionStatus, attachment, evaluateScore } = record.enterpriseStandardInspectReport || {}
@@ -116,6 +116,7 @@ export default {
},
edit (data, record) {
this.data = Object.assign({}, data)
this.model = Object.assign({}, record)
this.form = Object.assign({}, record)
// 获取章节条款下拉
this.initSectionClauseList()
@@ -100,7 +100,7 @@ import InspectionProcessReport
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessReport'
import InspectionProcessRectificationPlan
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessRectificationPlan'
import { EsInspectionPlan, EsInspectionProcess } from '@/enums/commonEnums'
import { EsInspectionProcess } from '@/enums/commonEnums'
import { editInspectProcessTable } from '@api/workCenter'
import { getAction } from '@api/manage'
export default {
@@ -267,9 +267,6 @@ export default {
return
}
this.filters.projectId = this.projectId
if (this.currentNode === EsInspectionPlan.fillInComments.value) {
this.filters.nodeId = this.$route.query.nodeId
}
this.loadData()
}
}
@@ -128,10 +128,9 @@ export default {
]
}
},
created () {
},
methods: {
show (record) {
this.filters.inspectStatus = '1'
this.loadData()
this.model = Object.assign({}, record)
this.visible = true