feat(cost&wms): 新增成本模块与考勤优化功能
1. 新增成本相关业务模块:成本项目配置、成本单价历史、生产月报、生产指标明细、生产成本明细的CRUD接口与页面 2. 为生产月报实体增加列配置字段及数据库映射 3. 优化考勤查询接口,将get请求改为post并使用body传参 4. 考勤页面增加部门筛选、员工多选筛选和打卡记录展示功能
This commit is contained in:
44
klp-ui/src/api/cost/price.js
Normal file
44
klp-ui/src/api/cost/price.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询成本单价历史列表
|
||||
export function listPrice(query) {
|
||||
return request({
|
||||
url: '/cost/price/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询成本单价历史详细
|
||||
export function getPrice(priceId) {
|
||||
return request({
|
||||
url: '/cost/price/' + priceId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增成本单价历史
|
||||
export function addPrice(data) {
|
||||
return request({
|
||||
url: '/cost/price',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改成本单价历史
|
||||
export function updatePrice(data) {
|
||||
return request({
|
||||
url: '/cost/price',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除成本单价历史
|
||||
export function delPrice(priceId) {
|
||||
return request({
|
||||
url: '/cost/price/' + priceId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user