From c5b8b16d919d94b7177f89676a5e64952a6aa7b5 Mon Sep 17 00:00:00 2001 From: hwj Date: Fri, 12 Jun 2026 11:30:47 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=85=A5=E5=BA=93=E5=8D=95?= =?UTF-8?q?=E6=8D=AE-=E6=96=B0=E5=A2=9E/=E7=BC=96=E8=BE=91=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/stock/in/index.ts | 29 ++++ src/views/erp/stock/in/StockInForm.vue | 74 ++++++++- .../stock/in/components/StockInItemForm.vue | 54 ++++-- src/views/erp/stock/in/index.vue | 156 +++++++++++++++--- 4 files changed, 275 insertions(+), 38 deletions(-) diff --git a/src/api/erp/stock/in/index.ts b/src/api/erp/stock/in/index.ts index c902275d..8af08078 100644 --- a/src/api/erp/stock/in/index.ts +++ b/src/api/erp/stock/in/index.ts @@ -14,6 +14,20 @@ export interface StockInVO { remark: string // 备注 } +export interface StockInApproveRecordVO { + id: number + stockInId: number + actionType: string + fromStatus: number + toStatus: number + targetUserId: number + targetUserName: string + remark: string + creator: string + creatorName: string + createTime: string +} + // ERP 其它入库单 API export const StockInApi = { // 查询其它入库单分页 @@ -47,6 +61,21 @@ export const StockInApi = { }) }, + // 提交入库单审核 + submitStockIn: async (data: { id: string; auditUserId: string; remark?: string }) => { + return await request.put({ url: `/erp/stock-in/submit`, data }) + }, + + // 审核入库单 + auditStockIn: async (data: { id: string; status: string; remark?: string }) => { + return await request.put({ url: `/erp/stock-in/audit`, data }) + }, + + // 查询入库单审核记录 + getApproveRecordList: async (id: number) => { + return await request.get({ url: `/erp/stock-in/approve-record-list`, params: { id } }) + }, + // 删除其它入库单 deleteStockIn: async (ids: number[]) => { return await request.delete({ diff --git a/src/views/erp/stock/in/StockInForm.vue b/src/views/erp/stock/in/StockInForm.vue index e0987b29..4c857e09 100644 --- a/src/views/erp/stock/in/StockInForm.vue +++ b/src/views/erp/stock/in/StockInForm.vue @@ -1,7 +1,15 @@