fix: 订单管理退款修改,台桌跳转代客下单页面
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
|
||||
<script setup>
|
||||
import status from "./status.js";
|
||||
|
||||
const router = useRouter();
|
||||
import shopAreaApi from "@/api/account/shopArea";
|
||||
import tableApi from "@/api/account/table";
|
||||
import addEara from "./components/addEara.vue";
|
||||
@@ -335,35 +335,16 @@ async function areainit() {
|
||||
}, {});
|
||||
}
|
||||
async function diancanShow(item, key) {
|
||||
// if (key === "isPayOrder") {
|
||||
// const canShoukuan = await hasPermission("允许收款");
|
||||
// if (!canShoukuan) {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// const canXiadan = await hasPermission("允许下单");
|
||||
// if (!canXiadan) {
|
||||
// return;
|
||||
// }
|
||||
// if (key === "subscribe") {
|
||||
// this.$refs.subscribe.show();
|
||||
// return;
|
||||
// }
|
||||
// key isAddGoods 加菜
|
||||
// key isPayOrder 结账
|
||||
this.selTable = item;
|
||||
if (this.shopInfo.isTableFee) {
|
||||
// 免餐位费
|
||||
this.toInstead({ num: 0, key });
|
||||
// this.$refs.diancan.open(item, key, '');
|
||||
if (!key) {
|
||||
router.push({ path: "/tool/index", query: { tableCode: item.tableCode } });
|
||||
return;
|
||||
}
|
||||
const num = item.useNum || 0;
|
||||
if (item.useNum <= 0) {
|
||||
return this.$refs.refChooseDinersNumber.open();
|
||||
if (key == "isAddGoods") {
|
||||
router.push({ path: "/tool/index", query: { id: item.orderId } });
|
||||
}
|
||||
if (key == "isPayOrder") {
|
||||
router.push({ path: "/tool/index", query: { id: item.orderId } });
|
||||
}
|
||||
this.toInstead({ num: num, key });
|
||||
// this.$refs.diancan.open(item, key, num);
|
||||
}
|
||||
const tabClick = (tab) => {
|
||||
console.log(tab);
|
||||
|
||||
Reference in New Issue
Block a user