|
|
@ -12,6 +12,7 @@ import { findJudge, findJudgeDatas, saveJudgeData } from 'apis/judge';
|
|
|
|
import NewJudgeDataForm from 'views/biz/judge/NewJudgeDataForm';
|
|
|
|
import NewJudgeDataForm from 'views/biz/judge/NewJudgeDataForm';
|
|
|
|
import ModifyJudgeDataForm from 'views/biz/judge/ModifyJudgeDataForm';
|
|
|
|
import ModifyJudgeDataForm from 'views/biz/judge/ModifyJudgeDataForm';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import xitCmm from '../../../commons/XitCmm';
|
|
|
|
|
|
|
|
|
|
|
|
const JudgeDataReview = ({ scDatagb, menuName }) => {
|
|
|
|
const JudgeDataReview = ({ scDatagb, menuName }) => {
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
@ -35,24 +36,31 @@ const JudgeDataReview = ({ scDatagb, menuName }) => {
|
|
|
|
headerName: '접수번호',
|
|
|
|
headerName: '접수번호',
|
|
|
|
headerAlign: 'center',
|
|
|
|
headerAlign: 'center',
|
|
|
|
field: 'scSeq',
|
|
|
|
field: 'scSeq',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: 120,
|
|
|
|
renderCell: (params) => (
|
|
|
|
renderCell: (params) => (
|
|
|
|
<Link underline="hover" href="#">
|
|
|
|
<Link underline="hover" href="#">
|
|
|
|
{params.value}
|
|
|
|
{params.value}
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ headerName: '동명', headerAlign: 'center', field: 'scDong' },
|
|
|
|
{ headerName: '동명', headerAlign: 'center', field: 'scDong', align: 'center', width: 120 },
|
|
|
|
{ headerName: '차량번호', headerAlign: 'center', field: 'scCarnum' },
|
|
|
|
{ headerName: '차량번호', headerAlign: 'center', field: 'scCarnum', align: 'center', width: 150 },
|
|
|
|
{ headerName: '성명', headerAlign: 'center', field: 'scName' },
|
|
|
|
{ headerName: '성명', headerAlign: 'center', field: 'scName', align: 'center', width: 100 },
|
|
|
|
{ headerName: '진술유형', headerAlign: 'center', field: 'scContDocNm' },
|
|
|
|
{ headerName: '진술유형', headerAlign: 'center', field: 'scContDocNm', align: 'center', width: 150 },
|
|
|
|
{
|
|
|
|
{
|
|
|
|
headerName: '접수일자',
|
|
|
|
headerName: '접수일자',
|
|
|
|
headerAlign: 'center',
|
|
|
|
headerAlign: 'center',
|
|
|
|
field: 'scCdate'
|
|
|
|
field: 'scCdate',
|
|
|
|
// type: 'date',
|
|
|
|
align: 'center',
|
|
|
|
// valueGetter: ({ value }) => value && new Date(value)
|
|
|
|
width: 120,
|
|
|
|
|
|
|
|
valueFormatter: (params) => {
|
|
|
|
|
|
|
|
if (params.value == null || params.value.length < 8) return params.value;
|
|
|
|
|
|
|
|
return xitCmm.formatDateStr(params.value, '-');
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ headerName: '접수방법', headerAlign: 'center', field: 'scIngbNm' }
|
|
|
|
{ headerName: '접수방법', headerAlign: 'center', field: 'scIngbNm', align: 'center' },
|
|
|
|
|
|
|
|
{ headerName: '자료상태', headerAlign: 'center', field: 'scStateNm', align: 'center' }
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const search = useCallback(() => {
|
|
|
|
const search = useCallback(() => {
|
|
|
@ -63,7 +71,6 @@ const JudgeDataReview = ({ scDatagb, menuName }) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
findJudgeDatas(params).then((response) => {
|
|
|
|
findJudgeDatas(params).then((response) => {
|
|
|
|
console.log(response);
|
|
|
|
|
|
|
|
if (response && response.data) {
|
|
|
|
if (response && response.data) {
|
|
|
|
setTotalCount(response.count);
|
|
|
|
setTotalCount(response.count);
|
|
|
|
setRowsState((prevState) => ({ ...prevState, rows: response.data }));
|
|
|
|
setRowsState((prevState) => ({ ...prevState, rows: response.data }));
|
|
|
|