commit
parent
01fa3536d2
commit
09cb2e267e
@ -0,0 +1,47 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 采集点分类 VO
|
||||||
|
export interface DeviceAttributeTypeVO {
|
||||||
|
id: number // ID
|
||||||
|
code: string // 分类编码
|
||||||
|
name: string // 分类名称
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 采集点分类 API
|
||||||
|
export const DeviceAttributeTypeApi = {
|
||||||
|
// 查询采集点分类分页
|
||||||
|
getDeviceAttributeTypePage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/iot/device-attribute-type/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询采集点分类详情
|
||||||
|
getDeviceAttributeType: async (id: number) => {
|
||||||
|
return await request.get({ url: `/iot/device-attribute-type/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增采集点分类
|
||||||
|
createDeviceAttributeType: async (data: DeviceAttributeTypeVO) => {
|
||||||
|
return await request.post({ url: `/iot/device-attribute-type/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改采集点分类
|
||||||
|
updateDeviceAttributeType: async (data: DeviceAttributeTypeVO) => {
|
||||||
|
return await request.put({ url: `/iot/device-attribute-type/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除采集点分类
|
||||||
|
deleteDeviceAttributeType: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/iot/device-attribute-type/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出采集点分类 Excel
|
||||||
|
exportDeviceAttributeType: async (params) => {
|
||||||
|
return await request.download({ url: `/iot/device-attribute-type/export-excel`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得采集点分类列表
|
||||||
|
getDeviceAttributeTypeList: async () => {
|
||||||
|
return await request.get({ url: `/iot/device-attribute-type/list`})
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 采集设备模型 VO
|
||||||
|
export interface DeviceModelVO {
|
||||||
|
id: number // ID
|
||||||
|
code: string // 分类编码
|
||||||
|
name: string // 分类名称
|
||||||
|
protocol: string // 通讯协议
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 采集设备模型 API
|
||||||
|
export const DeviceModelApi = {
|
||||||
|
// 查询采集设备模型分页
|
||||||
|
getDeviceModelPage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/iot/device-model/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询采集设备模型详情
|
||||||
|
getDeviceModel: async (id: number) => {
|
||||||
|
return await request.get({ url: `/iot/device-model/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增采集设备模型
|
||||||
|
createDeviceModel: async (data: DeviceModelVO) => {
|
||||||
|
return await request.post({ url: `/iot/device-model/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改采集设备模型
|
||||||
|
updateDeviceModel: async (data: DeviceModelVO) => {
|
||||||
|
return await request.put({ url: `/iot/device-model/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除采集设备模型
|
||||||
|
deleteDeviceModel: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/iot/device-model/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出采集设备模型 Excel
|
||||||
|
exportDeviceModel: async (params) => {
|
||||||
|
return await request.download({ url: `/iot/device-model/export-excel`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得采集设备模型列表
|
||||||
|
getDeviceModelList: async () => {
|
||||||
|
return await request.get({ url: `/iot/device-model/list`})
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 采集设备模型-点位管理 VO
|
||||||
|
export interface DeviceModelAttributeVO {
|
||||||
|
id: number // ID
|
||||||
|
attributeCode: string // 点位编码
|
||||||
|
attributeName: string // 点位名称
|
||||||
|
attributeType: string // 点位类型
|
||||||
|
dataType: string // 数据类型
|
||||||
|
address: string // 寄存器地址
|
||||||
|
dataUnit: string // 单位
|
||||||
|
ratio: number // 倍率
|
||||||
|
remark: string // 备注
|
||||||
|
deviceModelId: number // 采集设备模型id
|
||||||
|
}
|
||||||
|
|
||||||
|
// 采集设备模型-点位管理 API
|
||||||
|
export const DeviceModelAttributeApi = {
|
||||||
|
// 查询采集设备模型-点位管理分页
|
||||||
|
getDeviceModelAttributePage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/iot/device-model-attribute/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询采集设备模型-点位管理详情
|
||||||
|
getDeviceModelAttribute: async (id: number) => {
|
||||||
|
return await request.get({ url: `/iot/device-model-attribute/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增采集设备模型-点位管理
|
||||||
|
createDeviceModelAttribute: async (data) => {
|
||||||
|
return await request.post({ url: `/iot/device-model-attribute/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改采集设备模型-点位管理
|
||||||
|
updateDeviceModelAttribute: async (data) => {
|
||||||
|
return await request.put({ url: `/iot/device-model-attribute/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除采集设备模型-点位管理
|
||||||
|
deleteDeviceModelAttribute: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/iot/device-model-attribute/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出采集设备模型-点位管理 Excel
|
||||||
|
exportDeviceModelAttribute: async (params) => {
|
||||||
|
return await request.download({ url: `/iot/device-model-attribute/export-excel`, params })
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 能耗类型 VO
|
||||||
|
export interface EnergyTypeVO {
|
||||||
|
id: number // ID
|
||||||
|
code: string // 能耗类型编码
|
||||||
|
name: string // 能耗类型名称
|
||||||
|
unit: string // 单位
|
||||||
|
isEnable: boolean // 是否启用
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 能耗类型 API
|
||||||
|
export const EnergyTypeApi = {
|
||||||
|
// 查询能耗类型分页
|
||||||
|
getEnergyTypePage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/energy-type/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询能耗类型详情
|
||||||
|
getEnergyType: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/energy-type/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增能耗类型
|
||||||
|
createEnergyType: async (data: EnergyTypeVO) => {
|
||||||
|
return await request.post({ url: `/mes/energy-type/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改能耗类型
|
||||||
|
updateEnergyType: async (data: EnergyTypeVO) => {
|
||||||
|
return await request.put({ url: `/mes/energy-type/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除能耗类型
|
||||||
|
deleteEnergyType: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/energy-type/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出能耗类型 Excel
|
||||||
|
exportEnergyType: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/energy-type/export-excel`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得能耗类型列表
|
||||||
|
getEnergyTypeList: async () => {
|
||||||
|
return await request.get({ url: `/mes/energy-type/list`})
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 模具管理-领模申请 VO
|
||||||
|
export interface MoldGetVO {
|
||||||
|
id: number // ID
|
||||||
|
orderId: number // 领模单号
|
||||||
|
code: string // 模具编码
|
||||||
|
name: string // 模具名称
|
||||||
|
state: string // 状态
|
||||||
|
person: string // 领模人
|
||||||
|
deviceId: number // 设备id
|
||||||
|
deviceName: string // 设备名称
|
||||||
|
getTime: Date // 领取时间
|
||||||
|
principal: string // 库管员
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 模具管理-领模申请 API
|
||||||
|
export const MoldGetApi = {
|
||||||
|
// 查询模具管理-领模申请分页
|
||||||
|
getMoldGetPage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/mold-get/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询模具管理-领模申请详情
|
||||||
|
getMoldGet: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/mold-get/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增模具管理-领模申请
|
||||||
|
createMoldGet: async (data: MoldGetVO) => {
|
||||||
|
return await request.post({ url: `/mes/mold-get/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改模具管理-领模申请
|
||||||
|
updateMoldGet: async (data: MoldGetVO) => {
|
||||||
|
return await request.put({ url: `/mes/mold-get/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除模具管理-领模申请
|
||||||
|
deleteMoldGet: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/mold-get/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出模具管理-领模申请 Excel
|
||||||
|
exportMoldGet: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/mold-get/export-excel`, params })
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 维保方案 VO
|
||||||
|
export interface MoldRecordItemVO {
|
||||||
|
id: number // ID
|
||||||
|
name: string // 名称
|
||||||
|
type: string // 类型
|
||||||
|
subjectId: string // 关联项目id
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 维保方案 API
|
||||||
|
export const MoldRecordItemApi = {
|
||||||
|
// 查询维保方案分页
|
||||||
|
getMoldRecordItemPage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/mold-record-item/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询维保方案详情
|
||||||
|
getMoldRecordItem: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/mold-record-item/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增维保方案
|
||||||
|
createMoldRecordItem: async (data: MoldRecordItemVO) => {
|
||||||
|
return await request.post({ url: `/mes/mold-record-item/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改维保方案
|
||||||
|
updateMoldRecordItem: async (data: MoldRecordItemVO) => {
|
||||||
|
return await request.put({ url: `/mes/mold-record-item/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除维保方案
|
||||||
|
deleteMoldRecordItem: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/mold-record-item/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出维保方案 Excel
|
||||||
|
exportMoldRecordItem: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/mold-record-item/export-excel`, params })
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 模具管理-模具入库 VO
|
||||||
|
export interface MoldReturnVO {
|
||||||
|
id: number // ID
|
||||||
|
orderId: number // 领模单号
|
||||||
|
code: string // 模具编码
|
||||||
|
name: string // 模具名称
|
||||||
|
state: string // 状态
|
||||||
|
person: string // 归还人
|
||||||
|
returnTime: Date // 入库时间
|
||||||
|
principal: string // 库管员
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 模具管理-模具入库 API
|
||||||
|
export const MoldReturnApi = {
|
||||||
|
// 查询模具管理-模具入库分页
|
||||||
|
getMoldReturnPage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/mold-return/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询模具管理-模具入库详情
|
||||||
|
getMoldReturn: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/mold-return/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增模具管理-模具入库
|
||||||
|
createMoldReturn: async (data: MoldReturnVO) => {
|
||||||
|
return await request.post({ url: `/mes/mold-return/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改模具管理-模具入库
|
||||||
|
updateMoldReturn: async (data: MoldReturnVO) => {
|
||||||
|
return await request.put({ url: `/mes/mold-return/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除模具管理-模具入库
|
||||||
|
deleteMoldReturn: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/mold-return/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出模具管理-模具入库 Excel
|
||||||
|
exportMoldReturn: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/mold-return/export-excel`, params })
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 质量管理-检验项目 VO
|
||||||
|
export interface ZjItemVO {
|
||||||
|
id: number // ID
|
||||||
|
zjType: number // 检验类型
|
||||||
|
name: string // 名称
|
||||||
|
remark: string // 备注
|
||||||
|
tool: string // 作业方式
|
||||||
|
standardVal: number // 标准值
|
||||||
|
unit: string // 单位
|
||||||
|
upperVal: number // 上限值
|
||||||
|
lowerVal: number // 下限值
|
||||||
|
}
|
||||||
|
|
||||||
|
// 质量管理-检验项目 API
|
||||||
|
export const ZjItemApi = {
|
||||||
|
// 查询质量管理-检验项目分页
|
||||||
|
getZjItemPage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/zj-item/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询质量管理-检验项目详情
|
||||||
|
getZjItem: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/zj-item/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增质量管理-检验项目
|
||||||
|
createZjItem: async (data: ZjItemVO) => {
|
||||||
|
return await request.post({ url: `/mes/zj-item/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改质量管理-检验项目
|
||||||
|
updateZjItem: async (data: ZjItemVO) => {
|
||||||
|
return await request.put({ url: `/mes/zj-item/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除质量管理-检验项目
|
||||||
|
deleteZjItem: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/zj-item/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出质量管理-检验项目 Excel
|
||||||
|
exportZjItem: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/zj-item/export-excel`, params })
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 检验方案 VO
|
||||||
|
export interface ZjSchemaVO {
|
||||||
|
type: string // 类型
|
||||||
|
name: string // 名称
|
||||||
|
remark: string // 备注
|
||||||
|
sampleMethod: string // 抽检方式
|
||||||
|
val: number // 值
|
||||||
|
item: string // 关联项目
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检验方案 API
|
||||||
|
export const ZjSchemaApi = {
|
||||||
|
// 查询检验方案分页
|
||||||
|
getZjSchemaPage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/zj-schema/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询检验方案详情
|
||||||
|
getZjSchema: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/zj-schema/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增检验方案
|
||||||
|
createZjSchema: async (data: ZjSchemaVO) => {
|
||||||
|
return await request.post({ url: `/mes/zj-schema/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改检验方案
|
||||||
|
updateZjSchema: async (data: ZjSchemaVO) => {
|
||||||
|
return await request.put({ url: `/mes/zj-schema/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除检验方案
|
||||||
|
deleteZjSchema: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/zj-schema/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出检验方案 Excel
|
||||||
|
exportZjSchema: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/zj-schema/export-excel`, params })
|
||||||
|
},
|
||||||
|
}
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
// 质量管理-检验类型 VO
|
||||||
|
export interface ZjTypeVO {
|
||||||
|
id: number // ID
|
||||||
|
code: string // 编码
|
||||||
|
name: string // 名称
|
||||||
|
remark: string // 备注
|
||||||
|
}
|
||||||
|
|
||||||
|
// 质量管理-检验类型 API
|
||||||
|
export const ZjTypeApi = {
|
||||||
|
// 查询质量管理-检验类型分页
|
||||||
|
getZjTypePage: async (params: any) => {
|
||||||
|
return await request.get({ url: `/mes/zj-type/page`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 查询质量管理-检验类型详情
|
||||||
|
getZjType: async (id: number) => {
|
||||||
|
return await request.get({ url: `/mes/zj-type/get?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增质量管理-检验类型
|
||||||
|
createZjType: async (data: ZjTypeVO) => {
|
||||||
|
return await request.post({ url: `/mes/zj-type/create`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改质量管理-检验类型
|
||||||
|
updateZjType: async (data: ZjTypeVO) => {
|
||||||
|
return await request.put({ url: `/mes/zj-type/update`, data })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除质量管理-检验类型
|
||||||
|
deleteZjType: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/mes/zj-type/delete?id=` + id })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出质量管理-检验类型 Excel
|
||||||
|
exportZjType: async (params) => {
|
||||||
|
return await request.download({ url: `/mes/zj-type/export-excel`, params })
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获得检验类型列表
|
||||||
|
getZjTypeList: async () => {
|
||||||
|
return await request.get({ url: `/mes/zj-type/list`})
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue