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

export const searchFormSchema: FormSchema[] = [
  {
    field: 'batchNo',
    label: '批次号',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'createDate',
    label: '创建时间',
    defaultValue: undefined,
    component: 'RangePicker',
    componentProps: {
      format: 'YYYY-MM-DD HH:mm:ss',
      style: { width: '100%' },
      getPopupContainer: () => document.body,
    },
  },
  {
    field: 'expiryDate',
    label: '过期日期',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'arrivalDate',
    label: '到厂日期',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'sender',
    label: '送车单位/个人',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'plateNumber',
    label: '车牌号',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'vehicleType',
    label: '车型',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'brandModel',
    label: '品牌型号',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'weightKg',
    label: '车重(kg)',
    defaultValue: undefined,
    component: 'InputNumber',
    componentProps: {
      style: { width: '100%' },
    },
  },
  {
    field: 'archiveResult',
    label: '核档结果',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'archiveDate',
    label: '核档日期',
    defaultValue: undefined,
    component: 'Input',
  },
  {
    field: 'inspector',
    label: '查验员',
    defaultValue: undefined,
    component: 'Input',
  },
];

export const columns: BasicColumn[] = [
  {
    title: '创建时间',
    resizable: true,
    dataIndex: 'createDate',
    componentType: 'date',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '批次号',
    resizable: true,
    dataIndex: 'batchNo',
    componentType: 'auto-code',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '序号',
    resizable: true,
    dataIndex: 'serialNumber',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '过期日期',
    resizable: true,
    dataIndex: 'expiryDate',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '到厂日期',
    resizable: true,
    dataIndex: 'arrivalDate',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '送车单位/个人',
    resizable: true,
    dataIndex: 'sender',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '车牌号',
    resizable: true,
    dataIndex: 'plateNumber',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '车型',
    resizable: true,
    dataIndex: 'vehicleType',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '品牌型号',
    resizable: true,
    dataIndex: 'brandModel',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '车重(kg)',
    resizable: true,
    dataIndex: 'weightKg',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '主线',
    resizable: true,
    dataIndex: 'mainLine',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '铝轮毂',
    resizable: true,
    dataIndex: 'aluminumWheel',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '电瓶',
    resizable: true,
    dataIndex: 'battery',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '水箱',
    resizable: true,
    dataIndex: 'radiator',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '发电机',
    resizable: true,
    dataIndex: 'generator',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '起动机',
    resizable: true,
    dataIndex: 'starter',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '压缩机',
    resizable: true,
    dataIndex: 'compressor',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '继电器',
    resizable: true,
    dataIndex: 'relay',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '电瓶接引线',
    resizable: true,
    dataIndex: 'batteryCable',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '三元催化',
    resizable: true,
    dataIndex: 'catalyticConverter',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '车架号',
    resizable: true,
    dataIndex: 'vin',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '五大总成',
    resizable: true,
    dataIndex: 'fiveMajorAssemblies',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '车牌数量',
    resizable: true,
    dataIndex: 'plateCount',
    componentType: 'computational',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: undefined,
  },
  {
    title: '核档结果',
    resizable: true,
    dataIndex: 'archiveResult',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '核档日期',
    resizable: true,
    dataIndex: 'archiveDate',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '查验员',
    resizable: true,
    dataIndex: 'inspector',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
  {
    title: '备注',
    resizable: true,
    dataIndex: 'remarks',
    componentType: 'input',
    fixed: false,
    sorter: true,
    styleConfig: undefined,
    listStyle: '',
  },
];
// 需要转换的字段列表（根据实际 dataIndex 补充）
const booleanFields = [
  'mainLine', // 主线
  'aluminumWheel', // 铝轮毂
  'battery', // 电瓶
  'radiator', // 水箱
  'generator', // 发电机
  'starter', // 起动机
  'compressor', // 压缩机
  'relay', // 继电器
  'batteryCable', // 电瓶接引线
  'catalyticConverter', // 三元催化
  'vin', // 车架号
  'fiveMajorAssemblies', // 五大总成
];

columns.forEach((col) => {
  if (typeof col.dataIndex === 'string' && booleanFields.includes(col.dataIndex)) {
    col.customRender = ({ text }) => {
      // 处理数字或字符串类型的 1/0
      if (text === 1 || text === '1') return '√';
      if (text === 0 || text === '0') return '×';
      return text; // 保留其他值
    };
  }
});
//表头合并配置
export const headerMergingData = [];
//表单事件
export const formEventConfigs = {
  0: [
    {
      type: 'circle',
      color: '#2774ff',
      text: '开始节点',
      icon: '#icon-kaishi',
      bgcColor: '#D8E5FF',
      isUserDefined: false,
    },
    {
      color: '#F6AB01',
      icon: '#icon-chushihua',
      text: '初始化表单',
      bgcColor: '#f9f5ea',
      isUserDefined: false,
      nodeInfo: { processEvent: [] },
    },
  ],
  1: [
    {
      color: '#B36EDB',
      icon: '#icon-shujufenxi',
      text: '获取表单数据',
      detail: '(新增无此操作)',
      bgcColor: '#F8F2FC',
      isUserDefined: false,
      nodeInfo: { processEvent: [] },
    },
  ],
  2: [
    {
      color: '#F8625C',
      icon: '#icon-jiazai',
      text: '加载表单',
      bgcColor: '#FFF1F1',
      isUserDefined: false,
      nodeInfo: { processEvent: [] },
    },
  ],
  3: [
    {
      color: '#6C6AE0',
      icon: '#icon-jsontijiao',
      text: '提交表单',
      bgcColor: '#F5F4FF',
      isUserDefined: false,
      nodeInfo: { processEvent: [] },
    },
  ],
  4: [
    {
      type: 'circle',
      color: '#F8625C',
      text: '结束节点',
      icon: '#icon-jieshuzhiliao',
      bgcColor: '#FFD6D6',
      isLast: true,
      isUserDefined: false,
    },
  ],
};
export const formProps: FormProps = {
  labelCol: { span: 6, offset: 0 },
  labelAlign: 'right',
  layout: 'vertical',
  size: 'default',
  schemas: [
    {
      key: 'cedc0f0f12f04615bc900247348c6536',
      field: 'id',
      label: 'id',
      type: 'input',
      component: 'Input',
      colProps: { span: 0 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入id',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: false,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '3f07319b71f04dbcb370fd945d3a80ce',
      field: 'createDate',
      label: '创建时间',
      type: 'date',
      component: 'DatePicker',
      colProps: { span: 0 },
      defaultValue: '',
      componentProps: {
        span: '',
        defaultValue: '',
        width: '100%',
        placeholder: '请选择创建时间',
        format: 'YYYY-MM-DD HH:mm:ss',
        showLabel: true,
        allowClear: true,
        disabled: false,
        required: false,
        isShow: false,
        rules: [],
        events: {},
        isGetCurrent: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        searchType: 'time',
        style: { width: '100%' },
      },
    },
    {
      key: '32e9d3f811404c18bf0aba9a92fa5c92',
      field: 'createUserId',
      label: '创建人',
      type: 'input',
      component: 'Input',
      colProps: { span: 0 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入创建人',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: false,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: 'ba386bc0280c401b8c186beaed32eea7',
      field: 'modifyDate',
      label: '最后修改时间',
      type: 'date',
      component: 'DatePicker',
      colProps: { span: 0 },
      defaultValue: '',
      componentProps: {
        span: '',
        defaultValue: '',
        width: '100%',
        placeholder: '请选择最后修改时间',
        format: 'YYYY-MM-DD HH:mm:ss',
        showLabel: true,
        allowClear: true,
        disabled: false,
        required: false,
        isShow: false,
        rules: [],
        events: {},
        isGetCurrent: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        searchType: 'time',
        style: { width: '100%' },
      },
    },
    {
      key: '797715b598224431a15350587b9bf7b9',
      field: 'modifyUserId',
      label: '最后修改人',
      type: 'input',
      component: 'Input',
      colProps: { span: 0 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入最后修改人',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: false,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '836618ba200a4cf4b79c614a3ebecd1d',
      field: 'batchNo',
      label: '批次号',
      type: 'auto-code',
      component: 'AutoCodeRule',
      colProps: { span: 6 },
      componentProps: {
        width: '100%',
        span: '',
        placeholder: '请输入批次号',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        showLabel: true,
        autoCodeRule: 'bfcrkpch',
        required: false,
        isShow: true,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '5fba1de769354e10b1f21938d2f2c72c',
      field: 'serialNumber',
      label: '序号',
      type: 'computational',
      component: 'Computation',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        span: '',
        width: '100%',
        defaultValue: 0,
        placeholder: '请输入序号',
        addonBefore: '',
        addonAfter: '',
        prefix: '',
        showLabel: true,
        disabled: false,
        subTotal: false,
        computationalConfig: [],
        computationalConfigValue: '== 请填写计算式配置 ==',
        beAdoptedComponent: [],
        decimals: 0,
        required: false,
        isShow: true,
        rules: [],
        events: {},
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '28342be3ce2444c4a6adea99ab35c360',
      field: 'expiryDate',
      label: '过期日期',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入过期日期',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '4ebdec5505c242658bcc95916512c8f4',
      field: 'arrivalDate',
      label: '到厂日期',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入到厂日期',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: 'ddbe4729591845ac974d8b10f34b1e34',
      field: 'sender',
      label: '送车单位/个人',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入送车单位/个人',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '91d46bc97ab340a1879cbfcf3d7a4664',
      field: 'plateNumber',
      label: '车牌号',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入车牌号',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '07e3959f2d5447bd80f521019f3df49e',
      field: 'vehicleType',
      label: '车型',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入车型',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: 'cb30020cbb644f64a7d531198eb42caa',
      field: 'brandModel',
      label: '品牌型号',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入品牌型号',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: 'b6c5cda8c7e5494eae6b77dbeca33d9a',
      field: 'weightKg',
      label: '车重(kg)',
      type: 'computational',
      component: 'Computation',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        span: '',
        width: '100%',
        defaultValue: 0,
        placeholder: '请输入车重(kg)',
        addonBefore: '',
        addonAfter: '',
        prefix: '',
        showLabel: true,
        disabled: false,
        subTotal: false,
        computationalConfig: [],
        computationalConfigValue: '== 请填写计算式配置 ==',
        beAdoptedComponent: [],
        decimals: 0,
        required: false,
        isShow: true,
        rules: [],
        events: {},
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '2b9fd584fa0f430b9f4a75afaad02d1e',
      field: 'mainLine',
      label: '主线',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: 'f37e54d3589d43128bc03976d1e419cc',
      field: 'aluminumWheel',
      label: '铝轮毂',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '60a54b170d5a45e2bd2d6d646cf61993',
      field: 'battery',
      label: '电瓶',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '9ea1014d00ab476895ba0c5b14b31178',
      field: 'radiator',
      label: '水箱',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '47967672c734459f984cd055bc794618',
      field: 'generator',
      label: '发电机',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: 'e1fb609e9cbd4572a63399f4119c5056',
      field: 'starter',
      label: '起动机',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '84f901d31c9f4060968a6bf3d63a8fa8',
      field: 'compressor',
      label: '压缩机',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '7e05f9dbaac748d1a543153e79f0c3bd',
      field: 'relay',
      label: '继电器',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '9a57ed42c501447082549a404b169cde',
      field: 'batteryCable',
      label: '电瓶接引线',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: 'f1f6a8561a1a4cca8d7aad4e97461449',
      field: 'catalyticConverter',
      label: '三元催化',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: 'dd0673c15f994371aaa55359eda4052c',
      field: 'vin',
      label: '车架号',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: 'e64f4cc1de08458fba950a876f35a727',
      field: 'fiveMajorAssemblies',
      label: '五大总成',
      type: 'Select',
      component: 'Select',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        defaultValue: 0,
        showLabel: true,
        disabled: false,
        required: false,
        isShow: true,
        options: [
          { label: '√', value: 1 },
          { label: '×', value: 0 },
        ],
        getPopupContainer: () => document.body,
      },
    },
    {
      key: '571af4a6d985413d9885742320684167',
      field: 'plateCount',
      label: '车牌数量',
      type: 'computational',
      component: 'Computation',
      colProps: { span: 6 },
      defaultValue: 0,
      componentProps: {
        span: '',
        width: '100%',
        defaultValue: 0,
        placeholder: '请输入车牌数量',
        addonBefore: '',
        addonAfter: '',
        prefix: '',
        showLabel: true,
        disabled: false,
        subTotal: false,
        computationalConfig: [],
        computationalConfigValue: '== 请填写计算式配置 ==',
        beAdoptedComponent: [],
        decimals: 0,
        required: false,
        isShow: true,
        rules: [],
        events: {},
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '7136fcc2c455488baa5dd6f9deac2cd0',
      field: 'archiveResult',
      label: '核档结果',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入核档结果',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: 'f6a297e076aa477b93234e4634a33905',
      field: 'archiveDate',
      label: '核档日期',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入核档日期',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: '38fc21bc5cb840b38780d2f0b0877337',
      field: 'inspector',
      label: '查验员',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入查验员',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
    {
      key: 'd025d08a14494e1c9faad8eedf9eb6a1',
      field: 'remarks',
      label: '备注',
      type: 'input',
      component: 'Input',
      colProps: { span: 6 },
      defaultValue: '',
      componentProps: {
        width: '100%',
        span: '',
        defaultValue: '',
        placeholder: '请输入备注',
        prefix: '',
        suffix: '',
        addonBefore: '',
        addonAfter: '',
        disabled: false,
        allowClear: false,
        showLabel: true,
        required: false,
        rules: [],
        events: {},
        listStyle: '',
        isSave: false,
        isShow: true,
        scan: false,
        bordered: true,
        isShowAi: false,
        tooltipConfig: { visible: false, title: '提示文本' },
        style: { width: '100%' },
      },
    },
  ],
  showActionButtonGroup: false,
  buttonLocation: 'center',
  actionColOptions: { span: 24 },
  showResetButton: false,
  showSubmitButton: false,
  hiddenComponent: [],
};

export const formButtons = [
  {
    key: 'confirm',
    code: 'confirm',
    name: '确定',
    style: 'primary',
    event: [],
    isShow: true,
    index: 2,
    type: 1,
  },
  {
    key: 'cancel',
    code: 'cancel',
    name: '取消',
    style: 'default',
    event: [],
    isShow: true,
    index: 1,
    type: 1,
  },
  {
    key: 'reset',
    code: 'reset',
    name: '重置',
    style: 'default',
    event: [],
    isShow: true,
    index: 0,
    type: 1,
  },
];
