From 96ea1f98c0dd3663e2af1688b2de9271c7621856 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sat, 14 Jun 2025 20:35:34 +0800 Subject: [PATCH] fix: product --- apps/web-antd/src/views/crm/product/data.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/crm/product/data.ts b/apps/web-antd/src/views/crm/product/data.ts index 2ccfe6dfd..b51855cb8 100644 --- a/apps/web-antd/src/views/crm/product/data.ts +++ b/apps/web-antd/src/views/crm/product/data.ts @@ -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: {