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, };