物料模块
This commit is contained in:
69
src/api/base/materialUseLog.js
Normal file
69
src/api/base/materialUseLog.js
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-10-26 09:32:21
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建物料使用记录
|
||||
export function createMaterialLog(data) {
|
||||
return request({
|
||||
url: '/base/material-use-log/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新物料使用记录
|
||||
export function updateMaterialLog(data) {
|
||||
return request({
|
||||
url: '/base/material-use-log/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获得物料使用记录
|
||||
export function getMaterialLog(id) {
|
||||
return request({
|
||||
url: '/base/material-use-log/getDetail?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得物料使用记录分页
|
||||
export function getMaterialLogPage(query) {
|
||||
return request({
|
||||
url: '/base/material-use-log/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有设备列表
|
||||
export function getEqListAll(query) {
|
||||
return request({
|
||||
url: '/base/core-equipment/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有员工列表
|
||||
export function getworkerAll(query) {
|
||||
return request({
|
||||
url: '/base/core-worker/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除物料使用记录
|
||||
export function deleteMaterialLog(id) {
|
||||
return request({
|
||||
url: '/base/material-use-log/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user