From 1c1af9b0fc10778ae5ac13cc68fd4030affbcfe1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 09 九月 2026 10:59:53 +0800
Subject: [PATCH] feat(wm): 新增SN码管理和设备入库功能
---
src/api/mes/wm/stocktaking/task/index.ts | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/api/mes/wm/stocktaking/task/index.ts b/src/api/mes/wm/stocktaking/task/index.ts
index 81daa12..985818a 100644
--- a/src/api/mes/wm/stocktaking/task/index.ts
+++ b/src/api/mes/wm/stocktaking/task/index.ts
@@ -1,4 +1,4 @@
-import type { PageParam, PageResult } from '../../../../../packages/effects/request/src';
+import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
@@ -20,6 +20,7 @@
startTime?: number; // 寮�濮嬫椂闂�
endTime?: number; // 缁撴潫鏃堕棿
status?: number; // 鍗曟嵁鐘舵��
+ processInstanceId?: string; // 瀹℃壒娴佺▼瀹炰緥缂栧彿
remark?: string; // 澶囨敞
createTime?: string; // 鍒涘缓鏃堕棿
}
@@ -59,7 +60,7 @@
return requestClient.delete(`/mes/wm/stocktaking-task/delete?id=${id}`);
}
-/** 鎻愪氦鐩樼偣浠诲姟 */
+/** 寮�濮嬬洏鐐癸紙鎻愪氦鐩樼偣浠诲姟锛� */
export function submitStockTaking(id: number) {
return requestClient.put('/mes/wm/stocktaking-task/submit', null, {
params: { id },
@@ -73,9 +74,21 @@
});
}
-/** 鎵ц鐩樼偣浠诲姟 */
-export function finishStockTaking(id: number) {
- return requestClient.put('/mes/wm/stocktaking-task/finish', { id });
+/** 鏌ヨ鍙敤鐨勭洏鐐圭粨鏋滃鎵规祦绋嬪畾涔� */
+export function getStockTakingApproveProcessList() {
+ return requestClient.get<{ id: string; name: string; key: string }[]>(
+ '/mes/wm/stocktaking-task/approval-process-list',
+ );
+}
+
+/** 鎻愪氦鐩樼偣缁撴灉瀹℃壒 */
+export function submitStockTakingApproval(
+ id: number,
+ processDefinitionKey: string,
+) {
+ return requestClient.put(
+ `/mes/wm/stocktaking-task/submit-approval?id=${id}&processDefinitionKey=${processDefinitionKey}`,
+ );
}
/** 瀵煎嚭鐩樼偣浠诲姟 */
--
Gitblit v1.9.3