fix: 订单管理退款修改,台桌跳转代客下单页面

This commit is contained in:
2025-03-06 19:32:13 +08:00
parent d6eb27186f
commit ef358f33bb
12 changed files with 758 additions and 129 deletions

View File

@@ -178,6 +178,7 @@
@chooseUser="showChooseUser"
@paysuccess="refresh"
:table="table"
:perpole="perpole"
v-else
:user="user"
></Order>
@@ -628,7 +629,8 @@ function init() {
}
onMounted(async () => {
const { id } = route.query;
const { id, tableCode } = route.query;
console.log(id, tableCode);
if (id) {
// 获取历史订单数据
const res = await orderApi.getHistoryList({
@@ -667,6 +669,10 @@ onMounted(async () => {
showOrder.value = true;
}
}
if (tableCode) {
const tableRes = await tableApi.get({ tableCode: tableCode });
table.value = tableRes || {};
}
init();
});
@@ -723,7 +729,7 @@ $pl: 30px;
display: flex;
max-height: calc(100vh - 256px);
.left {
width: 350px;
width: 1;
padding-right: 14px;
box-sizing: border-box;
display: flex;
@@ -736,7 +742,7 @@ $pl: 30px;
}
}
.right {
flex: 1;
flex: 3;
overflow-x: hidden;
overflow-y: scroll;
&::-webkit-scrollbar {
@@ -886,4 +892,12 @@ $pl: 30px;
border-radius: 2px;
margin-right: 6px;
}
.vip {
padding: 2px 5px;
background: #f7793d;
color: #fff;
border-radius: 4px;
margin-left: 10px;
font-size: 10px;
}
</style>