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

export const rescueCarForm: FormSchema[] = [
  {
    field: 'companyName',
    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: '',
    label: '车辆名称',
    component: 'Input',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入',
    },
  },
  {
    field: 'carTypeName',
    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: '请输入',
    },
  },
  {
    field: 'liablePhone',
    label: '责任人电话',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入',
    },
  },
  {
    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: '请输入',
    },
  },
  {
    field: 'contactPhone',
    label: '联系人电话',
    component: 'Input',
    required: true,
    colProps: { span: 8 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入',
    },
  },
  {
    field: 'current',
    label: '库存数量',
    component: 'InputNumber',
    required: true,
    colProps: { span: 12 },
    componentProps: {
      maxLength: 255,
      placeholder: '请输入',
    },
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    required: true,
    colProps: { span: 24 },
    componentProps: {
      maxLength: 255,
      placeholder: '',
      rows: 6,
      width: 200,
    },
  },
];
