review:【ANTD】【BPM 支付】xingyu pulls #118、#116
parent
8a17e03e6e
commit
dc0eac918d
|
@ -326,6 +326,7 @@ setupVbenVxeTable({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO @xingyu:这个要不叫 formatAmount2 这种?虽然不直观,但是容易看出来是金额;
|
||||||
vxeUI.formats.add('formatFraction', {
|
vxeUI.formats.add('formatFraction', {
|
||||||
tableCellFormatMethod({ cellValue }) {
|
tableCellFormatMethod({ cellValue }) {
|
||||||
if (cellValue === null || cellValue === undefined) {
|
if (cellValue === null || cellValue === undefined) {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// TODO @xingyu:感觉 formatToFraction 可以整合起来;【优先级:低】
|
||||||
/**
|
/**
|
||||||
* 将一个整数转换为分数保留两位小数
|
* 将一个整数转换为分数保留两位小数
|
||||||
* @param num
|
* @param num
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
|
|
||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import { getNotifyTaskPage } from '#/api/pay/notify';
|
import { getNotifyTaskPage } from '#/api/pay/notify';
|
||||||
|
@ -59,6 +60,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||||
<template #doc>
|
<template #doc>
|
||||||
<DocAlert title="支付功能开启" url="https://doc.iocoder.cn/pay/build/" />
|
<DocAlert title="支付功能开启" url="https://doc.iocoder.cn/pay/build/" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<DetailModal @success="onRefresh" />
|
<DetailModal @success="onRefresh" />
|
||||||
<Grid table-title="支付通知列表">
|
<Grid table-title="支付通知列表">
|
||||||
<template #actions="{ row }">
|
<template #actions="{ row }">
|
||||||
|
|
|
@ -265,6 +265,7 @@ setupVbenVxeTable({
|
||||||
});
|
});
|
||||||
|
|
||||||
// 添加数量格式化,例如金额
|
// 添加数量格式化,例如金额
|
||||||
|
// TODO @xingyu:建议金额,和数量分开哈;原因是,有些团队希望金额,单独控制;
|
||||||
vxeUI.formats.add('formatNumber', {
|
vxeUI.formats.add('formatNumber', {
|
||||||
cellFormatMethod({ cellValue }, digits = 2) {
|
cellFormatMethod({ cellValue }, digits = 2) {
|
||||||
if (cellValue === null || cellValue === undefined) {
|
if (cellValue === null || cellValue === undefined) {
|
||||||
|
|
|
@ -277,6 +277,7 @@ setupVbenVxeTable({
|
||||||
// 这里可以自行扩展 vxe-table 的全局配置,比如自定义格式化
|
// 这里可以自行扩展 vxe-table 的全局配置,比如自定义格式化
|
||||||
// vxeUI.formats.add
|
// vxeUI.formats.add
|
||||||
// add by 星语:数量格式化,例如说:金额
|
// add by 星语:数量格式化,例如说:金额
|
||||||
|
// TODO @xingyu:建议金额,和数量分开哈;原因是,有些团队希望金额,单独控制;
|
||||||
vxeUI.formats.add('formatNumber', {
|
vxeUI.formats.add('formatNumber', {
|
||||||
cellFormatMethod({ cellValue }, digits = 2) {
|
cellFormatMethod({ cellValue }, digits = 2) {
|
||||||
if (cellValue === null || cellValue === undefined) {
|
if (cellValue === null || cellValue === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue