仓库管理-物料管理: 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) { export function listWmMaterial(query) {
return request({ return request({
url: 'business/WmMaterial/list', url: '/mes/wm/WmMaterial/list',
method: 'get', method: 'get',
params: query, params: query,
}) })
@@ -18,7 +18,7 @@ export function listWmMaterial(query) {
*/ */
export function addWmMaterial(data) { export function addWmMaterial(data) {
return request({ return request({
url: 'business/WmMaterial', url: '/mes/wm/WmMaterial',
method: 'post', method: 'post',
data: data, data: data,
}) })
@@ -29,7 +29,7 @@ export function addWmMaterial(data) {
*/ */
export function updateWmMaterial(data) { export function updateWmMaterial(data) {
return request({ return request({
url: 'business/WmMaterial', url: '/mes/wm/WmMaterial',
method: 'PUT', method: 'PUT',
data: data, data: data,
}) })
@@ -40,7 +40,7 @@ export function updateWmMaterial(data) {
*/ */
export function getWmMaterial(id) { export function getWmMaterial(id) {
return request({ return request({
url: 'business/WmMaterial/' + id, url: '/mes/wm/WmMaterial/' + id,
method: 'get' method: 'get'
}) })
} }
@@ -51,7 +51,7 @@ export function getWmMaterial(id) {
*/ */
export function delWmMaterial(pid) { export function delWmMaterial(pid) {
return request({ return request({
url: 'business/WmMaterial/' + pid, url: '/mes/wm/WmMaterial/' + pid,
method: 'delete' method: 'delete'
}) })
} }