前端/klp改成/wms

This commit is contained in:
2025-07-18 10:38:20 +08:00
parent 6fab414665
commit ab1dda6422
6 changed files with 30 additions and 30 deletions

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询通用分类列表 // 查询通用分类列表
export function listCategory(query) { export function listCategory(query) {
return request({ return request({
url: '/klp/category/list', url: '/wms/category/list',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -12,7 +12,7 @@ export function listCategory(query) {
// 查询通用分类详细 // 查询通用分类详细
export function getCategory(categoryId) { export function getCategory(categoryId) {
return request({ return request({
url: '/klp/category/' + categoryId, url: '/wms/category/' + categoryId,
method: 'get' method: 'get'
}) })
} }
@@ -20,7 +20,7 @@ export function getCategory(categoryId) {
// 新增通用分类 // 新增通用分类
export function addCategory(data) { export function addCategory(data) {
return request({ return request({
url: '/klp/category', url: '/wms/category',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -29,7 +29,7 @@ export function addCategory(data) {
// 修改通用分类 // 修改通用分类
export function updateCategory(data) { export function updateCategory(data) {
return request({ return request({
url: '/klp/category', url: '/wms/category',
method: 'put', method: 'put',
data: data data: data
}) })
@@ -38,7 +38,7 @@ export function updateCategory(data) {
// 删除通用分类 // 删除通用分类
export function delCategory(categoryId) { export function delCategory(categoryId) {
return request({ return request({
url: '/klp/category/' + categoryId, url: '/wms/category/' + categoryId,
method: 'delete' method: 'delete'
}) })
} }

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询产品列表 // 查询产品列表
export function listProduct(query) { export function listProduct(query) {
return request({ return request({
url: '/klp/product/list', url: '/wms/product/list',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -12,7 +12,7 @@ export function listProduct(query) {
// 查询产品详细 // 查询产品详细
export function getProduct(productId) { export function getProduct(productId) {
return request({ return request({
url: '/klp/product/' + productId, url: '/wms/product/' + productId,
method: 'get' method: 'get'
}) })
} }
@@ -20,7 +20,7 @@ export function getProduct(productId) {
// 新增产品 // 新增产品
export function addProduct(data) { export function addProduct(data) {
return request({ return request({
url: '/klp/product', url: '/wms/product',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -29,7 +29,7 @@ export function addProduct(data) {
// 修改产品 // 修改产品
export function updateProduct(data) { export function updateProduct(data) {
return request({ return request({
url: '/klp/product', url: '/wms/product',
method: 'put', method: 'put',
data: data data: data
}) })
@@ -38,7 +38,7 @@ export function updateProduct(data) {
// 删除产品 // 删除产品
export function delProduct(productId) { export function delProduct(productId) {
return request({ return request({
url: '/klp/product/' + productId, url: '/wms/product/' + productId,
method: 'delete' method: 'delete'
}) })
} }

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询产线列表 // 查询产线列表
export function listProductionLine(query) { export function listProductionLine(query) {
return request({ return request({
url: '/klp/productionLine/list', url: '/wms/productionLine/list',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -12,7 +12,7 @@ export function listProductionLine(query) {
// 查询产线详细 // 查询产线详细
export function getProductionLine(lineId) { export function getProductionLine(lineId) {
return request({ return request({
url: '/klp/productionLine/' + lineId, url: '/wms/productionLine/' + lineId,
method: 'get' method: 'get'
}) })
} }
@@ -20,7 +20,7 @@ export function getProductionLine(lineId) {
// 新增产线 // 新增产线
export function addProductionLine(data) { export function addProductionLine(data) {
return request({ return request({
url: '/klp/productionLine', url: '/wms/productionLine',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -29,7 +29,7 @@ export function addProductionLine(data) {
// 修改产线 // 修改产线
export function updateProductionLine(data) { export function updateProductionLine(data) {
return request({ return request({
url: '/klp/productionLine', url: '/wms/productionLine',
method: 'put', method: 'put',
data: data data: data
}) })
@@ -38,7 +38,7 @@ export function updateProductionLine(data) {
// 删除产线 // 删除产线
export function delProductionLine(lineId) { export function delProductionLine(lineId) {
return request({ return request({
url: '/klp/productionLine/' + lineId, url: '/wms/productionLine/' + lineId,
method: 'delete' method: 'delete'
}) })
} }

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询原材料列表 // 查询原材料列表
export function listRawMaterial(query) { export function listRawMaterial(query) {
return request({ return request({
url: '/klp/rawMaterial/list', url: '/wms/rawMaterial/list',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -12,7 +12,7 @@ export function listRawMaterial(query) {
// 查询原材料详细 // 查询原材料详细
export function getRawMaterial(rawMaterialId) { export function getRawMaterial(rawMaterialId) {
return request({ return request({
url: '/klp/rawMaterial/' + rawMaterialId, url: '/wms/rawMaterial/' + rawMaterialId,
method: 'get' method: 'get'
}) })
} }
@@ -20,7 +20,7 @@ export function getRawMaterial(rawMaterialId) {
// 新增原材料 // 新增原材料
export function addRawMaterial(data) { export function addRawMaterial(data) {
return request({ return request({
url: '/klp/rawMaterial', url: '/wms/rawMaterial',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -29,7 +29,7 @@ export function addRawMaterial(data) {
// 修改原材料 // 修改原材料
export function updateRawMaterial(data) { export function updateRawMaterial(data) {
return request({ return request({
url: '/klp/rawMaterial', url: '/wms/rawMaterial',
method: 'put', method: 'put',
data: data data: data
}) })
@@ -38,7 +38,7 @@ export function updateRawMaterial(data) {
// 删除原材料 // 删除原材料
export function delRawMaterial(rawMaterialId) { export function delRawMaterial(rawMaterialId) {
return request({ return request({
url: '/klp/rawMaterial/' + rawMaterialId, url: '/wms/rawMaterial/' + rawMaterialId,
method: 'delete' method: 'delete'
}) })
} }

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询库存:原材料/产品与库区/库位的存放关系列表 // 查询库存:原材料/产品与库区/库位的存放关系列表
export function listStock(query) { export function listStock(query) {
return request({ return request({
url: '/klp/stock/list', url: '/wms/stock/list',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -12,7 +12,7 @@ export function listStock(query) {
// 查询库存:原材料/产品与库区/库位的存放关系详细 // 查询库存:原材料/产品与库区/库位的存放关系详细
export function getStock(stockId) { export function getStock(stockId) {
return request({ return request({
url: '/klp/stock/' + stockId, url: '/wms/stock/' + stockId,
method: 'get' method: 'get'
}) })
} }
@@ -20,7 +20,7 @@ export function getStock(stockId) {
// 新增库存:原材料/产品与库区/库位的存放关系 // 新增库存:原材料/产品与库区/库位的存放关系
export function addStock(data) { export function addStock(data) {
return request({ return request({
url: '/klp/stock', url: '/wms/stock',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -29,7 +29,7 @@ export function addStock(data) {
// 修改库存:原材料/产品与库区/库位的存放关系 // 修改库存:原材料/产品与库区/库位的存放关系
export function updateStock(data) { export function updateStock(data) {
return request({ return request({
url: '/klp/stock', url: '/wms/stock',
method: 'put', method: 'put',
data: data data: data
}) })
@@ -38,7 +38,7 @@ export function updateStock(data) {
// 删除库存:原材料/产品与库区/库位的存放关系 // 删除库存:原材料/产品与库区/库位的存放关系
export function delStock(stockId) { export function delStock(stockId) {
return request({ return request({
url: '/klp/stock/' + stockId, url: '/wms/stock/' + stockId,
method: 'delete' method: 'delete'
}) })
} }

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询仓库/库区/库位自关联列表 // 查询仓库/库区/库位自关联列表
export function listWarehouse(query) { export function listWarehouse(query) {
return request({ return request({
url: '/klp/warehouse/list', url: '/wms/warehouse/list',
method: 'get', method: 'get',
params: query params: query
}) })
@@ -12,7 +12,7 @@ export function listWarehouse(query) {
// 查询仓库/库区/库位自关联详细 // 查询仓库/库区/库位自关联详细
export function getWarehouse(warehouseId) { export function getWarehouse(warehouseId) {
return request({ return request({
url: '/klp/warehouse/' + warehouseId, url: '/wms/warehouse/' + warehouseId,
method: 'get' method: 'get'
}) })
} }
@@ -20,7 +20,7 @@ export function getWarehouse(warehouseId) {
// 新增仓库/库区/库位自关联 // 新增仓库/库区/库位自关联
export function addWarehouse(data) { export function addWarehouse(data) {
return request({ return request({
url: '/klp/warehouse', url: '/wms/warehouse',
method: 'post', method: 'post',
data: data data: data
}) })
@@ -29,7 +29,7 @@ export function addWarehouse(data) {
// 修改仓库/库区/库位自关联 // 修改仓库/库区/库位自关联
export function updateWarehouse(data) { export function updateWarehouse(data) {
return request({ return request({
url: '/klp/warehouse', url: '/wms/warehouse',
method: 'put', method: 'put',
data: data data: data
}) })
@@ -38,7 +38,7 @@ export function updateWarehouse(data) {
// 删除仓库/库区/库位自关联 // 删除仓库/库区/库位自关联
export function delWarehouse(warehouseId) { export function delWarehouse(warehouseId) {
return request({ return request({
url: '/klp/warehouse/' + warehouseId, url: '/wms/warehouse/' + warehouseId,
method: 'delete' method: 'delete'
}) })
} }