test
This commit is contained in:
57
src/api/materialManagement/mminventory.js
Normal file
57
src/api/materialManagement/mminventory.js
Normal file
@@ -0,0 +1,57 @@
|
||||
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'
|
||||
})
|
||||
}
|
||||
44
src/api/testModule/index.js
Normal file
44
src/api/testModule/index.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询测试模块列表
|
||||
export function listTestModule(query) {
|
||||
return request({
|
||||
url: '/testModule/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询测试模块详细
|
||||
export function getTestModule(id) {
|
||||
return request({
|
||||
url: '/testModule/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增测试模块
|
||||
export function addTestModule(data) {
|
||||
return request({
|
||||
url: '/testModule/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改测试模块
|
||||
export function updateTestModule(data) {
|
||||
return request({
|
||||
url: '/testModule/edit',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除测试模块
|
||||
export function delTestModule(id) {
|
||||
return request({
|
||||
url: '/testModule/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user