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/components/upload/image-upload.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/components/upload/image-upload.vue b/src/components/upload/image-upload.vue
index ab5fa85..78b7aa0 100644
--- a/src/components/upload/image-upload.vue
+++ b/src/components/upload/image-upload.vue
@@ -8,15 +8,15 @@
import { computed, ref, toRefs, watch } from 'vue';
-import { IconifyIcon } from '../../packages/icons/src';
-import { $t } from '../../packages/locales/src';
+import { IconifyIcon } from '@vben/icons';
+import { $t } from '@vben/locales';
import {
defaultImageAccepts,
isFunction,
isImage,
isObject,
isString,
-} from '../../packages/utils/src';
+} from '@vben/utils';
import { message, Modal, Upload } from 'ant-design-vue';
@@ -239,8 +239,10 @@
// 娣诲姞鍒颁复鏃朵笂浼犲垪琛�
const fileUrl = res?.url || res?.data || res;
uploadList.value.push({
- name: file.name,
+ name: res?.name || file.name,
url: fileUrl,
+ id: res?.id,
+ response: res,
status: UploadResultStatus.DONE,
uid: file.name + Date.now(),
});
--
Gitblit v1.9.3