diff --git a/src/api/mes/errorrecord/index.ts b/src/api/mes/errorrecord/index.ts new file mode 100644 index 00000000..82af5c89 --- /dev/null +++ b/src/api/mes/errorrecord/index.ts @@ -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 }) + } +} \ No newline at end of file diff --git a/src/api/mes/stockindetail/index.ts b/src/api/mes/stockindetail/index.ts new file mode 100644 index 00000000..ec20a7f1 --- /dev/null +++ b/src/api/mes/stockindetail/index.ts @@ -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 }) + } +} \ No newline at end of file diff --git a/src/views/mes/errorrecord/ErrorRecordForm.vue b/src/views/mes/errorrecord/ErrorRecordForm.vue new file mode 100644 index 00000000..4bca7d41 --- /dev/null +++ b/src/views/mes/errorrecord/ErrorRecordForm.vue @@ -0,0 +1,111 @@ + + \ No newline at end of file diff --git a/src/views/mes/errorrecord/index.vue b/src/views/mes/errorrecord/index.vue new file mode 100644 index 00000000..55b82bdb --- /dev/null +++ b/src/views/mes/errorrecord/index.vue @@ -0,0 +1,231 @@ + + + \ No newline at end of file diff --git a/src/views/mes/stockindetail/StockInDetailForm.vue b/src/views/mes/stockindetail/StockInDetailForm.vue new file mode 100644 index 00000000..8bf93e6e --- /dev/null +++ b/src/views/mes/stockindetail/StockInDetailForm.vue @@ -0,0 +1,116 @@ + + \ No newline at end of file diff --git a/src/views/mes/stockindetail/index.vue b/src/views/mes/stockindetail/index.vue new file mode 100644 index 00000000..9204004e --- /dev/null +++ b/src/views/mes/stockindetail/index.vue @@ -0,0 +1,242 @@ + + + \ No newline at end of file