| | |
| | | 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 function useImportFormSchema(): VbenFormSchema[] { |
| | | return [ |
| | | { |
| | | fieldName: 'file', |
| | | label: '分类数据', |
| | | component: 'Upload', |
| | | rules: 'required', |
| | | help: '仅允许导入 xls、xlsx 格式文件', |
| | | }, |
| | | { |
| | | fieldName: 'updateSupport', |
| | | label: '是否覆盖', |
| | | component: 'Switch', |
| | | componentProps: { |
| | | checkedChildren: '是', |
| | | unCheckedChildren: '否', |
| | | }, |
| | | rules: z.boolean().default(false), |
| | | help: '是否更新已经存在的分类数据', |
| | | }, |
| | | ]; |
| | | } |