merchant-web/src/filters/accounts.js

34 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// +----------------------------------------------------------------------
// | 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];
}