폼 유무 체크박스 변경

This commit is contained in:
jyha00
2025-05-30 10:50:00 +09:00
parent 4ee0bcc71c
commit d66d2f727d
3 changed files with 17 additions and 6 deletions
@@ -75,9 +75,9 @@ export type formDetailType = {
};
export const wasteWaterFcltINfo: formDetailType[] = [
{ id: "wwtEmsnFcltPrmsnYn", lable: "폐수배출물신고 허가여부" },
{ id: "tmsInstlYn", lable: "Tms설치여부" },
{ id: "pbnstDrngInflwExclYn", lable: "공공하수도유입제외 허가여부" },
{ id: "wwtEmsnFcltPrmsnYn", lable: "폐수배출물신고 허가여부", type: "selectYn" },
{ id: "tmsInstlYn", lable: "Tms설치여부", type: "selectYn" },
{ id: "pbnstDrngInflwExclYn", lable: "공공하수도유입제외 허가여부", type: "selectYn" },
];
export const concentratedWaterInfo: formDetailType[] = [
@@ -118,7 +118,7 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
};
useEffect(() => {
if(getBizCycle){
@@ -254,7 +254,7 @@ export function PbnstBuseForm({ data }: { data: fcBizType[] }) {
<Input
type="text"
value={""}
readOnly
readOnly={true}
className="w-32 border-gray-300 rounded pr-8 "
/>
<Button
@@ -1,7 +1,8 @@
import { useWrStore } from "@/app/store";
import type { formDetailType } from "@/app/store/ruseFcltMng/fcltReg/pbnstReg/headList";
import { formH1Class } from "@/components/lib/class/comClass";
import { safeDate } from "@/components/lib/func/commom";
import { FormField, FormUi } from "@common/business_components/ui";
import { FormField, FormUi, SelectBox } from "@common/business_components/ui";
import { DatePicker, Input } from "@common/components/ui";
export default function MngRegFormDetail({
@@ -19,6 +20,7 @@ export default function MngRegFormDetail({
cycle?:string
sonClass?: string;
}) {
const { code, } = useWrStore((state) => state);
return (
<>
<h1 className={formH1Class}>{h1Title}</h1>
@@ -46,6 +48,15 @@ export default function MngRegFormDetail({
/>
) : item.type === "number" ? (
<Input placeholder="" type="number" value={field.value??0} onChange={(e) =>{field.onChange(Number(e.target.value))}} />
) : item.type === "selectYn" ? (
<SelectBox
label={""}
selectClass={""}
className="w-full"
selectArray={code.yn}
onSelectValue={(val: string | number) => field.onChange(val)}
value={field.value}
/>
) : (
<Input placeholder="" type="text" value={field.value??''} onChange={field.onChange} />
)}