refactor: handle role chanage status
This commit is contained in:
parent
5576b1ed37
commit
8aeabac191
1 changed files with 10 additions and 1 deletions
|
|
@ -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()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue