물재이용 공통코드 작업 수정 사항 추가

This commit is contained in:
leedj312
2025-09-15 15:38:25 +09:00
parent ad6e4484b7
commit e6be168d0d
14 changed files with 65 additions and 88 deletions
+8 -6
View File
@@ -64,11 +64,10 @@ export const getCommonUpCd = async (set:any) => {
);
const list = Array.isArray(lwCd) ? lwCd : lwCd.content ?? [];
lwCds[mapping] = list.map((it: any) => ({
text: it.lwpoCdNm,
val: it.lwpoCd,
}));
lwCds[mapping] = list.map((it: any) => ({
text: it.lwpoCdNm,
val: it.lwpoCd,
}));
})
);
lwCdCode=lwCds
@@ -76,7 +75,7 @@ export const getCommonUpCd = async (set:any) => {
code: {
...state.code,
rainFcltCd: lwCdCode['rainFcltCd']??[],
bdstUsgCd: lwCdCode['bdstUsgCd']??[] ,
bdstUsgCd: lwCdCode['bdstUsgCd']??[],
orgwtKndCd: lwCdCode['orgwtKndCd']??[] ,
pplQulity: lwCdCode['pplQulity']??[] ,
pplLenght: lwCdCode['pplLenght']??[] ,
@@ -88,6 +87,7 @@ export const getCommonUpCd = async (set:any) => {
htdPowerMthdCd: lwCdCode['htdPowerMthdCd']??[],
htdUtztnUsgCd: lwCdCode['htdUtztnUsgCd']??[],
rswtBdstType:lwCdCode['rswtBdstType']??[] ,
bdstTotalUsgType:lwCdCode['bdstUsgCd']?.concat(lwCdCode['rswtBdstType'] || [])??[]
},
}));
}catch(e){
@@ -256,6 +256,7 @@ export type comCodeState = {
htdPowerMthdCd: SelectDataType[];
htdUtztnUsgCd: SelectDataType[];
rswtBdstType:SelectDataType[];
bdstTotalUsgType:SelectDataType[]
userSiSggCd: string;
};
};
@@ -293,6 +294,7 @@ export const comCodeStateExport: comCodeState = {
htdUtztnUsgCd: lwCds['htdUtztnUsgCd']??[],
userSiSggCd: laeSecd,
rswtBdstType:lwCds['rswtBdstType']??[] ,
bdstTotalUsgType:lwCds['bdstTotalUsgType']??[]
},
};