[as frontend] 시도/구군 추가
This commit is contained in:
@@ -155,12 +155,14 @@ const normalizeChecklistResultRows = (payload: any): any[] => {
|
||||
*/
|
||||
function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
|
||||
const router = useRouter();
|
||||
const userInfo2 = useUserStore((state) => state.userInfo);
|
||||
const userInfo = useUserStore((state) => state.userInfo);
|
||||
// userInfo?.dtlInstCd 테스트 코드 ENV.ROLE_USER03 , KECO 권한 테스트용 (실제 권한에 맞게 변경 필요)
|
||||
/*
|
||||
const userInfo = {
|
||||
...userInfo2,
|
||||
dtlInstCd: "ROLE_USER03", //ROLE_USER03, ROLE_USER02, ROLE_USER01 KECO 권한 테스트용 (실제 권한에 맞게 변경 필요)
|
||||
};
|
||||
*/
|
||||
const alert = useAlertStore((state) => state.setMessage);
|
||||
const qc = useQueryClient();
|
||||
const currentDet = useMemo(() => initialData?.detDto ?? initialData, [initialData]);
|
||||
@@ -1124,7 +1126,7 @@ function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
|
||||
}
|
||||
|
||||
const toInstlSncnMngPayload = (prgrsSttsComCd: "SV" | "ST"| "ER"): InstlSncnMng => ({
|
||||
instlSncnDocNo: docId ?? "", // 수정 시 기존 문서번호 유지, 신규 저장 시 빈값
|
||||
instlSncnDocNo: docId ?? "",
|
||||
admdstCd: "",
|
||||
sidoNm: "",
|
||||
sggNm: "",
|
||||
@@ -1155,6 +1157,8 @@ function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
|
||||
regDt: "",
|
||||
mdfcnDt: "",
|
||||
rgtrNm: "",
|
||||
gugun: "",
|
||||
sido: ""
|
||||
});
|
||||
|
||||
async function handleSave() {
|
||||
@@ -1303,7 +1307,9 @@ function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
|
||||
<th style={{ textAlign: "center" }}>신청 지자체</th>
|
||||
<td>
|
||||
<span className="inline-block min-w-[16rem] whitespace-nowrap text-[1.3rem] text-gray-500">
|
||||
{userInfo?.enoNm ?? "\u00A0"}
|
||||
{isModifyMode
|
||||
? `${currentDet?.sido ?? "-"} ${currentDet?.gugun ?? "-"}`
|
||||
: userInfo?.laeSeNm ?? "\u00A0"}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1312,9 +1318,9 @@ function CnfmRegistPage({ initialData }: { initialData?: any } = {}) {
|
||||
<td colSpan={3}>
|
||||
<div className="flex gap-4 text-[1.3rem]">
|
||||
{[
|
||||
["CNFM", "설치인가"],
|
||||
["APR", "설치승인"],
|
||||
["AFA", "폐지인가"],
|
||||
["1", "설치인가"],
|
||||
["2", "설치승인"],
|
||||
["3", "폐지승인"],
|
||||
].map(([val, label]) => (
|
||||
<label key={val} className="flex cursor-pointer items-center gap-1">
|
||||
<input
|
||||
|
||||
@@ -289,12 +289,12 @@ function CnfmViewPage({ id }: { id: string }) {
|
||||
<tr>
|
||||
<th>구분</th>
|
||||
<td>{det.taskSeCdNm || det.taskSeComCd || "-"}</td>
|
||||
<th>행정동ID</th>
|
||||
<td>{det.admdstCd || "-"}</td>
|
||||
<th>신청지자체</th>
|
||||
<td>{det.sido || "-"} {det.gugun || "-"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>사업구분</th>
|
||||
<td colSpan={3}>{det.sncnSeComCd || "-"}</td>
|
||||
<td colSpan={3}>{det.sncnSeCdNm || "-"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>진행상태</th>
|
||||
|
||||
Reference in New Issue
Block a user