Browse Source

비사업일때 기체 종류 기체 신고번호 값 초기화

pull/2/head
sanguu516(박상현) 12 months ago
parent
commit
1f56e6e6d4
  1. 5
      src/containers/laanc/LaancPlanContainer.js
  2. 21
      src/views/laanc/LaancStep1.js

5
src/containers/laanc/LaancPlanContainer.js

@ -185,7 +185,10 @@ export default function LaancPlanContainer({
}); });
return false; return false;
} else if (!detailData.areaList[0].fltElev) { } else if (
!detailData.areaList[0].fltElev ||
detailData.areaList[0].fltElev === '0'
) {
setModal2({ setModal2({
isOpen: true, isOpen: true,
title: '필수값 입력 오류', title: '필수값 입력 오류',

21
src/views/laanc/LaancStep1.js

@ -65,7 +65,6 @@ export default function LaancStep1({
data.arcrftList[0].arcrftWdth == '10' || data.arcrftList[0].arcrftWdth == '10' ||
data.arcrftList[0].arcrftWdth == '9' data.arcrftList[0].arcrftWdth == '9'
) { ) {
console.log('>>>>>SDfsdfsd');
} }
}, [data]); }, [data]);
const handleInputClick = type => { const handleInputClick = type => {
@ -85,6 +84,22 @@ export default function LaancStep1({
} }
}; };
// 비사업 클릭시 기존 값 초기화 작업
const initialValue = () => {
if (data.arcrftList[0].idntfNum) {
handleChange({
type: 'arcrft',
name: 'idntfNum',
value: ''
});
} else if (data.arcrftList[0].arcrftTypeCd) {
handleChange({
type: 'arcrft',
name: 'arcrftTypeCd',
value: ''
});
}
};
return ( return (
<> <>
<ModalHeader> <ModalHeader>
@ -457,7 +472,9 @@ export default function LaancStep1({
</FormGroup> </FormGroup>
</Col> </Col>
</> </>
) : null} ) : (
initialValue()
)}
</Row> </Row>
</Col> </Col>
</Row> </Row>

Loading…
Cancel
Save