bonus-ui/src/api/wsScreen/index.js

130 lines
2.7 KiB
JavaScript
Raw Normal View History

2025-09-16 18:09:52 +08:00
import request from '@/utils/request'
// /provinceScreen/getTotalEquipment
// 装备总览
export const getTotalEquipmentApi = () => {
return request({
url: '/material-mall/provinceScreen/getTotalEquipment',
2025-09-25 19:14:29 +08:00
method: 'get',
2025-09-16 18:09:52 +08:00
})
}
// 线路 变电 电缆
export const getEquipmentClassificationApi = () => {
return request({
2025-09-25 19:14:29 +08:00
url: '/material-mall/largeScreen/statByTypeAndAge',
method: 'get',
2025-09-16 18:09:52 +08:00
})
}
// 单位装备配置 / 总价值数
export const getUnitEquipmentConfigurationApi = () => {
return request({
url: '/material-mall/provinceScreen/getUnitEquipmentConfiguration',
2025-09-25 19:14:29 +08:00
method: 'get',
2025-09-16 18:09:52 +08:00
})
}
// 装备状态
export const getEquipmentStatusApi = () => {
return request({
url: '/material-mall/provinceScreen/getEquipmentStatus',
2025-09-25 19:14:29 +08:00
method: 'get',
2025-09-16 18:09:52 +08:00
})
}
// 项目装备
export const getProjectEquipmentApi = () => {
return request({
url: '/material-mall/provinceScreen/getProjectEquipment',
2025-09-25 19:14:29 +08:00
method: 'get',
2025-09-16 18:09:52 +08:00
})
}
// 各单位装备在用率情况
export const getDeptEquipmentApi = () => {
return request({
url: '/material-mall/provinceScreen/getDeptEquipment',
2025-09-25 19:14:29 +08:00
method: 'get',
2025-09-16 18:09:52 +08:00
})
}
// 工程在用装备情况
export const getEquipmentUseApi = (data) => {
return request({
url: '/material-mall/provinceScreen/getEquipmentUse',
method: 'get',
2025-09-25 19:14:29 +08:00
params: data,
2025-09-16 18:09:52 +08:00
})
}
// 装备在用率统计
export const getUsageStatisticsApi = (data) => {
return request({
url: '/material-mall/provinceScreen/getUsageStatistics',
method: 'get',
2025-09-25 19:14:29 +08:00
params: data,
2025-09-16 18:09:52 +08:00
})
}
// 在库装备数
export const getEquipmentNumberApi = (data) => {
return request({
url: '/material-mall/provinceScreen/getEquipmentNumber',
method: 'get',
2025-09-25 19:14:29 +08:00
params: data,
2025-09-16 18:09:52 +08:00
})
}
// 机械化率
export const getMechanizationRateApi = (data) => {
return request({
url: '/material-mall/provinceScreen/getMechanizationRate',
method: 'get',
2025-09-25 19:14:29 +08:00
params: data,
})
}
// 装备范围-下拉
export const getAddressApi = () => {
return request({
url: '/material-mall/largeScreen/getAddress',
method: 'get',
})
}
// 地市公司-下拉
export const getDeptApi = (data) => {
return request({
url: '/material-mall/largeScreen/getDept',
method: 'get',
params: data,
})
}
// 装备类目-树
export const getMaTypeApi = (data) => {
return request({
url: '/material-mall/largeScreen/getMaType',
method: 'get',
params: data,
})
}
// 工程专业-下拉
export const getFirstLevelApi = () => {
return request({
url: '/material-mall/order/firstLevel',
method: 'get',
})
}
// 所在项目-下拉
export const getProListApi = (data = {}) => {
return request({
url: '/material-mall/decChange/getProList',
method: 'post',
data,
2025-09-16 18:09:52 +08:00
})
}