优化数据中心

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

View File

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