新增下载桌码静态页面

This commit is contained in:
gyq 2024-06-12 18:21:53 +08:00
parent 56477f87b5
commit 49569e348f
1 changed files with 42 additions and 32 deletions

View File

@ -1,16 +1,16 @@
// 桌台管理 // 桌台管理
import request from '@/utils/request' import request from "@/utils/request";
/** /**
* 台桌列表 * 台桌列表
* @returns * @returns
*/ */
export function tbShopTableGet(params) { export function tbShopTableGet(params) {
return request({ return request({
url: `/api/tbShopTable`, url: `/api/tbShopTable`,
method: 'get', method: "get",
params params
}) });
} }
/** /**
@ -18,11 +18,11 @@ export function tbShopTableGet(params) {
* @returns * @returns
*/ */
export function tbShopAreaGet(params) { export function tbShopAreaGet(params) {
return request({ return request({
url: `/api/tbShopArea`, url: `/api/tbShopArea`,
method: 'get', method: "get",
params params
}) });
} }
/** /**
@ -30,11 +30,11 @@ export function tbShopAreaGet(params) {
* @returns * @returns
*/ */
export function tbShopArea(data, method) { export function tbShopArea(data, method) {
return request({ return request({
url: `/api/tbShopArea`, url: `/api/tbShopArea`,
method: method, method: method,
data data
}) });
} }
/** /**
@ -42,11 +42,11 @@ export function tbShopArea(data, method) {
* @returns * @returns
*/ */
export function tbShopAreaDelete(data) { export function tbShopAreaDelete(data) {
return request({ return request({
url: `/api/tbShopArea`, url: `/api/tbShopArea`,
method: 'DELETE', method: "DELETE",
data data
}) });
} }
/** /**
@ -54,11 +54,11 @@ export function tbShopAreaDelete(data) {
* @returns * @returns
*/ */
export function tbShopTable(data, method) { export function tbShopTable(data, method) {
return request({ return request({
url: `/api/tbShopTable`, url: `/api/tbShopTable`,
method: method, method: method,
data data
}) });
} }
/** /**
@ -66,11 +66,21 @@ export function tbShopTable(data, method) {
* @returns * @returns
*/ */
export function tbShopTableDelete(data) { export function tbShopTableDelete(data) {
return request({ return request({
url: `/api/tbShopTable`, url: `/api/tbShopTable`,
method: 'DELETE', method: "DELETE",
data data
}) });
} }
/**
* 下载桌码
* @returns
*/
export function downloadTableCode(data) {
return request({
url: `/api/tbShopTable`,
method: "post",
data
});
}