fix: 订单详情支付凭证, 退款
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m34s

This commit is contained in:
sexygoat
2026-05-11 18:01:22 +08:00
parent 1990a3ccba
commit 5d20d7dd3f
6 changed files with 81 additions and 40 deletions

View File

@@ -176,7 +176,7 @@
RejectRefundRequest,
ResubmitRefundRequest
} from '@/types/api'
import { formatDateTime } from '@/utils/business/format'
import { formatDateTime, yuanToFen } from '@/utils/business/format'
import { RoutesAlias } from '@/router/routesAlias'
defineOptions({ name: 'RefundDetail' })
@@ -400,9 +400,7 @@
approveLoading.value = true
try {
const data: ApproveRefundRequest = {
approved_refund_amount: approveForm.approved_refund_amount
? approveForm.approved_refund_amount * 100
: undefined,
approved_refund_amount: yuanToFen(approveForm.approved_refund_amount),
remark: approveForm.remark || undefined
}
@@ -447,12 +445,8 @@
resubmitLoading.value = true
try {
const data: ResubmitRefundRequest = {
requested_refund_amount: resubmitForm.requested_refund_amount
? resubmitForm.requested_refund_amount * 100
: undefined,
actual_received_amount: resubmitForm.actual_received_amount
? resubmitForm.actual_received_amount * 100
: undefined,
requested_refund_amount: yuanToFen(resubmitForm.requested_refund_amount),
actual_received_amount: yuanToFen(resubmitForm.actual_received_amount),
refund_reason: resubmitForm.refund_reason || undefined
}