From 133f90f34e34815d22cf5cd819a5e5c68d69d930 Mon Sep 17 00:00:00 2001 From: xuzhiqiang Date: Fri, 15 Aug 2025 09:40:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(@vben/web-antd):=20erp-purchase-order?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E9=87=87=E8=B4=AD=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99=EF=BC=8C=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E9=A1=B9=E7=9A=84=20ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/erp/purchase/order/modules/form.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/erp/purchase/order/modules/form.vue b/apps/web-antd/src/views/erp/purchase/order/modules/form.vue index d1399bfa..8b93ae7e 100644 --- a/apps/web-antd/src/views/erp/purchase/order/modules/form.vue +++ b/apps/web-antd/src/views/erp/purchase/order/modules/form.vue @@ -111,7 +111,11 @@ const [Modal, modalApi] = useVbenModal({ // 提交表单 const data = (await formApi.getValues()) as ErpPurchaseOrderApi.PurchaseOrder; - data.items = formData.value?.items; + data.items = formData.value?.items?.map((item) => ({ + ...item, + // 解决新增采购订单报错 + id: undefined, + })); // 将文件数组转换为字符串 if (data.fileUrl && Array.isArray(data.fileUrl)) { data.fileUrl = data.fileUrl.length > 0 ? data.fileUrl[0] : '';