refactor(api): 重构物料管理API文件结构

将物料管理相关的API文件按功能模块重新组织目录结构:
1. 将wms-*.js文件移动到wms子目录
2. 将mm*.js文件按功能分类到productionMaterial和lineWarehouse目录
3. 更新相关视图文件的API引用路径
4. 删除不再使用的旧API文件
This commit is contained in:
2025-12-25 14:24:03 +08:00
parent ad2a8038c6
commit 186b31c8a1
46 changed files with 2949 additions and 3013 deletions

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 库存表分页查询
* @param {查询条件} data
*/
export function listMmInventory(query) {
return request({
url: 'BZFM/MmInventory/list',
method: 'get',
params: query,
})
}
/**
* 新增库存表
* @param data
*/
export function addMmInventory(data) {
return request({
url: 'BZFM/MmInventory',
method: 'post',
data: data,
})
}
/**
* 修改库存表
* @param data
*/
export function updateMmInventory(data) {
return request({
url: 'BZFM/MmInventory',
method: 'PUT',
data: data,
})
}
/**
* 获取库存表详情
* @param {Id}
*/
export function getMmInventory(id) {
return request({
url: 'BZFM/MmInventory/' + id,
method: 'get'
})
}
/**
* 删除库存表
* @param {主键} pid
*/
export function delMmInventory(pid) {
return request({
url: 'BZFM/MmInventory/delete/' + pid,
method: 'POST'
})
}

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 库位表分页查询
* @param {查询条件} data
*/
export function listMmLocation(query) {
return request({
url: 'BZFM/MmLocation/list',
method: 'get',
params: query,
})
}
/**
* 新增库位表
* @param data
*/
export function addMmLocation(data) {
return request({
url: 'BZFM/MmLocation',
method: 'post',
data: data,
})
}
/**
* 修改库位表
* @param data
*/
export function updateMmLocation(data) {
return request({
url: 'BZFM/MmLocation',
method: 'PUT',
data: data,
})
}
/**
* 获取库位表详情
* @param {Id}
*/
export function getMmLocation(id) {
return request({
url: 'BZFM/MmLocation/' + id,
method: 'get'
})
}
/**
* 删除库位表
* @param {主键} pid
*/
export function delMmLocation(pid) {
return request({
url: 'BZFM/MmLocation/delete/' + pid,
method: 'POST'
})
}

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 物料表分页查询
* @param {查询条件} data
*/
export function listMmMaterial(query) {
return request({
url: 'BZFM/MmMaterial/list',
method: 'get',
params: query,
})
}
/**
* 新增物料表
* @param data
*/
export function addMmMaterial(data) {
return request({
url: 'BZFM/MmMaterial',
method: 'post',
data: data,
})
}
/**
* 修改物料表
* @param data
*/
export function updateMmMaterial(data) {
return request({
url: 'BZFM/MmMaterial',
method: 'PUT',
data: data,
})
}
/**
* 获取物料表详情
* @param {Id}
*/
export function getMmMaterial(id) {
return request({
url: 'BZFM/MmMaterial/' + id,
method: 'get'
})
}
/**
* 删除物料表
* @param {主键} pid
*/
export function delMmMaterial(pid) {
return request({
url: 'BZFM/MmMaterial/delete/' + pid,
method: 'POST'
})
}

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 物料分类表分页查询
* @param {查询条件} data
*/
export function listMmMaterialCategory(query) {
return request({
url: 'BZFM/MmMaterialCategory/list',
method: 'get',
params: query,
})
}
/**
* 新增物料分类表
* @param data
*/
export function addMmMaterialCategory(data) {
return request({
url: 'BZFM/MmMaterialCategory',
method: 'post',
data: data,
})
}
/**
* 修改物料分类表
* @param data
*/
export function updateMmMaterialCategory(data) {
return request({
url: 'BZFM/MmMaterialCategory',
method: 'PUT',
data: data,
})
}
/**
* 获取物料分类表详情
* @param {Id}
*/
export function getMmMaterialCategory(id) {
return request({
url: 'BZFM/MmMaterialCategory/' + id,
method: 'get'
})
}
/**
* 删除物料分类表
* @param {主键} pid
*/
export function delMmMaterialCategory(pid) {
return request({
url: 'BZFM/MmMaterialCategory/delete/' + pid,
method: 'POST'
})
}

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 入库记录表分页查询
* @param {查询条件} data
*/
export function listMmRecordInbound(query) {
return request({
url: 'BZFM/MmRecordInbound/list',
method: 'get',
params: query,
})
}
/**
* 新增入库记录表
* @param data
*/
export function addMmRecordInbound(data) {
return request({
url: 'BZFM/MmRecordInbound',
method: 'post',
data: data,
})
}
/**
* 修改入库记录表
* @param data
*/
export function updateMmRecordInbound(data) {
return request({
url: 'BZFM/MmRecordInbound',
method: 'PUT',
data: data,
})
}
/**
* 获取入库记录表详情
* @param {Id}
*/
export function getMmRecordInbound(id) {
return request({
url: 'BZFM/MmRecordInbound/' + id,
method: 'get'
})
}
/**
* 删除入库记录表
* @param {主键} pid
*/
export function delMmRecordInbound(pid) {
return request({
url: 'BZFM/MmRecordInbound/delete/' + pid,
method: 'POST'
})
}

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 出库记录表分页查询
* @param {查询条件} data
*/
export function listMmRecordOutbound(query) {
return request({
url: 'BZFM/MmRecordOutbound/list',
method: 'get',
params: query,
})
}
/**
* 新增出库记录表
* @param data
*/
export function addMmRecordOutbound(data) {
return request({
url: 'BZFM/MmRecordOutbound',
method: 'post',
data: data,
})
}
/**
* 修改出库记录表
* @param data
*/
export function updateMmRecordOutbound(data) {
return request({
url: 'BZFM/MmRecordOutbound',
method: 'PUT',
data: data,
})
}
/**
* 获取出库记录表详情
* @param {Id}
*/
export function getMmRecordOutbound(id) {
return request({
url: 'BZFM/MmRecordOutbound/' + id,
method: 'get'
})
}
/**
* 删除出库记录表
* @param {主键} pid
*/
export function delMmRecordOutbound(pid) {
return request({
url: 'BZFM/MmRecordOutbound/delete/' + pid,
method: 'POST'
})
}

View File

@@ -1,57 +0,0 @@
import request from '@/utils/request'
/**
* 出入库类别对照表分页查询
* @param {查询条件} data
*/
export function listMmTransactionType(query) {
return request({
url: 'BZFM/MmTransactionType/list',
method: 'get',
params: query,
})
}
/**
* 新增出入库类别对照表
* @param data
*/
export function addMmTransactionType(data) {
return request({
url: 'BZFM/MmTransactionType',
method: 'post',
data: data,
})
}
/**
* 修改出入库类别对照表
* @param data
*/
export function updateMmTransactionType(data) {
return request({
url: 'BZFM/MmTransactionType',
method: 'PUT',
data: data,
})
}
/**
* 获取出入库类别对照表详情
* @param {Id}
*/
export function getMmTransactionType(id) {
return request({
url: 'BZFM/MmTransactionType/' + id,
method: 'get'
})
}
/**
* 删除出入库类别对照表
* @param {主键} pid
*/
export function delMmTransactionType(pid) {
return request({
url: 'BZFM/MmTransactionType/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 库存表分页查询
* @param {查询条件} data
*/
export function listMmInventory(query) {
return request({
url: 'mes/productionMaterial/MmInventory/list',
method: 'get',
params: query
})
}
/**
* 新增库存表
* @param data
*/
export function addMmInventory(data) {
return request({
url: 'mes/productionMaterial/MmInventory',
method: 'post',
data: data
})
}
/**
* 修改库存表
* @param data
*/
export function updateMmInventory(data) {
return request({
url: 'mes/productionMaterial/MmInventory',
method: 'PUT',
data: data
})
}
/**
* 获取库存表详情
* @param {Id}
*/
export function getMmInventory(id) {
return request({
url: 'mes/productionMaterial/MmInventory/' + id,
method: 'get'
})
}
/**
* 删除库存表
* @param {主键} pid
*/
export function delMmInventory(pid) {
return request({
url: 'mes/productionMaterial/MmInventory/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 库位表分页查询
* @param {查询条件} data
*/
export function listMmLocation(query) {
return request({
url: 'mes/productionMaterial/MmLocation/list',
method: 'get',
params: query
})
}
/**
* 新增库位表
* @param data
*/
export function addMmLocation(data) {
return request({
url: 'mes/productionMaterial/MmLocation',
method: 'post',
data: data
})
}
/**
* 修改库位表
* @param data
*/
export function updateMmLocation(data) {
return request({
url: 'mes/productionMaterial/MmLocation',
method: 'PUT',
data: data
})
}
/**
* 获取库位表详情
* @param {Id}
*/
export function getMmLocation(id) {
return request({
url: 'mes/productionMaterial/MmLocation/' + id,
method: 'get'
})
}
/**
* 删除库位表
* @param {主键} pid
*/
export function delMmLocation(pid) {
return request({
url: 'mes/productionMaterial/MmLocation/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 物料表分页查询
* @param {查询条件} data
*/
export function listMmMaterial(query) {
return request({
url: 'mes/productionMaterial/MmMaterial/list',
method: 'get',
params: query
})
}
/**
* 新增物料表
* @param data
*/
export function addMmMaterial(data) {
return request({
url: 'mes/productionMaterial/MmMaterial',
method: 'post',
data: data
})
}
/**
* 修改物料表
* @param data
*/
export function updateMmMaterial(data) {
return request({
url: 'mes/productionMaterial/MmMaterial',
method: 'PUT',
data: data
})
}
/**
* 获取物料表详情
* @param {Id}
*/
export function getMmMaterial(id) {
return request({
url: 'mes/productionMaterial/MmMaterial/' + id,
method: 'get'
})
}
/**
* 删除物料表
* @param {主键} pid
*/
export function delMmMaterial(pid) {
return request({
url: 'mes/productionMaterial/MmMaterial/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 物料分类表分页查询
* @param {查询条件} data
*/
export function listMmMaterialCategory(query) {
return request({
url: 'mes/productionMaterial/MmMaterialCategory/list',
method: 'get',
params: query
})
}
/**
* 新增物料分类表
* @param data
*/
export function addMmMaterialCategory(data) {
return request({
url: 'mes/productionMaterial/MmMaterialCategory',
method: 'post',
data: data
})
}
/**
* 修改物料分类表
* @param data
*/
export function updateMmMaterialCategory(data) {
return request({
url: 'mes/productionMaterial/MmMaterialCategory',
method: 'PUT',
data: data
})
}
/**
* 获取物料分类表详情
* @param {Id}
*/
export function getMmMaterialCategory(id) {
return request({
url: 'mes/productionMaterial/MmMaterialCategory/' + id,
method: 'get'
})
}
/**
* 删除物料分类表
* @param {主键} pid
*/
export function delMmMaterialCategory(pid) {
return request({
url: 'mes/productionMaterial/MmMaterialCategory/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 入库记录表分页查询
* @param {查询条件} data
*/
export function listMmRecordInbound(query) {
return request({
url: 'mes/productionMaterial/MmRecordInbound/list',
method: 'get',
params: query
})
}
/**
* 新增入库记录表
* @param data
*/
export function addMmRecordInbound(data) {
return request({
url: 'mes/productionMaterial/MmRecordInbound',
method: 'post',
data: data
})
}
/**
* 修改入库记录表
* @param data
*/
export function updateMmRecordInbound(data) {
return request({
url: 'mes/productionMaterial/MmRecordInbound',
method: 'PUT',
data: data
})
}
/**
* 获取入库记录表详情
* @param {Id}
*/
export function getMmRecordInbound(id) {
return request({
url: 'mes/productionMaterial/MmRecordInbound/' + id,
method: 'get'
})
}
/**
* 删除入库记录表
* @param {主键} pid
*/
export function delMmRecordInbound(pid) {
return request({
url: 'mes/productionMaterial/MmRecordInbound/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 出库记录表分页查询
* @param {查询条件} data
*/
export function listMmRecordOutbound(query) {
return request({
url: 'mes/productionMaterial/MmRecordOutbound/list',
method: 'get',
params: query
})
}
/**
* 新增出库记录表
* @param data
*/
export function addMmRecordOutbound(data) {
return request({
url: 'mes/productionMaterial/MmRecordOutbound',
method: 'post',
data: data
})
}
/**
* 修改出库记录表
* @param data
*/
export function updateMmRecordOutbound(data) {
return request({
url: 'mes/productionMaterial/MmRecordOutbound',
method: 'PUT',
data: data
})
}
/**
* 获取出库记录表详情
* @param {Id}
*/
export function getMmRecordOutbound(id) {
return request({
url: 'mes/productionMaterial/MmRecordOutbound/' + id,
method: 'get'
})
}
/**
* 删除出库记录表
* @param {主键} pid
*/
export function delMmRecordOutbound(pid) {
return request({
url: 'mes/productionMaterial/MmRecordOutbound/delete/' + pid,
method: 'POST'
})
}

View File

@@ -0,0 +1,57 @@
import request from '@/utils/request'
/**
* 出入库类别对照表分页查询
* @param {查询条件} data
*/
export function listMmTransactionType(query) {
return request({
url: 'mes/productionMaterial/MmTransactionType/list',
method: 'get',
params: query
})
}
/**
* 新增出入库类别对照表
* @param data
*/
export function addMmTransactionType(data) {
return request({
url: 'mes/productionMaterial/MmTransactionType',
method: 'post',
data: data
})
}
/**
* 修改出入库类别对照表
* @param data
*/
export function updateMmTransactionType(data) {
return request({
url: 'mes/productionMaterial/MmTransactionType',
method: 'PUT',
data: data
})
}
/**
* 获取出入库类别对照表详情
* @param {Id}
*/
export function getMmTransactionType(id) {
return request({
url: 'mes/productionMaterial/MmTransactionType/' + id,
method: 'get'
})
}
/**
* 删除出入库类别对照表
* @param {主键} pid
*/
export function delMmTransactionType(pid) {
return request({
url: 'mes/productionMaterial/MmTransactionType/delete/' + pid,
method: 'POST'
})
}