fix: 거주자/장애인 자료 변경 반영

main
minuk926 3 years ago
parent 48f70037c9
commit 2d8e67d347

@ -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') {

@ -17,7 +17,7 @@ const FileInputForms = ({ fieldName, index, labelName, selectedFile, fileName, h
<TextField
placeholder={labelName}
// label={labelName}
value={fileName ?? selectedFile}
value={selectedFile ?? fileName}
size="small"
startIcon={<FileUpload />}
onClick={() => {}}

Loading…
Cancel
Save