优化订单跳转代客下单拉取不到历史数据的问题
This commit is contained in:
@@ -803,15 +803,14 @@ onMounted(async () => {
|
|||||||
// tableCode,
|
// tableCode,
|
||||||
// });
|
// });
|
||||||
let res = ''
|
let res = ''
|
||||||
if (carts.table_code) {
|
if (id) {
|
||||||
res = await orderApi.getHistoryList({
|
|
||||||
// orderId: carts.oldOrder.id,
|
|
||||||
tableCode: carts.table_code,
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
res = await orderApi.getHistoryList({
|
res = await orderApi.getHistoryList({
|
||||||
orderId: id,
|
orderId: id,
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
res = await orderApi.getHistoryList({
|
||||||
|
tableCode: carts.table_code,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const noPayStatus = {
|
const noPayStatus = {
|
||||||
|
|||||||
Reference in New Issue
Block a user