From 152838e14b33e7e81d8a7bb584d4627cedf2d6e6 Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 8 Jun 2026 18:36:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=A8=A1=E5=85=B7=E5=87=BA?= =?UTF-8?q?=E5=85=A5=E5=BA=93bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/moldget/index.ts | 98 ++++++++++----------- src/api/mes/moldreturn/index.ts | 94 ++++++++++---------- src/views/mes/moldget/MoldGetForm.vue | 79 +++++++++++++++-- src/views/mes/moldreturn/MoldReturnForm.vue | 79 +++++++++++++++-- 4 files changed, 244 insertions(+), 106 deletions(-) diff --git a/src/api/mes/moldget/index.ts b/src/api/mes/moldget/index.ts index 679539bc..4c902b16 100644 --- a/src/api/mes/moldget/index.ts +++ b/src/api/mes/moldget/index.ts @@ -1,49 +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 }) - }, -} \ No newline at end of file +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 }) + }, +} diff --git a/src/api/mes/moldreturn/index.ts b/src/api/mes/moldreturn/index.ts index 7b10ee5f..d3330299 100644 --- a/src/api/mes/moldreturn/index.ts +++ b/src/api/mes/moldreturn/index.ts @@ -1,47 +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 }) - }, -} \ No newline at end of file +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 }) + }, +} diff --git a/src/views/mes/moldget/MoldGetForm.vue b/src/views/mes/moldget/MoldGetForm.vue index 26021713..d15ba7cc 100644 --- a/src/views/mes/moldget/MoldGetForm.vue +++ b/src/views/mes/moldget/MoldGetForm.vue @@ -93,7 +93,13 @@ - + +