빌드 잡는중
This commit is contained in:
@@ -84,12 +84,12 @@ export default function PbnstPrfmncSttn() {
|
||||
|
||||
const prfTableData = (prfList: PrfType[], year: string) => {
|
||||
const inUsageData = structuredClone(initValInUsage).map(row => ({
|
||||
...row,
|
||||
구분: "장내용수",
|
||||
...row
|
||||
// 구분: "장내용수",
|
||||
}));
|
||||
const outUsageData = structuredClone(initValOutUsage).map(row => ({
|
||||
...row,
|
||||
구분: "장외용수",
|
||||
...row
|
||||
// 구분: "장외용수",
|
||||
}));
|
||||
const inSubtotal = { ...structuredClone(subTotalObj), 구분: "장내용수" };
|
||||
const outSubtotal = { ...structuredClone(subTotalObj), 구분: "장외용수" };
|
||||
|
||||
@@ -314,8 +314,6 @@ useEffect(() =>{
|
||||
|
||||
const pbnstBiz = form.watch(`items.${indexMng}.fcBizs`);
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{pbnstBiz && pbnstBiz?.length > 0 ? (
|
||||
@@ -485,24 +483,11 @@ useEffect(() =>{
|
||||
}
|
||||
headList={pbnst.pplInstlsHeadLisat}
|
||||
code={ppiSelectList ?? []}
|
||||
//ref={ref}
|
||||
indexMng={indexMng}
|
||||
indexBiz={indexBiz}
|
||||
form={form}
|
||||
formNm={"pplInstls"}
|
||||
upHeadList={[]}
|
||||
onTableSet={(val) => {
|
||||
const pplSum = form.watch(
|
||||
`items.${indexMng}.fcBizs.${indexBiz}.pplInstls`
|
||||
);
|
||||
|
||||
if (!pplSum) return;
|
||||
let sum = 0;
|
||||
pplSum.forEach((item) => {
|
||||
sum += Number(item.cpct) || 0;
|
||||
});
|
||||
setSumCpct(sum);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -155,4 +155,6 @@ const RuseMngTable = React.forwardRef<any, RuseMngTableProps>(
|
||||
);
|
||||
}
|
||||
);
|
||||
RuseMngTable.displayName = "RuseMngTable";
|
||||
|
||||
export default RuseMngTable;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { headMakeprfmnc } from "@/app/ruseFcltMng/prfmncReg/chkgdnReg/TableHead";
|
||||
import type { TableUpperProps } from "@/app/store/common/type/header";
|
||||
import type { chHeadType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn/headList";
|
||||
import type { customPbnst as OriginalCustomPbnst } from "@/app/store/ruseFcltMng/fcltReg/pbnstReg/type";
|
||||
import { selectClass } from "@/app/store/ruseFcltMng/fcltReg/rainReg";
|
||||
import {
|
||||
formatCommaNumber,
|
||||
@@ -32,7 +31,6 @@ type RuseMngTableProps = {
|
||||
headList: TableUpperProps[];
|
||||
upHeadList: chHeadType[];
|
||||
code?: { name: string; val: SelectDataType[] }[];
|
||||
onTableSet?: (item: any) => void;
|
||||
indexMng?: number;
|
||||
indexBiz?: number;
|
||||
form?: any;
|
||||
@@ -46,7 +44,6 @@ const RuseMngTableForm = React.forwardRef<any, RuseMngTableProps>(
|
||||
headList,
|
||||
upHeadList,
|
||||
code,
|
||||
onTableSet,
|
||||
indexMng,
|
||||
form,
|
||||
formNm,
|
||||
@@ -56,7 +53,8 @@ const RuseMngTableForm = React.forwardRef<any, RuseMngTableProps>(
|
||||
) => {
|
||||
return (
|
||||
<>
|
||||
<Table key={`${formNm}-table-${indexMng}-${indexBiz}`} variant="secondary">
|
||||
<Table key={`${formNm}-table-${indexMng}-${indexBiz}`} variant="secondary"
|
||||
ref={ref}>
|
||||
<TableHeader className="font-bold">
|
||||
{upHeadList ? (
|
||||
headMakeprfmnc(headList, upHeadList)
|
||||
@@ -184,4 +182,7 @@ const RuseMngTableForm = React.forwardRef<any, RuseMngTableProps>(
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
RuseMngTableForm.displayName = "RuseMngTableForm";
|
||||
|
||||
export default RuseMngTableForm;
|
||||
|
||||
Reference in New Issue
Block a user