feat(work-order): 后台支持修改用户付款金额并留痕
This commit is contained in:
@@ -304,6 +304,23 @@ export function formatWorkOrderEvent(event: WorkOrderEvent): EventNodeStyle {
|
||||
}
|
||||
|
||||
// —— 其他 ——
|
||||
case 'payment_amount_updated': {
|
||||
const previousAmountFen = readPayloadAmount(event, 'previousAmountFen')
|
||||
const amountFen = readPayloadAmount(event, 'amountFen')
|
||||
const reason = readPayload(event, 'reason')
|
||||
return {
|
||||
title: '修改了用户付款金额',
|
||||
description: [
|
||||
previousAmountFen > 0
|
||||
? `${formatFenAmount(previousAmountFen)} → ${formatFenAmount(amountFen)}`
|
||||
: `改为 ${formatFenAmount(amountFen)}`,
|
||||
reason ? `原因:${reason}` : '',
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(';'),
|
||||
color: 'gold',
|
||||
}
|
||||
}
|
||||
case 'edited': {
|
||||
const productName = readPayload(event, 'productName')
|
||||
const rewardAmount = readPayloadAmount(event, 'rewardAmount')
|
||||
|
||||
Reference in New Issue
Block a user