review:【ANTD】【BPM 支付】xingyu pulls #118、#116

pull/134/head
YunaiV 2025-06-07 20:42:58 +08:00
parent 8a17e03e6e
commit dc0eac918d
5 changed files with 6 additions and 0 deletions

View File

@ -326,6 +326,7 @@ setupVbenVxeTable({
},
});
// TODO @xingyu这个要不叫 formatAmount2 这种?虽然不直观,但是容易看出来是金额;
vxeUI.formats.add('formatFraction', {
tableCellFormatMethod({ cellValue }) {
if (cellValue === null || cellValue === undefined) {

View File

@ -1,3 +1,4 @@
// TODO @xingyu感觉 formatToFraction 可以整合起来;【优先级:低】
/**
*
* @param num

View File

@ -2,6 +2,7 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { Page, useVbenModal } from '@vben/common-ui';
import { $t } from '@vben/locales';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { getNotifyTaskPage } from '#/api/pay/notify';
@ -59,6 +60,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<template #doc>
<DocAlert title="支付功能开启" url="https://doc.iocoder.cn/pay/build/" />
</template>
<DetailModal @success="onRefresh" />
<Grid table-title="">
<template #actions="{ row }">

View File

@ -265,6 +265,7 @@ setupVbenVxeTable({
});
// 添加数量格式化,例如金额
// TODO @xingyu建议金额和数量分开哈原因是有些团队希望金额单独控制
vxeUI.formats.add('formatNumber', {
cellFormatMethod({ cellValue }, digits = 2) {
if (cellValue === null || cellValue === undefined) {

View File

@ -277,6 +277,7 @@ setupVbenVxeTable({
// 这里可以自行扩展 vxe-table 的全局配置,比如自定义格式化
// vxeUI.formats.add
// add by 星语:数量格式化,例如说:金额
// TODO @xingyu建议金额和数量分开哈原因是有些团队希望金额单独控制
vxeUI.formats.add('formatNumber', {
cellFormatMethod({ cellValue }, digits = 2) {
if (cellValue === null || cellValue === undefined) {