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