优化数据中心
This commit is contained in:
parent
e8c25b6b04
commit
e4835d0d27
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue