style: 조사매물 PDF 파일 번역 수정

This commit is contained in:
Dayoung 2025-08-06 13:25:08 +09:00
parent 4286e20807
commit c769d9b533

View File

@ -137,7 +137,7 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
<Text style={styles.title}>HWJ 調</Text> <Text style={styles.title}>HWJ 調</Text>
<View style={styles.headerRight}> <View style={styles.headerRight}>
<View style={styles.headerLeft}> <View style={styles.headerLeft}>
<Text style={styles.headerLabel}>調</Text> <Text style={styles.headerLabel}>調</Text>
<Text style={styles.headerValue}>{survey?.store ?? '-'}</Text> <Text style={styles.headerValue}>{survey?.store ?? '-'}</Text>
</View> </View>
{survey?.constructionPoint && ( {survey?.constructionPoint && (
@ -147,7 +147,7 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
</View> </View>
)} )}
<View> <View>
<Text style={styles.headerLabel}></Text> <Text style={styles.headerLabel}>調</Text>
<Text style={styles.headerValue}>{survey?.investigationDate ?? '-'}</Text> <Text style={styles.headerValue}>{survey?.investigationDate ?? '-'}</Text>
</View> </View>
</View> </View>
@ -171,16 +171,16 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
{/* Electric Info */} {/* Electric Info */}
<View style={styles.section}> <View style={styles.section}>
<Text style={styles.sectionTitle}></Text> <Text style={styles.sectionTitle}></Text>
<View style={styles.table}> <View style={styles.table}>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderMedium]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL]}>{survey?.detailInfo?.contractCapacity ?? '-'}</Text> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL]}>{survey?.detailInfo?.contractCapacity ?? '-'}</Text>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL]}>{survey?.detailInfo?.retailCompany ?? '-'}</Text> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL]}>{survey?.detailInfo?.retailCompany ?? '-'}</Text>
</View> </View>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT]}> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT]}>
{survey?.detailInfo?.supplementaryFacilities {survey?.detailInfo?.supplementaryFacilities
? supplementaryFacilities ? supplementaryFacilities
@ -207,7 +207,7 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
{/* Roof Info */} {/* Roof Info */}
<View style={styles.section}> <View style={styles.section}>
<Text style={styles.sectionTitle}></Text> <Text style={styles.sectionTitle}></Text>
<View style={styles.table}> <View style={styles.table}>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderMedium]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium]}></Text>
@ -218,7 +218,7 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
? `既築 (${survey?.detailInfo?.constructionYear}年)` ? `既築 (${survey?.detailInfo?.constructionYear}年)`
: '-'} : '-'}
</Text> </Text>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex07, styles.marginL, styles.marginL]}> <Text style={[styles.tableCell, styles.tableCellFlex07, styles.marginL, styles.marginL]}>
{survey?.detailInfo?.roofMaterial === null && survey?.detailInfo?.roofMaterialEtc === null {survey?.detailInfo?.roofMaterial === null && survey?.detailInfo?.roofMaterialEtc === null
? '-' ? '-'
@ -228,25 +228,25 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
.join(', ')} .join(', ')}
{survey?.detailInfo?.roofMaterialEtc ? `, ${survey?.detailInfo?.roofMaterialEtc}` : ''} {survey?.detailInfo?.roofMaterialEtc ? `, ${survey?.detailInfo?.roofMaterialEtc}` : ''}
</Text> </Text>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex07, styles.marginL]}> <Text style={[styles.tableCell, styles.tableCellFlex07, styles.marginL]}>
{selectBoxOptions.roofShape.find((shape) => shape.id.toString() === survey?.detailInfo?.roofShape)?.name ?? {selectBoxOptions.roofShape.find((shape) => shape.id.toString() === survey?.detailInfo?.roofShape)?.name ??
(survey?.detailInfo?.roofShapeEtc ? ` ${survey?.detailInfo?.roofShapeEtc}` : '-')} (survey?.detailInfo?.roofShapeEtc ? ` ${survey?.detailInfo?.roofShapeEtc}` : '-')}
</Text> </Text>
</View> </View>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT, styles.marginL]}> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT, styles.marginL]}>
{survey?.detailInfo?.roofSlope ? `${survey?.detailInfo?.roofSlope}` : '-'} {survey?.detailInfo?.roofSlope ? `${survey?.detailInfo?.roofSlope}` : '-'}
</Text> </Text>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL, styles.marginT]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginL, styles.marginT]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex2, styles.marginL, styles.marginL, styles.marginT]}> <Text style={[styles.tableCell, styles.tableCellFlex2, styles.marginL, styles.marginL, styles.marginT]}>
{radioEtcData.houseStructure.find((structure) => structure.id.toString() === survey?.detailInfo?.houseStructure)?.label ?? {radioEtcData.houseStructure.find((structure) => structure.id.toString() === survey?.detailInfo?.houseStructure)?.label ??
(survey?.detailInfo?.houseStructureEtc ? ` ${survey?.detailInfo?.houseStructureEtc}` : '-')} (survey?.detailInfo?.houseStructureEtc ? ` ${survey?.detailInfo?.houseStructureEtc}` : '-')}
</Text> </Text>
</View> </View>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT]}> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT]}>
{radioEtcData.rafterMaterial.find((material) => material.id.toString() === survey?.detailInfo?.rafterMaterial)?.label ?? {radioEtcData.rafterMaterial.find((material) => material.id.toString() === survey?.detailInfo?.rafterMaterial)?.label ??
(survey?.detailInfo?.rafterMaterialEtc ? ` ${survey?.detailInfo?.rafterMaterialEtc}` : '-')} (survey?.detailInfo?.rafterMaterialEtc ? ` ${survey?.detailInfo?.rafterMaterialEtc}` : '-')}
@ -280,7 +280,7 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
</Text> </Text>
</View> </View>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderMedium, styles.marginT]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT]}> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL, styles.marginT]}>
{survey?.detailInfo?.leakTrace ? 'あり' : 'なし'} {survey?.detailInfo?.leakTrace ? 'あり' : 'なし'}
</Text> </Text>
@ -313,7 +313,7 @@ export default function SurveySalePdf({ survey }: { survey: SurveyBasicInfo }) {
<View style={styles.sectionNoPadding}> <View style={styles.sectionNoPadding}>
<View style={styles.table}> <View style={styles.table}>
<View style={styles.tableRow}> <View style={styles.tableRow}>
<Text style={[styles.tableHeader, styles.tableHeaderLarge]}></Text> <Text style={[styles.tableHeader, styles.tableHeaderLarge]}></Text>
<Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL]}> <Text style={[styles.tableCell, styles.tableCellFlex1, styles.marginL]}>
{survey?.detailInfo?.installationAvailability === null && survey.detailInfo?.installationAvailabilityEtc === null {survey?.detailInfo?.installationAvailability === null && survey.detailInfo?.installationAvailabilityEtc === null
? '-' ? '-'