-
-
-
-
- {index === 0 &&
基本屋根材}
- {index !== 0 &&
}
-
+ {roofList.map((roof, index) => {
+ return (
+
+
+
+
-
- {value.type === 'A' ? (
- <>
+
+
+
+
+ r.id === roof.id)}
+ onChange={(e) => handleChangeRoofMaterial(e, index)}
+ />
+
+ {index === 0 &&
基本屋根材}
+ {index !== 0 &&
}
+
+
+
+ {roof.widAuth && (
W
@@ -68,6 +94,8 @@ export default function RoofAllocationSetting(props) {
+ )}
+ {roof.lenAuth && (
L
@@ -76,6 +104,8 @@ export default function RoofAllocationSetting(props) {
+ )}
+ {roof.raftAuth && (
{getMessage('modal.placement.initial.setting.rafter')}
@@ -84,9 +114,8 @@ export default function RoofAllocationSetting(props) {
- >
- ) : value.type === 'B' ? (
- <>
+ )}
+ {roof.roofPchAuth && (
{getMessage('hajebichi')}
@@ -95,63 +124,23 @@ export default function RoofAllocationSetting(props) {
-
-
{getMessage('modal.placement.initial.setting.rafter')}
-
-
-
-
- >
- ) : value.type === 'C' ? (
- <>
-
-
{getMessage('hajebichi')}
-
-
-
-
- >
- ) : value.type === 'D' ? (
- <>
-
-
-
{getMessage('modal.placement.initial.setting.rafter')}
-
-
-
-
- >
- ) : (
- ''
- )}
-
-
-
-
-
+ )}
+
+
+
+
+
+
-
- ))}
+ )
+ })}