refactor(api): 重构物料管理API文件结构
将物料管理相关的API文件按功能模块重新组织目录结构: 1. 将wms-*.js文件移动到wms子目录 2. 将mm*.js文件按功能分类到productionMaterial和lineWarehouse目录 3. 更新相关视图文件的API引用路径 4. 删除不再使用的旧API文件
This commit is contained in:
57
src/api/materialManagement/wms/wms-supplier.js
Normal file
57
src/api/materialManagement/wms/wms-supplier.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 物料供应商分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listSupplier(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/Parts/MaterialPartsSuppliers/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增物料供应商
|
||||
* @param data
|
||||
*/
|
||||
export function addSupplier(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/Parts/MaterialPartsSuppliers',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改物料供应商
|
||||
* @param data
|
||||
*/
|
||||
export function updateSupplier(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/Parts/MaterialPartsSuppliers',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取物料供应商详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getSupplier(id) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/Parts/MaterialPartsSuppliers/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料供应商
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delSupplier(pid) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/Parts/MaterialPartsSuppliers/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user