Merge commit '0ad1fdd2532e65d6e1bfcf727af388e5a2c1aa7d' into iipbs/wr/dev

This commit is contained in:
leedj312
2025-03-11 13:54:12 +09:00
3 changed files with 91 additions and 195 deletions
@@ -32,8 +32,8 @@ import { useWrStore } from '../../../store';
<SelectBox className='col-span-2' label={searchDiv} selectArray={selectBox} onSelectValue={onSelectValue} /> <SelectBox className='col-span-2' label={searchDiv} selectArray={selectBox} onSelectValue={onSelectValue} />
</div> </div>
<div className='w-1/5 flex items-center justify-end'> <div className='w-1/5 flex items-center justify-end'>
<Button className='mr-4 rounded-md'>조회</Button> <Button className='mr-4 rounded-lg'>조회</Button>
<Button className='mr-4 rounded-md'>신규추가</Button> <Button className='mr-4 rounded-lg'>신규추가</Button>
</div> </div>
</SearchDiv> </SearchDiv>
{/* </div> */} {/* </div> */}
+88 -193
View File
@@ -1,8 +1,8 @@
"use client"; "use client";
import { SelectBox } from "@common/business_components"; import { SelectBox } from "@common/business_components";
import { FileUpload, UiTable } from "@common/business_components/ui"; import { FileUpload, FormUi, UiTable } from "@common/business_components/ui";
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@common/business_components/ui/form"; import { Form, FormField } from "@common/business_components/ui/form";
import { Button, DatePicker, Input } from "@common/components"; import { Button, DatePicker, Input } from "@common/components";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
import { useState } from "react"; import { useState } from "react";
@@ -77,63 +77,52 @@ export function PublicReuseFaciltyFormInsert() {
<h1 className="pl-3 text-xl">○ 재이용시설 운영정보</h1> <h1 className="pl-3 text-xl">○ 재이용시설 운영정보</h1>
</div> </div>
<div className="col-span-4 "> <div className="col-span-6 ">
<FormField <FormField
control={form.control} control={form.control}
name="facilityName" name="facilityName"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="">
<FormControl> <Input placeholder="하수처리장-1" type="" {...field} />
<Input placeholder="하수처리장-1" type="" {...field} /> </FormUi>
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
<div className="col-start-12 col-end-12 flex justify-between items-end mt-3"> <div className="col-span-2 col-end-13">
<Button className="my-3" size="xs" type="submit"> <Button className="mr-3 rounded-lg" type="submit">
신규등록 신규등록
</Button> </Button>
</div> </div>
</div> </div>
<div className="grid grid-cols-12 gap-4 my-4"> <div className="grid grid-cols-12 gap-4 my-4">
<div className="col-span-4"> <div className="col-span-6">
<FormField <FormField
control={form.control} control={form.control}
name="name_0211213336" name="name_0211213336"
render={({ field }) => ( render={({ }) => (
<FormItem> <FormUi label="계통도">
<FormLabel>계통도</FormLabel>
<FormControl>
<FileUpload files={files} setFiles={setFiles} fileTypes="PDF"></FileUpload> <FileUpload files={files} setFiles={setFiles} fileTypes="PDF"></FileUpload>
</FormControl> </FormUi>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
<div className="col-start-6 col-end-10"> <div className="col-span-6">
<FormField <FormField
control={form.control} control={form.control}
name="name_0211213336" name="name_0211213336"
render={({ field }) => ( render={({ }) => (
<FormItem> <FormUi label="평면도">
<FormLabel>평면도</FormLabel>
<FormControl>
<FileUpload files={files} setFiles={setFiles} fileTypes="PDF"></FileUpload> <FileUpload files={files} setFiles={setFiles} fileTypes="PDF"></FileUpload>
</FormControl> </FormUi>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
</div> </div>
<div className="flex justify-between items-center mx-3"> <div className="flex justify-between items-center mx-3 mb-3">
<h1 className="pl-3 text-xl">○ 재이용시설 운영정보</h1> <h1 className="pl-3 text-xl">○ 재이용시설 운영정보</h1>
<Button className="my-3" size="xs">추가등록</Button> <Button className="mr-3 rounded-lg" >추가등록</Button>
</div> </div>
<div> <div>
<UiTable <UiTable
@@ -146,20 +135,16 @@ export function PublicReuseFaciltyFormInsert() {
></UiTable> ></UiTable>
</div> </div>
<div> <div>
<h1 className="pl-3 text-xl">○ 재이용수 공급 가능량</h1> <h1 className="pl-3 text-xl mb-3">○ 재이용수 공급 가능량</h1>
<div className="grid grid-cols-12 gap-4"> <div className="grid grid-cols-12 gap-4">
<div className="col-span-3"> <div className="col-span-3">
<FormField <FormField
control={form.control} control={form.control}
name="name_0943143371" name="name_0943143371"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="시설용량(m³/일)">
<FormLabel>시설용량(m³/일)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -169,13 +154,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_2007089217" name="name_2007089217"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="하수처리량(m³/일)">
<FormLabel>하수처리량(m³/일)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -185,13 +166,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1624679275" name="name_1624679275"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="재이용량(m³/일)">
<FormLabel>재이용량(m³/일)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -200,13 +177,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1624679277" name="name_1624679277"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="공급여유량(m³/일)">
<FormLabel>공급여유량(m³/일)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -220,28 +193,26 @@ export function PublicReuseFaciltyFormInsert() {
<Form {...form}> <Form {...form}>
<form <form
onSubmit={form.handleSubmit(onSubmit)} onSubmit={form.handleSubmit(onSubmit)}
className="space-y-8 mx-auto py-10 w-100" className="space-y-8 mx-auto w-full mt-7">
> <div className="grid grid-cols-12">
<div className="flex justify-between"> <div className="col-span-6">
<div className="">
<h1 className="pl-3 text-xl"> <h1 className="pl-3 text-xl">
○ 차수별 하수처리수 재이용 시설 현황 ○ 차수별 하수처리수 재이용 시설 현황
</h1> </h1>
</div> </div>
<div className=" flex items-center"> <div className="col-span-4">
<FormField <FormField
control={form.control} control={form.control}
name="name_1486273033" name="name_1486273033"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="">
<SelectBox label='등록차수' selectArray={selectboxValue} className={""} onSelectValue={function (val: string): void { <SelectBox label ='등록차수'selectArray={selectboxValue}></SelectBox>
throw new Error("Function not implemented."); </FormUi>
} }></SelectBox>
<FormMessage />
</FormItem>
)} )}
/> />
<Button className="mx-5 mt-2" size="xs" type="submit"> </div>
<div className="col-span-2 flex items-center mx-3">
<Button className="rounded-lg">
신규등록 신규등록
</Button> </Button>
</div> </div>
@@ -260,12 +231,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_8928357542" name="name_8928357542"
render={({ field }) => ( render={({ field }) => (
<FormItem > <FormUi label="구분">
<FormLabel>구분</FormLabel> <SelectBox selectArray={selectboxDivValue} />
<SelectBox selectArray={selectboxDivValue} className={""} label={""} onSelectValue={function (val: string): void { </FormUi>
throw new Error("Function not implemented.");
} }></SelectBox>
</FormItem>
)} )}
/> />
</div> </div>
@@ -275,12 +243,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_9484942814" name="name_9484942814"
render={({ field }) => ( render={({ field }) => (
<FormItem > <FormUi label="사업방식">
<FormLabel>사업방식</FormLabel> <SelectBox selectArray={selectboxBuisValue}/>
<SelectBox selectArray={selectboxBuisValue} className={""} label={""} onSelectValue={function (val: string): void { </FormUi>
throw new Error("Function not implemented.");
} }></SelectBox>
</FormItem>
)} )}
/> />
</div> </div>
@@ -290,13 +255,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_2450741594" name="name_2450741594"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="설치승인인가일">
<FormLabel>설치승인인가일</FormLabel> <DatePicker mode="single" {...field} />
<FormControl> </FormUi>
<DatePicker mode="single" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -305,13 +266,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_2450741594" name="name_2450741594"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="사업준공일">
<FormLabel> 사업준공일</FormLabel>
<FormControl>
<DatePicker mode="single" {...field} /> <DatePicker mode="single" {...field} />
</FormControl> </FormUi>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -323,14 +280,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_7678668236" name="name_7678668236"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="국고">
<FormLabel>국고</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -340,14 +292,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_7913744238" name="name_7913744238"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="지방비">
<FormLabel>지방비</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -357,14 +304,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1368081408" name="name_1368081408"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="민간투자비">
<FormLabel>민간투자비</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -373,14 +315,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1368081408" name="name_1368081408"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="원인자부담금">
<FormLabel>원인자부담금</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -389,14 +326,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1368081408" name="name_1368081408"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="기타">
<FormLabel>기타</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -405,14 +337,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1368081408" name="name_1368081408"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="합계">
<FormLabel>합계</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -426,14 +353,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_7678668236" name="name_7678668236"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="시설용량(m³/일)">
<FormLabel>시설용량(m³/일)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -443,14 +365,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_7913744238" name="name_7913744238"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="주처리공법">
<FormLabel>주처리공법</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -460,14 +377,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_1368081408" name="name_1368081408"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="위치(주소)">
<FormLabel>위치(주소)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -476,19 +388,12 @@ export function PublicReuseFaciltyFormInsert() {
<div className="grid grid-cols-12 gap-4"> <div className="grid grid-cols-12 gap-4">
<div className="col-span-4 "> <div className="col-span-4 ">
<FormField <FormField
control={form.control} control={form.control}
name="name_5139286452" name="name_5139286452"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="재처리방식">
<FormLabel className="w-32" >재처리방식</FormLabel> <SelectBox selectArray={selectboxReuseMethodValue}/>
<FormControl> </FormUi>
<SelectBox selectArray={selectboxReuseMethodValue} className={""} label={""} onSelectValue={function (val: string): void {
throw new Error("Function not implemented.");
} }></SelectBox>
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -498,14 +403,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_7233630277" name="name_7233630277"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="위치(처리장 내외)">
<FormLabel>위치(처리장 내외)</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
@@ -515,14 +415,9 @@ export function PublicReuseFaciltyFormInsert() {
control={form.control} control={form.control}
name="name_0973765174" name="name_0973765174"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormUi label="메인공급펌프 용량">
<FormLabel>메인공급펌프 용량</FormLabel> <Input placeholder="" type="" {...field} />
<FormControl> </FormUi>
<Input placeholder="shadcn" type="" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)} )}
/> />
</div> </div>
+1
View File
@@ -7,6 +7,7 @@ export default {
presets: [baseConfig], presets: [baseConfig],
content: [ content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}", "./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"../../packages/common/components/src/ui/**/*.{js,ts,jsx,tsx,mdx}", "../../packages/common/components/src/ui/**/*.{js,ts,jsx,tsx,mdx}",
"../../packages/common/business_components/src/ui/**/*.{js,ts,jsx,tsx,mdx}", "../../packages/common/business_components/src/ui/**/*.{js,ts,jsx,tsx,mdx}",
], ],