fix: product

pull/142/MERGE
xingyu4j 2025-06-14 20:35:34 +08:00
parent 0eb81bd332
commit 96ea1f98c0
1 changed files with 12 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import { handleTree } from '@vben/utils';
import { z } from '#/adapter/form';
import { getProductCategoryList } from '#/api/crm/product/category';
import { getSimpleUserList } from '#/api/system/user';
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
/** 新增/修改的表单 */
@ -24,6 +25,16 @@ export function useFormSchema(): VbenFormSchema[] {
label: '产品名称',
rules: 'required',
},
{
component: 'ApiSelect',
fieldName: 'ownerUserId',
label: '负责人',
rules: 'required',
componentProps: {
api: getSimpleUserList,
fieldNames: { label: 'nickname', value: 'id' },
},
},
{
component: 'Input',
fieldName: 'no',
@ -32,7 +43,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
{
component: 'ApiTreeSelect',
fieldName: 'categoryName',
fieldName: 'categoryId',
label: '产品类型',
rules: 'required',
componentProps: {