新增存酒管理
This commit is contained in:
@@ -25,3 +25,75 @@ export function appCenterGet() {
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增/编辑酒品
|
||||
* @returns
|
||||
*/
|
||||
export function tbShopStorageGood(data, method = "post") {
|
||||
return request({
|
||||
url: "/api/tbShopStorageGood",
|
||||
method: method,
|
||||
data: {
|
||||
shopId: localStorage.getItem("shopId"),
|
||||
...data
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询酒品列表
|
||||
* @returns
|
||||
*/
|
||||
export function tbShopStorageGoodlist(data) {
|
||||
return request({
|
||||
url: "/api/tbShopStorageGood/list",
|
||||
method: "post",
|
||||
data: {
|
||||
shopId: localStorage.getItem("shopId"),
|
||||
...data
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增存酒
|
||||
* @returns
|
||||
*/
|
||||
export function storageWin(data) {
|
||||
return request({
|
||||
url: "/api/storage",
|
||||
method: "post",
|
||||
data: {
|
||||
shopId: localStorage.getItem("shopId"),
|
||||
...data
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询存酒列表
|
||||
* @returns
|
||||
*/
|
||||
export function storageList(data) {
|
||||
return request({
|
||||
url: "/api/storage/list",
|
||||
method: "post",
|
||||
data: {
|
||||
shopId: localStorage.getItem("shopId"),
|
||||
...data
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 存取酒
|
||||
* @returns
|
||||
*/
|
||||
export function storagePut(data) {
|
||||
return request({
|
||||
url: "/api/storage",
|
||||
method: "put",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user