优化数据中心

This commit is contained in:
gyq 2024-06-20 09:06:05 +08:00
parent e8c25b6b04
commit e4835d0d27
2 changed files with 12 additions and 7 deletions

View File

@ -90,12 +90,17 @@ const refundPost = (payPassword) => {
console.log('payPassword', payPassword);
$payOrderRefund(vdata.orderInfo.payOrderId, vdata.refundAmount, vdata.refundRemark, payPassword, vdata.refundModel)
.then(({ bizData }) => {
infoBox.showSuccessToast('退款已申请').then(() => {
//
emit.pageEmit(emit.ENAME_REF_PAY_ORDER);
refundPopup.value.close();
go.back();
});
console.log('bizData', bizData);
if (bizData.state == 0 || bizData.state == 1 || bizData.state == 2) {
infoBox.showSuccessToast('退款已申请').then(() => {
//
emit.pageEmit(emit.ENAME_REF_PAY_ORDER);
refundPopup.value.close();
go.back();
});
} else {
infoBox.showErrorToast(bizData.errMsg);
}
})
.catch((err) => {
refundPopup.value.clearInput();

View File

@ -224,7 +224,7 @@ const getStatList = () => {
bizData.fee = cal.cert2Dollar(bizData.fee);
vdata.totalFinalAmt =
cal.cert2Dollar(bizData.totalSuccAmt - bizData.totalFeeAmt - bizData.totalRefundAmt) < 0
? 0
? '0.00'
: cal.cert2Dollar(bizData.totalSuccAmt - bizData.totalFeeAmt - bizData.totalRefundAmt);
bizData.round = bizData.round + '%';
vdata.infoList.forEach((v) => {