55 lines
1.3 KiB
JavaScript
55 lines
1.3 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 创建后端用 设备生产数量实时
|
|
export function createEquipmentQuantityRealtime(data) {
|
|
return request({
|
|
url: '/base/equipment-quantity-realtime/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新后端用 设备生产数量实时
|
|
export function updateEquipmentQuantityRealtime(data) {
|
|
return request({
|
|
url: '/base/equipment-quantity-realtime/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除后端用 设备生产数量实时
|
|
export function deleteEquipmentQuantityRealtime(id) {
|
|
return request({
|
|
url: '/base/equipment-quantity-realtime/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得后端用 设备生产数量实时
|
|
export function getEquipmentQuantityRealtime(id) {
|
|
return request({
|
|
url: '/base/equipment-quantity-realtime/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得后端用 设备生产数量实时分页
|
|
export function getEquipmentQuantityRealtimePage(query) {
|
|
return request({
|
|
url: '/base/equipment-quantity-realtime/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 导出后端用 设备生产数量实时 Excel
|
|
export function exportEquipmentQuantityRealtimeExcel(query) {
|
|
return request({
|
|
url: '/base/equipment-quantity-realtime/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|