f
This commit is contained in:
@@ -8,7 +8,7 @@ export namespace OrderApi {
|
||||
order_no: string;
|
||||
platform_order_id: string;
|
||||
product_name: string;
|
||||
payment_platform: 'alipay' | 'appleiap' | 'wechat';
|
||||
payment_platform: 'alipay' | 'appleiap' | 'wechat' | 'wechat_xpay';
|
||||
payment_scene: 'app' | 'h5' | 'mini_program' | 'public_account';
|
||||
amount: number;
|
||||
status: 'closed' | 'failed' | 'paid' | 'pending' | 'refunded';
|
||||
@@ -38,6 +38,7 @@ export namespace OrderApi {
|
||||
refund_no: string;
|
||||
amount: number;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -37,6 +37,7 @@ export function useColumns<T = OrderApi.Order>(
|
||||
const platformMap: Record<string, string> = {
|
||||
alipay: '支付宝',
|
||||
wechat: '微信支付',
|
||||
wechat_xpay: '小程序虚拟支付',
|
||||
appleiap: '苹果支付',
|
||||
};
|
||||
return platformMap[row.payment_platform] || row.payment_platform;
|
||||
@@ -212,6 +213,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
options: [
|
||||
{ label: '支付宝', value: 'alipay' },
|
||||
{ label: '微信支付', value: 'wechat' },
|
||||
{ label: '小程序虚拟支付', value: 'wechat_xpay' },
|
||||
{ label: '苹果支付', value: 'appleiap' },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user