검토완료 시 메시지 표출
iipbs_wr / build (push) Waiting to run

This commit is contained in:
leedj312
2025-07-07 09:26:37 +09:00
parent fb8812303b
commit c5d2cc53a4
@@ -65,6 +65,31 @@ export default function ConCostForm({
}, [selectionVersion]);
const confrirmToast = () => {
if (checkFinish) {
toast((t) => (
<span className="flex flex-col items-center">
검토완료 변경시 공사비는 변경할수 없습니다.
<br />
진행하시겠습니까?
<Button
onClick={() => {
toast.dismiss(t.id);
}}
>
확인
</Button>
<Button onClick={() => toast.dismiss(t.id)}>취소</Button>
</span>
));
} else {
}
};
const zipDowonLoad = () => {
fetch(`/2024_constarctFeeProgram.zip`, {}).then(async (response) => {
const blobRet = await response.blob();
@@ -168,12 +193,36 @@ export default function ConCostForm({
flg: checkFinish?'Checked':'Sub',
rgtr: TEST_UUID,
};
coMatRvwUpdate("11000SW001R1", form.getValues("dmdInfoFk"), data);
if (checkFinish) {
toast((t) => (
<span className="flex flex-col items-center text-2xl" >
검토완료 변경시 공사비는 변경할수 없습니다.
<br />
진행하시겠습니까?
<div className="flex gap-2 mt-2">
<Button
size='sm'
onClick={() => {
toast.dismiss(t.id);
coMatRvwUpdate("11000SW001R1", form.getValues("dmdInfoFk"), data);
}}
>
확인
</Button>
<Button
size='sm'
onClick={() => toast.dismiss(t.id)}>취소</Button>
</div>
</span>
));
} else {
coMatRvwUpdate("11000SW001R1", form.getValues("dmdInfoFk"), data);
}
}
} else if (type === "hist") {
delete value.totalConstCost;
delete value.ruseUtztnFcltNm;
ruseRvwCalUpdate(value);
}
};