fix : 修复项目实施阶段变更功能

This commit is contained in:
2024-06-09 20:03:26 +08:00
parent b0eabd9c39
commit a88ae09628
2 changed files with 15 additions and 13 deletions

View File

@@ -143,19 +143,18 @@ const handleSubmit = async () => {
} else {
attachment.value.clearValidate()
}
console.log('params-提交', params,userList.value)
// let res = await submitPhaseChange(params)
// ElNotification({
// title: '提示',
// message: res.msg,
// type: res.code === 1000 ? 'success' : 'error'
// })
// if (res.code === 1000) {
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
// await router.push({
// name: 'Implementation'
// })
// }
let res = await submitPhaseChange(params)
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
await router.push({
name: 'Implementation'
})
}
}
const handleResubmit = (instance) => {
let singleFile = {}

View File

@@ -1,5 +1,6 @@
<template>
<baseTitle title="阶段变更详情"></baseTitle>
<div style="color: #606266;font-size: 14px">抄送人{{copyName}}</div>
<ApprovalDetail :formData="summaryData.formData" :data="summaryData" type="phase"
:processViewer="summaryProcessViewer" :loading="loading" :fileListShow="fileListShow" v-model:value="auditOpinion"/>
<opinion v-if="summaryData.taskId" :formData="summaryData.formData" :taskId="summaryData.taskId" v-model:value="auditOpinion"></opinion>
@@ -16,6 +17,7 @@ const summaryProcessViewer = ref(true)
const processStore = useProcessStore()
const loading = ref(false)
const auditOpinion = ref('')
const copyName = ref('')
const fileListShow = ref('READ')
const getInfo = async () => {
fileListShow.value = 'READ'
@@ -25,6 +27,7 @@ const getInfo = async () => {
const {code, data, msg} = await getPhaseDetail(projectId)
if (code === 1000) {
summaryData.value = data;
copyName.value= data.formData.userInfoList.map(item=>item.name).join('')
loading.value = false
processStore.setDesign(data)
processStore.runningList.value = data.runningList;