견적서

This commit is contained in:
basssy 2024-11-27 18:38:52 +09:00
parent 4fccfbb621
commit 44323266e5
2 changed files with 29 additions and 26 deletions

View File

@ -1071,20 +1071,20 @@ export default function Estimate({ params }) {
</table> </table>
</div> </div>
{/* 첨부파일 목록 시작 */} {/* 첨부파일 목록 시작 */}
<div className="common-table bt-able"> {originFiles.length > 0 && (
<table> <div className="common-table bt-able">
<colgroup> <table>
<col style={{ width: '160px' }} /> <colgroup>
<col /> <col style={{ width: '160px' }} />
</colgroup> <col />
<tbody> </colgroup>
<tr> <tbody>
<th>{getMessage('estimate.detail.header.fileList2')}</th> <tr>
<td> <th>{getMessage('estimate.detail.header.fileList2')}</th>
<div className="drag-file-box"> <td>
<ul className="file-list"> <div className="drag-file-box">
{originFiles.length > 0 && <ul className="file-list">
originFiles.map((originFile) => { {originFiles.map((originFile) => {
return ( return (
<li className="file-item" key={uuidv4()}> <li className="file-item" key={uuidv4()}>
<span onClick={() => handleEstimateFileDownload(originFile)}> <span onClick={() => handleEstimateFileDownload(originFile)}>
@ -1101,13 +1101,14 @@ export default function Estimate({ params }) {
</li> </li>
) )
})} })}
</ul> </ul>
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
)}
{/* 첨부파일 목록 끝 */} {/* 첨부파일 목록 끝 */}
{/* 파일첨부 끝 */} {/* 파일첨부 끝 */}
{/* 견적특이사항 시작 */} {/* 견적특이사항 시작 */}

View File

@ -150,11 +150,13 @@ export const useEstimateController = (planNo) => {
if (estimateData.fileList.length < 1) { if (estimateData.fileList.length < 1) {
if (estimateData.itemList.length > 1) { if (estimateData.itemList.length > 1) {
estimateData.itemList.map((row) => { estimateData.itemList.map((row) => {
if (row.fileUploadFlg === '1') { if (row.delFlg === '0') {
if (fileFlg) { if (row.fileUploadFlg === '1') {
if (estimateData.fileFlg === '0') { if (fileFlg) {
fileFlg = false if (estimateData.fileFlg === '0') {
return alert(getMessage('estimate.detail.save.requiredFileUpload')) fileFlg = false
return alert(getMessage('estimate.detail.save.requiredFileUpload'))
}
} }
} }
} }