From b3b0ab83f9183caf3cb9a644a6d21f14e99a4b5c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 19 Nov 2025 09:49: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=91=E5=85=AC=E6=B5=B7=E9=85=8D=E7=BD=AE=E7=9A=84=E8=BF=81?= =?UTF-8?q?=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/crm/customer/poolConfig/data.ts | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/apps/web-ele/src/views/crm/customer/poolConfig/data.ts b/apps/web-ele/src/views/crm/customer/poolConfig/data.ts index 461ef0125..5fa6e264f 100644 --- a/apps/web-ele/src/views/crm/customer/poolConfig/data.ts +++ b/apps/web-ele/src/views/crm/customer/poolConfig/data.ts @@ -1,5 +1,7 @@ import type { VbenFormSchema } from '#/adapter/form'; +import { z } from '#/adapter/form'; + export const schema: VbenFormSchema[] = [ { component: 'RadioGroup', @@ -13,35 +15,33 @@ export const schema: VbenFormSchema[] = [ }, }, { - component: 'InputNumber', + component: 'Input', fieldName: 'contactExpireDays', componentProps: { - min: 0, - precision: 0, - controlsPosition: 'right', + placeholder: '请输入天数', class: '!w-full', }, renderComponentContent: () => ({ - addonAfter: () => '天不跟进或', + append: () => '天不跟进或', }), + rules: z.coerce.number().int().min(0, '天数不能小于 0'), dependencies: { triggerFields: ['enabled'], show: (value) => value.enabled, }, }, { - component: 'InputNumber', + component: 'Input', fieldName: 'dealExpireDays', - renderComponentContent: () => ({ - addonBefore: () => '或', - addonAfter: () => '天未成交', - }), componentProps: { - min: 0, - precision: 0, - controlsPosition: 'right', + placeholder: '请输入天数', class: '!w-full', }, + renderComponentContent: () => ({ + prepend: () => '或', + append: () => '天未成交', + }), + rules: z.coerce.number().int().min(0, '天数不能小于 0'), dependencies: { triggerFields: ['enabled'], show: (value) => value.enabled, @@ -64,18 +64,17 @@ export const schema: VbenFormSchema[] = [ defaultValue: false, }, { - 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: (value) => value.enabled && value.notifyEnabled,