import { FormSchema } from '/@/components/Table';

export const dangerSourceForm: FormSchema[] = [
  {
    field: 'liableCompanyName',
    label: '责任单位',
    component: 'Select',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'areaName',
    label: '所属区域',
    component: 'Select',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'name',
    label: '危险源名称',
    component: 'Select',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },

  {
    field: 'typeName',
    label: '危险源类型',
    component: 'Select',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },

  {
    field: 'liableName',
    label: '责任人姓名',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },

  {
    field: 'liablePosition',
    label: '责任人职务',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      disabled: true,
    },
  },

  {
    field: 'liablePhone',
    label: '责任人电话',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      disabled: true,
    },
  },
  {
    field: 'contactName',
    label: '联系人姓名',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },

  {
    field: 'contactPosition',
    label: '联系人职务',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      disabled: true,
    },
  },

  {
    field: 'contactPhone',
    label: '联系人电话',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      disabled: true,
    },
  },

  {
    field: 'longitude',
    label: '经度',
    component: 'Input',
    required: true,
    colProps: { span: 13 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      width: 200,
    },
  },
  {
    field: 'latitude',
    label: '纬度',
    component: 'Input',
    required: true,
    colProps: { span: 13 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      width: 200,
    },
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    required: false,
    colProps: { span: 13 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      rows: 8,
      width: 200,
    },
  },
];
