feat: 代客下单修改,订单列表详情退款修改
This commit is contained in:
@@ -97,7 +97,9 @@
|
||||
<span>就餐人数:{{ perpole || "-" }} 位</span>
|
||||
<el-icon><ArrowRight /></el-icon>
|
||||
</div>
|
||||
<a @click="clearCarts" style="color: #1890ff">清空</a>
|
||||
<el-button link type="primary" :disabled="carts.isEmpty" @click="clearCarts">
|
||||
清空
|
||||
</el-button>
|
||||
</div>
|
||||
<!-- 购物车 -->
|
||||
<cartsList
|
||||
@@ -324,7 +326,11 @@ async function createOrder(key) {
|
||||
refresh();
|
||||
return;
|
||||
}
|
||||
|
||||
if (res.userId) {
|
||||
const userRes = await shopUserApi.get({ userId: res.userId });
|
||||
user.value = userRes;
|
||||
carts.changeUser(userRes);
|
||||
}
|
||||
if (res.id) {
|
||||
// 获取历史订单数据
|
||||
const res1 = await orderApi.getHistoryList({
|
||||
@@ -391,8 +397,9 @@ function getTableList() {
|
||||
tableList.value = res.records.filter((v) => v.tableCode);
|
||||
});
|
||||
}
|
||||
function getTableDetail(table_code) {
|
||||
tableApi.get(table_code);
|
||||
async function getTableDetail(params) {
|
||||
const res = await tableApi.get(params);
|
||||
return res;
|
||||
}
|
||||
function tablesearchInput() {}
|
||||
//返回桌台状态颜色
|
||||
@@ -407,7 +414,7 @@ function returnTableLabel(key) {
|
||||
}
|
||||
function tableClick(item) {
|
||||
console.log(item);
|
||||
getTableDetail(item.tableCode);
|
||||
getTableDetail({ tableCode: item.tableCode });
|
||||
|
||||
table.value = item;
|
||||
carts.changeTable(item.tableCode);
|
||||
|
||||
Reference in New Issue
Block a user