fix: 修复挂账按订单支付还款传参问题,增加修改密功能
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
:show-close="false"
|
||||
v-model="dialogVisible"
|
||||
:close-on-click-modal="false"
|
||||
@close="reset"
|
||||
width="30%"
|
||||
center
|
||||
>
|
||||
@@ -122,8 +123,7 @@ export default {
|
||||
res = await creditOrderApi.pay(this.form);
|
||||
}
|
||||
ElMessage({
|
||||
title: "成功",
|
||||
message: res.repaymentMsg,
|
||||
message: "还款成功",
|
||||
type: "success",
|
||||
});
|
||||
this.dialogVisible = false;
|
||||
@@ -145,7 +145,8 @@ export default {
|
||||
this.form = { ...this.resetForm };
|
||||
if (row.creditBuyerId) {
|
||||
this.form.creditBuyerId = row.creditBuyerId;
|
||||
this.form.orderId = order.id;
|
||||
this.form.orderId = order.orderId;
|
||||
this.form.id = order.id;
|
||||
} else {
|
||||
this.form.id = row.id;
|
||||
}
|
||||
@@ -168,6 +169,8 @@ export default {
|
||||
|
||||
reset() {
|
||||
this.query = { ...this.resetQuery };
|
||||
this.form.id = "";
|
||||
this.form.orderId = "";
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -378,9 +378,10 @@ async function pointsInit() {
|
||||
if (!props.user.id || score.sel == -1) {
|
||||
return;
|
||||
}
|
||||
const orderAmount = currentpayMoney.value - pointsDiscountAmount.value;
|
||||
const res = await PointsApi.calcOrderUsablePoints({
|
||||
shopUserId: props.user.id,
|
||||
orderAmount: currentpayMoney.value - pointsDiscountAmount.value,
|
||||
orderAmount: orderAmount <= 0 ? 0 : orderAmount,
|
||||
});
|
||||
pointsRes.value = res;
|
||||
usePointsNumber.value = res.usable ? res.maxUsablePoints : 0;
|
||||
|
||||
Reference in New Issue
Block a user