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