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.
98 lines
1.7 KiB
98 lines
1.7 KiB
import { BasicColumn } from '@/components/Table';
|
|
import { FormSchema } from '@/components/Form';
|
|
// const statusOptions = [
|
|
// {
|
|
// label:'待派遣',
|
|
// value:0,
|
|
// },
|
|
// {
|
|
// label:'待接单',
|
|
// value:1,
|
|
// },
|
|
// {
|
|
// label:'处理中',
|
|
// value:2,
|
|
// },
|
|
// {
|
|
// label:'处理中(已延期)',
|
|
// value:2.1,
|
|
// },
|
|
// {
|
|
// label:'运维单位处理时回退至派遣',
|
|
// value:3,
|
|
// },
|
|
// {
|
|
// label:'初审',
|
|
// value:4,
|
|
// },
|
|
// {
|
|
// label:'终审',
|
|
// value:5,
|
|
// },
|
|
// {
|
|
// label:'结案',
|
|
// value:6,
|
|
// },
|
|
// ];
|
|
export const formSchemas: FormSchema[] = [
|
|
{
|
|
label: '点位名称',
|
|
field: 'faultLocation',
|
|
component: 'Input',
|
|
componentProps: {
|
|
placeholder: '输入点位',
|
|
},
|
|
},
|
|
{
|
|
field: 'contractName',
|
|
label: '合同名称',
|
|
component: 'Select',
|
|
componentProps: {
|
|
options: [],
|
|
style:{
|
|
width:'400px'
|
|
}
|
|
},
|
|
// colProps: { span:24},
|
|
},
|
|
];
|
|
|
|
export const columns: BasicColumn[] = [
|
|
{
|
|
title: '点位名称',
|
|
dataIndex: 'faultLocation',
|
|
width: '20%',
|
|
},
|
|
{
|
|
title: '所属合同',
|
|
dataIndex: 'contractName',
|
|
width: '20%',
|
|
},
|
|
{
|
|
title: '延期原因',
|
|
dataIndex: 'delayReason',
|
|
},
|
|
{
|
|
title: '延期前时间',
|
|
dataIndex: 'beforeDelayTime',
|
|
width: '12%',
|
|
},
|
|
{
|
|
title: '延期后时间',
|
|
dataIndex: 'afterDelayTime',
|
|
width: '12%',
|
|
},
|
|
{
|
|
title: '处理结果',
|
|
dataIndex: 'handleResult',
|
|
},
|
|
// {
|
|
// title: '当前状态',
|
|
// dataIndex: 'status',
|
|
// customRender: ({ value }) => {
|
|
// return statusOptions.find((i) => {
|
|
// return i.value == value;
|
|
// })?.label;
|
|
// },
|
|
// },
|
|
];
|
|
|