From f41c8ecf9c29ffd7034b783dcc295c93a1a019b3 Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Thu, 5 Jan 2023 20:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E6=B8=85=E5=8D=95=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E4=B8=AD=EF=BC=8C=E7=AC=AC=E4=BA=8C=E8=A1=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A1=AB=E5=86=99=E5=AE=8C=E6=95=B4=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=8F=90=E4=BA=A4=E5=90=8E=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=9C=AA=E5=A1=AB=E5=86=99=E5=AE=8C=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/admin/business/process-edit.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/admin/business/process-edit.ftl b/src/main/resources/templates/admin/business/process-edit.ftl index 25f7700..6a010fe 100644 --- a/src/main/resources/templates/admin/business/process-edit.ftl +++ b/src/main/resources/templates/admin/business/process-edit.ftl @@ -834,7 +834,8 @@ const first = purchaseDetails.shift(); // 再处理剩余的子元素 purchaseDetails = purchaseDetails.map(purchase => ({ - ...purchase, rowKey: rowKey++, parent, newRow: true + ...purchase, rowKey: rowKey++, parent, newRow: true, + amountCurrent: parent.amountCurrent // 复制父级 amountCurrent })) // 合并第一行到父级 Object.assign(parent, first) @@ -845,7 +846,6 @@ } ret.push(parent) } - console.log(ret) return ret }