食材管理添加食材分类
This commit is contained in:
1 parent
c2ee643ce4
commit
aa6cb653d9
4 files changed
+57
-30
No files matched your search
@@ -1,41 +1,49 @@
|
||||
import request from "/@/utils/request"
|
||||
|
||||
export function fetchList(query?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenErpCategory/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenErpCategory/page",
|
||||
method: "get",
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
export function addObj(obj?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenErpCategory',
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenErpCategory",
|
||||
method: "post",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
export function getObj(id?: string) {
|
||||
return request({
|
||||
url: '/canteen/canteenErpCategory/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenErpCategory/" + id,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function delObjs(ids?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenErpCategory',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenErpCategory",
|
||||
method: "delete",
|
||||
data: ids,
|
||||
})
|
||||
}
|
||||
|
||||
export function putObj(obj?: Object) {
|
||||
return request({
|
||||
url: '/canteen/canteenErpCategory',
|
||||
method: 'put',
|
||||
data: obj
|
||||
})
|
||||
return request({
|
||||
url: "/canteen/canteenErpCategory",
|
||||
method: "put",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
// 食材分类下拉列表
|
||||
export function getSimpleAll(obj?: Object) {
|
||||
return request({
|
||||
url: "/canteen/canteenErpCategory/simpleAll",
|
||||
method: "get",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user