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 @@
@@ -130,9 +157,9 @@