yudao-init/src/api/produceData/index.js

123 lines
2.5 KiB
JavaScript
Raw Normal View History

2024-05-07 10:03:55 +08:00
/*
* @Author: zhp
* @Date: 2024-05-07 08:54:59
2024-05-20 14:57:43 +08:00
* @LastEditTime: 2024-05-20 14:56:56
2024-05-20 14:55:36 +08:00
* @LastEditors: DY
2024-05-07 10:03:55 +08:00
* @Description:
*/
import request from '@/utils/request'
// 查询部门列表
export function getProduceDataPage(data) {
return request({
url: 'ip/prod-output/prodOutputDataPage',
method: 'post',
data: data
})
}
2024-05-20 14:55:36 +08:00
export function getProduceDataDetail(id){
return request({
url: '/ip/prod-output/get?id=' + id,
method: 'get'
})
}
// 导出生产数据
export function exportOutPutExcel(data) {
return request({
url: '/ip/prod-output/output-export-excel',
method: 'post',
data: data,
responseType: 'blob'
})
}
// 获取生产管理生产目标管理碲化镉工厂分页
export function prodTargetDiPage(data) {
return request({
url: '/ip/prod-target/prodTargetDiPage',
method: 'post',
data: data
})
}
// 获取生产管理生产目标管理铜铟镓硒工厂分页
export function prodTargetToPage(data) {
return request({
url: '/ip/prod-target/prodTargetToPage',
method: 'post',
data: data
})
}
// 创建生产目标
export function createProduce(data) {
return request({
url: '/ip/prod-target/create',
method: 'post',
data: data
})
}
// 获得生产目标
export function getProduceTargetDetail(id){
return request({
url: '/ip/prod-target/get?id=' + id,
method: 'get'
})
}
// 修改生产目标
export function updateProduceTarget(data) {
return request({
url: '/ip/prod-target/update',
method: 'put',
data: data
})
}
// 导出碲化镉生产目标数据
export function exportDiTargetExcel(data) {
return request({
url: '/ip/prod-target/di-target-export-excel',
method: 'post',
data: data,
responseType: 'blob'
})
}
// 导出铜铟镓硒生产目标数据
export function exportToTargetExcel(data) {
return request({
url: '/ip/prod-target/to-target-export-excel',
method: 'post',
data: data,
responseType: 'blob'
})
}
// 删除生产目标
export function delTarget(id) {
2024-05-07 10:03:55 +08:00
return request({
2024-05-20 14:55:36 +08:00
url: '/ip/prod-target/delete?id=' + id,
method: 'delete'
2024-05-07 10:03:55 +08:00
})
}
2024-05-11 11:15:17 +08:00
// export function cockpitDataMonitor(data) {
// return request({
// url: '/ip/prod-output/cockpitDataMonitor',
// method: 'post',
// data: data
// })
// }
export function cockpitDataMonitor(query) {
return request({
url: 'https://restapi.amap.com/v3/weather/weatherInfo?key=95bdbdc1c387a170105f84cd416c4c9f&city=110108',
method: 'get',
query: query
})
}