104 lines
1.9 KiB
Vue
104 lines
1.9 KiB
Vue
<template>
|
|
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
|
<fvTable ref="tableIns" :tableConfig="tableConfig" @headBtnClick="headBtnClick">
|
|
<template #empty>
|
|
<el-empty description="暂无数据"/>
|
|
</template>
|
|
</fvTable>
|
|
</template>
|
|
|
|
<script setup lang="jsx">
|
|
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: 'datetime',
|
|
component: 'el-date-picker',
|
|
props: {
|
|
placeholder: '请选择起始时间',
|
|
clearable: true,
|
|
},
|
|
colProps: {}
|
|
}
|
|
])
|
|
const tableConfig = reactive({
|
|
columns: [
|
|
{
|
|
prop: 'name',
|
|
type: 'index',
|
|
label: '序号',
|
|
width:'80'
|
|
},
|
|
{
|
|
prop: 'name',
|
|
label: '时间',
|
|
align: 'center'
|
|
},
|
|
{
|
|
prop: 'projectType',
|
|
label: '项目费用',
|
|
align: 'center'
|
|
},
|
|
{
|
|
prop: 'productMainBody',
|
|
label: '研发阶段',
|
|
align: 'center'
|
|
},
|
|
{
|
|
prop: 'projectEffect',
|
|
label: '摘要',
|
|
align: 'center'
|
|
},
|
|
{
|
|
prop: 'survey',
|
|
label: '税后余额(元)',
|
|
align: 'center'
|
|
}
|
|
],
|
|
api: '',
|
|
params: {},
|
|
btns: [
|
|
{name: '上传费用', key: 'add', color: '#DED0B2',auth: ''}
|
|
]
|
|
})
|
|
const router = useRouter()
|
|
const headBtnClick = (key) => {
|
|
switch (key) {
|
|
case 'add':
|
|
handleUploadFee()
|
|
break;
|
|
}
|
|
}
|
|
const handleUploadFee = () => {
|
|
router.push({
|
|
name: 'Implementation/uploadFee',
|
|
query: {}
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|