hl-core 0.0.10-beta.7 → 0.0.10-beta.8

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.
@@ -195,7 +195,7 @@
195
195
  <base-btn :loading="loading" :text="$dataStore.t('payment.copyUrl')" @click="$dataStore.copyToClipboard(formStore.epayLink)" />
196
196
  <base-btn :loading="loading" :text="$dataStore.t('payment.recipientNumber')" @click="openEpayPanel" />
197
197
  <base-btn :loading="loading" :text="$dataStore.t('sign.convertQr')" @click="convertQr(formStore.epayLink)" />
198
- <base-btn :loading="loading" :btn="$styles.greenBtn" :text="$dataStore.t('payment.halykLink')" @click="convertQr(formStore.epayLink, 'halyk_pay_link_template')" />
198
+ <base-btn v-if="!useEnv().isProduction" :loading="loading" :btn="$styles.greenBtn" :text="$dataStore.t('payment.halykLink')" @click="convertQr(formStore.epayLink, 'halyk_pay_link_template')" />
199
199
  </div>
200
200
  </base-form-section>
201
201
  <div v-if="isSendNumberOpen" :class="[$styles.flexColNav]">
@@ -14,13 +14,12 @@
14
14
  <script lang="ts">
15
15
  import VueJsonPretty from 'vue-json-pretty';
16
16
  import 'vue-json-pretty/lib/styles.css';
17
- import { type JSONDataType } from 'vue-json-pretty/types/utils';
18
17
 
19
18
  export default defineComponent({
20
19
  components: { VueJsonPretty },
21
20
  props: {
22
21
  data: {
23
- type: Object as PropType<JSONDataType>,
22
+ type: Object as PropType<any>,
24
23
  required: false,
25
24
  },
26
25
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.7",
3
+ "version": "0.0.10-beta.8",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -269,7 +269,10 @@ export const useDataStore = defineStore('data', {
269
269
  return this.isRole(constants.roles.Dsuio);
270
270
  },
271
271
  isAdjuster() {
272
- return this.isRole(constants.roles.Adjuster);
272
+ return this.isRole(constants.roles.SettlementLosses);
273
+ },
274
+ isHeadAdjuster() {
275
+ return this.isRole(constants.roles.HeadSettlementLosses);
273
276
  },
274
277
  isDsoDirector() {
275
278
  return this.isRole(constants.roles.DsoDirector);
@@ -534,7 +537,13 @@ export const useDataStore = defineStore('data', {
534
537
  },
535
538
  parseContragent(
536
539
  member: Member,
537
- user: { personalData: Types.ContragentType; data?: Types.ContragentQuestionaries[]; contacts?: Types.ContragentContacts[]; documents?: Types.ContragentDocuments[]; address?: Types.ContragentAddress[] },
540
+ user: {
541
+ personalData: Types.ContragentType;
542
+ data?: Types.ContragentQuestionaries[];
543
+ contacts?: Types.ContragentContacts[];
544
+ documents?: Types.ContragentDocuments[];
545
+ address?: Types.ContragentAddress[];
546
+ },
538
547
  ) {
539
548
  member.verifyType = user.personalData.verifyType;
540
549
  member.verifyDate = user.personalData.verifyDate;
package/types/enum.ts CHANGED
@@ -94,7 +94,8 @@ export enum Roles {
94
94
  BranchDirector = 'BranchDirector',
95
95
  USNSACCINS = 'USNSACCINS',
96
96
  Dsuio = 'Dsuio',
97
- Adjuster = 'Adjuster',
97
+ SettlementLosses = 'SettlementLosses',
98
+ HeadSettlementLosses = 'HeadSettlementLosses',
98
99
  DsoDirector = 'DsoDirector',
99
100
  AccountantDirector = 'AccountantDirector',
100
101
  }