You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.2 KiB
68 lines
1.2 KiB
2 weeks ago
|
import { BasicColumn } from '@/components/Table';
|
||
|
import { FormSchema } from '@/components/Form';
|
||
|
|
||
|
export const formSchemas: FormSchema[] = [
|
||
|
{
|
||
|
field: 'area',
|
||
|
label: '所在区域',
|
||
|
component: 'Select',
|
||
|
componentProps: {
|
||
|
options: [],
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
field: 'monitorCompany',
|
||
|
label: '监理公司',
|
||
|
component: 'Select',
|
||
|
componentProps: {
|
||
|
options: [
|
||
|
{
|
||
|
value: '宁波国研信息科技有限公司',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export const columns: BasicColumn[] = [
|
||
|
{
|
||
|
title: '站点',
|
||
|
dataIndex: 'station',
|
||
|
},
|
||
|
{
|
||
|
title: '所属区域',
|
||
|
dataIndex: 'area',
|
||
|
},
|
||
|
{
|
||
|
title: '状态',
|
||
|
dataIndex: 'status',
|
||
|
},
|
||
|
{
|
||
|
title: '运维单位',
|
||
|
dataIndex: 'ioCompany',
|
||
|
},
|
||
|
{
|
||
|
title: '本月应收数据',
|
||
|
dataIndex: 'planIncome',
|
||
|
},
|
||
|
{
|
||
|
title: '本月实收数据',
|
||
|
dataIndex: 'actualIncome',
|
||
|
},
|
||
|
{
|
||
|
title: '数据完整率',
|
||
|
dataIndex: 'completionRate',
|
||
|
customRender({ record }) {
|
||
|
if(record.actualIncome){
|
||
|
return record.actualIncome/record.planIncome;
|
||
|
}
|
||
|
return null;
|
||
|
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
title: '监理单位',
|
||
|
dataIndex: 'monitorCompany',
|
||
|
},
|
||
|
];
|