fix: Detailed error resolution

- 단열재 유무 기타 input 창 나오지 않는 오류 해결
- T01 임시저장 데이터 조회 가능하도록 로직 수정정
This commit is contained in:
Dayoung 2025-05-21 18:21:22 +09:00
parent 1057c29995
commit a483ffce44
3 changed files with 14 additions and 31 deletions

View File

@ -78,29 +78,6 @@ const createKeywordSearchCondition = (keyword: string, searchOption: string): Wh
return where
}
// 임시저장 데이터 필터링 - T01 만 적용
const filterTempData = () => {
const requiredFields = [
'INSTALLATION_SYSTEM',
'CONSTRUCTION_YEAR',
'RAFTER_SIZE',
'RAFTER_PITCH',
'WATERPROOF_MATERIAL',
'INSULATION_PRESENCE',
'STRUCTURE_ORDER',
]
return {
DETAIL_INFO: {
is: {
AND: requiredFields.map((field: string) => ({
OR: [{ [field]: { not: null } }, { [`${field}_ETC`]: { not: null } }],
})),
},
},
}
}
/**
*
* @param params
@ -155,14 +132,20 @@ const createMemberRoleCondition = (params: SearchParams): WhereCondition => {
break
case 'T01':
// where.AND.push(filterTempData())
where.AND?.push({
NOT: {
SRL_NO: {
startsWith: '一時保存',
where.OR = [
{
NOT: {
SRL_NO: {
startsWith: '一時保存',
},
},
},
})
{
STORE: {
equals: params.store,
},
},
]
break
case 'User':
// 모든 매물 조회 가능 (추가 조건 없음)

View File

@ -219,7 +219,7 @@ export default function ButtonForm(props: {
<ListButton />
<TempButton setMode={setMode} handleSave={handleSave} />
<SaveButton handleSave={handleSave} />
<SubmitButton handleSubmit={handleSubmit} setTempTargetId={setTempTargetId} />
{session?.role !== 'T01' && <SubmitButton handleSubmit={handleSubmit} setTempTargetId={setTempTargetId} />}{' '}
</div>
</div>
)}

View File

@ -636,7 +636,7 @@ const RadioSelected = ({
<label htmlFor={`${column}Etc`}> ()</label>
</div>
)}
{showEtcOption && (
{(showEtcOption || column === 'insulationPresence') && (
<div className="data-input">
<input
type="text"