更新
This commit is contained in:
@@ -142,17 +142,19 @@ export function logActionText(act: string) {
|
|||||||
return m[act] || act
|
return m[act] || act
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 支付单来源/方式:企微对外收款、付呗等创建链路 + 支付方式回退 */
|
/** 支付单来源/方式:企微对外收款、付呗、快递代收等创建链路 + 支付方式回退 */
|
||||||
export function formatPayOrderSource(row: { payment_method?: unknown; create_type?: unknown }) {
|
export function formatPayOrderSource(row: { payment_method?: unknown; create_type?: unknown }) {
|
||||||
const createType = String(row?.create_type || '')
|
const createType = String(row?.create_type || '')
|
||||||
if (createType === 'wechat_work') return '企业微信对外收款'
|
if (createType === 'wechat_work') return '企业微信对外收款'
|
||||||
if (createType === 'fubei') return '付呗'
|
if (createType === 'fubei') return '付呗'
|
||||||
|
if (createType === 'express_cod') return '快递代收'
|
||||||
const paymentMethod = String(row?.payment_method || '')
|
const paymentMethod = String(row?.payment_method || '')
|
||||||
const methodMap: Record<string, string> = {
|
const methodMap: Record<string, string> = {
|
||||||
alipay: '支付宝',
|
alipay: '支付宝',
|
||||||
wechat: '微信',
|
wechat: '微信',
|
||||||
wechat_work: '企业微信',
|
wechat_work: '企业微信',
|
||||||
fubei: '付呗',
|
fubei: '付呗',
|
||||||
|
express_cod: '快递代收',
|
||||||
manual: '手动确认到账'
|
manual: '手动确认到账'
|
||||||
}
|
}
|
||||||
if (paymentMethod && methodMap[paymentMethod]) {
|
if (paymentMethod && methodMap[paymentMethod]) {
|
||||||
|
|||||||
@@ -4104,12 +4104,14 @@ function formatPayOrderSource(row: { payment_method?: unknown; create_type?: unk
|
|||||||
const createType = String(row?.create_type || '')
|
const createType = String(row?.create_type || '')
|
||||||
if (createType === 'wechat_work') return '企业微信对外收款'
|
if (createType === 'wechat_work') return '企业微信对外收款'
|
||||||
if (createType === 'fubei') return '付呗'
|
if (createType === 'fubei') return '付呗'
|
||||||
|
if (createType === 'express_cod') return '快递代收'
|
||||||
const paymentMethod = String(row?.payment_method || '')
|
const paymentMethod = String(row?.payment_method || '')
|
||||||
const methodMap: Record<string, string> = {
|
const methodMap: Record<string, string> = {
|
||||||
alipay: '支付宝',
|
alipay: '支付宝',
|
||||||
wechat: '微信',
|
wechat: '微信',
|
||||||
wechat_work: '企业微信',
|
wechat_work: '企业微信',
|
||||||
fubei: '付呗',
|
fubei: '付呗',
|
||||||
|
express_cod: '快递代收',
|
||||||
manual: '手动确认到账'
|
manual: '手动确认到账'
|
||||||
}
|
}
|
||||||
if (paymentMethod && methodMap[paymentMethod]) {
|
if (paymentMethod && methodMap[paymentMethod]) {
|
||||||
|
|||||||
@@ -3214,12 +3214,16 @@ class PrescriptionOrderLogic
|
|||||||
if ($createType === 'fubei') {
|
if ($createType === 'fubei') {
|
||||||
return '付呗';
|
return '付呗';
|
||||||
}
|
}
|
||||||
|
if ($createType === 'express_cod') {
|
||||||
|
return '快递代收';
|
||||||
|
}
|
||||||
$paymentMethod = trim((string) ($row['payment_method'] ?? ''));
|
$paymentMethod = trim((string) ($row['payment_method'] ?? ''));
|
||||||
$methodMap = [
|
$methodMap = [
|
||||||
'alipay' => '支付宝',
|
'alipay' => '支付宝',
|
||||||
'wechat' => '微信',
|
'wechat' => '微信',
|
||||||
'wechat_work' => '企业微信',
|
'wechat_work' => '企业微信',
|
||||||
'fubei' => '付呗',
|
'fubei' => '付呗',
|
||||||
|
'express_cod' => '快递代收',
|
||||||
'manual' => '手动确认到账',
|
'manual' => '手动确认到账',
|
||||||
];
|
];
|
||||||
if ($paymentMethod !== '' && isset($methodMap[$paymentMethod])) {
|
if ($paymentMethod !== '' && isset($methodMap[$paymentMethod])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user