fix : 修复费用管理功能细节

This commit is contained in:
2024-05-28 23:05:10 +08:00
parent 0ae84ba12e
commit 7f40296f3b
7 changed files with 677 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<template>
<expense-detail :formData="shareData.formData" :data="shareData" :showTable="showTable" :processViewer="shareProcessViewer"
:loading="loading"/>
</template>
<script setup lang="jsx">
import {ElNotification} from "element-plus";
import {useProcessStore} from '@/stores/processStore.js';
import {getAllocationDetail} from "@/api/expense-manage";
const processStore = useProcessStore()
const route = useRoute()
const shareData = ref({})
const shareProcessViewer = ref(true)
const showTable = ref(true)
const loading = ref(false)
const getDetail = async () => {
// const specialFundId = route.query.id
showTable.value = false
loading.value = true
const {code, data, msg} = await getAllocationDetail(12)
ElNotification({
title: '提示',
message: msg,
type: code === 1000 ? 'success' : 'error'
})
if (code === 1000) {
shareData.value = data
loading.value = false
nextTick(() => {
showTable.value = true
})
// if(data.operationList==null)return;
// processStore.setDesign(data)
// processStore.runningList.value = data.runningList;
// processStore.endList.value = data.endList;
// processStore.noTakeList.value = data.noTakeList;
// processStore.refuseList.value = data.refuseList;
// processStore.passList.value = data.passList;
}else {
loading.value = false
}
}
getDetail()
</script>
<style scoped>
</style>