| | |
| | | field: "createTime", |
| | | title: "创建时间", |
| | | width: 180, |
| | | formatter: "formatDateTime", |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | title: "操作", |
| | |
| | | rules: "selectRequired", |
| | | }, |
| | | { |
| | | fieldName: "yieldRate", |
| | | label: "工序收率", |
| | | component: "InputNumber", |
| | | help: "产出量 ÷ 投入量。填写 0.98 表示 98%,1 表示无损耗;未填写按 100% 参与排产计算。", |
| | | componentProps: { |
| | | class: "!w-full", |
| | | min: 0.0001, |
| | | max: 1, |
| | | step: 0.01, |
| | | precision: 4, |
| | | placeholder: "如 0.98(98%)", |
| | | }, |
| | | rules: z.number().min(0.0001).max(1).nullish(), |
| | | }, |
| | | { |
| | | fieldName: "linkType", |
| | | label: "与下道工序关系", |
| | | component: "Select", |
| | |
| | | options: getDictOptions(DICT_TYPE.MES_PRO_LINK_TYPE, "number"), |
| | | placeholder: "请选择", |
| | | }, |
| | | rules: z.number().default(3), |
| | | rules: z.number().optional(), |
| | | }, |
| | | { |
| | | fieldName: "colorCode", |