From 9e1a0699b2a6e1c044a9e18b6c025ace6618ace0 Mon Sep 17 00:00:00 2001 From: basssy Date: Thu, 28 Nov 2024 18:04:26 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 14 +++++++++----- .../floorPlan/estimate/useEstimateController.js | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index a52f8423..578b16fa 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -356,6 +356,7 @@ export default function Estimate({ params }) { if (item2.itemId === item.itemId) { updateList.push({ ...item, + openFlg: item2.unitPrice === '0.0' ? '1' : '0', salePrice: item2.unitPrice === null ? '0' : item2.unitPrice, saleTotPrice: (item.amount * item2.unitPrice).toString(), }) @@ -535,6 +536,7 @@ export default function Estimate({ params }) { updates.saleTotPrice = (res.salePrice * estimateContextState.itemList[index].amount).toString() // updates.saleTotPrice = '' updates.amount = '' + updates.openFlg = res.openFlg if (estimateContextState.estimateType === 'YJSS') { if (res.pkgMaterialFlg === '0') { @@ -1322,9 +1324,9 @@ export default function Estimate({ params }) { - + - + @@ -1451,9 +1453,11 @@ export default function Estimate({ params }) { maxLength={12} /> - {/*
- -
*/} + {item.openFlg === '1' && ( +
+ +
+ )}
diff --git a/src/hooks/floorPlan/estimate/useEstimateController.js b/src/hooks/floorPlan/estimate/useEstimateController.js index e48d6b76..75ed2aba 100644 --- a/src/hooks/floorPlan/estimate/useEstimateController.js +++ b/src/hooks/floorPlan/estimate/useEstimateController.js @@ -89,6 +89,7 @@ export const useEstimateController = (planNo) => { partAdd: '1', //NEW 체인지 플래그 delFlg: '0', //삭제 플래그 0 삭제하면 1 addFlg: true, + paDispOrder: null, }, ], })