| | |
| | | align: 'center', |
| | | dataIndex: 'name', |
| | | }, |
| | | { |
| | | title: '干燥效率', |
| | | align: 'center', |
| | | dataIndex: 'dryEfficiency', |
| | | }, |
| | | { |
| | | title: '蒸汽均耗', |
| | | align: 'center', |
| | | dataIndex: 'steamConsumption', |
| | | }, |
| | | { |
| | | title: '电能均耗', |
| | | align: 'center', |
| | | dataIndex: 'powerConsumption', |
| | | }, |
| | | ] |
| | | //查询数据 |
| | | export const searchFormSchema: FormSchema[] = [ |
| | |
| | | return [{ required: true, message: '请输入名称!' }, { ...rules.duplicateCheckRule('dry_eqp_type', 'name', model, schema)[0] }] |
| | | }, |
| | | }, |
| | | { |
| | | label: '干燥效率', |
| | | field: 'dryEfficiency', |
| | | component: 'Input', |
| | | dynamicRules: ({ model, schema }) => { |
| | | return [{ required: false }, { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!' }] |
| | | }, |
| | | renderComponentContent: () => { |
| | | return { |
| | | suffix: () => 'kg/h', |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: '蒸汽均耗', |
| | | field: 'steamConsumption', |
| | | component: 'Input', |
| | | dynamicRules: ({ model, schema }) => { |
| | | return [{ required: false }, { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!' }] |
| | | }, |
| | | renderComponentContent: () => { |
| | | return { |
| | | suffix: () => 'm³/kg', |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: '电能均耗', |
| | | field: 'powerConsumption', |
| | | component: 'Input', |
| | | dynamicRules: ({ model, schema }) => { |
| | | return [{ required: false }, { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!' }] |
| | | }, |
| | | renderComponentContent: () => { |
| | | return { |
| | | suffix: () => 'KWh/kg', |
| | | } |
| | | }, |
| | | }, |
| | | // TODO 主键隐藏字段,目前写死为ID |
| | | { |
| | | label: '', |