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,97 @@
<template>
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
<fvTable ref="tableIns" :tableConfig="tableConfig">
<template #empty>
<el-empty description="暂无数据"/>
</template>
</fvTable>
</template>
<script setup lang="jsx">
const router = useRouter()
const route = useRoute()
const searchConfig = reactive([
{
label: '名称',
prop: 'requirementName',
component: 'el-input',
props: {
placeholder: '请输入名称查询',
clearable: true,
filterable: true,
checkStrictly: true
}
}, {
label: '项目费用',
prop: 'requirementName',
component: 'el-input',
props: {
placeholder: '请输入项目费用查询',
clearable: true,
filterable: true,
checkStrictly: true
}
},
{
label: '起始时间',
prop: 'time',
component: 'el-date-picker',
props: {
placeholder: '请选择起始时间',
clearable: true,
},
colProps: {}
},
])
const tableIns = ref()
const tableConfig = reactive({
columns: [
{
prop: 'name',
type: 'index',
label: '序号',
width:'80',
align: 'center'
},
{
prop: 'projectName',
label: '项目名称',
align: 'center'
},{
prop: 'time',
label: '时间',
align: 'center'
},
{
prop: 'projectCost',
label: '项目费用',
align: 'center'
},
{
prop: 'researchStage',
label: '研发阶段',
align: 'center'
},
{
prop: 'digest',
label: '摘要',
align: 'center'
},
{
prop: 'afterTax',
label: '税后余额(元)',
align: 'center'
}
],
api: '/workflow/mosr/expense/ledger',
params: {}
})
const search = (val) => {
tableConfig.params = {...val}
tableIns.value.refresh()
}
</script>
<style scoped>
</style>