干燥机配套车间生产管理系统/云平台前端
bsw215583320
2024-04-16 852e0f0918dc58b616cc81702efbfde3940866bb
src/views/dry/dataDefine/DryEqpType.data.ts
@@ -12,6 +12,21 @@
      align: 'center',
      dataIndex: 'name',
   },
   {
      title: '干燥效率',
      align: 'center',
      dataIndex: 'dryEfficiency',
   },
   {
      title: '蒸汽均耗',
      align: 'center',
      dataIndex: 'steamConsumption',
   },
   {
      title: '电能均耗',
      align: 'center',
      dataIndex: 'powerConsumption',
   },
]
//查询数据
export const searchFormSchema: FormSchema[] = [
@@ -46,6 +61,45 @@
         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: '',