From 44323266e503775d639017beb160981bc93b5666 Mon Sep 17 00:00:00 2001 From: basssy Date: Wed, 27 Nov 2024 18:38:52 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/estimate/Estimate.jsx | 43 ++++++++++--------- .../estimate/useEstimateController.js | 12 +++--- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 2c12918b..65085072 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -1071,20 +1071,20 @@ export default function Estimate({ params }) { {/* 첨부파일 목록 시작 */} -
- - - - - - - - - + + +
{getMessage('estimate.detail.header.fileList2')} -
-
    - {originFiles.length > 0 && - originFiles.map((originFile) => { + {originFiles.length > 0 && ( +
    + + + + + + + + + - - -
    {getMessage('estimate.detail.header.fileList2')} +
    +
      + {originFiles.map((originFile) => { return (
    • handleEstimateFileDownload(originFile)}> @@ -1101,13 +1101,14 @@ export default function Estimate({ params }) {
    • ) })} -
    -
    -
    -
    +
+
+
+
+ )} {/* 첨부파일 목록 끝 */} {/* 파일첨부 끝 */} {/* 견적특이사항 시작 */} diff --git a/src/hooks/floorPlan/estimate/useEstimateController.js b/src/hooks/floorPlan/estimate/useEstimateController.js index 4cb00aba..b3c662d7 100644 --- a/src/hooks/floorPlan/estimate/useEstimateController.js +++ b/src/hooks/floorPlan/estimate/useEstimateController.js @@ -150,11 +150,13 @@ export const useEstimateController = (planNo) => { if (estimateData.fileList.length < 1) { if (estimateData.itemList.length > 1) { estimateData.itemList.map((row) => { - if (row.fileUploadFlg === '1') { - if (fileFlg) { - if (estimateData.fileFlg === '0') { - fileFlg = false - return alert(getMessage('estimate.detail.save.requiredFileUpload')) + if (row.delFlg === '0') { + if (row.fileUploadFlg === '1') { + if (fileFlg) { + if (estimateData.fileFlg === '0') { + fileFlg = false + return alert(getMessage('estimate.detail.save.requiredFileUpload')) + } } } }