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

export const formSchemas: FormSchema[] = [
  {
    label: '项目id',
    field: 'projectId',
    component: 'Input',
  },
  {
    label: '电梯编号',
    field: 'elevatorNum',
    component: 'Input',
  },
  {
    label: '电梯名称',
    field: 'elevatorName',
    component: 'Input',
  },
  {
    label: '电梯地址',
    field: 'elevatorAddress',
    component: 'Input',
  },
  {
    label: '行政区域编号',
    field: 'areaCode',
    component: 'Input',
  },
  {
    label: '楼宇id',
    field: 'buildingId',
    component: 'Input',
  },
  {
    label: '小区id',
    field: 'houseId',
    component: 'Input',
  },
  {
    label: '使用场景;1：住宅  2：办公、3：商场超市 4：宾馆饭店、5：:医院、 6：学校:、7：交通场所:、8：:文娱场馆、9：其他场所:',
    field: 'useScenario',
    component: 'Input',
  },
  {
    label: '使用单位id',
    field: 'employId',
    component: 'Input',
  },
  {
    label: '物业单位id',
    field: 'tenementId',
    component: 'Input',
  },
  {
    label: '维保单位id',
    field: 'maintenanceId',
    component: 'Input',
  },
  {
    label: '品牌',
    field: 'brand',
    component: 'Input',
  },
  {
    label: '型号',
    field: 'model',
    component: 'Input',
  },
  {
    label: '额定载重',
    field: 'load',
    component: 'Input',
  },
  {
    label: '额定速度',
    field: 'speed',
    component: 'Input',
  },
  {
    label: '层站门数',
    field: 'standNum',
    component: 'Input',
  },
  {
    label: '控制方式;1:按钮”、2:信号”、3:集选”、4:群控”，',
    field: 'controlMode',
    component: 'Input',
  },
  {
    label: '安装日期',
    field: 'installDate',
    component: 'Input',
  },
  {
    label: '使用登记证号',
    field: 'registerNumber',
    component: 'Input',
  },
  {
    label: '经度',
    field: 'lng',
    component: 'Input',
  },
  {
    label: '纬度',
    field: 'lat',
    component: 'Input',
  },
  {
    label: '质监二维码',
    field: 'quality',
    component: 'Input',
  },
  {
    label: '年检日期',
    field: 'annualDate',
    component: 'Input',
  },
  {
    label: '下次年检',
    field: 'nextAnnual',
    component: 'Input',
  },
  {
    label: '电梯类型',
    field: 'type',
    component: 'Select',
  },
  {
    label: '使用状态;1:待用”、2:在用”、3:停用”',
    field: 'useState',
    component: 'Input',
  },
  {
    label: '注册代码',
    field: 'registerCode',
    component: 'Input',
  },
  {
    label: '救援站点',
    field: 'rescue',
    component: 'Input',
  },
  {
    label: '使用单位内部编码',
    field: 'innerCode',
    component: 'Input',
  },
  {
    label: '产权单位',
    field: 'propertyUnit',
    component: 'Input',
  },
  {
    label: '制造单位',
    field: 'manufactureUnit',
    component: 'Input',
  },
  {
    label: '制造单位统一社会信用代码',
    field: 'socialCreditCode',
    component: 'Input',
  },
  {
    label: '出厂编号',
    field: 'factoryNumber',
    component: 'Input',
  },
  {
    label: '安装单位',
    field: 'installUnit',
    component: 'Input',
  },
  {
    label: '检验机构',
    field: 'inspectionBody',
    component: 'Input',
  },
  {
    label: '特检码',
    field: 'specialCode',
    component: 'Input',
  },
  {
    label: '生产批次',
    field: 'productionBatch',
    component: 'Input',
  },
  {
    label: '出厂日期',
    field: 'leaveFactoryDate',
    component: 'Input',
  },
  {
    label: '生产厂家id',
    field: 'manufacturerId',
    component: 'Input',
  },
  {
    label: '节能类型;1:节能、2:非节能',
    field: 'energyType',
    component: 'Select',
  },
];

export const columns: BasicColumn[] = [
  {
    title: '主键id',
    dataIndex: 'id',
  },
  {
    title: '项目id',
    dataIndex: 'projectId',
  },
  {
    title: '电梯编号',
    dataIndex: 'elevatorNum',
  },
  {
    title: '电梯名称',
    dataIndex: 'elevatorName',
  },
  {
    title: '电梯地址',
    dataIndex: 'elevatorAddress',
  },
  {
    title: '行政区域编号',
    dataIndex: 'areaCode',
  },
  {
    title: '楼宇id',
    dataIndex: 'buildingId',
  },
  {
    title: '小区id',
    dataIndex: 'houseId',
  },
  {
    title: '使用场景;1：住宅  2：办公、3：商场超市 4：宾馆饭店、5：:医院、 6：学校:、7：交通场所:、8：:文娱场馆、9：其他场所:',
    dataIndex: 'useScenario',
  },
  {
    title: '使用单位id',
    dataIndex: 'employId',
  },
  {
    title: '物业单位id',
    dataIndex: 'tenementId',
  },
  {
    title: '维保单位id',
    dataIndex: 'maintenanceId',
  },
  {
    title: '品牌',
    dataIndex: 'brand',
  },
  {
    title: '型号',
    dataIndex: 'model',
  },
  {
    title: '额定载重',
    dataIndex: 'load',
  },
  {
    title: '额定速度',
    dataIndex: 'speed',
  },
  {
    title: '层站门数',
    dataIndex: 'standNum',
  },
  {
    title: '控制方式;1:按钮”、2:信号”、3:集选”、4:群控”，',
    dataIndex: 'controlMode',
  },
  {
    title: '安装日期',
    dataIndex: 'installDate',
  },
  {
    title: '使用登记证号',
    dataIndex: 'registerNumber',
  },
  {
    title: '经度',
    dataIndex: 'lng',
  },
  {
    title: '纬度',
    dataIndex: 'lat',
  },
  {
    title: '质监二维码',
    dataIndex: 'quality',
  },
  {
    title: '年检日期',
    dataIndex: 'annualDate',
  },
  {
    title: '下次年检',
    dataIndex: 'nextAnnual',
  },
  {
    title: '电梯类型',
    dataIndex: 'type',
  },
  {
    title: '使用状态;1:待用”、2:在用”、3:停用”',
    dataIndex: 'useState',
  },
  {
    title: '注册代码',
    dataIndex: 'registerCode',
  },
  {
    title: '救援站点',
    dataIndex: 'rescue',
  },
  {
    title: '使用单位内部编码',
    dataIndex: 'innerCode',
  },
  {
    title: '产权单位',
    dataIndex: 'propertyUnit',
  },
  {
    title: '制造单位',
    dataIndex: 'manufactureUnit',
  },
  {
    title: '制造单位统一社会信用代码',
    dataIndex: 'socialCreditCode',
  },
  {
    title: '出厂编号',
    dataIndex: 'factoryNumber',
  },
  {
    title: '安装单位',
    dataIndex: 'installUnit',
  },
  {
    title: '检验机构',
    dataIndex: 'inspectionBody',
  },
  {
    title: '特检码',
    dataIndex: 'specialCode',
  },
  {
    title: '生产批次',
    dataIndex: 'productionBatch',
  },
  {
    title: '出厂日期',
    dataIndex: 'leaveFactoryDate',
  },
  {
    title: '生产厂家id',
    dataIndex: 'manufacturerId',
  },
  {
    title: '节能类型;1:节能、2:非节能',
    dataIndex: 'energyType',
  },
  {
    title: '备注',
    dataIndex: 'remark',
  },
];

export const modalSchemas: FormSchema[] = [
  {
    label: '主键id',
    field: 'id',
    required: false,
    component: 'Input',
      show: false,
  },
  {
    label: '项目id',
    field: 'projectId',
    required: true,
    component: 'Input',
  },
  {
    label: '电梯编号',
    field: 'elevatorNum',
    required: true,
    component: 'Input',
  },
  {
    label: '电梯名称',
    field: 'elevatorName',
    required: true,
    component: 'Input',
  },
  {
    label: '电梯地址',
    field: 'elevatorAddress',
    required: true,
    component: 'Input',
  },
  {
    label: '行政区域编号',
    field: 'areaCode',
    required: true,
    component: 'Input',
  },
  {
    label: '楼宇id',
    field: 'buildingId',
    required: true,
    component: 'Input',
  },
  {
    label: '小区id',
    field: 'houseId',
    required: true,
    component: 'Input',
  },
  {
    label: '使用场景;1：住宅  2：办公、3：商场超市 4：宾馆饭店、5：:医院、 6：学校:、7：交通场所:、8：:文娱场馆、9：其他场所:',
    field: 'useScenario',
    required: true,
    component: 'Input',
  },
  {
    label: '使用单位id',
    field: 'employId',
    required: true,
    component: 'Input',
  },
  {
    label: '物业单位id',
    field: 'tenementId',
    required: true,
    component: 'Input',
  },
  {
    label: '维保单位id',
    field: 'maintenanceId',
    required: true,
    component: 'Input',
  },
  {
    label: '品牌',
    field: 'brand',
    required: true,
    component: 'Input',
  },
  {
    label: '型号',
    field: 'model',
    required: true,
    component: 'Input',
  },
  {
    label: '额定载重',
    field: 'load',
    required: true,
    component: 'Input',
  },
  {
    label: '额定速度',
    field: 'speed',
    required: true,
    component: 'Input',
  },
  {
    label: '层站门数',
    field: 'standNum',
    required: true,
    component: 'Input',
  },
  {
    label: '控制方式;1:按钮”、2:信号”、3:集选”、4:群控”，',
    field: 'controlMode',
    required: true,
    component: 'Input',
  },
  {
    label: '安装日期',
    field: 'installDate',
    required: true,
    component: 'Input',
  },
  {
    label: '使用登记证号',
    field: 'registerNumber',
    required: true,
    component: 'Input',
  },
  {
    label: '经度',
    field: 'lng',
    required: true,
    component: 'Input',
  },
  {
    label: '纬度',
    field: 'lat',
    required: true,
    component: 'Input',
  },
  {
    label: '质监二维码',
    field: 'quality',
    required: true,
    component: 'Input',
  },
  {
    label: '年检日期',
    field: 'annualDate',
    required: true,
    component: 'Input',
  },
  {
    label: '下次年检',
    field: 'nextAnnual',
    required: true,
    component: 'Input',
  },
  {
    label: '电梯类型',
    field: 'type',
    required: true,
    component: 'Select',
  },
  {
    label: '使用状态;1:待用”、2:在用”、3:停用”',
    field: 'useState',
    required: true,
    component: 'Input',
  },
  {
    label: '注册代码',
    field: 'registerCode',
    required: true,
    component: 'Input',
  },
  {
    label: '救援站点',
    field: 'rescue',
    required: true,
    component: 'Input',
  },
  {
    label: '使用单位内部编码',
    field: 'innerCode',
    required: true,
    component: 'Input',
  },
  {
    label: '产权单位',
    field: 'propertyUnit',
    required: true,
    component: 'Input',
  },
  {
    label: '制造单位',
    field: 'manufactureUnit',
    required: true,
    component: 'Input',
  },
  {
    label: '制造单位统一社会信用代码',
    field: 'socialCreditCode',
    required: true,
    component: 'Input',
  },
  {
    label: '出厂编号',
    field: 'factoryNumber',
    required: true,
    component: 'Input',
  },
  {
    label: '安装单位',
    field: 'installUnit',
    required: true,
    component: 'Input',
  },
  {
    label: '检验机构',
    field: 'inspectionBody',
    required: true,
    component: 'Input',
  },
  {
    label: '特检码',
    field: 'specialCode',
    required: true,
    component: 'Input',
  },
  {
    label: '生产批次',
    field: 'productionBatch',
    required: true,
    component: 'Input',
  },
  {
    label: '出厂日期',
    field: 'leaveFactoryDate',
    required: true,
    component: 'Input',
  },
  {
    label: '生产厂家id',
    field: 'manufacturerId',
    required: true,
    component: 'Input',
  },
  {
    label: '节能类型;1:节能、2:非节能',
    field: 'energyType',
    required: true,
    component: 'Select',
  },
  {
    label: '备注',
    field: 'remark',
    required: true,
    component: 'Input',
  },
];
