| | |
| | | DICT_TYPE, |
| | | MesAutoCodeRuleCode, |
| | | MesItemOrProductEnum, |
| | | } from '..\..\..\..\..\packages\constants\src'; |
| | | import { getDictOptions } from '..\..\..\..\..\packages\effects\hooks\src'; |
| | | import { handleTree } from '..\..\..\..\..\packages\utils\src'; |
| | | } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | import { handleTree } from '@vben/utils'; |
| | | |
| | | import { Button } from 'ant-design-vue'; |
| | | |
| | |
| | | /** 表单类型 */ |
| | | export type FormType = 'create' | 'detail' | 'update'; |
| | | |
| | | /** 新增/修改物料分类的表单 */ |
| | | /** 新增/修改品种分类的表单 */ |
| | | export function useFormSchema( |
| | | formType: FormType, |
| | | formApi?: VbenFormApi, |
| | |
| | | }, |
| | | { |
| | | fieldName: 'itemOrProduct', |
| | | label: '物料/产品标识', |
| | | label: '品种/产品标识', |
| | | component: 'RadioGroup', |
| | | componentProps: { |
| | | buttonStyle: 'solid', |
| | |
| | | }, |
| | | { |
| | | field: 'itemOrProduct', |
| | | title: '物料/产品', |
| | | title: '品种/产品', |
| | | width: 130, |
| | | align: 'center', |
| | | cellRender: { |