From c5d2cc53a4883aacb6fdd5349c134d4fe9aba25e Mon Sep 17 00:00:00 2001 From: leedj312 Date: Mon, 7 Jul 2025 09:26:37 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=80=ED=86=A0=EC=99=84=EB=A3=8C=20?= =?UTF-8?q?=EC=8B=9C=20=EB=A9=94=EC=8B=9C=EC=A7=80=20=ED=91=9C=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/form/coMat/conCostForm/conCostForm.tsx | 53 ++++++++++++++++++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx b/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx index bb70cb7ec..ee06893c9 100644 --- a/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx +++ b/apps/wr/components/ui/form/coMat/conCostForm/conCostForm.tsx @@ -65,6 +65,31 @@ export default function ConCostForm({ }, [selectionVersion]); + const confrirmToast = () => { + + if (checkFinish) { + toast((t) => ( + + 검토완료 변경시 공사비는 변경할수 없습니다. +
+ 진행하시겠습니까? + + +
+ )); + } else { + + } + }; + const zipDowonLoad = () => { fetch(`/2024_constarctFeeProgram.zip`, {}).then(async (response) => { const blobRet = await response.blob(); @@ -168,12 +193,36 @@ export default function ConCostForm({ flg: checkFinish?'Checked':'Sub', rgtr: TEST_UUID, }; - coMatRvwUpdate("11000SW001R1", form.getValues("dmdInfoFk"), data); + if (checkFinish) { + toast((t) => ( + + 검토완료 변경시 공사비는 변경할수 없습니다. +
+ 진행하시겠습니까? +
+ + +
+
+ )); + } else { + coMatRvwUpdate("11000SW001R1", form.getValues("dmdInfoFk"), data); + } } } else if (type === "hist") { delete value.totalConstCost; delete value.ruseUtztnFcltNm; - ruseRvwCalUpdate(value); } };