add error record and stockin detail
parent
7c4ab845b1
commit
77292d5c88
@ -0,0 +1,44 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 错误记录 VO
|
||||
export interface ErrorRecordVO {
|
||||
id: number // id
|
||||
title: string // 标题
|
||||
location: string // 位置
|
||||
exception: string // 异常
|
||||
preData: string // 前数据
|
||||
postData: string // 后数据
|
||||
}
|
||||
|
||||
// 错误记录 API
|
||||
export const ErrorRecordApi = {
|
||||
// 查询错误记录分页
|
||||
getErrorRecordPage: async (params: any) => {
|
||||
return await request.get({ url: `/mes/error-record/page`, params })
|
||||
},
|
||||
|
||||
// 查询错误记录详情
|
||||
getErrorRecord: async (id: number) => {
|
||||
return await request.get({ url: `/mes/error-record/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增错误记录
|
||||
createErrorRecord: async (data: ErrorRecordVO) => {
|
||||
return await request.post({ url: `/mes/error-record/create`, data })
|
||||
},
|
||||
|
||||
// 修改错误记录
|
||||
updateErrorRecord: async (data: ErrorRecordVO) => {
|
||||
return await request.put({ url: `/mes/error-record/update`, data })
|
||||
},
|
||||
|
||||
// 删除错误记录
|
||||
deleteErrorRecord: async (id: number) => {
|
||||
return await request.delete({ url: `/mes/error-record/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出错误记录 Excel
|
||||
exportErrorRecord: async (params) => {
|
||||
return await request.download({ url: `/mes/error-record/export-excel`, params })
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 生产入库分配明细 VO
|
||||
export interface StockInDetailVO {
|
||||
id: number // id
|
||||
stockInId: number // 入库单id
|
||||
stockInNo: string // 入库单编号
|
||||
stockInItemId: number // 入库单项id
|
||||
planId: number // 计划id
|
||||
productId: number // 产品
|
||||
number: number // 数量
|
||||
}
|
||||
|
||||
// 生产入库分配明细 API
|
||||
export const StockInDetailApi = {
|
||||
// 查询生产入库分配明细分页
|
||||
getStockInDetailPage: async (params: any) => {
|
||||
return await request.get({ url: `/mes/stock-in-detail/page`, params })
|
||||
},
|
||||
|
||||
// 查询生产入库分配明细详情
|
||||
getStockInDetail: async (id: number) => {
|
||||
return await request.get({ url: `/mes/stock-in-detail/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增生产入库分配明细
|
||||
createStockInDetail: async (data: StockInDetailVO) => {
|
||||
return await request.post({ url: `/mes/stock-in-detail/create`, data })
|
||||
},
|
||||
|
||||
// 修改生产入库分配明细
|
||||
updateStockInDetail: async (data: StockInDetailVO) => {
|
||||
return await request.put({ url: `/mes/stock-in-detail/update`, data })
|
||||
},
|
||||
|
||||
// 删除生产入库分配明细
|
||||
deleteStockInDetail: async (id: number) => {
|
||||
return await request.delete({ url: `/mes/stock-in-detail/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出生产入库分配明细 Excel
|
||||
exportStockInDetail: async (params) => {
|
||||
return await request.download({ url: `/mes/stock-in-detail/export-excel`, params })
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue