diff --git a/apps/web-antdv-next/src/api/member/user/index.ts b/apps/web-antdv-next/src/api/member/user/index.ts index e02f332ed..35229ad98 100644 --- a/apps/web-antdv-next/src/api/member/user/index.ts +++ b/apps/web-antdv-next/src/api/member/user/index.ts @@ -13,6 +13,7 @@ export namespace MemberUserApi { loginIp: string; mark: string; mobile: string; + email?: string; name?: string; nickname?: string; registerIp: string; diff --git a/apps/web-antdv-next/src/views/_core/profile/modules/user-social.vue b/apps/web-antdv-next/src/views/_core/profile/modules/user-social.vue index 0d6b6fd15..83446a8b2 100644 --- a/apps/web-antdv-next/src/views/_core/profile/modules/user-social.vue +++ b/apps/web-antdv-next/src/views/_core/profile/modules/user-social.vue @@ -105,9 +105,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ /** 解绑账号 */ function onUnbind(row: SystemSocialUserApi.SocialUser) { - confirm({ - content: `确定解绑[${getDictLabel(DICT_TYPE.SYSTEM_SOCIAL_TYPE, row.type)}]平台的[${row.openid}]账号吗?`, - }).then(async () => { + confirm(`确定解绑[${getDictLabel(DICT_TYPE.SYSTEM_SOCIAL_TYPE, row.type)}]平台的[${row.openid}]账号吗?`).then(async () => { await socialUnbind({ type: row.type, openid: row.openid }); // 提示成功 message.success($t('ui.actionMessage.operationSuccess')); diff --git a/apps/web-antdv-next/src/views/ai/chat/index/data.ts b/apps/web-antdv-next/src/views/ai/chat/index/data.ts index 90524574c..e29d891f3 100644 --- a/apps/web-antdv-next/src/views/ai/chat/index/data.ts +++ b/apps/web-antdv-next/src/views/ai/chat/index/data.ts @@ -17,7 +17,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'systemMessage', label: '角色设定', - component: 'TextArea', + component: 'Textarea', componentProps: { rows: 4, placeholder: '请输入角色设定', @@ -41,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '温度参数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入温度参数', precision: 2, min: 0, @@ -53,6 +54,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '回复数 Token 数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入回复数 Token 数', min: 0, max: 8192, @@ -64,6 +66,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '上下文数量', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入上下文数量', min: 0, max: 20, diff --git a/apps/web-antdv-next/src/views/ai/image/manager/index.vue b/apps/web-antdv-next/src/views/ai/image/manager/index.vue index 66bb21196..eb076fbfd 100644 --- a/apps/web-antdv-next/src/views/ai/image/manager/index.vue +++ b/apps/web-antdv-next/src/views/ai/image/manager/index.vue @@ -39,9 +39,7 @@ async function handleUpdatePublicStatusChange( ): Promise { const text = newStatus ? '公开' : '私有'; try { - await confirm({ - content: `确认要将该图片切换为【${text}】吗?`, - }); + await confirm(`确认要将该图片切换为【${text}】吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/ai/knowledge/document/data.ts b/apps/web-antdv-next/src/views/ai/knowledge/document/data.ts index 8debc0880..69ccd434e 100644 --- a/apps/web-antdv-next/src/views/ai/knowledge/document/data.ts +++ b/apps/web-antdv-next/src/views/ai/knowledge/document/data.ts @@ -28,7 +28,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'description', label: '知识库描述', - component: 'TextArea', + component: 'Textarea', componentProps: { rows: 3, placeholder: '请输入知识库描述', @@ -52,6 +52,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索 topK', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索 topK', min: 0, max: 10, @@ -63,6 +64,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索相似度阈值', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索相似度阈值', min: 0, max: 1, diff --git a/apps/web-antdv-next/src/views/ai/knowledge/document/index.vue b/apps/web-antdv-next/src/views/ai/knowledge/document/index.vue index 2c2d49cc5..b59b35f62 100644 --- a/apps/web-antdv-next/src/views/ai/knowledge/document/index.vue +++ b/apps/web-antdv-next/src/views/ai/knowledge/document/index.vue @@ -77,9 +77,7 @@ async function handleStatusChange( row: AiKnowledgeDocumentApi.KnowledgeDocument, ): Promise { try { - await confirm({ - content: `你要将${row.name}的状态切换为【${getDictLabel(DICT_TYPE.COMMON_STATUS, newStatus)}】吗?`, - }); + await confirm(`你要将${row.name}的状态切换为【${getDictLabel(DICT_TYPE.COMMON_STATUS, newStatus)}】吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/ai/knowledge/knowledge/data.ts b/apps/web-antdv-next/src/views/ai/knowledge/knowledge/data.ts index 1a87fb3c7..6c4cd03dc 100644 --- a/apps/web-antdv-next/src/views/ai/knowledge/knowledge/data.ts +++ b/apps/web-antdv-next/src/views/ai/knowledge/knowledge/data.ts @@ -31,7 +31,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'description', label: '知识库描述', - component: 'TextArea', + component: 'Textarea', componentProps: { rows: 3, placeholder: '请输入知识库描述', @@ -55,6 +55,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索 topK', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索 topK', min: 0, max: 10, @@ -66,6 +67,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '检索相似度阈值', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入检索相似度阈值', min: 0, max: 1, diff --git a/apps/web-antdv-next/src/views/ai/knowledge/segment/index.vue b/apps/web-antdv-next/src/views/ai/knowledge/segment/index.vue index 836878c9f..ba3d1cf97 100644 --- a/apps/web-antdv-next/src/views/ai/knowledge/segment/index.vue +++ b/apps/web-antdv-next/src/views/ai/knowledge/segment/index.vue @@ -65,9 +65,7 @@ async function handleStatusChange( row: AiKnowledgeSegmentApi.KnowledgeSegment, ): Promise { try { - await confirm({ - content: `你要将片段 ${row.id} 的状态切换为【${getDictLabel(DICT_TYPE.COMMON_STATUS, newStatus)}】吗?`, - }); + await confirm(`你要将片段 ${row.id} 的状态切换为【${getDictLabel(DICT_TYPE.COMMON_STATUS, newStatus)}】吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/ai/model/chatRole/data.ts b/apps/web-antdv-next/src/views/ai/model/chatRole/data.ts index 854f3caf7..b57bf56f9 100644 --- a/apps/web-antdv-next/src/views/ai/model/chatRole/data.ts +++ b/apps/web-antdv-next/src/views/ai/model/chatRole/data.ts @@ -77,7 +77,7 @@ export function useFormSchema(): VbenFormSchema[] { }, }, { - component: 'TextArea', + component: 'Textarea', fieldName: 'description', label: '角色描述', componentProps: { @@ -88,7 +88,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'systemMessage', label: '角色设定', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入角色设定', }, @@ -154,6 +154,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '角色排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入角色排序', }, dependencies: { diff --git a/apps/web-antdv-next/src/views/ai/model/model/data.ts b/apps/web-antdv-next/src/views/ai/model/model/data.ts index 1ef554c59..8680a0c5b 100644 --- a/apps/web-antdv-next/src/views/ai/model/model/data.ts +++ b/apps/web-antdv-next/src/views/ai/model/model/data.ts @@ -84,6 +84,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '模型排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入模型排序', }, rules: 'required', @@ -104,6 +105,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '温度参数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入温度参数', min: 0, max: 2, @@ -121,6 +123,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '回复数 Token 数', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 8192, placeholder: '请输入回复数 Token 数', @@ -138,6 +141,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '上下文数量', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, max: 20, placeholder: '请输入上下文数量', diff --git a/apps/web-antdv-next/src/views/ai/music/manager/index.vue b/apps/web-antdv-next/src/views/ai/music/manager/index.vue index f29075cd6..083bc587a 100644 --- a/apps/web-antdv-next/src/views/ai/music/manager/index.vue +++ b/apps/web-antdv-next/src/views/ai/music/manager/index.vue @@ -39,9 +39,7 @@ async function handleUpdatePublicStatusChange( ): Promise { const text = newStatus ? '公开' : '私有'; try { - await confirm({ - content: `确认要将该音乐切换为【${text}】吗?`, - }); + await confirm(`确认要将该音乐切换为【${text}】吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/bpm/category/data.ts b/apps/web-antdv-next/src/views/bpm/category/data.ts index d106fc949..6407ada71 100644 --- a/apps/web-antdv-next/src/views/bpm/category/data.ts +++ b/apps/web-antdv-next/src/views/bpm/category/data.ts @@ -39,7 +39,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'description', label: '分类描述', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入分类描述', }, @@ -60,6 +60,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '分类排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入分类排序', }, diff --git a/apps/web-antdv-next/src/views/bpm/components/bpmn-process-designer/package/designer/ProcessViewer.vue b/apps/web-antdv-next/src/views/bpm/components/bpmn-process-designer/package/designer/ProcessViewer.vue index 93483d382..24c7b676b 100644 --- a/apps/web-antdv-next/src/views/bpm/components/bpmn-process-designer/package/designer/ProcessViewer.vue +++ b/apps/web-antdv-next/src/views/bpm/components/bpmn-process-designer/package/designer/ProcessViewer.vue @@ -5,7 +5,7 @@ import { BpmProcessInstanceStatus, DICT_TYPE } from '@vben/constants'; import { UndoOutlined, ZoomInOutlined, ZoomOutOutlined } from '@vben/icons'; import { formatDate, formatPast2 } from '@vben/utils'; -import { Button, Modal, Row, Space, Table } from 'antdv-next'; +import { Button, Modal, Row, Table } from 'antdv-next'; import BpmnViewer from 'bpmn-js/lib/Viewer'; import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas'; @@ -13,6 +13,8 @@ import { DictTag } from '#/components/dict-tag'; import '../theme/index.scss'; +const ButtonGroup = Button.Group; + const props = defineProps({ xml: { type: String, @@ -437,7 +439,7 @@ onBeforeUnmount(() => {
- +
diff --git a/apps/web-antdv-next/src/views/crm/backlog/modules/clue-follow-list.vue b/apps/web-antdv-next/src/views/crm/backlog/modules/clue-follow-list.vue index 709fe04b4..95256a180 100644 --- a/apps/web-antdv-next/src/views/crm/backlog/modules/clue-follow-list.vue +++ b/apps/web-antdv-next/src/views/crm/backlog/modules/clue-follow-list.vue @@ -45,6 +45,7 @@ const [Grid] = useVbenVxeGrid({ return await getCluePage({ pageNo: page.currentPage, pageSize: page.pageSize, + sceneType: 1, transformStatus: false, ...formValues, }); diff --git a/apps/web-antdv-next/src/views/crm/business/components/detail-list.vue b/apps/web-antdv-next/src/views/crm/business/components/detail-list.vue index d2f21c211..9b587087b 100644 --- a/apps/web-antdv-next/src/views/crm/business/components/detail-list.vue +++ b/apps/web-antdv-next/src/views/crm/business/components/detail-list.vue @@ -75,9 +75,7 @@ async function handleDeleteContactBusinessList() { return; } try { - await confirm({ - content: `确定要将${checkedRows.value.map((item) => item.name).join(',')}解除关联吗?`, - }); + await confirm(`确定要将${checkedRows.value.map((item) => item.name).join(',')}解除关联吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/crm/business/data.ts b/apps/web-antdv-next/src/views/crm/business/data.ts index ab71445ec..818f1a0af 100644 --- a/apps/web-antdv-next/src/views/crm/business/data.ts +++ b/apps/web-antdv-next/src/views/crm/business/data.ts @@ -118,6 +118,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '产品总金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, disabled: true, @@ -130,6 +131,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '整单折扣(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入整单折扣', @@ -141,6 +143,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '折扣后金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, disabled: true, diff --git a/apps/web-antdv-next/src/views/crm/clue/detail/index.vue b/apps/web-antdv-next/src/views/crm/clue/detail/index.vue index 18a762864..efe5b08e0 100644 --- a/apps/web-antdv-next/src/views/crm/clue/detail/index.vue +++ b/apps/web-antdv-next/src/views/crm/clue/detail/index.vue @@ -8,7 +8,7 @@ import { useRoute, useRouter } from 'vue-router'; import { confirm, Page, useVbenModal } from '@vben/common-ui'; import { useTabs } from '@vben/hooks'; -import { Card, message, TabPane, Tabs } from 'antdv-next'; +import { Card, message, Tabs } from 'antdv-next'; import { getClue, transformClue } from '#/api/crm/clue'; import { getOperateLogPage } from '#/api/crm/operateLog'; @@ -84,9 +84,7 @@ function handleTransfer() { /** 转化为客户 */ async function handleTransform(): Promise { try { - await confirm({ - content: '确定将该线索转化为客户吗?', - }); + await confirm('确定将该线索转化为客户吗?'); } catch { return false; } @@ -146,13 +144,13 @@ onMounted(() => { - + - - + + - - + + { :show-action="true" @quit-team="handleBack" /> - - + + - + diff --git a/apps/web-antdv-next/src/views/crm/contact/components/detail-list.vue b/apps/web-antdv-next/src/views/crm/contact/components/detail-list.vue index 3948a4282..96165dfd0 100644 --- a/apps/web-antdv-next/src/views/crm/contact/components/detail-list.vue +++ b/apps/web-antdv-next/src/views/crm/contact/components/detail-list.vue @@ -72,9 +72,7 @@ async function handleDeleteContactBusinessList() { return; } try { - await confirm({ - content: `确定要将${checkedRows.value.map((item) => item.name).join(',')}解除关联吗?`, - }); + await confirm(`确定要将${checkedRows.value.map((item) => item.name).join(',')}解除关联吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/crm/contract/config/data.ts b/apps/web-antdv-next/src/views/crm/contract/config/data.ts index 2792b3601..ad6b5642c 100644 --- a/apps/web-antdv-next/src/views/crm/contract/config/data.ts +++ b/apps/web-antdv-next/src/views/crm/contract/config/data.ts @@ -17,6 +17,7 @@ export const schema: VbenFormSchema[] = [ component: 'InputNumber', fieldName: 'notifyDays', componentProps: { + class: '!w-full', min: 0, precision: 0, }, diff --git a/apps/web-antdv-next/src/views/crm/contract/data.ts b/apps/web-antdv-next/src/views/crm/contract/data.ts index 9f47ad0d9..ffed30269 100644 --- a/apps/web-antdv-next/src/views/crm/contract/data.ts +++ b/apps/web-antdv-next/src/views/crm/contract/data.ts @@ -181,7 +181,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', rows: 4, @@ -198,6 +198,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '产品总金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入产品总金额', @@ -209,6 +210,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '整单折扣(%)', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, placeholder: '请输入整单折扣', @@ -220,6 +222,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '折扣后金额', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, precision: 2, disabled: true, diff --git a/apps/web-antdv-next/src/views/crm/customer/detail/index.vue b/apps/web-antdv-next/src/views/crm/customer/detail/index.vue index c7ffc4a10..5d50b253c 100644 --- a/apps/web-antdv-next/src/views/crm/customer/detail/index.vue +++ b/apps/web-antdv-next/src/views/crm/customer/detail/index.vue @@ -8,7 +8,7 @@ import { useRoute, useRouter } from 'vue-router'; import { confirm, Page, useVbenModal } from '@vben/common-ui'; import { useTabs } from '@vben/hooks'; -import { Card, message, TabPane, Tabs } from 'antdv-next'; +import { Card, message, Tabs } from 'antdv-next'; import { getCustomer, @@ -102,9 +102,7 @@ function handleTransfer() { /** 锁定客户 */ async function handleLock(lockStatus: boolean): Promise { try { - await confirm({ - content: `确定锁定客户【${customer.value.name}】吗?`, - }); + await confirm(`确定锁定客户【${customer.value.name}】吗?`); } catch { return false; } @@ -118,9 +116,7 @@ async function handleLock(lockStatus: boolean): Promise { /** 领取客户 */ async function handleReceive(): Promise { try { - await confirm({ - content: `确定领取客户【${customer.value.name}】吗?`, - }); + await confirm(`确定领取客户【${customer.value.name}】吗?`); } catch { return false; } @@ -139,9 +135,7 @@ function handleDistributeForm() { /** 客户放入公海 */ async function handlePutPool(): Promise { try { - await confirm({ - content: `确定将客户【${customer.value.name}】放入公海吗?`, - }); + await confirm(`确定将客户【${customer.value.name}】放入公海吗?`); } catch { return false; } @@ -156,9 +150,7 @@ async function handlePutPool(): Promise { async function handleUpdateDealStatus(): Promise { const dealStatus = !customer.value.dealStatus; try { - await confirm({ - content: `确定更新成交状态为【${dealStatus ? '已成交' : '未成交'}】吗?`, - }); + await confirm(`确定更新成交状态为【${dealStatus ? '已成交' : '未成交'}】吗?`); } catch { return false; } @@ -250,20 +242,20 @@ onMounted(() => { - + - - + + - - + + - - + + { :show-action="true" @quit-team="handleBack" /> - - + + - - + + - - + + - - + + - + diff --git a/apps/web-antdv-next/src/views/crm/customer/limitConfig/data.ts b/apps/web-antdv-next/src/views/crm/customer/limitConfig/data.ts index 914116b16..afcf66ce6 100644 --- a/apps/web-antdv-next/src/views/crm/customer/limitConfig/data.ts +++ b/apps/web-antdv-next/src/views/crm/customer/limitConfig/data.ts @@ -65,6 +65,7 @@ export function useFormSchema(confType: LimitConfType): VbenFormSchema[] { : '锁定客户数上限', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: `请输入${ LimitConfType.CUSTOMER_QUANTITY_LIMIT === confType ? '拥有客户数上限' diff --git a/apps/web-antdv-next/src/views/crm/customer/poolConfig/data.ts b/apps/web-antdv-next/src/views/crm/customer/poolConfig/data.ts index 86fd9f82f..8c5bbadf6 100644 --- a/apps/web-antdv-next/src/views/crm/customer/poolConfig/data.ts +++ b/apps/web-antdv-next/src/views/crm/customer/poolConfig/data.ts @@ -16,6 +16,7 @@ export const schema: VbenFormSchema[] = [ component: 'InputNumber', fieldName: 'contactExpireDays', componentProps: { + class: '!w-full', min: 0, precision: 0, }, @@ -35,6 +36,7 @@ export const schema: VbenFormSchema[] = [ addonAfter: () => '天未成交', }), componentProps: { + class: '!w-full', min: 0, precision: 0, }, @@ -63,6 +65,7 @@ export const schema: VbenFormSchema[] = [ component: 'InputNumber', fieldName: 'notifyDays', componentProps: { + class: '!w-full', min: 0, precision: 0, }, diff --git a/apps/web-antdv-next/src/views/crm/permission/modules/list.vue b/apps/web-antdv-next/src/views/crm/permission/modules/list.vue index 8fb577ca2..390833ad6 100644 --- a/apps/web-antdv-next/src/views/crm/permission/modules/list.vue +++ b/apps/web-antdv-next/src/views/crm/permission/modules/list.vue @@ -100,9 +100,7 @@ async function handleDelete() { return; } try { - await confirm({ - content: `你要将${checkedRows.value.map((item) => item.nickname).join(',')}移出团队吗?`, - }); + await confirm(`你要将${checkedRows.value.map((item) => item.nickname).join(',')}移出团队吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/crm/permission/modules/transfer-form.vue b/apps/web-antdv-next/src/views/crm/permission/modules/transfer-form.vue index 16bedd341..c727e9856 100644 --- a/apps/web-antdv-next/src/views/crm/permission/modules/transfer-form.vue +++ b/apps/web-antdv-next/src/views/crm/permission/modules/transfer-form.vue @@ -100,7 +100,6 @@ const [Modal, modalApi] = useVbenModal({ }, async onOpenChange(isOpen: boolean) { if (!isOpen) { - await formApi.resetForm(); return; } // 加载数据 diff --git a/apps/web-antdv-next/src/views/crm/product/data.ts b/apps/web-antdv-next/src/views/crm/product/data.ts index 256064032..5dd7d4565 100644 --- a/apps/web-antdv-next/src/views/crm/product/data.ts +++ b/apps/web-antdv-next/src/views/crm/product/data.ts @@ -92,6 +92,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '价格(元)', rules: 'required', componentProps: { + class: '!w-full', min: 0, precision: 2, step: 0.1, @@ -99,7 +100,7 @@ export function useFormSchema(): VbenFormSchema[] { }, }, { - component: 'TextArea', + component: 'Textarea', fieldName: 'description', label: '产品描述', componentProps: { diff --git a/apps/web-antdv-next/src/views/crm/receivable/data.ts b/apps/web-antdv-next/src/views/crm/receivable/data.ts index 8efece8db..eacd97c34 100644 --- a/apps/web-antdv-next/src/views/crm/receivable/data.ts +++ b/apps/web-antdv-next/src/views/crm/receivable/data.ts @@ -141,6 +141,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', placeholder: '请输入回款金额', min: 0, precision: 2, @@ -161,7 +162,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', rows: 4, diff --git a/apps/web-antdv-next/src/views/crm/receivable/plan/data.ts b/apps/web-antdv-next/src/views/crm/receivable/plan/data.ts index ff39d0a8d..bd5ef2212 100644 --- a/apps/web-antdv-next/src/views/crm/receivable/plan/data.ts +++ b/apps/web-antdv-next/src/views/crm/receivable/plan/data.ts @@ -96,6 +96,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: 'required', componentProps: { + class: '!w-full', placeholder: '请输入计划回款金额', min: 0, precision: 2, @@ -119,6 +120,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '提前几天提醒', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入提前几天提醒', min: 0, }, @@ -135,7 +137,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', rows: 4, diff --git a/apps/web-antdv-next/src/views/erp/finance/account/data.ts b/apps/web-antdv-next/src/views/erp/finance/account/data.ts index 62d009774..5edc769fa 100644 --- a/apps/web-antdv-next/src/views/erp/finance/account/data.ts +++ b/apps/web-antdv-next/src/views/erp/finance/account/data.ts @@ -44,6 +44,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', precision: 0, }, @@ -81,7 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', rows: 3, diff --git a/apps/web-antdv-next/src/views/erp/finance/account/index.vue b/apps/web-antdv-next/src/views/erp/finance/account/index.vue index 0337b512b..583da25ad 100644 --- a/apps/web-antdv-next/src/views/erp/finance/account/index.vue +++ b/apps/web-antdv-next/src/views/erp/finance/account/index.vue @@ -67,9 +67,7 @@ async function handleDefaultStatusChange( ): Promise { const text = newStatus ? '设置' : '取消'; try { - await confirm({ - content: `确认要${text}"${row.name}"默认吗?`, - }); + await confirm(`确认要${text}"${row.name}"默认吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/erp/finance/payment/data.ts b/apps/web-antdv-next/src/views/erp/finance/payment/data.ts index cdf3cf9f6..771fd0c31 100644 --- a/apps/web-antdv-next/src/views/erp/finance/payment/data.ts +++ b/apps/web-antdv-next/src/views/erp/finance/payment/data.ts @@ -77,7 +77,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -132,6 +132,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '合计付款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '合计付款', precision: 2, formatter: erpPriceInputFormatter, @@ -143,6 +144,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠金额', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入优惠金额', precision: 2, @@ -154,6 +156,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '实际付款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '实际付款', precision: 2, formatter: erpPriceInputFormatter, diff --git a/apps/web-antdv-next/src/views/erp/finance/receipt/data.ts b/apps/web-antdv-next/src/views/erp/finance/receipt/data.ts index 27b8c3139..abe109bca 100644 --- a/apps/web-antdv-next/src/views/erp/finance/receipt/data.ts +++ b/apps/web-antdv-next/src/views/erp/finance/receipt/data.ts @@ -77,7 +77,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -132,6 +132,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '合计收款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '合计收款', precision: 2, formatter: erpPriceInputFormatter, @@ -143,6 +144,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠金额', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入优惠金额', precision: 2, @@ -154,6 +156,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '实际收款', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '实际收款', precision: 2, formatter: erpPriceInputFormatter, diff --git a/apps/web-antdv-next/src/views/erp/product/category/data.ts b/apps/web-antdv-next/src/views/erp/product/category/data.ts index 283566a25..d3e937247 100644 --- a/apps/web-antdv-next/src/views/erp/product/category/data.ts +++ b/apps/web-antdv-next/src/views/erp/product/category/data.ts @@ -65,6 +65,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '显示顺序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入显示顺序', }, diff --git a/apps/web-antdv-next/src/views/erp/product/product/data.ts b/apps/web-antdv-next/src/views/erp/product/product/data.ts index 90830a10c..7fbf70f52 100644 --- a/apps/web-antdv-next/src/views/erp/product/product/data.ts +++ b/apps/web-antdv-next/src/views/erp/product/product/data.ts @@ -92,6 +92,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '保质期天数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入保质期天数', }, }, @@ -100,6 +101,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '重量(kg)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重量(kg)', }, }, @@ -108,6 +110,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '采购价格', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入采购价格,单位:元', precision: 2, min: 0, @@ -119,6 +122,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '销售价格', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入销售价格,单位:元', precision: 2, min: 0, @@ -130,6 +134,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '最低价格', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入最低价格,单位:元', precision: 2, min: 0, @@ -139,7 +144,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', }, diff --git a/apps/web-antdv-next/src/views/erp/purchase/in/data.ts b/apps/web-antdv-next/src/views/erp/purchase/in/data.ts index 72ec4d10c..0e3ab1e25 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/in/data.ts +++ b/apps/web-antdv-next/src/views/erp/purchase/in/data.ts @@ -78,7 +78,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -120,6 +120,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -132,6 +133,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '付款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '付款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -143,6 +145,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -163,6 +166,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -187,6 +191,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '应付金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antdv-next/src/views/erp/purchase/order/data.ts b/apps/web-antdv-next/src/views/erp/purchase/order/data.ts index 11bd38307..e8575a1d3 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/order/data.ts +++ b/apps/web-antdv-next/src/views/erp/purchase/order/data.ts @@ -64,7 +64,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -106,6 +106,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -118,6 +119,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '付款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '付款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -129,6 +131,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -151,6 +154,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入支付订金', precision: 2, min: 0, diff --git a/apps/web-antdv-next/src/views/erp/purchase/return/data.ts b/apps/web-antdv-next/src/views/erp/purchase/return/data.ts index 2993695d8..c4d80d38d 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/return/data.ts +++ b/apps/web-antdv-next/src/views/erp/purchase/return/data.ts @@ -78,7 +78,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -120,6 +120,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -132,6 +133,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '退款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, formatter: erpPriceInputFormatter, disabled: true, @@ -142,6 +144,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -162,6 +165,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -186,6 +190,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '应退金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antdv-next/src/views/erp/purchase/supplier/data.ts b/apps/web-antdv-next/src/views/erp/purchase/supplier/data.ts index f1092b473..7d4d1d29e 100644 --- a/apps/web-antdv-next/src/views/erp/purchase/supplier/data.ts +++ b/apps/web-antdv-next/src/views/erp/purchase/supplier/data.ts @@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', }, rules: 'required', @@ -99,6 +100,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '税率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入税率', min: 0, precision: 2, @@ -131,7 +133,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', rows: 3, diff --git a/apps/web-antdv-next/src/views/erp/sale/customer/data.ts b/apps/web-antdv-next/src/views/erp/sale/customer/data.ts index 01a4cea54..eb3230ace 100644 --- a/apps/web-antdv-next/src/views/erp/sale/customer/data.ts +++ b/apps/web-antdv-next/src/views/erp/sale/customer/data.ts @@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', precision: 0, }, @@ -100,6 +101,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '税率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入税率', precision: 2, }, @@ -132,7 +134,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', rows: 3, diff --git a/apps/web-antdv-next/src/views/erp/sale/order/data.ts b/apps/web-antdv-next/src/views/erp/sale/order/data.ts index 910d7554a..51aa9087f 100644 --- a/apps/web-antdv-next/src/views/erp/sale/order/data.ts +++ b/apps/web-antdv-next/src/views/erp/sale/order/data.ts @@ -77,7 +77,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -119,6 +119,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -131,6 +132,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '付款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '收款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -142,6 +144,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -164,6 +167,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入收取订金', precision: 2, min: 0, diff --git a/apps/web-antdv-next/src/views/erp/sale/out/data.ts b/apps/web-antdv-next/src/views/erp/sale/out/data.ts index 4c8228298..e4ffcea5d 100644 --- a/apps/web-antdv-next/src/views/erp/sale/out/data.ts +++ b/apps/web-antdv-next/src/views/erp/sale/out/data.ts @@ -95,7 +95,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -137,6 +137,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -149,6 +150,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '收款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '付款优惠', precision: 2, formatter: erpPriceInputFormatter, @@ -160,6 +162,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -180,6 +183,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -207,6 +211,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '应收金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antdv-next/src/views/erp/sale/return/data.ts b/apps/web-antdv-next/src/views/erp/sale/return/data.ts index d097aef32..a0ec6071a 100644 --- a/apps/web-antdv-next/src/views/erp/sale/return/data.ts +++ b/apps/web-antdv-next/src/views/erp/sale/return/data.ts @@ -91,7 +91,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, @@ -133,6 +133,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠率(%)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入优惠率', min: 0, max: 100, @@ -145,6 +146,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '退款优惠', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, formatter: erpPriceInputFormatter, disabled: true, @@ -155,6 +157,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '优惠后金额', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '优惠后金额', precision: 2, formatter: erpPriceInputFormatter, @@ -175,6 +178,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '其他费用', component: 'InputNumber', componentProps: { + class: '!w-full', disabled: formType === 'detail', placeholder: '请输入其他费用', precision: 2, @@ -200,6 +204,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { label: '应收金额', component: 'InputNumber', componentProps: { + class: '!w-full', precision: 2, min: 0, disabled: true, diff --git a/apps/web-antdv-next/src/views/erp/stock/check/data.ts b/apps/web-antdv-next/src/views/erp/stock/check/data.ts index 6d9b52042..d2082b7be 100644 --- a/apps/web-antdv-next/src/views/erp/stock/check/data.ts +++ b/apps/web-antdv-next/src/views/erp/stock/check/data.ts @@ -47,7 +47,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, diff --git a/apps/web-antdv-next/src/views/erp/stock/in/data.ts b/apps/web-antdv-next/src/views/erp/stock/in/data.ts index c0be3bd5e..c521b325f 100644 --- a/apps/web-antdv-next/src/views/erp/stock/in/data.ts +++ b/apps/web-antdv-next/src/views/erp/stock/in/data.ts @@ -62,7 +62,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, diff --git a/apps/web-antdv-next/src/views/erp/stock/move/data.ts b/apps/web-antdv-next/src/views/erp/stock/move/data.ts index 32705daea..7c05d4d55 100644 --- a/apps/web-antdv-next/src/views/erp/stock/move/data.ts +++ b/apps/web-antdv-next/src/views/erp/stock/move/data.ts @@ -47,7 +47,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, diff --git a/apps/web-antdv-next/src/views/erp/stock/out/data.ts b/apps/web-antdv-next/src/views/erp/stock/out/data.ts index 0a8ca3d3a..c4dac24b6 100644 --- a/apps/web-antdv-next/src/views/erp/stock/out/data.ts +++ b/apps/web-antdv-next/src/views/erp/stock/out/data.ts @@ -64,7 +64,7 @@ export function useFormSchema(formType: FormType): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', autoSize: { minRows: 1, maxRows: 1 }, diff --git a/apps/web-antdv-next/src/views/erp/stock/warehouse/data.ts b/apps/web-antdv-next/src/views/erp/stock/warehouse/data.ts index eb423ab78..5fa2462e9 100644 --- a/apps/web-antdv-next/src/views/erp/stock/warehouse/data.ts +++ b/apps/web-antdv-next/src/views/erp/stock/warehouse/data.ts @@ -51,6 +51,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '仓储费(元)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入仓储费,单位:元/天/KG', min: 0, precision: 2, @@ -61,6 +62,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '搬运费(元)', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入搬运费,单位:元', min: 0, precision: 2, @@ -79,6 +81,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '排序', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入排序', precision: 0, }, @@ -87,7 +90,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', }, diff --git a/apps/web-antdv-next/src/views/erp/stock/warehouse/index.vue b/apps/web-antdv-next/src/views/erp/stock/warehouse/index.vue index 9dec3ce96..0a5a6ef42 100644 --- a/apps/web-antdv-next/src/views/erp/stock/warehouse/index.vue +++ b/apps/web-antdv-next/src/views/erp/stock/warehouse/index.vue @@ -65,9 +65,7 @@ async function handleDefaultStatusChange( ): Promise { const text = newStatus ? '设置' : '取消'; try { - await confirm({ - content: `确认要${text}"${row.name}"默认吗?`, - }); + await confirm(`确认要${text}"${row.name}"默认吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/infra/apiErrorLog/index.vue b/apps/web-antdv-next/src/views/infra/apiErrorLog/index.vue index a7236cb97..ff58fb441 100644 --- a/apps/web-antdv-next/src/views/infra/apiErrorLog/index.vue +++ b/apps/web-antdv-next/src/views/infra/apiErrorLog/index.vue @@ -42,9 +42,7 @@ function handleDetail(row: InfraApiErrorLogApi.ApiErrorLog) { /** 处理已处理 / 已忽略的操作 */ async function handleProcess(id: number, processStatus: number) { - await confirm({ - content: `确认标记为${InfraApiErrorLogProcessStatusEnum.DONE ? '已处理' : '已忽略'}?`, - }); + await confirm(`确认标记为${InfraApiErrorLogProcessStatusEnum.DONE ? '已处理' : '已忽略'}?`); const hideLoading = message.loading({ content: '正在处理中...', duration: 0, diff --git a/apps/web-antdv-next/src/views/infra/fileConfig/data.ts b/apps/web-antdv-next/src/views/infra/fileConfig/data.ts index fc101ab0d..fade8bfd3 100644 --- a/apps/web-antdv-next/src/views/infra/fileConfig/data.ts +++ b/apps/web-antdv-next/src/views/infra/fileConfig/data.ts @@ -43,7 +43,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'remark', label: '备注', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入备注', }, @@ -82,6 +82,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '主机端口', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入主机端口', }, diff --git a/apps/web-antdv-next/src/views/infra/job/data.ts b/apps/web-antdv-next/src/views/infra/job/data.ts index d517e0785..8bc5bbecc 100644 --- a/apps/web-antdv-next/src/views/infra/job/data.ts +++ b/apps/web-antdv-next/src/views/infra/job/data.ts @@ -8,7 +8,7 @@ import { DICT_TYPE } from '@vben/constants'; import { getDictOptions } from '@vben/hooks'; import { formatDateTime } from '@vben/utils'; -import { Timeline, TimelineItem } from 'antdv-next'; +import { Timeline } from 'antdv-next'; import { CronTab } from '#/components/cron-tab'; import { DictTag } from '#/components/dict-tag'; @@ -68,6 +68,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '重试次数', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重试次数。设置为 0 时,不进行重试', min: 0, }, @@ -78,6 +79,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '重试间隔', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入重试间隔,单位:毫秒。设置为 0 时,无需间隔', min: 0, }, @@ -88,6 +90,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '监控超时时间', component: 'InputNumber', componentProps: { + class: '!w-full', placeholder: '请输入监控超时时间,单位:毫秒', min: 0, }, @@ -236,7 +239,7 @@ export function useDetailSchema(): DescriptionItemSchema[] { } return h(Timeline, {}, () => val?.map((time: Date) => - h(TimelineItem, {}, () => formatDateTime(time)), + h(Timeline.Item, {}, () => formatDateTime(time)), ), ); }, diff --git a/apps/web-antdv-next/src/views/mall/product/brand/data.ts b/apps/web-antdv-next/src/views/mall/product/brand/data.ts index bf4ae30af..4d1b02c87 100644 --- a/apps/web-antdv-next/src/views/mall/product/brand/data.ts +++ b/apps/web-antdv-next/src/views/mall/product/brand/data.ts @@ -41,6 +41,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '品牌排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入品牌排序', }, @@ -60,7 +61,7 @@ export function useFormSchema(): VbenFormSchema[] { { fieldName: 'description', label: '品牌描述', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入品牌描述', }, diff --git a/apps/web-antdv-next/src/views/mall/product/category/data.ts b/apps/web-antdv-next/src/views/mall/product/category/data.ts index 6e1e1de3b..86456b05e 100644 --- a/apps/web-antdv-next/src/views/mall/product/category/data.ts +++ b/apps/web-antdv-next/src/views/mall/product/category/data.ts @@ -65,6 +65,7 @@ export function useFormSchema(): VbenFormSchema[] { label: '分类排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, placeholder: '请输入分类排序', }, diff --git a/apps/web-antdv-next/src/views/mall/product/comment/index.vue b/apps/web-antdv-next/src/views/mall/product/comment/index.vue index 2baa7e484..6b0d7666c 100644 --- a/apps/web-antdv-next/src/views/mall/product/comment/index.vue +++ b/apps/web-antdv-next/src/views/mall/product/comment/index.vue @@ -65,9 +65,7 @@ async function handleStatusChange( ): Promise { const text = newStatus ? '展示' : '隐藏'; try { - await confirm({ - content: `确认要${text}该评论吗?`, - }); + await confirm(`确认要${text}该评论吗?`); } catch { return false; } diff --git a/apps/web-antdv-next/src/views/mall/product/spu/form/data.ts b/apps/web-antdv-next/src/views/mall/product/spu/form/data.ts index 4c6f8c650..7d53a2736 100644 --- a/apps/web-antdv-next/src/views/mall/product/spu/form/data.ts +++ b/apps/web-antdv-next/src/views/mall/product/spu/form/data.ts @@ -68,7 +68,7 @@ export function useInfoFormSchema(): VbenFormSchema[] { { fieldName: 'introduction', label: '商品简介', - component: 'TextArea', + component: 'Textarea', componentProps: { placeholder: '请输入商品简介', autoSize: { minRows: 2, maxRows: 2 }, @@ -281,6 +281,7 @@ export function useOtherFormSchema(): VbenFormSchema[] { label: '商品排序', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, }, rules: 'required', @@ -290,6 +291,7 @@ export function useOtherFormSchema(): VbenFormSchema[] { label: '赠送积分', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, }, rules: 'required', @@ -299,6 +301,7 @@ export function useOtherFormSchema(): VbenFormSchema[] { label: '虚拟销量', component: 'InputNumber', componentProps: { + class: '!w-full', min: 0, }, rules: 'required', diff --git a/apps/web-antdv-next/src/views/mall/product/spu/form/modules/product-property-add-form.vue b/apps/web-antdv-next/src/views/mall/product/spu/form/modules/product-property-add-form.vue index 78283da7b..d4afcc5eb 100644 --- a/apps/web-antdv-next/src/views/mall/product/spu/form/modules/product-property-add-form.vue +++ b/apps/web-antdv-next/src/views/mall/product/spu/form/modules/product-property-add-form.vue @@ -134,7 +134,6 @@ const [Modal, modalApi] = useVbenModal({ if (!isOpen) { return; } - await formApi.resetForm(); }, }); diff --git a/apps/web-antdv-next/src/views/mall/product/spu/index.vue b/apps/web-antdv-next/src/views/mall/product/spu/index.vue index 40e9dd1da..4aade5ef3 100644 --- a/apps/web-antdv-next/src/views/mall/product/spu/index.vue +++ b/apps/web-antdv-next/src/views/mall/product/spu/index.vue @@ -9,7 +9,7 @@ import { confirm, DocAlert, Page } from '@vben/common-ui'; import { ProductSpuStatusEnum } from '@vben/constants'; import { downloadFileFromBlobPart } from '@vben/utils'; -import { message, TabPane, Tabs } from 'antdv-next'; +import { message, Tabs } from 'antdv-next'; import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; import { @@ -110,9 +110,7 @@ async function handleStatusChange( // 二次确认 const text = newStatus ? '上架' : '下架'; try { - await confirm({ - content: `确认要${text + row.name}吗?`, - }); + await confirm(`确认要${text + row.name}吗?`); } catch { return false; } @@ -132,9 +130,7 @@ async function handleStatus02Change(row: MallSpuApi.Spu, newStatus: number) { newStatus === ProductSpuStatusEnum.RECYCLE.status ? '加入到回收站' : '恢复到仓库'; - await confirm({ - content: `确认要"${row.name}"${text}吗?`, - }); + await confirm(`确认要"${row.name}"${text}吗?`); const hideLoading = message.loading({ content: `正在${text}中...`, duration: 0, @@ -213,7 +209,7 @@ onMounted(async () => {