diff --git a/hw-ui/src/api/wms/rawinstock.js b/hw-ui/src/api/wms/rawinstock.js new file mode 100644 index 0000000..044a817 --- /dev/null +++ b/hw-ui/src/api/wms/rawinstock.js @@ -0,0 +1,56 @@ +import request from '@/utils/request' + +// 查询原材料入库记录列表 +export function listRawinstock(query) { + return request({ + url: '/wms/rawinstock/list', + method: 'get', + params: query + }) +} + +// 查询原材料入库记录详细 +export function getRawinstock(rawInstockId) { + return request({ + url: '/wms/rawinstock/' + rawInstockId, + method: 'get' + }) +} + +// 新增原材料入库记录 +export function addRawinstock(data) { + return request({ + url: '/wms/rawinstock', + method: 'post', + data: data + }) +} + +// 修改原材料入库记录 +export function updateRawinstock(data) { + return request({ + url: '/wms/rawinstock', + method: 'put', + data: data + }) +} + +// 删除原材料入库记录 +export function delRawinstock(rawInstockId) { + return request({ + url: '/wms/rawinstock/' + rawInstockId, + method: 'delete' + }) +} + + + + +// 查询仓库列表 +export function getRawWarehouses(query) { + return request({ + url: '/wms/rawinstock/getRawWarehouses', + method: 'get', + params: query + }) +} diff --git a/hw-ui/src/api/wms/wmscategory.js b/hw-ui/src/api/wms/wmscategory.js new file mode 100644 index 0000000..96cf1f6 --- /dev/null +++ b/hw-ui/src/api/wms/wmscategory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询仓库类别列表 +export function listWmscategory(query) { + return request({ + url: '/wms/wmscategory/list', + method: 'get', + params: query + }) +} + +// 查询仓库类别详细 +export function getWmscategory(categoryId) { + return request({ + url: '/wms/wmscategory/' + categoryId, + method: 'get' + }) +} + +// 新增仓库类别 +export function addWmscategory(data) { + return request({ + url: '/wms/wmscategory', + method: 'post', + data: data + }) +} + +// 修改仓库类别 +export function updateWmscategory(data) { + return request({ + url: '/wms/wmscategory', + method: 'put', + data: data + }) +} + +// 删除仓库类别 +export function delWmscategory(categoryId) { + return request({ + url: '/wms/wmscategory/' + categoryId, + method: 'delete' + }) +}