|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import NumberFormat from 'react-number-format';
|
|
|
|
@ -309,210 +310,55 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1}>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={false}
|
|
|
|
|
fieldName="scPicad"
|
|
|
|
|
index={1}
|
|
|
|
|
labelName="단속사진1"
|
|
|
|
|
fileName={rowData.scPicad1}
|
|
|
|
|
selectedFile={picads.scPicad1?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof picads.scPicad1 === 'undefined'}
|
|
|
|
|
fieldName="scPicad"
|
|
|
|
|
labelName="단속사진2"
|
|
|
|
|
index={2}
|
|
|
|
|
fileName={rowData.scPicad2}
|
|
|
|
|
selectedFile={picads.scPicad2?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof picads.scPicad2 === 'undefined'}
|
|
|
|
|
fieldName="scPicad"
|
|
|
|
|
labelName="단속사진3"
|
|
|
|
|
index={3}
|
|
|
|
|
fileName={rowData.scPicad3}
|
|
|
|
|
selectedFile={picads.scPicad3?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof picads.scPicad3 === 'undefined'}
|
|
|
|
|
fieldName="scPicad"
|
|
|
|
|
labelName="단속사진4"
|
|
|
|
|
index={4}
|
|
|
|
|
fileName={rowData.scPicad4}
|
|
|
|
|
selectedFile={picads.scPicad4?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
{_.range(1, 5, 1).map((idx) => (
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={idx === 1 ? false : typeof picads[`scPicad${idx - 1}`] === 'undefined'}
|
|
|
|
|
fieldName="scPicad"
|
|
|
|
|
index={idx}
|
|
|
|
|
labelName={`단속사진${idx}`}
|
|
|
|
|
fileName={rowData[`scPicad${idx}`]}
|
|
|
|
|
selectedFile={picads[`scPicad${idx}`]?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
))}
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1}>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={false}
|
|
|
|
|
fieldName="scFrecad"
|
|
|
|
|
index={1}
|
|
|
|
|
labelName="진술서1"
|
|
|
|
|
fileName={rowData.scFrecad1}
|
|
|
|
|
selectedFile={frecads.scFrecad1?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof frecads.scFrecad1 === 'undefined'}
|
|
|
|
|
fieldName="scFrecad"
|
|
|
|
|
labelName="진술서2"
|
|
|
|
|
index={2}
|
|
|
|
|
fileName={rowData.scFrecad2}
|
|
|
|
|
selectedFile={frecads.scFrecad2?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof frecads.scFrecad2 === 'undefined'}
|
|
|
|
|
fieldName="scFrecad"
|
|
|
|
|
labelName="진술서3"
|
|
|
|
|
index={3}
|
|
|
|
|
fileName={rowData.scFrecad3}
|
|
|
|
|
selectedFile={frecads.scFrecad3?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof frecads.scFrecad3 === 'undefined'}
|
|
|
|
|
fieldName="scFrecad"
|
|
|
|
|
labelName="진술서4"
|
|
|
|
|
index={4}
|
|
|
|
|
fileName={rowData.scFrecad4}
|
|
|
|
|
selectedFile={frecads.scFrecad4?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
{_.range(1, 5, 1).map((idx) => (
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={idx === 1 ? false : typeof frecads[`scFrecad${idx - 1}`] === 'undefined'}
|
|
|
|
|
fieldName="scFrecad"
|
|
|
|
|
index={idx}
|
|
|
|
|
labelName={`진술서${idx}`}
|
|
|
|
|
fileName={rowData[`scFrecad${idx}`]}
|
|
|
|
|
selectedFile={frecads[`scFrecad${idx}`]?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
))}
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1}>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={false}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료1"
|
|
|
|
|
index={1}
|
|
|
|
|
fileName={rowData.scContad1}
|
|
|
|
|
selectedFile={contads.scContad1?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad1 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료2"
|
|
|
|
|
index={2}
|
|
|
|
|
fileName={rowData.scContad2}
|
|
|
|
|
selectedFile={contads.scContad2?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad2 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료3"
|
|
|
|
|
index={3}
|
|
|
|
|
fileName={rowData.scContad3}
|
|
|
|
|
selectedFile={contads.scContad3?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad3 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료4"
|
|
|
|
|
index={4}
|
|
|
|
|
fileName={rowData.scContad4}
|
|
|
|
|
selectedFile={contads.scContad4?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad4 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료5"
|
|
|
|
|
index={5}
|
|
|
|
|
fileName={rowData.scContad5}
|
|
|
|
|
selectedFile={contads.scContad5?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad5 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료6"
|
|
|
|
|
index={6}
|
|
|
|
|
fileName={rowData.scContad6}
|
|
|
|
|
selectedFile={contads.scContad6?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad6 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료7"
|
|
|
|
|
index={7}
|
|
|
|
|
fileName={rowData.scContad7}
|
|
|
|
|
selectedFile={contads.scContad7?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={typeof contads.scContad7 === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
labelName="첨부자료8"
|
|
|
|
|
index={8}
|
|
|
|
|
fileName={rowData.scContad8}
|
|
|
|
|
selectedFile={contads.scContad8?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
{_.range(1, 9, 1).map((idx) => (
|
|
|
|
|
<Grid item sm={3}>
|
|
|
|
|
<FileInputForms
|
|
|
|
|
isDisabled={idx === 1 ? false : typeof contads[`scContad${idx - 1}`] === 'undefined'}
|
|
|
|
|
fieldName="scContad"
|
|
|
|
|
index={idx}
|
|
|
|
|
labelName={`첨부자료${idx}`}
|
|
|
|
|
fileName={rowData[`scContad${idx}`]}
|
|
|
|
|
selectedFile={contads[`scContad${idx}`]?.name}
|
|
|
|
|
handleChangeFile={handleChangeFile}
|
|
|
|
|
alert={alert}
|
|
|
|
|
isOrgFileInfo
|
|
|
|
|
/>
|
|
|
|
|
</Grid>
|
|
|
|
|
))}
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid container spacing={1} item xs={12} mt={1}>
|
|
|
|
|