From 458dd6178b917a304d7539aa30e8103e4362588e Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期五, 04 九月 2026 10:38:09 +0800
Subject: [PATCH] 修改BUG: 1.仓储物流--生产仓库--生产领料:新增领料出库单时报错,提示"请求参数不正确:生产任务ID不能为空",导致无法新增。 2.仓储物流--生产仓库--生产领料:对新增到领料出库单进行拣货时,提示"提示:库存记录与提交的物料、批次或库位信息不一致"导致无法进行拣货

---
 src/api/system/storage/index.ts |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/api/system/storage/index.ts b/src/api/system/storage/index.ts
index 95ad345..d1c3557 100644
--- a/src/api/system/storage/index.ts
+++ b/src/api/system/storage/index.ts
@@ -41,6 +41,18 @@
   return requestClient.post<SystemStorageApi.StorageBlob[]>(
     '/system/storage-blob/upload',
     formData,
+    { headers: { 'Content-Type': 'multipart/form-data' } },
+  );
+}
+
+/** 鍏叡鏂囦欢涓婁紶锛堟案涔呮湁鏁堬紝杩斿洖姘镐箙鍏紑 previewURL锛岀敤浜庣櫥褰曢〉绛夊厤鐧诲綍灞曠ず鐨勫満鏅級 */
+export function publicUploadFile(files: globalThis.File[]) {
+  const formData = new FormData();
+  files.forEach((file) => formData.append('files', file));
+  return requestClient.post<SystemStorageApi.StorageBlob[]>(
+    '/system/storage-blob/public-upload',
+    formData,
+    { headers: { 'Content-Type': 'multipart/form-data' } },
   );
 }
 

--
Gitblit v1.9.3