[as] 재원협의 병렬및 순차 결재시 버튼및 웹기안기 권한 1차 결재시 승인자까지 점검 완료

This commit is contained in:
2026-10-19 14:23:36 +09:00
parent 1a5180551e
commit 14803b2625
3 changed files with 10 additions and 2 deletions
@@ -98,6 +98,7 @@ export const fnrsSharItemSchema = z.object({
export const fnrsCnsltnApplySaveSchema = z.object({
techReViewSaveCd: z.string().nullish(),
rvwStpCd: z.string().nullish(),
branchSeCd: z.string().nullish(),
fnrsCnsltnMng: fnrsCnsltnMngSaveSchema,
bzScaleList: z.array(fnrsCnsltnBzScaleItemSchema).nullish(),
bizCstList: z.array(fnrsCnsltnBizCstItemSchema).nullish(),
@@ -93,6 +93,7 @@ export function buildSupplementReqPayload(
data: FnrsCnsltnMngDetResponseDto,
payload: SplmntDmndDialogConfirmPayload,
checklistFormState: ChecklistFormState,
branchSeCd?: string,
): FnrsCnsltnApplySaveRequestDto {
const existingItems: FnrsCnsltnSplmntDmndItem[] = (data.splmntDmndList ?? []).map((item) =>
toSplmntDmndSaveItem(item),
@@ -111,6 +112,7 @@ export function buildSupplementReqPayload(
return fnrsCnsltnApplySaveSchema.parse({
...buildSavePayload(data, checklistFormState, "LOCAL", "SL"),
splmntDmndList: [...existingItems, ...newItems],
branchSeCd,
});
}
@@ -689,7 +689,8 @@ function FloatingActionButtons({
async function handleDmndSplmntConfirm(payload: SplmntDmndDialogConfirmPayload) {
setIsDmndSplmntDialogOpen(false);
setActiveDialog(null);
const requestPayload = buildSupplementReqPayload(data, payload, checklistFormState);
const branchSeCd = userBranchSeCd ?? userPendingBranchSeCd;
const requestPayload = buildSupplementReqPayload(data, payload, checklistFormState, branchSeCd);
await executeAction({
action: FNRS_CNSLTN_VIEW_BUTTON_ACTION.dmndSplmnt,
request: requestPayload,
@@ -713,7 +714,11 @@ function FloatingActionButtons({
async function handleRvwRsltSplmntConfirm(selected: PwrkCnsltnCnsltnResponseDto[]) {
setActiveDialog(null);
const requestPayload = buildRvwRsltSplmntReqPayload(data, selected, checklistFormState);
const branchSeCd = userBranchSeCd ?? userPendingBranchSeCd;
const requestPayload = {
...buildRvwRsltSplmntReqPayload(data, selected, checklistFormState),
branchSeCd,
};
await executeAction({
action: FNRS_CNSLTN_VIEW_BUTTON_ACTION.dmndSplmnt,
request: requestPayload,