hl-core 0.0.10-beta.23 → 0.0.10-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -273,7 +273,7 @@ export default defineComponent({
273
273
  const currentSecond = ref<AnketaSecond>();
274
274
  const isPanelLoading = ref<boolean>(false);
275
275
  const searchQuery = ref<string>('');
276
- const isFirstPanelOnRight = dataStore.isUnderwriter() && !useEnv().isProduction;
276
+ const isFirstPanelOnRight = dataStore.isUnderwriter();
277
277
 
278
278
  const whichMember = computed(() => ('member' in route.query && !!route.query.member ? (route.query.member as 'insured' | 'policyholder') : 'insured'));
279
279
  const isSecondRequired = computed(() => dataStore.controls.isSecondAnketaRequired);
@@ -1803,6 +1803,8 @@ export default defineComponent({
1803
1803
  async val => {
1804
1804
  if (val?.length && val.every(option => option.id != 0) && calculatorForm.type?.nameRu != null) {
1805
1805
  await dataStore.getTripInsuredAmount();
1806
+ } else {
1807
+ calculatorForm.amount = new Value();
1806
1808
  }
1807
1809
  },
1808
1810
  { deep: true },
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
  </section>
31
31
  <section v-if="chooseSignActions">
32
- <div v-if="!isElectronicContract && !isPaperContract && !isScansDocuments && !isQr && !formStore.signatories" :class="[$styles.flexColNav]">
32
+ <div v-if="!isElectronicContract && !isPaperContract && !isScansDocuments && !isQr && formStore.signatories.length === 0" :class="[$styles.flexColNav]">
33
33
  <base-btn :text="$dataStore.t('buttons.sendOnPaper')" :disabled="isPaperDisabled" :loading="loading" @click="handleSignAction('paper')" />
34
34
  <base-btn :text="$dataStore.t('buttons.sendElectronically')" :disabled="isElectronicDisabled" :loading="loading" @click="handleSignAction('electronic')" />
35
35
  <base-btn :text="$dataStore.t('buttons.generatePrintedForms')" :disabled="isScansDisabled" :loading="loading" @click="handleSignAction('scans')" />
@@ -72,7 +72,7 @@
72
72
  <base-btn :text="$dataStore.t('buttons.cancel')" :btn="$styles.whiteBtn" @click="closeQrPanel" />
73
73
  </base-form-section>
74
74
  </div>
75
- <div v-if="formStore.signatories && !isQr && !isScansDocuments" :class="[$styles.flexColNav]">
75
+ <div v-if="!(formStore.signatories.length === 0) && !isQr && !isScansDocuments" :class="[$styles.flexColNav]">
76
76
  <div :class="[$styles.blueBgLight]" class="rounded-lg p-4">
77
77
  <v-expansion-panels v-if="formStore.signatories.length" variant="accordion" multiple>
78
78
  <v-expansion-panel v-for="(person, index) of formStore.signatories" :key="person.personId!" class="border-[1px]" elevation="0" bg-color="#FFF">
@@ -792,6 +792,9 @@ export class RoleController {
792
792
  isAccountantDirector = () => {
793
793
  return this.isRole(constants.roles.AccountantDirector);
794
794
  };
795
+ isHeadOfDso = () => {
796
+ return this.isRole(constants.roles.HeadOfDso);
797
+ };
795
798
  hasAccess = () => {
796
799
  const baseAccessRoles = this.isAdmin() || this.isSupport() || this.isAnalyst() || this.isDrn();
797
800
  return {
@@ -826,7 +829,8 @@ export class RoleController {
826
829
  this.isAdjuster() ||
827
830
  this.isDsoDirector() ||
828
831
  this.isAccountantDirector() ||
829
- this.isHeadAdjuster(),
832
+ this.isHeadAdjuster() ||
833
+ this.isHeadOfDso(),
830
834
  };
831
835
  };
832
836
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.23",
3
+ "version": "0.0.10-beta.24",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
package/types/enum.ts CHANGED
@@ -103,6 +103,7 @@ export enum Roles {
103
103
  DsoDirector = 'DsoDirector',
104
104
  AccountantDirector = 'AccountantDirector',
105
105
  ManagerAuletti = 'ManagerAuletti',
106
+ HeadOfDso = 'HeadOfDso',
106
107
  }
107
108
 
108
109
  export enum Statuses {