import { BasicColumn, FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
  { title: '物料', align: 'center', dataIndex: 'materialId_dictText' },
  { title: 'ERP系统', align: 'center', dataIndex: 'erpSystemCode' },
  { title: 'ERP物料编码', align: 'center', dataIndex: 'erpMaterialCode' },
  { title: 'ERP物料名称', align: 'center', dataIndex: 'erpMaterialName' },
  { title: '状态', align: 'center', dataIndex: 'mappingStatus' },
];
export const searchFormSchema: FormSchema[] = [
  { label: 'ERP系统', field: 'erpSystemCode', component: 'Input', colProps: { span: 6 } },
  { label: 'ERP物料编码', field: 'erpMaterialCode', component: 'Input', colProps: { span: 6 } },
];
export const formSchema: FormSchema[] = [
  { label: '', field: 'id', component: 'Input', show: false },
  { label: '物料', field: 'materialId', component: 'JDictSelectTag', required: true, componentProps: { dictCode: 'mes_material,material_name,id' } },
  { label: 'ERP系统', field: 'erpSystemCode', component: 'Input', required: true },
  { label: 'ERP物料编码', field: 'erpMaterialCode', component: 'Input', required: true },
  { label: 'ERP物料名称', field: 'erpMaterialName', component: 'Input' },
  { label: '映射状态', field: 'mappingStatus', component: 'Select', defaultValue: 1, componentProps: { options: [{ label: '有效', value: 1 }, { label: '失效', value: 0 }] } },
  { label: '备注', field: 'remark', component: 'InputTextArea' },
];
