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: 'lastTime', }, { title: '本月应收数据', dataIndex: 'planIncome', }, { title: '本月实收数据', dataIndex: 'actualIncome', }, { title: '数据完整率', dataIndex: 'completionRate', customRender({ record }) { if (record.actualIncome) { return (record.actualIncome*100/ record.planIncome).toFixed(2); } return null; }, }, { title: '监理单位', dataIndex: 'monitorCompany', }, ];