| | |
| | | |
| | | import { z } from '#/adapter/form'; |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { getTemplatePage } from '#/api/mes/pro/processdesign/template'; |
| | | import { |
| | | MdItemSelect, |
| | | MdProductBomSelect, |
| | |
| | | rules: 'selectRequired', |
| | | }, |
| | | { |
| | | fieldName: 'paramTemplateId', |
| | | label: '工艺参数模板', |
| | | component: 'ApiSelect', |
| | | componentProps: { |
| | | api: () => getTemplatePage({ pageNo: 1, pageSize: 100 }), |
| | | labelField: 'templateName', |
| | | valueField: 'id', |
| | | resultField: 'list', |
| | | allowClear: true, |
| | | placeholder: '请选择工艺参数模板', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'linkType', |
| | | label: '与下道工序关系', |
| | | component: 'Select', |