From ee7ac8df8bce38add1f75baf876b49de94b9e00a Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 16 十月 2026 17:58:33 +0800
Subject: [PATCH] feat(mes): 赋码管理绑定托盘支持未录入批次的袋码

---
 src/api/mes/wm/stocktaking/task/index.ts |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/api/mes/wm/stocktaking/task/index.ts b/src/api/mes/wm/stocktaking/task/index.ts
index 81daa12..d438400 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';
 
@@ -84,3 +84,22 @@
     params,
   });
 }
+
+/** PDA 鎵爜鐩樼偣 */
+export function scanStockTaking(data: {
+  taskId: number; // 鐩樼偣浠诲姟缂栧彿
+  scanCode: string; // 杩芥函鐮�/琚嬬爜/鎵樼洏鐮�/鎵规鍙�
+  takingQuantity: number; // 鐩樼偣鏁伴噺
+  remark?: string; // 澶囨敞
+}) {
+  return requestClient.post<number>('/mes/wm/stocktaking-task/scan', data);
+}
+
+/** 澶勭悊鐩樼偣宸紓锛堢洏鐩堝叆搴�/鐩樹簭鍑哄簱锛岃皟鏁村簱瀛橈級 */
+export function processStockTakingDifference(id: number) {
+  return requestClient.post<boolean>(
+    '/mes/wm/stocktaking-task/process-difference',
+    null,
+    { params: { id } },
+  );
+}

--
Gitblit v1.9.3