add iot and stock workshop
parent
bd7c44ffbf
commit
15512e8203
@ -0,0 +1,50 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 代理服务 VO
|
||||
export interface FrpcProxyServerVO {
|
||||
id: number // id
|
||||
frpcName: string // 代理名称
|
||||
localIp: string // 内网IP
|
||||
localPort: number // 内网端口
|
||||
suffixPath: string // 访问后缀
|
||||
localStatus: string // 内网状态
|
||||
frpsId: number // 代理服务器
|
||||
proxyPort: number // 代理端口
|
||||
proxyAddress: string // 代理地址
|
||||
proxyStatus: string // 代理状态
|
||||
remark: string // 备注
|
||||
isEnable: boolean // 是否启用
|
||||
}
|
||||
|
||||
// 代理服务 API
|
||||
export const FrpcProxyServerApi = {
|
||||
// 查询代理服务分页
|
||||
getFrpcProxyServerPage: async (params: any) => {
|
||||
return await request.get({ url: `/iot/frpc-proxy-server/page`, params })
|
||||
},
|
||||
|
||||
// 查询代理服务详情
|
||||
getFrpcProxyServer: async (id: number) => {
|
||||
return await request.get({ url: `/iot/frpc-proxy-server/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增代理服务
|
||||
createFrpcProxyServer: async (data: FrpcProxyServerVO) => {
|
||||
return await request.post({ url: `/iot/frpc-proxy-server/create`, data })
|
||||
},
|
||||
|
||||
// 修改代理服务
|
||||
updateFrpcProxyServer: async (data: FrpcProxyServerVO) => {
|
||||
return await request.put({ url: `/iot/frpc-proxy-server/update`, data })
|
||||
},
|
||||
|
||||
// 删除代理服务
|
||||
deleteFrpcProxyServer: async (id: number) => {
|
||||
return await request.delete({ url: `/iot/frpc-proxy-server/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出代理服务 Excel
|
||||
exportFrpcProxyServer: async (params) => {
|
||||
return await request.download({ url: `/iot/frpc-proxy-server/export-excel`, params })
|
||||
},
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 投料记录 VO
|
||||
export interface FeedingRecordVO {
|
||||
id: number // id
|
||||
feedingRecordCode: string // 单号
|
||||
productId: number // 产品id
|
||||
planId: number // 计划id
|
||||
itemId: number // 原料id
|
||||
feedingPipeline: string // 制浆线
|
||||
feedingType: string // 投料类型
|
||||
weight: number // 重量
|
||||
feedingTime: Date // 投料时间
|
||||
userId: number // 记录人
|
||||
remark: string // 备注
|
||||
recordStatus: string // 状态
|
||||
}
|
||||
|
||||
// 投料记录 API
|
||||
export const FeedingRecordApi = {
|
||||
// 查询投料记录分页
|
||||
getFeedingRecordPage: async (params: any) => {
|
||||
return await request.get({ url: `/mes/feeding-record/page`, params })
|
||||
},
|
||||
|
||||
// 查询投料记录详情
|
||||
getFeedingRecord: async (id: number) => {
|
||||
return await request.get({ url: `/mes/feeding-record/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增投料记录
|
||||
createFeedingRecord: async (data: FeedingRecordVO) => {
|
||||
return await request.post({ url: `/mes/feeding-record/create`, data })
|
||||
},
|
||||
|
||||
// 修改投料记录
|
||||
updateFeedingRecord: async (data: FeedingRecordVO) => {
|
||||
return await request.put({ url: `/mes/feeding-record/update`, data })
|
||||
},
|
||||
|
||||
// 删除投料记录
|
||||
deleteFeedingRecord: async (id: number) => {
|
||||
return await request.delete({ url: `/mes/feeding-record/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出投料记录 Excel
|
||||
exportFeedingRecord: async (params) => {
|
||||
return await request.download({ url: `/mes/feeding-record/export-excel`, params })
|
||||
},
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 车间仓库存 VO
|
||||
export interface StockWorkshopVO {
|
||||
id: number // id
|
||||
itemId: number // 原料编号
|
||||
count: number // 库存数量
|
||||
categoryId: number // 分类
|
||||
}
|
||||
|
||||
// 车间仓库存 API
|
||||
export const StockWorkshopApi = {
|
||||
// 查询车间仓库存分页
|
||||
getStockWorkshopPage: async (params: any) => {
|
||||
return await request.get({ url: `/mes/stock-workshop/page`, params })
|
||||
},
|
||||
|
||||
// 查询车间仓库存详情
|
||||
getStockWorkshop: async (id: number) => {
|
||||
return await request.get({ url: `/mes/stock-workshop/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增车间仓库存
|
||||
createStockWorkshop: async (data: StockWorkshopVO) => {
|
||||
return await request.post({ url: `/mes/stock-workshop/create`, data })
|
||||
},
|
||||
|
||||
// 修改车间仓库存
|
||||
updateStockWorkshop: async (data: StockWorkshopVO) => {
|
||||
return await request.put({ url: `/mes/stock-workshop/update`, data })
|
||||
},
|
||||
|
||||
// 删除车间仓库存
|
||||
deleteStockWorkshop: async (id: number) => {
|
||||
return await request.delete({ url: `/mes/stock-workshop/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出车间仓库存 Excel
|
||||
exportStockWorkshop: async (params) => {
|
||||
return await request.download({ url: `/mes/stock-workshop/export-excel`, params })
|
||||
},
|
||||
}
|
||||
|
||||
// 车间仓明细 VO
|
||||
export interface StockWorkshopDetailVO {
|
||||
id: number // id
|
||||
itemId: number // 原料id
|
||||
count: number // 数量
|
||||
detailType: string // 明细类别
|
||||
itemRequisitionCode: string // 领料单
|
||||
itemRequisitionDetailId: number // 领料明细id
|
||||
feedingRecordCode: string // 投料单
|
||||
feedingRecordId: number // 投料id
|
||||
userId: number // 操作人员
|
||||
operateTime: Date // 单据时间
|
||||
}
|
||||
|
||||
// 车间仓明细 API
|
||||
export const StockWorkshopDetailApi = {
|
||||
// 查询车间仓明细分页
|
||||
getStockWorkshopDetailPage: async (params: any) => {
|
||||
return await request.get({ url: `/mes/stock-workshop-detail/page`, params })
|
||||
},
|
||||
|
||||
// 查询车间仓明细详情
|
||||
getStockWorkshopDetail: async (id: number) => {
|
||||
return await request.get({ url: `/mes/stock-workshop-detail/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增车间仓明细
|
||||
createStockWorkshopDetail: async (data: StockWorkshopDetailVO) => {
|
||||
return await request.post({ url: `/mes/stock-workshop-detail/create`, data })
|
||||
},
|
||||
|
||||
// 修改车间仓明细
|
||||
updateStockWorkshopDetail: async (data: StockWorkshopDetailVO) => {
|
||||
return await request.put({ url: `/mes/stock-workshop-detail/update`, data })
|
||||
},
|
||||
|
||||
// 删除车间仓明细
|
||||
deleteStockWorkshopDetail: async (id: number) => {
|
||||
return await request.delete({ url: `/mes/stock-workshop-detail/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出车间仓明细 Excel
|
||||
exportStockWorkshopDetail: async (params) => {
|
||||
return await request.download({ url: `/mes/stock-workshop-detail/export-excel`, params })
|
||||
},
|
||||
}
|
||||
Loading…
Reference in New Issue