From 4dc9ffdb2952f6d10d0e52afea5317d300e2d83f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 18 Nov 2025 19:52:27 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90ele=E3=80=91=E3=80=90crm?= =?UTF-8?q?=E3=80=91contract=20=E7=9A=84=E8=BF=81=E7=A7=BB=E5=AE=8C?= =?UTF-8?q?=E6=88=90=EF=BC=88config=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-ele/src/views/crm/contract/config/data.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/web-ele/src/views/crm/contract/config/data.ts b/apps/web-ele/src/views/crm/contract/config/data.ts index 8900429de..c45dc5045 100644 --- a/apps/web-ele/src/views/crm/contract/config/data.ts +++ b/apps/web-ele/src/views/crm/contract/config/data.ts @@ -1,5 +1,7 @@ import type { VbenFormSchema } from '#/adapter/form'; +import { z } from '#/adapter/form'; + export const schema: VbenFormSchema[] = [ { component: 'RadioGroup', @@ -14,18 +16,17 @@ export const schema: VbenFormSchema[] = [ defaultValue: true, }, { - component: 'InputNumber', + component: 'Input', fieldName: 'notifyDays', componentProps: { - min: 0, - precision: 0, - controlsPosition: 'right', + placeholder: '请输入天数', class: '!w-full', }, renderComponentContent: () => ({ - addonBefore: () => '提前', - addonAfter: () => '天提醒', + prepend: () => '提前', + append: () => '天提醒', }), + rules: z.coerce.number().int().min(0, '天数不能小于 0'), dependencies: { triggerFields: ['notifyEnabled'], show: (values) => values.notifyEnabled,