新增桌台管理

This commit is contained in:
gyq
2024-02-01 12:11:10 +08:00
parent 640e3bb941
commit 259aec07cd
16 changed files with 1233 additions and 68 deletions

64
src/api/table.js Normal file
View File

@@ -0,0 +1,64 @@
// 桌台管理
import request from '@/utils/request'
/**
* 台桌列表
* @returns
*/
export function tbShopTableGet(params) {
return request({
url: `/api/tbShopTable`,
method: 'get',
params
})
}
/**
* 区域
* @returns
*/
export function tbShopAreaGet(params) {
return request({
url: `/api/tbShopArea`,
method: 'get',
params
})
}
/**
* 增加区域
* @returns
*/
export function tbShopArea(data, method) {
return request({
url: `/api/tbShopArea`,
method: method,
data
})
}
/**
* 删除区域
* @returns
*/
export function tbShopAreaDelete(data) {
return request({
url: `/api/tbShopArea`,
method: 'DELETE',
data
})
}
/**
* 增加台桌
* @returns
*/
export function tbShopTable(data, method) {
return request({
url: `/api/tbShopTable`,
method: method,
data
})
}