Commit cf3e335f authored by 高滢's avatar 高滢

feat(年度): 统计

parent 1491eb5b
......@@ -30,7 +30,7 @@
import { BasicForm, FormActionType, useForm } from '@/components/Form';
import { useModal } from '@/components/Modal';
import { searchFormSchema } from './data';
import {searchFormSchema, searchSchema} from './data';
import PageCard from '@/components/Page/src/PageCard.vue';
import { useRouter } from 'vue-router';
import { getListAll } from '@/api/project/completed';
......@@ -47,12 +47,19 @@
const [registerForm, { getFieldsValue }] = useForm({
labelWidth: 90,
baseColProps: { span: 24 },
schemas: searchFormSchema,
schemas: searchSchema,
showActionButtonGroup: false,
});
const params = ref({ filingCycle: '2024', planType: '计划投资项目', company: '' });
const loadingRef = ref(false);
const columns = ref([]);
function setRowClassName(record) {
if (record.projectType === '总计') {
return 'rowcolor';
} else {
return;
}
}
function handleSubmit() {
let data = getFieldsValue();
......
......@@ -78,8 +78,7 @@ export const columns: (
width: 180,
},
];
export const searchFormSchema: FormSchema[] = [
export const searchSchema: FormSchema[] = [
{
field: 'filingCycle',
label: '',
......@@ -123,6 +122,50 @@ export const searchFormSchema: FormSchema[] = [
colProps: { span: 4 },
},
];
export const searchFormSchema: FormSchema[] = [
{
field: 'filingCycle',
label: '',
defaultValue: '',
component: 'DatePicker',
componentProps: {
placeholder: '选择填报周期',
picker: 'year',
valueFormat: 'YYYY',
format: 'YYYY',
style: { width: '100%' },
},
colProps: { span: 4 },
},
{
field: 'company',
label: '',
component: 'Select',
componentProps: {
options: [
{ label: '公司A', value: '0' },
{ label: '公司B', value: '1' },
{ label: '公司C', value: '2' },
],
placeholder: '公司名称',
},
colProps: { span: 4 },
},
{
field: 'planType',
label: '',
defaultValue: '计划投资项目',
component: 'Select',
componentProps: {
options: [
{ label: '计划投资项目', value: '计划投资项目' },
{ label: '已竣工验收项目', value: '已竣工验收项目' },
],
placeholder: '项目类型',
},
colProps: { span: 4 },
},
];
export const formSchema: FormSchema[] = [
// {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment