55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 创建后端用 设备生产数量统计表(按一定时间段写入)
|
|
export function createEquipmentQuantityLog(data) {
|
|
return request({
|
|
url: '/base/equipment-quantity-log/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新后端用 设备生产数量统计表(按一定时间段写入)
|
|
export function updateEquipmentQuantityLog(data) {
|
|
return request({
|
|
url: '/base/equipment-quantity-log/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除后端用 设备生产数量统计表(按一定时间段写入)
|
|
export function deleteEquipmentQuantityLog(id) {
|
|
return request({
|
|
url: '/base/equipment-quantity-log/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得后端用 设备生产数量统计表(按一定时间段写入)
|
|
export function getEquipmentQuantityLog(id) {
|
|
return request({
|
|
url: '/base/equipment-quantity-log/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得后端用 设备生产数量统计表(按一定时间段写入)分页
|
|
export function getEquipmentQuantityLogPage(query) {
|
|
return request({
|
|
url: '/base/equipment-quantity-log/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 导出后端用 设备生产数量统计表(按一定时间段写入) Excel
|
|
export function exportEquipmentQuantityLogExcel(query) {
|
|
return request({
|
|
url: '/base/equipment-quantity-log/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|