-
{getMessage('slope')}
-
-
{
- handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
- }}
- defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
- />
+ {roof.raftAuth && (
+
+
+
{getMessage('modal.placement.initial.setting.rafter')}
+ {raftCodes.length > 0 && (
+
+
+
+ )}
-
{pitchText}
-
+ )}
+
{(roof.widAuth || roof.lenAuth) && (
<>
{roof.widAuth && (
@@ -155,43 +158,37 @@ export default function ContextRoofAllocationSetting(props) {
)}
>
)}
- {(roof.raftAuth || roof.roofPchAuth) && (
- <>
- {roof.raftAuth && (
-
-
-
{getMessage('modal.placement.initial.setting.rafter')}
- {raftCodes.length > 0 && (
-
-
-
- )}
-
+ {roof.roofPchAuth && (
+
+
+
{getMessage('hajebichi')}
+
+
- )}
- {roof.roofPchAuth && (
-
-
-
{getMessage('hajebichi')}
-
-
-
-
-
- )}
- >
+
+
)}
+
+
+
{getMessage('slope')}
+
+ {
+ handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
+ }}
+ defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
+ />
+
+
{pitchText}
+
+
-
-
-
{getMessage('slope')}
-
-
{
- handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
- }}
- defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
- />
+
+ {roof.raftAuth && (
+
+
+
{getMessage('modal.placement.initial.setting.rafter')}
+ {raftCodes.length > 0 && (
+
+ handleChangeRaft(e, index)}
+ />
+
+ )}
-
{pitchText}
-
+ )}
+
{(roof.widAuth || roof.lenAuth) && (
<>
{roof.widAuth && (
@@ -169,45 +174,38 @@ export default function RoofAllocationSetting(props) {
)}
>
)}
- {(roof.raftAuth || roof.roofPchAuth) && (
- <>
- {roof.raftAuth && (
-
-
-
{getMessage('modal.placement.initial.setting.rafter')}
- {raftCodes.length > 0 && (
-
- handleChangeRaft(e, index)}
- />
-
- )}
-
+ {roof.roofPchAuth && (
+
+
+
{getMessage('hajebichi')}
+
+ handleChangeInput(e, 'hajebichi', index)}
+ value={parseInt(roof.hajebichi)}
+ readOnly={roof.roofPchAuth === 'R'}
+ />
- )}
- {roof.roofPchAuth && (
-
-
-
{getMessage('hajebichi')}
-
- handleChangeInput(e, 'hajebichi', index)}
- value={parseInt(roof.hajebichi)}
- readOnly={roof.roofPchAuth === 'R'}
- />
-
-
-
- )}
- >
+
+
)}
+
+
+
{getMessage('slope')}
+
+ {
+ handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index)
+ }}
+ defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle}
+ />
+
+
{pitchText}
+
+