仓库管理-物料管理: api修正

This commit is contained in:
qianhao.xu
2024-03-17 13:56:43 +08:00
parent d3d7d4d0a5
commit ea844e3d02

View File

@@ -6,7 +6,7 @@ import request from '@/utils/request'
*/
export function listWmMaterial(query) {
return request({
url: 'business/WmMaterial/list',
url: '/mes/wm/WmMaterial/list',
method: 'get',
params: query,
})
@@ -18,7 +18,7 @@ export function listWmMaterial(query) {
*/
export function addWmMaterial(data) {
return request({
url: 'business/WmMaterial',
url: '/mes/wm/WmMaterial',
method: 'post',
data: data,
})
@@ -29,7 +29,7 @@ export function addWmMaterial(data) {
*/
export function updateWmMaterial(data) {
return request({
url: 'business/WmMaterial',
url: '/mes/wm/WmMaterial',
method: 'PUT',
data: data,
})
@@ -40,7 +40,7 @@ export function updateWmMaterial(data) {
*/
export function getWmMaterial(id) {
return request({
url: 'business/WmMaterial/' + id,
url: '/mes/wm/WmMaterial/' + id,
method: 'get'
})
}
@@ -51,7 +51,7 @@ export function getWmMaterial(id) {
*/
export function delWmMaterial(pid) {
return request({
url: 'business/WmMaterial/' + pid,
url: '/mes/wm/WmMaterial/' + pid,
method: 'delete'
})
}