This commit is contained in:
JinLu.Yin
2022-06-06 22:49:47 +08:00
parent bc3287b147
commit 39f498d33b
3 changed files with 338 additions and 0 deletions

44
src/api/mes/cal/shift.js Normal file
View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询计划班次列表
export function listShift(query) {
return request({
url: '/mes/cal/shift/list',
method: 'get',
params: query
})
}
// 查询计划班次详细
export function getShift(shiftId) {
return request({
url: '/mes/cal/shift/' + shiftId,
method: 'get'
})
}
// 新增计划班次
export function addShift(data) {
return request({
url: '/mes/cal/shift',
method: 'post',
data: data
})
}
// 修改计划班次
export function updateShift(data) {
return request({
url: '/mes/cal/shift',
method: 'put',
data: data
})
}
// 删除计划班次
export function delShift(shiftId) {
return request({
url: '/mes/cal/shift/' + shiftId,
method: 'delete'
})
}