merchant-web/src/filters/accounts.js

34 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-08-07 09:55:31 +00:00
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
//财务过滤器
/**
* 资金流水 交易类型
*/
export function transactionTypeFilter(status) {
const statusMap = {
pay_order: '订单支付',
refund_order: '订单退款',
};
return statusMap[status];
}
/**
* 转账类型
*/
export function transferTypeFilter(status) {
const statusMap = {
bank: '银行卡',
alipay: '支付宝',
wechat: '微信',
};
return statusMap[status];
}