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

export const protectiveTargetForm: FormSchema[] = [
  {
    field: 'name',
    label: '防护目标名称',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'typeName',
    label: '性质',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'areaName',
    label: '所属区域',
    component: 'Select',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'companyName',
    label: '所属单位',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'contactName',
    label: '联系人姓名',
    component: 'Select',
    required: true,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'contactPosition',
    label: '联系人职务',
    component: 'Input',
    required: false,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'contactPhone',
    label: '联系人电话',
    component: 'Input',
    required: false,
    colProps: { span: 6 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'latitude',
    label: '经度',
    component: 'Input',
    required: true,
    colProps: { span: 13 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'longitude',
    label: '纬度',
    component: 'Input',
    required: true,
    colProps: { span: 13 },
    componentProps: {
      maxLength: 255,
      placeholder: '请选择',
    },
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    required: false,
    colProps: { span: 13 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      rows: 8,
      width: 200,
    },
  },
];
