| | |
| | | |
| | | import { z } from '#/adapter/form'; |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { getItemList } from '#/api/mdm/item'; |
| | | import { getItemSimpleList } from '#/api/mdm/item'; |
| | | import { MdUnitMeasureSelect } from '#/views/mes/md/unitmeasure/components'; |
| | | import { QcIndicatorSelect } from '#/views/mes/qc/indicator/components'; |
| | | |
| | |
| | | placeholder: '请选择检测种类', |
| | | }, |
| | | rules: z.array(z.number()).min(1, '检测种类不能为空'), |
| | | }, |
| | | { |
| | | fieldName: 'defaultExecuteStandard', |
| | | label: '默认执行标准', |
| | | component: 'Input', |
| | | componentProps: { |
| | | maxlength: 50, |
| | | placeholder: '如 GB/T 6027,新建检验单选择本方案后自动带入执行标准', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'remark', |
| | |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'sortOrder', |
| | | title: '排序号', |
| | | width: 80, |
| | | }, |
| | | { |
| | | field: 'judgeFlag', |
| | | title: '参与判定', |
| | | width: 90, |
| | | slots: { default: 'judgeFlag' }, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | width: 130, |
| | | fixed: 'right', |
| | |
| | | componentProps: { |
| | | placeholder: '请输入说明图URL', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'sortOrder', |
| | | label: '排序号', |
| | | component: 'InputNumber', |
| | | defaultValue: 0, |
| | | componentProps: { |
| | | class: '!w-full', |
| | | min: 0, |
| | | precision: 0, |
| | | placeholder: '方案内展示顺序,小的在前', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'judgeFlag', |
| | | label: '参与判定', |
| | | component: 'Switch', |
| | | defaultValue: true, |
| | | componentProps: { |
| | | checkedChildren: '是', |
| | | unCheckedChildren: '否', |
| | | }, |
| | | help: '分组行/中间参数行设为否,仅最终结果项参与合格判定提示', |
| | | }, |
| | | { |
| | | fieldName: 'remark', |
| | |
| | | placeholder: '请选择产品物料', |
| | | allowClear: true, |
| | | showSearch: true, |
| | | api: getItemList, |
| | | api: getItemSimpleList, |
| | | labelField: 'name', |
| | | valueField: 'id', |
| | | optionRender: (option: any) => { |