권한변경

This commit is contained in:
focp212@naver.com
2025-11-17 15:58:26 +09:00
parent d7086eeb38
commit 99c4ed7000
5 changed files with 51 additions and 43 deletions

View File

@@ -104,7 +104,7 @@ export const EscrowDetail = ({
const onClickToShowMailResend = () => {
if(checkGrant(menuId, 'X')){
if(checkGrant(menuId, ' W')){
setDownloadBottomSheetOn(true);
}
else{

View File

@@ -130,7 +130,7 @@ export const ListWrap = () => {
setSortType(sort);
};
const onClickToOpenDownloadBottomSheet = () => {
if (!checkGrant(menuId, 'X')) {
if (!checkGrant(menuId, 'D')) {
showAlert(t('common.nopermission'));
return;
}

View File

@@ -35,7 +35,7 @@ export const ReferenceWrap = () => {
const { mutateAsync: vatReturnReferenceRequest } = useVatReturnReferenceRequestMutation();
const onClickToResquest = () => {
if(checkGrant(menuId, 'R')){
if(checkGrant(menuId, 'W')){
let params: VatReturnReferenceRequestParams = {
mid: mid,
startDate: startDate,

View File

@@ -29,7 +29,7 @@ export enum QnaRegisterPropsName {
Title = 'Title',
Contents = 'Contents',
};
const menuId = 64;
export const QnaRegisterPage = () => {
const { navigate } = useNavigate();
const { t } = useTranslation();
@@ -136,7 +136,7 @@ export const QnaRegisterPage = () => {
};
const onClickToRegisterQna = () => {
if (!checkGrant(64, 'W')) {
if (!checkGrant(menuId, 'W')) {
showAlert(t('common.nopermission'));
return;
}

View File

@@ -18,7 +18,9 @@ import NiceCalendar from '@/shared/ui/calendar/nice-calendar';
import { notiBar, snackBar } from '@/shared/lib';
import { BillingChargeParams, BillingChargeResponse } from '@/entities/transaction/model/types';
import { useKeyboardAware } from '@/shared/lib/hooks/use-keyboard-aware';
import { checkGrant } from '@/shared/lib/check-grant';
const menuId = 34;
export const BillingChargePage = () => {
const { navigate } = useNavigate();
const { t } = useTranslation();
@@ -52,6 +54,7 @@ export const BillingChargePage = () => {
};
const onClickToBillingCharge = () => {
if(checkGrant(menuId, 'W')){
if (!billKey) {
showAlert('빌키는 필수 입력 항목입니다.');
return;
@@ -92,6 +95,11 @@ export const BillingChargePage = () => {
return;
}
});
}
else{
showAlert(t('common.nopermission'));
}
};
const onChangeBillKey = (value: string) => {