From 21a2d6f813f3d58b494fde010f66bd84ce2f1d41 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 12 八月 2026 13:06:04 +0800
Subject: [PATCH] fix: MOM 1.修改物料弹框的SIP与SOP改为中文
---
src/views/erp/purchase/return/modules/form.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/views/erp/purchase/return/modules/form.vue b/src/views/erp/purchase/return/modules/form.vue
index 5a351e5..a217d3e 100644
--- a/src/views/erp/purchase/return/modules/form.vue
+++ b/src/views/erp/purchase/return/modules/form.vue
@@ -6,8 +6,8 @@
import { computed, ref } from 'vue';
-import { useVbenModal } from '..\..\..\..\..\packages\effects\common-ui\src';
-import { $t } from '..\..\..\..\..\packages\locales\src';
+import { useVbenModal } from '@vben/common-ui';
+import { $t } from '@vben/locales';
import { message } from 'ant-design-vue';
@@ -28,7 +28,6 @@
ErpPurchaseReturnApi.PurchaseReturn & {
accountId?: number;
discountPercent?: number;
- fileUrl?: string;
order?: ErpPurchaseOrderApi.PurchaseOrder;
orderId?: number;
orderNo?: string;
@@ -40,7 +39,6 @@
accountId: undefined,
returnTime: undefined,
remark: undefined,
- fileUrl: undefined,
discountPercent: 0,
supplierId: undefined,
discountPrice: 0,
@@ -123,7 +121,6 @@
accountId: order.accountId!,
remark: order.remark!,
discountPercent: order.discountPercent!,
- fileUrl: order.fileUrl!,
};
// 灏嗚鍗曢」璁剧疆鍒伴��璐у崟椤�
order.items!.forEach((item: any) => {
@@ -195,6 +192,16 @@
formData.value = await getPurchaseReturn(data.id);
// 璁剧疆鍒� values
await formApi.setValues(formData.value, false);
+ if (formData.value?.attachmentList?.length) {
+ const blobIds = formData.value.attachmentList.map((item) => ({
+ uid: String(item.id),
+ name: item.name || '',
+ url: item.url || '',
+ status: 'done',
+ id: item.id,
+ }));
+ await formApi.setFieldValue('blobIds', blobIds);
+ }
} finally {
modalApi.unlock();
}
--
Gitblit v1.9.3