|
|
@@ -229,6 +229,7 @@
|
|
|
<el-button type="primary" link><Icon icon="ep:d-arrow-right" /> {{ t('public.more') }}</el-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
+ <el-dropdown-item @click="printOrder(scope.row.id)">{{ t('mall.printTicket') }}</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="scope.row.dueStatus == 1" @click="dueCancel(scope.row.id)">{{
|
|
|
t('mall.cancelReservation')
|
|
|
}}</el-dropdown-item>
|
|
|
@@ -409,6 +410,17 @@ const handleTake = async (id: number) => {
|
|
|
} catch {}
|
|
|
}
|
|
|
|
|
|
+const printOrder = async (id: number) => {
|
|
|
+ try {
|
|
|
+ const res = await StoreOrderApi.printOrderById({
|
|
|
+ id
|
|
|
+ })
|
|
|
+ if (res.code) {
|
|
|
+ message.success(t('infra.successfulExecution'))
|
|
|
+ }
|
|
|
+ } catch (error) {}
|
|
|
+}
|
|
|
+
|
|
|
/** 取消预约 */
|
|
|
const dueCancel = async (id: number) => {
|
|
|
try {
|