From ecce4f6e7bb89a43a02ec52a5c1e6c20814747a1 Mon Sep 17 00:00:00 2001 From: luo Date: Sat, 24 Oct 2026 14:56:32 +0800 Subject: [PATCH] fix: some --- scripts/tests/refundMethodOptions.test.mjs | 3 ++- src/components/business/CreateRefundDialog.vue | 1 + src/types/api/order.ts | 2 +- src/views/order-management/order-list/index.vue | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/tests/refundMethodOptions.test.mjs b/scripts/tests/refundMethodOptions.test.mjs index 4a4dbff..5733922 100644 --- a/scripts/tests/refundMethodOptions.test.mjs +++ b/scripts/tests/refundMethodOptions.test.mjs @@ -50,9 +50,10 @@ test('creation defaults and reset never select the hidden original route', () => const { resolveRefundMethod } = evaluate( `const RefundMethod = ${JSON.stringify(RefundMethod)}; export ${resolver}` ) - for (const payment_method of ['wechat', 'alipay', 'offline']) { + for (const payment_method of ['wechat', 'alipay', 'fuiou', 'offline']) { assert.equal(resolveRefundMethod({ payment_method }), RefundMethod.CUSTOMER_ACCOUNT) } + assert.match(dialogSource, /fuiou: '富友支付'/) assert.equal( resolveRefundMethod({ payment_method: 'wallet', buyer_type: 'agent' }), RefundMethod.AGENT_WALLET diff --git a/src/components/business/CreateRefundDialog.vue b/src/components/business/CreateRefundDialog.vue index dca7e57..6cbca51 100644 --- a/src/components/business/CreateRefundDialog.vue +++ b/src/components/business/CreateRefundDialog.vue @@ -245,6 +245,7 @@ wallet: '预存款支付', wechat: '微信支付', alipay: '支付宝支付', + fuiou: '富友支付', offline: '线下支付' } return selectedOrder.value ? labels[selectedOrder.value.payment_method] : '-' diff --git a/src/types/api/order.ts b/src/types/api/order.ts index 6962495..65d214e 100644 --- a/src/types/api/order.ts +++ b/src/types/api/order.ts @@ -39,7 +39,7 @@ export type OrderType = 'single_card' | 'device' export type BuyerType = 'personal' | 'agent' // 订单支付方式 -export type OrderPaymentMethod = 'wallet' | 'wechat' | 'alipay' | 'offline' +export type OrderPaymentMethod = 'wallet' | 'wechat' | 'alipay' | 'fuiou' | 'offline' // 订单操作者类型 export type OrderOperatorType = 'platform' | 'agent' | 'enterprise' | 'personal_customer' diff --git a/src/views/order-management/order-list/index.vue b/src/views/order-management/order-list/index.vue index bf4deba..a1f4082 100644 --- a/src/views/order-management/order-list/index.vue +++ b/src/views/order-management/order-list/index.vue @@ -807,6 +807,7 @@ wallet: '钱包', wechat: '微信', alipay: '支付宝', + fuiou: '富友支付', offline: '线下' } return methodMap[method] || method