refactor: handle role chanage status

This commit is contained in:
Thanaphon Frappet 2024-12-25 17:18:01 +07:00
parent 5576b1ed37
commit 8aeabac191

View file

@ -39,6 +39,7 @@ import { PropVariant } from 'src/stores/product-service/types';
import { Invoice } from 'src/stores/payment/types';
import { CreatedBy } from 'src/stores/types';
import { getUserId } from 'src/services/keycloak';
const { locale } = useI18n();
@ -334,6 +335,11 @@ function isInstallmentPaySuccess(installmentNo: number) {
return !!(invoice?.payment?.paymentStatus === 'PaymentSuccess');
}
function goToRequestList(id: string) {
const url = new URL(`/request-list/${id}`, window.location.origin);
window.open(url.toString(), '_blank');
}
</script>
<template>
<div class="column surface-0 fullscreen" v-if="data">
@ -611,7 +617,10 @@ function isInstallmentPaySuccess(installmentNo: number) {
:readonly="
data.requestDataStatus === RequestDataStatus.Canceled ||
(responsiblePersonList &&
responsiblePersonList[pageState.currentStep].length === 0)
responsiblePersonList[pageState.currentStep].length === 0) ||
!responsiblePersonList[pageState.currentStep].find(
(v) => v.id === getUserId(),
)
"
:order-able="value._formExpansion"
:installment-info="getInstallmentInfo()"