wr: 공사비 산정표 수정
This commit is contained in:
@@ -210,10 +210,10 @@ export default function CoMatRvw() {
|
||||
*/
|
||||
const constCostSimulation = () => {
|
||||
const url = `/constCostSimulation`;
|
||||
const width = Math.floor(window.screen.availWidth * 0.6);
|
||||
const height = 500;
|
||||
const left = Math.floor((window.screen.availWidth - width) / 2);
|
||||
const top = 0;
|
||||
const width = Math.floor(window.screen.availWidth * 0.8);
|
||||
const height = Math.floor(window.screen.availHeight * 0.8);
|
||||
const left = Math.floor(window.screenX + (window.outerWidth - width) / 2);
|
||||
const top = Math.floor(window.screenY + (window.outerHeight - height) / 2);
|
||||
const popupOptions = `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes`;
|
||||
window.open(url, "candidatePopup", popupOptions);
|
||||
};
|
||||
|
||||
@@ -53,7 +53,7 @@ export type comFcltState = {
|
||||
searchFclts: pubHasuType[];
|
||||
demandCompList: DemandCompType[];
|
||||
checkDemand: DemandCompType;
|
||||
constCostRes:conCostFeeType[], // 표준사업비
|
||||
constCostRes:conCostFeeType[], // 표준사업비 (공사비 산정표)
|
||||
rateFeeRes:rateFeeType[],
|
||||
|
||||
};
|
||||
@@ -168,7 +168,7 @@ export const comFcltSearchAction: (set: any) => comFcltActions = (set: any) => {
|
||||
console.log(" error ", e);
|
||||
}
|
||||
},
|
||||
// 공사금액 조회 : ONSEMIRO_NEW.EM_STD_COST_REUSE 설치관리표준사업비 재이용시설 공사비
|
||||
// 공사금액 (공사비 산정표) 조회 : ONSEMIRO_NEW.EM_STD_COST_REUSE 설치관리표준사업비 재이용시설 공사비
|
||||
getConstCostFee: async (year: string) => {
|
||||
try {
|
||||
const url = `/prcsFclt/CstRuse/${year}`;
|
||||
|
||||
@@ -24,17 +24,18 @@ export const coRvwNodeListExport: CommonTableProps[] = [
|
||||
];
|
||||
|
||||
export const constCostHeadListExport: CommonTableProps[] = [
|
||||
{ id: "gubun", title: "구분", visible: true, },
|
||||
{ id: "500", title: "500", visible: true, },
|
||||
{ id: "1000", title: "1,000", visible: true, },
|
||||
{ id: "2000", title: "2,000", visible: true, },
|
||||
{ id: "3000", title: "3,000", visible: true, }, //바꾸기
|
||||
{ id: "5000", title: "5,000", visible: true, }, //바꾸기
|
||||
{ id: "10000", title: "10,000", visible: true, }, //
|
||||
{ id: "20000", title: "20,000", visible: true, }, //
|
||||
{ id: "30000", title: "30,000", visible: true, }, //
|
||||
{ id: "50000", title: "50,000", visible: true, }, //
|
||||
{ id: "100000", title: "100,000", visible: true, }, //바꾸기
|
||||
{ id: "gubun", title: "구분", visible: true, row: 0, rowSpan: 2, colSpan: 1 },
|
||||
{ id: "A", title: "처리시설용량(m³)", visible: true, row: 0, rowSpan: 1, colSpan: 10 },
|
||||
{ id: "500", title: "500", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "1000", title: "1,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "2000", title: "2,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "3000", title: "3,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "5000", title: "5,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "10000", title: "10,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "20000", title: "20,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "30000", title: "30,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "50000", title: "50,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
{ id: "100000", title: "100,000", visible: true, row: 1, rowSpan: 1, colSpan: 1 },
|
||||
];
|
||||
|
||||
export const rateFeeHeadListExport: CommonTableProps[] = [
|
||||
|
||||
@@ -169,6 +169,10 @@ export default function ConCostForm({
|
||||
alert("목록에서 수요신청 건을 선택하세요.");
|
||||
return;
|
||||
}
|
||||
if (!useUsgCdWatch) {
|
||||
alert("용도 값이 없습니다.");
|
||||
return;
|
||||
}
|
||||
if (!dmndQtyWatch) {
|
||||
alert("요구수량(m³/일)을 확인해주세요 계산할수 없습니다. ");
|
||||
return;
|
||||
@@ -426,6 +430,7 @@ export default function ConCostForm({
|
||||
{isSim ? (
|
||||
<SelectBox
|
||||
label=""
|
||||
selectClass="rounded-md"
|
||||
selectArray={code.sewageOutFclttUse || []}
|
||||
onSelectValue={field.onChange}
|
||||
value={field.value}
|
||||
@@ -703,17 +708,16 @@ export default function ConCostForm({
|
||||
/>
|
||||
</div>
|
||||
<div className="col-span-3 mt-4 mb-3">
|
||||
<Label className="text-xl">
|
||||
처리시설 + 공급관로 총사업비(백만원)
|
||||
</Label>
|
||||
<Input
|
||||
placeholder=""
|
||||
type="number"
|
||||
step="0.001"
|
||||
readOnly={true}
|
||||
value={(totalConstCost ?? 0) + (cstrnCst ?? 0)}
|
||||
className={readOnlyInputClass}
|
||||
/>
|
||||
<FormUi label="처리시설 + 공급관로 총사업비(백만원)">
|
||||
<Input
|
||||
placeholder=""
|
||||
type="number"
|
||||
step="0.001"
|
||||
readOnly={true}
|
||||
value={(totalConstCost ?? 0) + (cstrnCst ?? 0)}
|
||||
className={readOnlyInputClass}
|
||||
/>
|
||||
</FormUi>
|
||||
</div>
|
||||
</div>
|
||||
</Form>
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/**
|
||||
* 공사비 산정표
|
||||
*/
|
||||
"use client";
|
||||
|
||||
import { useWrStore } from "@/app/store";
|
||||
@@ -9,6 +12,7 @@ import { UiTable } from "@common/business_components/ui";
|
||||
import ListDiv from "@common/business_components/ui/list_div";
|
||||
import { Label, } from "@common/components/ui";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
export function ConstCostFeeTable() {
|
||||
const { coRvw, constCostRes } = useWrStore((state) => state);
|
||||
|
||||
@@ -48,7 +52,7 @@ export function ConstCostFeeTable() {
|
||||
};
|
||||
acc?.push(target);
|
||||
}
|
||||
target[cur.fctCpc] = cur.stdCost;
|
||||
target[cur.fctCpc] = Number(cur.stdCost);
|
||||
|
||||
return acc;
|
||||
},
|
||||
@@ -65,14 +69,18 @@ export function ConstCostFeeTable() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<ListDiv className="h-[calc(100vh-60vh)] overflow-auto">
|
||||
{/* <ListDiv className="h-[calc(100vh-60vh)] overflow-auto"> */}
|
||||
<ListDiv className="overflow-visible">
|
||||
<h3 className="mt-4 ml-2 text-2xl font-medium text-label">
|
||||
공사비 산정표 보기
|
||||
</h3>
|
||||
<hr />
|
||||
<div className="col-span-5 flex items-center">
|
||||
<Label className="ml-2 mr-1 text-xl text-gray-600">기준년도</Label>
|
||||
<span>{기준년도}</span>
|
||||
<div className="col-span-5 flex items-center justify-between">
|
||||
<div className="flex items-center">
|
||||
<Label className="ml-2 mr-1 text-xl text-gray-600">기준년도</Label>
|
||||
<span>{기준년도}</span>
|
||||
</div>
|
||||
<span className="mr-2 text-xl text-gray-600">단위: 백만원</span>
|
||||
</div>
|
||||
<UiTable
|
||||
headName={""}
|
||||
|
||||
Reference in New Issue
Block a user