fix : 修复项目立项重新提交等操作替换到详情页面
This commit is contained in:
@@ -13,8 +13,15 @@
|
|||||||
@getAttachment="getAttachment"
|
@getAttachment="getAttachment"
|
||||||
@getOtherFile="getOtherFile" :showFileList="true" :formData="formData"
|
@getOtherFile="getOtherFile" :showFileList="true" :formData="formData"
|
||||||
:preview="route.query.state==3"/>
|
:preview="route.query.state==3"/>
|
||||||
|
<div v-if="route.query.state==3">
|
||||||
|
<baseTitle title="审批记录"></baseTitle>
|
||||||
|
<div class="process">
|
||||||
|
<operation-render v-if="processDiagramViewer" :operation-list="data.operationList"
|
||||||
|
:state="data.state"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<baseTitle title="流程"></baseTitle>
|
||||||
<div class="approval-record">
|
<div class="approval-record">
|
||||||
<baseTitle title="流程"></baseTitle>
|
|
||||||
<process-diagram-viewer mode="view" idName="projectApply" v-if="processDiagramViewer"/>
|
<process-diagram-viewer mode="view" idName="projectApply" v-if="processDiagramViewer"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="oper-page-btn">
|
<div class="oper-page-btn">
|
||||||
@@ -25,6 +32,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
|
import OperationRender from '@/views/workflow/common/OperationRender.vue'
|
||||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
||||||
import {ElNotification} from "element-plus";
|
import {ElNotification} from "element-plus";
|
||||||
import {getApplyProcess, projectApply, resubmitApply, getApplyDetail} from "@/api/project-manage";
|
import {getApplyProcess, projectApply, resubmitApply, getApplyDetail} from "@/api/project-manage";
|
||||||
@@ -42,6 +50,10 @@ const props = defineProps({
|
|||||||
showTable: {
|
showTable: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
type: Array,
|
||||||
|
default: []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
@@ -101,7 +113,7 @@ const handleSubmit = (instance) => {
|
|||||||
attachment.value.allFileList.forEach(item => {
|
attachment.value.allFileList.forEach(item => {
|
||||||
files.push(getFileParam(item))
|
files.push(getFileParam(item))
|
||||||
})
|
})
|
||||||
}else {
|
} else {
|
||||||
otherFileList.value.forEach(item => {
|
otherFileList.value.forEach(item => {
|
||||||
files.push(getFileParam(item))
|
files.push(getFileParam(item))
|
||||||
})
|
})
|
||||||
@@ -131,8 +143,8 @@ const handleSubmit = (instance) => {
|
|||||||
let res
|
let res
|
||||||
if (route.query.state === '3') {
|
if (route.query.state === '3') {
|
||||||
res = await resubmitApply(params)
|
res = await resubmitApply(params)
|
||||||
}else {
|
} else {
|
||||||
res = await projectApply(params)
|
res = await projectApply(params)
|
||||||
}
|
}
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<summary-detail v-show="showActive == '10'" :formData="commonForm.formData" :data="commonForm"
|
<summary-detail v-show="showActive == '10'" :formData="commonForm.formData" :data="commonForm"
|
||||||
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
|
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
|
||||||
v-model:value="auditOpinion"/>
|
v-model:value="auditOpinion"/>
|
||||||
<ApprovalDetail type="approval" v-show="showActive == '20'&&!showApply&&!showTabs" :formData="commonForm.formData"
|
<ApprovalDetail type="approval" v-show="showActive == '20'&&!showApply" :formData="commonForm.formData"
|
||||||
:data="commonForm" :processViewer="commonProvessViewer" :loading="loading"
|
:data="commonForm" :processViewer="commonProvessViewer" :loading="loading"
|
||||||
:fileListShow="fileListShow" v-model:value="auditOpinion"/>
|
:fileListShow="fileListShow" v-model:value="auditOpinion"/>
|
||||||
<ApprovalDetail type="execute" v-show="showActive == '40'" :formData="commonForm.formData"
|
<ApprovalDetail type="execute" v-show="showActive == '40'" :formData="commonForm.formData"
|
||||||
@@ -22,17 +22,7 @@
|
|||||||
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
|
<ApprovalDetail type="archivist" v-show="showActive == '50'" :formData="commonForm.formData" :data="commonForm"
|
||||||
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
|
:processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
|
||||||
v-model:value="auditOpinion"/>
|
v-model:value="auditOpinion"/>
|
||||||
<project-apply v-if="showApply"/>
|
<project-apply v-if="showApply" :data="commonForm"/>
|
||||||
<el-tabs v-if="showTabs" v-model="activeName">
|
|
||||||
<el-tab-pane label="详情" name="first">
|
|
||||||
<ApprovalDetail type="approval" idName="applyDetail" :formData="commonForm.formData"
|
|
||||||
:data="commonForm" :processViewer="commonProvessViewer" :loading="loading"
|
|
||||||
:fileListShow="fileListShow" v-model:value="auditOpinion"/>
|
|
||||||
</el-tab-pane>
|
|
||||||
<el-tab-pane label="重新提交" name="second">
|
|
||||||
<project-apply/>
|
|
||||||
</el-tab-pane>
|
|
||||||
</el-tabs>
|
|
||||||
</template>
|
</template>
|
||||||
</steps>
|
</steps>
|
||||||
<opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"
|
<opinion v-if="commonForm.taskId" :formData="commonForm.formData" :taskId="commonForm.taskId"
|
||||||
@@ -49,9 +39,7 @@ import {ElLoading, ElNotification} from "element-plus";
|
|||||||
import Opinion from "@/components/DetailComponent/Opinion.vue";
|
import Opinion from "@/components/DetailComponent/Opinion.vue";
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const activeName = ref('first')
|
|
||||||
const showApply = ref(false)
|
const showApply = ref(false)
|
||||||
const showTabs = ref(false)
|
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const processStore = useProcessStore()
|
const processStore = useProcessStore()
|
||||||
const fileListShow = ref('READ')
|
const fileListShow = ref('READ')
|
||||||
@@ -107,12 +95,10 @@ const changeModel = (active) => {
|
|||||||
if (route.query.state === '0' && active === '20') {
|
if (route.query.state === '0' && active === '20') {
|
||||||
showApply.value = true
|
showApply.value = true
|
||||||
} else if (route.query.state === '3' && active === '20') {
|
} else if (route.query.state === '3' && active === '20') {
|
||||||
//tab左侧详情, 右侧重新提交
|
showApply.value = true
|
||||||
showTabs.value = true
|
|
||||||
getAllInfo(active)
|
getAllInfo(active)
|
||||||
} else {
|
} else {
|
||||||
showApply.value = false
|
showApply.value = false
|
||||||
showTabs.value = false
|
|
||||||
getAllInfo(active)
|
getAllInfo(active)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user