| | |
| | | DICT_TYPE, |
| | | MesAutoCodeRuleCode, |
| | | MesDvMachineryStatusEnum, |
| | | } from '../../../../packages/constants/src'; |
| | | import { getDictOptions } from '../../../../packages/effects/hooks/src'; |
| | | } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | |
| | | import { Button } from 'ant-design-vue'; |
| | | |
| | |
| | | rules: z.number().default(MesDvMachineryStatusEnum.STOP), |
| | | }, |
| | | { |
| | | fieldName: 'productionEfficiency', |
| | | label: '生产效率', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | class: '!w-full', |
| | | min: 0, |
| | | precision: 2, |
| | | placeholder: '请输入生产效率(每小时)', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'conveyorBelt', |
| | | label: '传送履带', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | class: '!w-full', |
| | | min: 0, |
| | | precision: 0, |
| | | placeholder: '请输入传送履带数量', |
| | | }, |
| | | help: '2代表双倍效率', |
| | | }, |
| | | { |
| | | fieldName: 'specification', |
| | | label: '规格型号', |
| | | component: 'Input', |
| | |
| | | disabled: true, |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | dependencies: { |
| | | triggerFields: ['id'], |
| | |
| | | disabled: true, |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | showTime: true, |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | }, |
| | | dependencies: { |
| | | triggerFields: ['id'], |
| | |
| | | props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS }, |
| | | }, |
| | | }, |
| | | { field: 'productionEfficiency', title: '生产效率(/h)', width: 120 }, |
| | | { field: 'conveyorBelt', title: '传送履带', width: 100 }, |
| | | { |
| | | field: 'lastCheckTime', |
| | | title: '最近点检时间', |