bonus-ui/src/api/kitchen/staff.js

95 lines
2.0 KiB
JavaScript

import request from '@/utils/request'
import { parseStrEmpty } from '@/utils/bonus'
// 系统人员树状下拉选择数据
export function deptUserTreeApi(query) {
return request({
url: '/system/user/deptUserTree',
method: 'post',
data: query
})
}
// 系统人员信息详情
export function getUserInfoApi(userId) {
return request({
url: '/system/user/' + parseStrEmpty(userId),
method: 'get'
})
}
// 厨房员工列表
export function getStaffListApi(data) {
return request({
url: '/smart-canteen/kitchen_staff_info/list',
method: 'post',
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
//详情
export function getStaffInfoApi(staffId) {
return request({
url: '/smart-canteen/kitchen_staff_info/'+staffId,
method: 'get'
})
}
export function addKitchenStaffApi(query) {
return request({
url: '/smart-canteen/kitchen_staff_info',
method: 'post',
data: query
})
}
export function editKitchenStaffApi(query) {
return request({
url: '/smart-canteen/kitchen_staff_info/edit',
method: 'post',
data: query
})
}
export function delStaffApi(staffId) {
return request({
url: '/smart-canteen/kitchen_staff_info/del/'+staffId,
method: 'post',
})
}
//更新员工人脸
export function editStaffFaceStateApi(data) {
return request({
url: '/kitchen_staff_info/edit/face-state',
method: 'post',
data: data
})
}
// 查询厨房员工晨检记录列表
export function getStaffMorningCheckApi(data) {
return request({
url: '/smart-canteen/kitchen_staff_morning_check/list',
method: 'post',
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
// 查询厨房员工违规报警列表
export function getStaffIllegalListApi(data) {
return request({
url: '/smart-canteen/kitchen_staff_illegal_warning/list',
method: 'post',
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}