From 0685544bcd5b718f5cbbd11ae8240cddf9b953a4 Mon Sep 17 00:00:00 2001 From: xins Date: Wed, 22 May 2024 14:06:15 +0800 Subject: [PATCH] =?UTF-8?q?2.2.7=20WMS=EF=BC=9A=201=E3=80=81=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E7=B1=BB=E5=88=AB=E5=A2=9E=E5=88=A0=E6=94=B9=E6=9F=A5?= =?UTF-8?q?=202=E3=80=81=E5=8E=9F=E6=9D=90=E6=96=99=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/api/wms/rawinstock.js | 56 ++++++++++++++++++++++++++++++++ hw-ui/src/api/wms/wmscategory.js | 44 +++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 hw-ui/src/api/wms/rawinstock.js create mode 100644 hw-ui/src/api/wms/wmscategory.js 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' + }) +}