Commit d7b4661f authored by daniel's avatar daniel

feat(gpsDeposit): 押金模块优化

parent a21b39aa
......@@ -665,8 +665,12 @@
if (!inputConfirm) {
return
}
if (Number(inputConfirm) < 0.01) {
message.error('退款金额不能小于0.01')
return
}
if (Number(inputConfirm) > row.amount) {
NMessage.error('退款金额不能大于订单金额')
message.error('退款金额不能大于订单金额')
return
}
row.refundAmount = Number(inputConfirm)
......@@ -838,7 +842,7 @@
const orderRefund = async (row) => {
loading.value = true
let params = {
orderId: row.orderId,
applyId: row.applyId,
refundAmount: row.refundAmount,
refundReason: getCId() + "_gps押金退款_" + row.markNo,
operatorCode: getUId(),
......@@ -858,6 +862,7 @@
if (res.code === 200) {
message.success('退款成功')
fetchOrders()
getOrderStats()
} else {
message.error(res.message)
}
......@@ -885,14 +890,13 @@
if (res.code === 200) {
message.success('删除成功')
fetchOrders()
getOrderStats()
} else {
message.error(res.message)
}
}
// 富文本编辑器 .setContent() .getContent()
let editor;
/***---------------- 自助选号相关 end -----------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment