From 49569e348f321f6b72e1c90badec7c374c916963 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 12 Jun 2024 18:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8B=E8=BD=BD=E6=A1=8C?= =?UTF-8?q?=E7=A0=81=E9=9D=99=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/table.js | 74 +++++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/src/api/table.js b/src/api/table.js index 95cce42..7a46a1a 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -1,16 +1,16 @@ // 桌台管理 -import request from '@/utils/request' +import request from "@/utils/request"; /** * 台桌列表 * @returns */ export function tbShopTableGet(params) { - return request({ - url: `/api/tbShopTable`, - method: 'get', - params - }) + return request({ + url: `/api/tbShopTable`, + method: "get", + params + }); } /** @@ -18,11 +18,11 @@ export function tbShopTableGet(params) { * @returns */ export function tbShopAreaGet(params) { - return request({ - url: `/api/tbShopArea`, - method: 'get', - params - }) + return request({ + url: `/api/tbShopArea`, + method: "get", + params + }); } /** @@ -30,11 +30,11 @@ export function tbShopAreaGet(params) { * @returns */ export function tbShopArea(data, method) { - return request({ - url: `/api/tbShopArea`, - method: method, - data - }) + return request({ + url: `/api/tbShopArea`, + method: method, + data + }); } /** @@ -42,11 +42,11 @@ export function tbShopArea(data, method) { * @returns */ export function tbShopAreaDelete(data) { - return request({ - url: `/api/tbShopArea`, - method: 'DELETE', - data - }) + return request({ + url: `/api/tbShopArea`, + method: "DELETE", + data + }); } /** @@ -54,11 +54,11 @@ export function tbShopAreaDelete(data) { * @returns */ export function tbShopTable(data, method) { - return request({ - url: `/api/tbShopTable`, - method: method, - data - }) + return request({ + url: `/api/tbShopTable`, + method: method, + data + }); } /** @@ -66,11 +66,21 @@ export function tbShopTable(data, method) { * @returns */ export function tbShopTableDelete(data) { - return request({ - url: `/api/tbShopTable`, - method: 'DELETE', - data - }) + return request({ + url: `/api/tbShopTable`, + method: "DELETE", + data + }); } - +/** + * 下载桌码 + * @returns + */ +export function downloadTableCode(data) { + return request({ + url: `/api/tbShopTable`, + method: "post", + data + }); +}