fix : 修复专项资金/费用分摊,编辑,审批记录展示
This commit is contained in:
@@ -126,7 +126,8 @@
|
||||
</div>
|
||||
<div class="approval-record">
|
||||
<div class="approval-title">
|
||||
<baseTitle title="审批记录"></baseTitle>
|
||||
<baseTitle title="审批记录" v-if="processDiagramViewer&& opentionData.operationList"></baseTitle>
|
||||
<div v-else></div>
|
||||
<div style="display: flex;align-items: center;justify-content: flex-end;">
|
||||
<div class="base-title">流程图</div>
|
||||
<el-switch
|
||||
@@ -332,7 +333,7 @@ const handleResubmit = (instance) => {
|
||||
})
|
||||
}
|
||||
|
||||
const getDetailInfo = async () => {
|
||||
const getDetailInfo = () => {
|
||||
loading.value = true
|
||||
getAllocationDetail(route.query.id).then(res => {
|
||||
ElNotification({
|
||||
@@ -399,10 +400,10 @@ const init = async () => {
|
||||
const handleBack = () => {
|
||||
history.back()
|
||||
}
|
||||
onMounted(async () => {
|
||||
await init()
|
||||
onMounted( () => {
|
||||
init()
|
||||
if (route.query.id) {
|
||||
await getDetailInfo()
|
||||
getDetailInfo()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -27,23 +27,14 @@
|
||||
</template>
|
||||
</fvTable>
|
||||
<div class="approval-record">
|
||||
<div class="approval-title">
|
||||
<baseTitle title="审批记录"></baseTitle>
|
||||
<div style="display: flex;align-items: center;justify-content: flex-end;">
|
||||
<div class="base-title">流程图</div>
|
||||
<el-switch
|
||||
v-model="changeDiagram"
|
||||
style="--el-switch-on-color: #13ce66; --el-switch-off-color:#BEA266;margin-left: 10px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="process">
|
||||
<operation-render
|
||||
v-if="processDiagramViewer&& formData.operationList && formData.operationList.length > 0&&!changeDiagram"
|
||||
:operation-list="formData.operationList"
|
||||
:state="formData.state"/>
|
||||
<process-diagram-viewer mode="view" v-if="processDiagramViewer&&changeDiagram"/>
|
||||
<div style="display: flex;align-items: center;justify-content: flex-end;">
|
||||
<div class="base-title">流程图</div>
|
||||
<el-switch
|
||||
v-model="changeDiagram"
|
||||
style="--el-switch-on-color: #13ce66; --el-switch-off-color:#BEA266;margin-left: 10px"
|
||||
/>
|
||||
</div>
|
||||
<process-diagram-viewer mode="view" v-if="processDiagramViewer&&changeDiagram"/>
|
||||
</div>
|
||||
<div class="oper-page-btn">
|
||||
<el-button color="#DED0B2" v-if="routerName === 'Fund/add'" @click="handleSubmit(fundForm)">提交</el-button>
|
||||
@@ -55,14 +46,13 @@
|
||||
|
||||
<script setup lang="jsx">
|
||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
||||
import {ElMessageBox, ElNotification} from "element-plus";
|
||||
import {ElNotification} from "element-plus";
|
||||
import {addFund, resubmitFund, getFundDetail, getFundProcess} from "@/api/special-fund";
|
||||
import {useRouter} from "vue-router";
|
||||
import {useTagsView} from '@/stores/tagsview.js'
|
||||
import {useProcessStore} from '@/stores/processStore.js';
|
||||
import {downloadFile, deleteFile} from "@/api/project-demand";
|
||||
|
||||
import OperationRender from '@/views/workflow/common/OperationRender.vue'
|
||||
const changeDiagram = ref(false)
|
||||
const tagsViewStore = useTagsView()
|
||||
const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user