diff --git a/src/views/biz/judge/JudgeDataModifyForm.jsx b/src/views/biz/judge/JudgeDataModifyForm.jsx index 0530e5a..0155d6b 100644 --- a/src/views/biz/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/judge/JudgeDataModifyForm.jsx @@ -62,10 +62,10 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav formData.append('scName', scName); formData.append('scDong', scDong); formData.append('scContDoc', selectedContDoc); - formData.append('scCdate', scCdate); + formData.append('scCdate', scCdate ? scCdate?.replace(/-/g, '') : ''); formData.append('scIngb', selectedIngb); - formData.append('scWdate', scWdate); - formData.append('scJbtime', scJbtime); + formData.append('scWdate', scWdate ? scWdate?.replace(/-/g, '') : ''); + formData.append('scJbtime', scJbtime ? scJbtime?.replace(/:/g, '') : ''); formData.append('scPos', scPos); formData.append('zipcode1', zipcode1 ? zipcode1.substring(0, 3) : ''); formData.append('zipcode2', zipcode1 ? zipcode1.substring(3) : ''); @@ -115,6 +115,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav setPicads((picads) => { const updated = { ...picads }; updated[fileArrKey] = e.target.files[0]; + e.target.fileName = e.target.files[0].name; return updated; }); } else if (fileKey === 'scFrecad') { diff --git a/src/views/cmm/file-ctl/FileInputForms.jsx b/src/views/cmm/file-ctl/FileInputForms.jsx index 9b928e5..65a1be6 100644 --- a/src/views/cmm/file-ctl/FileInputForms.jsx +++ b/src/views/cmm/file-ctl/FileInputForms.jsx @@ -17,7 +17,7 @@ const FileInputForms = ({ fieldName, index, labelName, selectedFile, fileName, h } onClick={() => {}}