库存管理
This commit is contained in:
36
common/js/api/inventoryManagement.js
Normal file
36
common/js/api/inventoryManagement.js
Normal file
@ -0,0 +1,36 @@
|
||||
import request from "../request.js";
|
||||
|
||||
export const getInventoryManagement = (params) => {
|
||||
return request({
|
||||
url: "/inventory_management",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
};
|
||||
export const addInventoryManagement = (data) => {
|
||||
return request({
|
||||
url: "/inventory_management",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
export const getInventoryManagementById = (id) => {
|
||||
return request({
|
||||
url: `/inventory_management/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
};
|
||||
export const deleteInventoryManagement = (id) => {
|
||||
return request({
|
||||
url: `/inventory_management/${id}`,
|
||||
method: "delete",
|
||||
});
|
||||
};
|
||||
export const updateInventoryManagement = (data) => {
|
||||
return request({
|
||||
url: `/inventory_management/${data.id}`,
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
};
|
36
common/js/api/projectBaseInfo.js
Normal file
36
common/js/api/projectBaseInfo.js
Normal file
@ -0,0 +1,36 @@
|
||||
import request from "../request.js";
|
||||
|
||||
export const getProjectBaseInfo = (params) => {
|
||||
return request({
|
||||
url: "/project_base_info",
|
||||
method: "get",
|
||||
params,
|
||||
});
|
||||
};
|
||||
export const addProjectBaseInfo = (data) => {
|
||||
return request({
|
||||
url: "/project_base_info",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
export const getProjectBaseInfoById = (id) => {
|
||||
return request({
|
||||
url: `/project_base_info/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
};
|
||||
export const deleteProjectBaseInfo = (id) => {
|
||||
return request({
|
||||
url: `/project_base_info/${id}`,
|
||||
method: "delete",
|
||||
});
|
||||
};
|
||||
export const updateProjectBaseInfo = (data) => {
|
||||
return request({
|
||||
url: `/project_base_info/${data.id}`,
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
};
|
@ -27,3 +27,10 @@ export const deleteProjectCompany = (id) => {
|
||||
method: "delete",
|
||||
});
|
||||
};
|
||||
export const updateProjectCompany = (data) => {
|
||||
return request({
|
||||
url: `/project_company/${data.id}`,
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user