修复后付费问题

This commit is contained in:
2025-09-30 19:04:34 +08:00
parent 36f92cc680
commit e2dd540bb8
3 changed files with 21 additions and 4 deletions

View File

@@ -783,7 +783,21 @@
} else {
//后付
// 购物车有数据
if (!cartStore.isEmpty) {
usePoints=cartStore.orderCostSummary.pointUsed
const res = await createOrder()
//历史订单数据
const res1 = await APIgetOrderById({
orderId: res.id
})
console.log('历史订单数据',res1);
orderRemarker.value=res1.remark;
cartStore.setOldOrder(res1)
goToPay()
return
}
// 先调用历史订单
let APIhistoryOrderres = await APIhistoryOrder({
tableCode: listinfo.tableCode