fix : 修复项目实施阶段变更功能
This commit is contained in:
@@ -143,19 +143,18 @@ const handleSubmit = async () => {
|
|||||||
} else {
|
} else {
|
||||||
attachment.value.clearValidate()
|
attachment.value.clearValidate()
|
||||||
}
|
}
|
||||||
console.log('params-提交', params,userList.value)
|
let res = await submitPhaseChange(params)
|
||||||
// let res = await submitPhaseChange(params)
|
ElNotification({
|
||||||
// ElNotification({
|
title: '提示',
|
||||||
// title: '提示',
|
message: res.msg,
|
||||||
// message: res.msg,
|
type: res.code === 1000 ? 'success' : 'error'
|
||||||
// type: res.code === 1000 ? 'success' : 'error'
|
})
|
||||||
// })
|
if (res.code === 1000) {
|
||||||
// if (res.code === 1000) {
|
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
||||||
// tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
await router.push({
|
||||||
// await router.push({
|
name: 'Implementation'
|
||||||
// name: 'Implementation'
|
})
|
||||||
// })
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
const handleResubmit = (instance) => {
|
const handleResubmit = (instance) => {
|
||||||
let singleFile = {}
|
let singleFile = {}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<baseTitle title="阶段变更详情"></baseTitle>
|
<baseTitle title="阶段变更详情"></baseTitle>
|
||||||
|
<div style="color: #606266;font-size: 14px">抄送人:{{copyName}}</div>
|
||||||
<ApprovalDetail :formData="summaryData.formData" :data="summaryData" type="phase"
|
<ApprovalDetail :formData="summaryData.formData" :data="summaryData" type="phase"
|
||||||
:processViewer="summaryProcessViewer" :loading="loading" :fileListShow="fileListShow" v-model:value="auditOpinion"/>
|
: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>
|
<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 processStore = useProcessStore()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const auditOpinion = ref('')
|
const auditOpinion = ref('')
|
||||||
|
const copyName = ref('')
|
||||||
const fileListShow = ref('READ')
|
const fileListShow = ref('READ')
|
||||||
const getInfo = async () => {
|
const getInfo = async () => {
|
||||||
fileListShow.value = 'READ'
|
fileListShow.value = 'READ'
|
||||||
@@ -25,6 +27,7 @@ const getInfo = async () => {
|
|||||||
const {code, data, msg} = await getPhaseDetail(projectId)
|
const {code, data, msg} = await getPhaseDetail(projectId)
|
||||||
if (code === 1000) {
|
if (code === 1000) {
|
||||||
summaryData.value = data;
|
summaryData.value = data;
|
||||||
|
copyName.value= data.formData.userInfoList.map(item=>item.name).join('')
|
||||||
loading.value = false
|
loading.value = false
|
||||||
processStore.setDesign(data)
|
processStore.setDesign(data)
|
||||||
processStore.runningList.value = data.runningList;
|
processStore.runningList.value = data.runningList;
|
||||||
|
|||||||
Reference in New Issue
Block a user