하수재이용 등록 예시 데이터 전달

This commit is contained in:
leedj312
2025-05-23 15:03:25 +09:00
parent cdcbfa4d9f
commit 584bd9b432
3 changed files with 28 additions and 4 deletions
@@ -19,7 +19,7 @@ import { PbnstMngForm } from "@/components/ui/form/fcltReg/pbnstReg/mngReg/mngRe
import { PbnstBuseForm } from "@/components/ui/form/fcltReg/pbnstReg/buseReg/bugRegForm";
export default function PublicReuseFaciltyInsert() {
const { code, pbnst, pubHasuInit } = useWrStore((state) => state);
const { code, pbnst, pubHasuInit,pbnstRegInit } = useWrStore((state) => state);
const { pubFacHeadList,pbnstHasuRes } = pbnst;
@@ -31,11 +31,12 @@ export default function PublicReuseFaciltyInsert() {
useEffect(() => {
if (!pbnst.isInit) {
if (!pbnst.isInit ) {
pubHasuInit(undefined);
}
}, [pbnst.isInit, pubHasuInit]);
pbnstRegInit( '41');
}
}, [pbnst.isInit, pubHasuInit,pbnstRegInit]);
useEffect(() => {
if (code.sggCd.length > 0) {
@@ -43,6 +44,10 @@ useEffect(() => {
}
}, [code, pbnstHasuRes]);
useEffect(() => {
console.log("/pbnstRes ", pbnstRes)
}, [pbnstRes]);
const onSelectValue = (val: string) => {
console.log(val);
@@ -22,6 +22,15 @@ export const pubMngUpHeadListExport: TableUpperProps[] = [
{ id: "startDay", title: "시작일", upName: "upChangeRe", upSequnce: 1 },
{ id: "endDay", title: "종료일", upName: "upChangeRe", upSequnce: 2 },
];
export const pubOrgwtHeadListExport: TableUpperProps[] = [
{ id: "ruseUtztnFcltNm", title: "운영방식" },
{ id: "orgwtWtritQnt", title: "원수취수량" },
{ id: "tmsYn", title: "하수처리량TMS 전후", },
{ id: "dschgFmYn", title: "하수처리장 방류 유량계 전·후​", },
{ id: "dtlPstnExpln", title: "상세위치 설명", },
];
const date = new Date();
export const pubMngNmExport: chHeadType[] = [
@@ -73,4 +82,12 @@ export const businessSttnInfo:formDetailType[]=[
{id:'bizMthdCd' , lable:'사업방식'},
{id:'bizCmcnDay' , lable:'사업준공일' ,type:'date'},
{id:'instlAprvSncnDt' , lable:'설치승인인가일' ,type:'date'} ,
]
export const ruseFcltIntakeList:formDetailType[]=[
{id:'seCd' , lable:'구분'},
{id:'bizMthdCd' , lable:'사업방식'},
{id:'bizCmcnDay' , lable:'사업준공일' ,type:'date'},
{id:'instlAprvSncnDt' , lable:'설치승인인가일' ,type:'date'} ,
]
@@ -58,6 +58,8 @@ export function PbnstBuseForm() {
useEffect(() => {
if (getBizCycle ) {
console.log("getBizCycle", getBizCycle);
form.reset()
}
}, [getBizCycle]);