hl-core 0.0.7-beta.20 → 0.0.7-beta.21
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.
- package/api/index.ts +36 -19
- package/components/Button/ScrollButtons.vue +6 -0
- package/components/Form/FormToggle.vue +13 -2
- package/components/Input/FormInput.vue +7 -6
- package/components/Input/PanelInput.vue +7 -6
- package/components/Input/RoundedInput.vue +7 -6
- package/components/Layout/Drawer.vue +2 -0
- package/components/Layout/Header.vue +1 -1
- package/components/Menu/MenuNav.vue +1 -1
- package/components/Pages/Anketa.vue +333 -0
- package/components/Pages/Auth.vue +91 -0
- package/components/{Form → Pages}/Documents.vue +4 -3
- package/components/{Form → Pages}/MemberForm.vue +10 -4
- package/components/Pages/ProductAgreement.vue +18 -0
- package/components/{Form → Pages}/ProductConditions.vue +46 -40
- package/composables/classes.ts +47 -41
- package/composables/index.ts +1 -0
- package/composables/styles.ts +1 -1
- package/package.json +1 -1
- package/store/data.store.js +38 -52
- package/store/member.store.ts +1 -1
- package/store/messages.ts +1 -1
- package/types/index.ts +130 -0
package/api/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useAxios } from '@/composables/axios';
|
|
2
|
+
import { Value, IDocument } from '@/composables/classes';
|
|
2
3
|
import { AxiosRequestConfig } from 'axios';
|
|
3
4
|
|
|
4
5
|
enum Methods {
|
|
@@ -158,6 +159,20 @@ export class ApiClass {
|
|
|
158
159
|
});
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
async getQuestionList(surveyType: string, processInstanceId: string, insuredId: number | string): Promise<AnketaFirst> {
|
|
163
|
+
return this.axiosCall({
|
|
164
|
+
method: Methods.GET,
|
|
165
|
+
url: `/Baiterek/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
async getQuestionListSecond(surveyType: string, processInstanceId: string, insuredId: number | string): Promise<AnketaSecond[]> {
|
|
170
|
+
return this.axiosCall({
|
|
171
|
+
method: Methods.GET,
|
|
172
|
+
url: `/Baiterek/api/Application/Anketa/${surveyType}/${processInstanceId}/${insuredId}`,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
161
176
|
async definedAnswers(filter: string) {
|
|
162
177
|
return this.axiosCall({
|
|
163
178
|
method: Methods.GET,
|
|
@@ -165,7 +180,7 @@ export class ApiClass {
|
|
|
165
180
|
});
|
|
166
181
|
}
|
|
167
182
|
|
|
168
|
-
async setSurvey(surveyData:
|
|
183
|
+
async setSurvey(surveyData: AnketaFirst) {
|
|
169
184
|
return this.axiosCall({
|
|
170
185
|
method: Methods.POST,
|
|
171
186
|
data: surveyData,
|
|
@@ -173,7 +188,7 @@ export class ApiClass {
|
|
|
173
188
|
});
|
|
174
189
|
}
|
|
175
190
|
|
|
176
|
-
async getQuestionRefs(id: string | number) {
|
|
191
|
+
async getQuestionRefs(id: string | number): Promise<Value[]> {
|
|
177
192
|
return this.axiosCall({
|
|
178
193
|
method: Methods.GET,
|
|
179
194
|
url: `/Ekk/api/Contragentinsis/DictionaryItems/Questionary?filter=${id}`,
|
|
@@ -216,7 +231,7 @@ export class ApiClass {
|
|
|
216
231
|
});
|
|
217
232
|
}
|
|
218
233
|
|
|
219
|
-
async getFile(id:
|
|
234
|
+
async getFile(id: string) {
|
|
220
235
|
return await this.axiosCall({
|
|
221
236
|
method: Methods.GET,
|
|
222
237
|
url: `/Arm/api/File/DownloadFile/${id}`,
|
|
@@ -234,28 +249,28 @@ export class ApiClass {
|
|
|
234
249
|
});
|
|
235
250
|
}
|
|
236
251
|
|
|
237
|
-
async getContrAgentData(personId:
|
|
252
|
+
async getContrAgentData(personId: string | number) {
|
|
238
253
|
return this.axiosCall({
|
|
239
254
|
method: Methods.GET,
|
|
240
255
|
url: `/Ekk/api/Contragentinsis/Questionaries?PersonId=${personId}`,
|
|
241
256
|
});
|
|
242
257
|
}
|
|
243
258
|
|
|
244
|
-
async getContrAgentContacts(personId:
|
|
259
|
+
async getContrAgentContacts(personId: string | number) {
|
|
245
260
|
return this.axiosCall({
|
|
246
261
|
method: Methods.GET,
|
|
247
262
|
url: `/Ekk/api/Contragentinsis/Contacts?PersonId=${personId}`,
|
|
248
263
|
});
|
|
249
264
|
}
|
|
250
265
|
|
|
251
|
-
async getContrAgentDocuments(personId:
|
|
266
|
+
async getContrAgentDocuments(personId: string | number) {
|
|
252
267
|
return this.axiosCall({
|
|
253
268
|
method: Methods.GET,
|
|
254
269
|
url: `/Ekk/api/Contragentinsis/Documents?PersonId=${personId}`,
|
|
255
270
|
});
|
|
256
271
|
}
|
|
257
272
|
|
|
258
|
-
async getContrAgentAddress(personId:
|
|
273
|
+
async getContrAgentAddress(personId: string | number) {
|
|
259
274
|
return this.axiosCall({
|
|
260
275
|
method: Methods.GET,
|
|
261
276
|
url: `/Ekk/api/Contragentinsis/Address?PersonId=${personId}`,
|
|
@@ -276,7 +291,7 @@ export class ApiClass {
|
|
|
276
291
|
});
|
|
277
292
|
}
|
|
278
293
|
|
|
279
|
-
async sendSms(data:
|
|
294
|
+
async sendSms(data: { phone: string; template: string; tempFlags: { url: string } }): Promise<void> {
|
|
280
295
|
return this.axiosCall({
|
|
281
296
|
baseURL: import.meta.env.VITE_SMS_SERVICE as string,
|
|
282
297
|
method: Methods.POST,
|
|
@@ -285,7 +300,7 @@ export class ApiClass {
|
|
|
285
300
|
});
|
|
286
301
|
}
|
|
287
302
|
|
|
288
|
-
async getUserGroups() {
|
|
303
|
+
async getUserGroups(): Promise<Item[]> {
|
|
289
304
|
return this.axiosCall({
|
|
290
305
|
method: Methods.GET,
|
|
291
306
|
url: '/Arm/api/Bpm/TaskGroups',
|
|
@@ -299,7 +314,7 @@ export class ApiClass {
|
|
|
299
314
|
});
|
|
300
315
|
}
|
|
301
316
|
|
|
302
|
-
async getOtpStatus(data:
|
|
317
|
+
async getOtpStatus(data: OtpDataType): Promise<boolean> {
|
|
303
318
|
return this.axiosCall({
|
|
304
319
|
method: Methods.POST,
|
|
305
320
|
url: '/Arm/api/Otp/OtpLifeStatus',
|
|
@@ -307,7 +322,7 @@ export class ApiClass {
|
|
|
307
322
|
});
|
|
308
323
|
}
|
|
309
324
|
|
|
310
|
-
async sendOtp(data:
|
|
325
|
+
async sendOtp(data: OtpDataType): Promise<SendOtpResponse> {
|
|
311
326
|
return this.axiosCall({
|
|
312
327
|
method: Methods.POST,
|
|
313
328
|
url: '/Arm/api/Otp/Get',
|
|
@@ -315,7 +330,7 @@ export class ApiClass {
|
|
|
315
330
|
});
|
|
316
331
|
}
|
|
317
332
|
|
|
318
|
-
async checkOtp(data:
|
|
333
|
+
async checkOtp(data: { tokenId: string; phoneNumber: string; code: string }): Promise<SendOtpResponse> {
|
|
319
334
|
return this.axiosCall({
|
|
320
335
|
method: Methods.POST,
|
|
321
336
|
url: '/Arm/api/Otp/Check',
|
|
@@ -323,7 +338,7 @@ export class ApiClass {
|
|
|
323
338
|
});
|
|
324
339
|
}
|
|
325
340
|
|
|
326
|
-
async getProcessList() {
|
|
341
|
+
async getProcessList(): Promise<Item[]> {
|
|
327
342
|
return this.axiosCall({
|
|
328
343
|
method: Methods.GET,
|
|
329
344
|
url: '/Arm/api/Bpm/ProcessList',
|
|
@@ -331,7 +346,9 @@ export class ApiClass {
|
|
|
331
346
|
});
|
|
332
347
|
}
|
|
333
348
|
|
|
334
|
-
async startApplication(data:
|
|
349
|
+
async startApplication(data: StartApplicationType): Promise<{
|
|
350
|
+
processInstanceId: string;
|
|
351
|
+
}> {
|
|
335
352
|
return this.axiosCall({
|
|
336
353
|
method: Methods.POST,
|
|
337
354
|
url: `/${this.productUrl}/api/Application/StartApplication`,
|
|
@@ -441,7 +458,7 @@ export class ApiClass {
|
|
|
441
458
|
});
|
|
442
459
|
}
|
|
443
460
|
|
|
444
|
-
async getSignedDocList(data:
|
|
461
|
+
async getSignedDocList(data: { processInstanceId: string }): Promise<IDocument[]> {
|
|
445
462
|
return this.axiosCall({
|
|
446
463
|
method: Methods.POST,
|
|
447
464
|
url: '/Arm/api/File/List',
|
|
@@ -449,7 +466,7 @@ export class ApiClass {
|
|
|
449
466
|
});
|
|
450
467
|
}
|
|
451
468
|
|
|
452
|
-
async calculateWithoutApplication(data:
|
|
469
|
+
async calculateWithoutApplication(data: RecalculationDataType): Promise<RecalculationResponseType> {
|
|
453
470
|
return this.axiosCall({
|
|
454
471
|
method: Methods.POST,
|
|
455
472
|
url: `/${this.productUrl}/api/Application/Calculate`,
|
|
@@ -457,7 +474,7 @@ export class ApiClass {
|
|
|
457
474
|
});
|
|
458
475
|
}
|
|
459
476
|
|
|
460
|
-
async getDefaultCalculationData() {
|
|
477
|
+
async getDefaultCalculationData(): Promise<RecalculationDataType> {
|
|
461
478
|
return this.axiosCall({
|
|
462
479
|
method: Methods.GET,
|
|
463
480
|
url: `/${this.productUrl}/api/Application/DefaultCalculatorValues`,
|
|
@@ -472,7 +489,7 @@ export class ApiClass {
|
|
|
472
489
|
});
|
|
473
490
|
}
|
|
474
491
|
|
|
475
|
-
async getValidateClientESBD(data:
|
|
492
|
+
async getValidateClientESBD(data: ESBDValidationType): Promise<ESBDResponseType> {
|
|
476
493
|
return this.axiosCall({
|
|
477
494
|
method: Methods.POST,
|
|
478
495
|
url: '/externalservices/api/ExternalServices/GetValidateClientEsbd',
|
|
@@ -480,7 +497,7 @@ export class ApiClass {
|
|
|
480
497
|
});
|
|
481
498
|
}
|
|
482
499
|
|
|
483
|
-
async isClaimTask(taskId: string) {
|
|
500
|
+
async isClaimTask(taskId: string): Promise<boolean> {
|
|
484
501
|
return this.axiosCall({
|
|
485
502
|
method: Methods.POST,
|
|
486
503
|
url: '/Arm/api/Bpm/IsClaimTask',
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="absolute bottom-[12%] right-1 flex flex-col gap-4">
|
|
3
|
+
<v-btn style="backdrop-filter: blur(5px)" color="#A0B3D8" variant="outlined" icon="mdi mdi-arrow-up" @click="$emit('up')"></v-btn>
|
|
4
|
+
<v-btn style="backdrop-filter: blur(5px)" color="#A0B3D8" variant="outlined" icon="mdi mdi-arrow-down" @click="$emit('down')"></v-btn>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
@@ -3,7 +3,18 @@
|
|
|
3
3
|
class="h-[74px] !pl-2 md:!pl-5 flex items-center justify-start gap-4"
|
|
4
4
|
:class="[$libStyles.whiteBg, hasBorder ? 'border-[1px] rounded-lg' : 'border-b-[1px] border-b-[#f3f6fc] rounded']"
|
|
5
5
|
>
|
|
6
|
-
<v-switch
|
|
6
|
+
<v-switch
|
|
7
|
+
class="base-toggle"
|
|
8
|
+
:model-value="modelValue"
|
|
9
|
+
@update:modelValue="
|
|
10
|
+
$emit('update:modelValue', $event);
|
|
11
|
+
$emit('clicked');
|
|
12
|
+
"
|
|
13
|
+
color="#009C73"
|
|
14
|
+
hide-details
|
|
15
|
+
:disabled="disabled"
|
|
16
|
+
>
|
|
17
|
+
</v-switch>
|
|
7
18
|
<p :class="[$libStyles.textSimple]">{{ `${title}` }}</p>
|
|
8
19
|
<p class="mr-3" :class="[modelValue ? $libStyles.greenText : '', $libStyles.textSimple]">{{ `${modelValue ? $dataStore.t('confirm.yes') : $dataStore.t('confirm.no')}` }}</p>
|
|
9
20
|
</div>
|
|
@@ -29,7 +40,7 @@ export default defineComponent({
|
|
|
29
40
|
default: true,
|
|
30
41
|
},
|
|
31
42
|
},
|
|
32
|
-
emits: ['update:modelValue'],
|
|
43
|
+
emits: ['update:modelValue', 'clicked'],
|
|
33
44
|
});
|
|
34
45
|
</script>
|
|
35
46
|
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
:clear-icon="clearIcon"
|
|
14
14
|
:color="color"
|
|
15
15
|
:hint="hint"
|
|
16
|
-
:clearable="readonly ? false : clearable"
|
|
16
|
+
:clearable="props.readonly ? false : clearable"
|
|
17
17
|
:disabled="disabled"
|
|
18
|
-
:readonly="readonly"
|
|
18
|
+
:readonly="props.readonly"
|
|
19
19
|
:prepend-icon="prependIcon ? prependIcon : ''"
|
|
20
20
|
:append-icon="appendIcon ? appendIcon : ''"
|
|
21
21
|
:prepend-inner-icon="prependInnerIcon ? prependInnerIcon : ''"
|
|
22
22
|
:append-inner-icon="appendInnerIcon ? appendInnerIcon : ''"
|
|
23
23
|
:bg-color="bgColor ? bgColor : ''"
|
|
24
24
|
@keyup.enter.prevent="submitted"
|
|
25
|
-
@click:append="!readonly && $emit('append-out')"
|
|
26
|
-
@click:prepend="!readonly && $emit('prepend-out')"
|
|
27
|
-
@click:append-inner="!readonly && $emit('append')"
|
|
28
|
-
@click:prepend-inner="!readonly && $emit('prepend')"
|
|
25
|
+
@click:append="!props.readonly && $emit('append-out')"
|
|
26
|
+
@click:prepend="!props.readonly && $emit('prepend-out')"
|
|
27
|
+
@click:append-inner="!props.readonly && $emit('append')"
|
|
28
|
+
@click:prepend-inner="!props.readonly && $emit('prepend')"
|
|
29
29
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
30
30
|
>
|
|
31
31
|
<template v-if="loading" #loader>
|
|
@@ -121,6 +121,7 @@ export default defineComponent({
|
|
|
121
121
|
|
|
122
122
|
return {
|
|
123
123
|
submitted,
|
|
124
|
+
props,
|
|
124
125
|
};
|
|
125
126
|
},
|
|
126
127
|
});
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
:append-inner-icon="appendInnerIcon ? appendInnerIcon : ''"
|
|
23
23
|
:bg-color="bgColor ? bgColor : ''"
|
|
24
24
|
@keyup.enter.prevent="submitted"
|
|
25
|
-
@click:control="!readonly && $emit('append')"
|
|
26
|
-
@click:clear="(readonly ? false : clearable) && $emit('update:modelValue', new Value())"
|
|
27
|
-
@click:append="!readonly && $emit('append-out')"
|
|
28
|
-
@click:prepend="!readonly && $emit('prepend-out')"
|
|
29
|
-
@click:append-inner="!readonly && $emit('append')"
|
|
30
|
-
@click:prepend-inner="!readonly && $emit('prepend')"
|
|
25
|
+
@click:control="!props.readonly && $emit('append')"
|
|
26
|
+
@click:clear="(props.readonly ? false : clearable) && $emit('update:modelValue', new Value())"
|
|
27
|
+
@click:append="!props.readonly && $emit('append-out')"
|
|
28
|
+
@click:prepend="!props.readonly && $emit('prepend-out')"
|
|
29
|
+
@click:append-inner="!props.readonly && $emit('append')"
|
|
30
|
+
@click:prepend-inner="!props.readonly && $emit('prepend')"
|
|
31
31
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
32
32
|
>
|
|
33
33
|
<template v-if="loading" #loader>
|
|
@@ -126,6 +126,7 @@ export default defineComponent({
|
|
|
126
126
|
return {
|
|
127
127
|
submitted,
|
|
128
128
|
Value,
|
|
129
|
+
props,
|
|
129
130
|
};
|
|
130
131
|
},
|
|
131
132
|
});
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
:clear-icon="clearIcon"
|
|
13
13
|
:color="color"
|
|
14
14
|
:hint="hint"
|
|
15
|
-
:clearable="readonly ? false : clearable"
|
|
15
|
+
:clearable="props.readonly ? false : clearable"
|
|
16
16
|
:disabled="disabled"
|
|
17
|
-
:readonly="readonly"
|
|
17
|
+
:readonly="props.readonly"
|
|
18
18
|
:prepend-icon="prependIcon ? prependIcon : ''"
|
|
19
19
|
:append-icon="appendIcon ? appendIcon : ''"
|
|
20
20
|
:prepend-inner-icon="prependInnerIcon ? prependInnerIcon : ''"
|
|
21
21
|
:append-inner-icon="appendInnerIcon ? appendInnerIcon : ''"
|
|
22
22
|
:bg-color="bgColor ? bgColor : ''"
|
|
23
23
|
@keyup.enter.prevent="submitted"
|
|
24
|
-
@click:append="!readonly && $emit('append-out')"
|
|
25
|
-
@click:prepend="!readonly && $emit('prepend-out')"
|
|
26
|
-
@click:append-inner="!readonly && $emit('append')"
|
|
27
|
-
@click:prepend-inner="!readonly && $emit('prepend')"
|
|
24
|
+
@click:append="!props.readonly && $emit('append-out')"
|
|
25
|
+
@click:prepend="!props.readonly && $emit('prepend-out')"
|
|
26
|
+
@click:append-inner="!props.readonly && $emit('append')"
|
|
27
|
+
@click:prepend-inner="!props.readonly && $emit('prepend')"
|
|
28
28
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
29
29
|
>
|
|
30
30
|
<template v-if="loading" #loader>
|
|
@@ -117,6 +117,7 @@ export default defineComponent({
|
|
|
117
117
|
|
|
118
118
|
return {
|
|
119
119
|
submitted,
|
|
120
|
+
props
|
|
120
121
|
};
|
|
121
122
|
},
|
|
122
123
|
});
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
location="right"
|
|
6
6
|
class="sm:!w-[400px] lg:!relative !right-0"
|
|
7
7
|
:class="[$dataStore[whichPanel].overlay ? 'lg:!hidden' : '', $dataStore[whichPanel].open ? '!w-full lg:!w-[420px]' : 'lg:!w-[0px]']"
|
|
8
|
+
:disable-resize-watcher="true"
|
|
9
|
+
:disable-route-watcher="true"
|
|
8
10
|
>
|
|
9
11
|
<base-header :title="panelTitle" :has-back="true" back-icon="mdi-close" class="justify-center" @onBack="closePanel"></base-header>
|
|
10
12
|
<div class="flex flex-col" :id="$dataStore.panelAction === null ? 'panel-actions' : ''">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<header class="relative w-full h-[70px] text-center font-medium align-middle flex items-center border-b-[1px]" :class="[$libStyles.blueBgLight, $libStyles.textSimple]">
|
|
3
3
|
<i v-if="hasBack" @click="$emit('onBack')" class="absolute left-5 mdi text-xl cursor-pointer" :class="[backIcon]"></i>
|
|
4
|
-
{{ title }}
|
|
4
|
+
<span class="mx-10">{{ title }}</span>
|
|
5
5
|
<i v-if="hasMore" @click="$emit('onMore')" class="mdi absolute right-5 text-xl cursor-pointer" :class="[moreIcon, hideMoreOnLg ? 'lg:!hidden' : '']"> </i>
|
|
6
6
|
</header>
|
|
7
7
|
</template>
|
|
@@ -84,7 +84,7 @@ export default defineComponent({
|
|
|
84
84
|
const router = useRouter();
|
|
85
85
|
|
|
86
86
|
const pickItem = async (item: MenuItem) => {
|
|
87
|
-
if (item.title !== dataStore.menu.selectedItem.title) {
|
|
87
|
+
if (item.title !== dataStore.menu.selectedItem.title && (typeof item.disabled === 'boolean' ? !item.disabled : true)) {
|
|
88
88
|
if (typeof item.link === 'object') {
|
|
89
89
|
if (item.link && 'name' in item.link) {
|
|
90
90
|
await router.push(item.link as RouteLocationNormalized);
|