From 0de09389565900fbac36bcd67f15c063bc4a077e Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 12 May 2025 08:04:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=93=E5=BA=93=E8=8D=AF=E5=93=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/china-medicine/config/form.ts | 57 ------------------- 1 file changed, 57 deletions(-) diff --git a/apps/web-antd/src/views/business/product/china-medicine/config/form.ts b/apps/web-antd/src/views/business/product/china-medicine/config/form.ts index 6646ed74..29217d14 100644 --- a/apps/web-antd/src/views/business/product/china-medicine/config/form.ts +++ b/apps/web-antd/src/views/business/product/china-medicine/config/form.ts @@ -35,37 +35,6 @@ export const modalFormProps: VbenFormProps = { triggerFields: ['id'], }, }, - { - component: 'Avatar', - fieldName: 'image', - label: '产品图片', - rules: 'required', - formItemClass: 'col-span-6', - }, - { - component: 'ApiSelect', - componentProps: { - allowClear: true, - showSearch: true, - filterOption: (input: string, option: any) => { - // 自定义过滤逻辑,确保可以根据 name 进行搜索 - return option?.label.toLowerCase().indexOf(input.toLowerCase()) >= 0; - }, - // 菜单接口转options格式 - afterFetch: (data: { id: number; name: string }[]) => { - return data.map((item: any) => ({ - label: item.name, - value: item.id, - })); - }, - api: getSupplierOption, - placeholder: '请选择', - }, - fieldName: 'supplier_id', - formItemClass: 'col-span-6', - label: '所属供应商', - rules: 'required', - }, { component: 'VbenInput', componentProps: { @@ -96,16 +65,6 @@ export const modalFormProps: VbenFormProps = { label: '药品编号', rules: 'required', }, - { - component: 'VbenInput', - componentProps: { - placeholder: '请输入规格', - }, - fieldName: 'specification', - formItemClass: 'col-span-6', - label: '规格', - rules: 'required', - }, { component: 'VbenSelect', componentProps: { @@ -175,22 +134,6 @@ export const modalFormProps: VbenFormProps = { label: '商品状态', rules: 'required', }, - { - component: 'Textarea', - componentProps: { - placeholder: '请输入药品主治功能', - }, - fieldName: 'function', - label: '药品主治功能', - rules: 'required', - }, - { - component: 'Avatar', - fieldName: 'instruction', - label: '产品说明书', - rules: 'required', - formItemClass: 'col-span-6', - }, ], showDefaultActions: false, };