You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.5 KiB
81 lines
1.5 KiB
import http from '../utils/http/index.js'
|
|
|
|
/**
|
|
* 获取设备类型
|
|
*/
|
|
export function getDeviceTypeList(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/mechanical-equipment/type',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取生产工艺列表
|
|
*/
|
|
export function getTechnicsList(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/technics/type',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 添加或修改设备
|
|
*/
|
|
export function changeDevice(data = {}) {
|
|
return http.post({
|
|
url: '/base-paper-trading/save/mechanical-equipment',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取设备列表
|
|
*/
|
|
export function getDeviceList(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/mechanical-equipment/list',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 印包客监控台获取设备类型统计数据
|
|
*/
|
|
export function getEquipmentStatistics(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/mechanical-equipment/type-statistics/list',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 设备生产详情分享
|
|
*/
|
|
export function makeDeviceShare(data = {}) {
|
|
return http.post({
|
|
url: '/base-paper-trading/create/mechanical-equipment/share',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 推广界面获取设备列表
|
|
*/
|
|
export function getEquipmentList(data = {}) {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/mechanical-equipment/list',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取设备信息
|
|
*/
|
|
export function getEquipmentInfo(data = {}) {
|
|
return http.get({
|
|
url: `/base-paper-trading/get/mechanical-equipment/${data.id}`,
|
|
data
|
|
})
|
|
}
|