shared-ritm 1.3.137 → 1.3.138

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.
@@ -0,0 +1,8 @@
1
+ import ApiService from '../settings/ApiService';
2
+ import { Api_Visitor_Dto } from '../types/Api_User';
3
+ import { ResponseApi } from '../types/Api_Service';
4
+ declare class PurchaseService extends ApiService {
5
+ getPurchaseList(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
6
+ }
7
+ export default function usePurchaseService(): PurchaseService;
8
+ export {};
File without changes
@@ -44,10 +44,11 @@ import useCommentsService from './api/services/CommentsService';
44
44
  import useEquipmentService from './api/services/EquipmentService';
45
45
  import useBrigadesService from './api/services/BrigadesService';
46
46
  import useScheduleService from './api/services/ScheduleService';
47
+ import usePurchaseService from './api/services/PurchaseService';
47
48
  import useUserIssueService from './api/services/UserIssueService';
48
49
  import useFaceApiHelper from './utils/faceApiHelper';
49
50
  export { AppButton, AppCheckbox, AppDatepicker, AppDatePicker, AppInput, AppInputNew, AppInputSearch, AppLayout, AppLayoutHeader, AppLayoutPage, AppLoader, AppSelect, AppSheet, AppSheetNew, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, AppDropdown, AppTablePagination, AppTableSearch, AppTableModal, AppTable, AppTableLayout, AppModalSelect, AppModal, AppFile, };
50
- export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, useUserService, useInstrumentsService, useSearchService, useModulesService, useCommentsService, useFaceApiHelper, useEquipmentService, useBrigadesService, useScheduleService, useUserIssueService, };
51
+ export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, useUserService, useInstrumentsService, useSearchService, useModulesService, useCommentsService, useFaceApiHelper, useEquipmentService, useBrigadesService, useScheduleService, useUserIssueService, usePurchaseService, };
51
52
  export { useBaseTable } from './common/app-table/controllers/useBaseTable';
52
53
  export { useTableModel } from './common/app-table/controllers/useTableModel';
53
54
  export { useColumnSelector } from './common/app-table/controllers/useColumnSelector';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.137",
3
+ "version": "1.3.138",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -0,0 +1,35 @@
1
+ import ApiService from '../settings/ApiService'
2
+ import { Api_Visitor_Dto } from '../types/Api_User'
3
+
4
+ import { ResponseApi } from '../types/Api_Service'
5
+
6
+ class PurchaseService extends ApiService {
7
+ public async getPurchaseList(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
8
+ return await this.get(`purchase/list`, { params })
9
+ }
10
+
11
+ // public entryVisitorLog(body: { user_id: string; task_id?: string }): Promise<Api_Visitor_Dto> {
12
+ // return this.post('entry_visitor_log', body)
13
+ // }
14
+ // public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
15
+ // return await this.post(`exit_visitor_log/${id}`, {})
16
+ // }
17
+ // public async deleteVisitorLog(listId: string[] = []): Promise<any> {
18
+ // return await this.post(`delete_not_in_zone_visitor_log`, { visitor_log_list_id: listId })
19
+ // }
20
+ // public async getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
21
+ // return await this.get(`get_list_visitor_log_histories`, { params })
22
+ // }
23
+ // public findUserByVideo(data: any): Promise<any> {
24
+ // return this.post<any, Api_Auth_Login>(`/user/recognition`, data, {
25
+ // transformRequest: d => d,
26
+ // })
27
+ // }
28
+ }
29
+
30
+ let api: PurchaseService
31
+
32
+ export default function usePurchaseService() {
33
+ if (!api) api = new PurchaseService()
34
+ return api
35
+ }
File without changes
@@ -1,110 +1,116 @@
1
- <template>
2
- <component :is="sideBarIcon" :tag="tag" :class="[$style['app-icon']]" />
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import ProjectsIcon from '@/icons/sidebar/projects-icon.vue'
7
- import RepairsIcon from '@/icons/sidebar/repairs-icon.vue'
8
- import InstrumentHistoryIcon from '@/icons/sidebar/instrument-history-icon.vue'
9
- import RepairObjectIcon from '@/icons/sidebar/repair-object-icon.vue'
10
- import StatusHistoryIcon from '@/icons/sidebar/status-history-icon.vue'
11
- import SettingIcon from '@/icons/header/SettingIcon.vue'
12
- import PassIcon from '@/icons/sidebar/pass-icon.vue'
13
- import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
14
- import UsersIcon from '@/icons/sidebar/users-icon.vue'
15
- import UserIcon from '@/icons/sidebar/user-icon.vue'
16
- import UserRequestsIcon from '@/icons/sidebar/user-requests-icon.vue'
17
- import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
18
- import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
19
- import LogoIcon from '@/icons/sidebar/logo-icon.vue'
20
- import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
21
- import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
22
- import OrderIcon from '@/icons/sidebar/order-icon.vue'
23
- import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
24
- import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
25
- import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
26
- import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
27
- import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
28
- import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
29
- import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
30
- import RolesIcon from '@/icons/sidebar/roles-icon.vue'
31
- import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
32
- import PersonIcon from '@/icons/header/PersonIcon.vue'
33
- import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
34
- import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
35
- import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
36
- import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
37
- import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
38
- import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
39
- import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
40
-
41
- import { computed, defineProps } from 'vue'
42
-
43
- interface Props {
44
- size?: string | undefined
45
- tag?: string | undefined
46
- name: string
47
- color?: string | undefined
48
- }
49
-
50
- const props = withDefaults(defineProps<Props>(), {
51
- tag: '',
52
- name: '',
53
- })
54
-
55
- function toPascalCase(str: string): string {
56
- if (!str) return ''
57
- return str
58
- .split('-')
59
- .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
60
- .join('')
61
- }
62
- const sideBarIcon = computed(
63
- () =>
64
- ({
65
- ProjectsIcon,
66
- RepairsIcon,
67
- RepairObjectIcon,
68
- InstrumentHistoryIcon,
69
- StatusHistoryIcon,
70
- SettingIcon,
71
- PassIcon,
72
- AssignModuleIcon,
73
- UsersIcon,
74
- UserIcon,
75
- UserRequestsIcon,
76
- WorkzonesIcon,
77
- LogoutIcon,
78
- LogoIcon,
79
- TasksIcon,
80
- InstrumentsIcon,
81
- OrderIcon,
82
- ModulesIcon,
83
- NotificationsIcon,
84
- VideozonesIcon,
85
- InstrumentWorkZoneIcon,
86
- WorkshopIcon,
87
- WarehousesIcon,
88
- TeamsIcon,
89
- RolesIcon,
90
- PositionsIcon,
91
- PersonIcon,
92
- InstrumentOrderIcon,
93
- PreorderIcon,
94
- VideowallIcon,
95
- VideosourcesIcon,
96
- Tasks_tasksIcon,
97
- Tasks_todayIcon,
98
- ArrowFrameIcon,
99
- })[toPascalCase(props.name)],
100
- )
101
- </script>
102
-
103
- <style module lang="scss">
104
- .app-icon {
105
- stroke: v-bind(color);
106
- fill: none;
107
- width: v-bind(size);
108
- height: v-bind(size);
109
- }
110
- </style>
1
+ <template>
2
+ <component :is="sideBarIcon" :tag="tag" :class="[$style['app-icon']]" />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import ProjectsIcon from '@/icons/sidebar/projects-icon.vue'
7
+ import RepairsIcon from '@/icons/sidebar/repairs-icon.vue'
8
+ import InstrumentHistoryIcon from '@/icons/sidebar/instrument-history-icon.vue'
9
+ import RepairObjectIcon from '@/icons/sidebar/repair-object-icon.vue'
10
+ import StatusHistoryIcon from '@/icons/sidebar/status-history-icon.vue'
11
+ import SettingIcon from '@/icons/header/SettingIcon.vue'
12
+ import PassIcon from '@/icons/sidebar/pass-icon.vue'
13
+ import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
14
+ import UsersIcon from '@/icons/sidebar/users-icon.vue'
15
+ import UserIcon from '@/icons/sidebar/user-icon.vue'
16
+ import UserRequestsIcon from '@/icons/sidebar/user-requests-icon.vue'
17
+ import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
18
+ import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
19
+ import LogoIcon from '@/icons/sidebar/logo-icon.vue'
20
+ import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
21
+ import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
22
+ import OrderIcon from '@/icons/sidebar/order-icon.vue'
23
+ import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
24
+ import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
25
+ import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
26
+ import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
27
+ import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
28
+ import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
29
+ import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
30
+ import RolesIcon from '@/icons/sidebar/roles-icon.vue'
31
+ import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
32
+ import PersonIcon from '@/icons/header/PersonIcon.vue'
33
+ import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
34
+ import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
35
+ import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
36
+ import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
37
+ import PurchaseIcon from '@/icons/sidebar/purchase-icon.vue'
38
+ import ClientPortalIcon from '@/icons/sidebar/client-portal-icon.vue'
39
+ import AnalyticsIcon from '@/icons/sidebar/analytics-icon.vue'
40
+ import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
41
+ import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
42
+ import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
43
+
44
+ import { computed, defineProps } from 'vue'
45
+
46
+ interface Props {
47
+ size?: string | undefined
48
+ tag?: string | undefined
49
+ name: string
50
+ color?: string | undefined
51
+ }
52
+
53
+ const props = withDefaults(defineProps<Props>(), {
54
+ tag: '',
55
+ name: '',
56
+ })
57
+
58
+ function toPascalCase(str: string): string {
59
+ if (!str) return ''
60
+ return str
61
+ .split('-')
62
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
63
+ .join('')
64
+ }
65
+ const sideBarIcon = computed(
66
+ () =>
67
+ ({
68
+ ProjectsIcon,
69
+ RepairsIcon,
70
+ RepairObjectIcon,
71
+ InstrumentHistoryIcon,
72
+ StatusHistoryIcon,
73
+ SettingIcon,
74
+ PassIcon,
75
+ AssignModuleIcon,
76
+ UsersIcon,
77
+ UserIcon,
78
+ UserRequestsIcon,
79
+ WorkzonesIcon,
80
+ LogoutIcon,
81
+ LogoIcon,
82
+ TasksIcon,
83
+ InstrumentsIcon,
84
+ OrderIcon,
85
+ ModulesIcon,
86
+ NotificationsIcon,
87
+ VideozonesIcon,
88
+ InstrumentWorkZoneIcon,
89
+ WorkshopIcon,
90
+ WarehousesIcon,
91
+ TeamsIcon,
92
+ RolesIcon,
93
+ PositionsIcon,
94
+ PersonIcon,
95
+ InstrumentOrderIcon,
96
+ PreorderIcon,
97
+ VideowallIcon,
98
+ VideosourcesIcon,
99
+ Tasks_tasksIcon,
100
+ Tasks_todayIcon,
101
+ ArrowFrameIcon,
102
+ PurchaseIcon,
103
+ AnalyticsIcon,
104
+ ClientPortalIcon,
105
+ })[toPascalCase(props.name)],
106
+ )
107
+ </script>
108
+
109
+ <style module lang="scss">
110
+ .app-icon {
111
+ stroke: v-bind(color);
112
+ fill: none;
113
+ width: v-bind(size);
114
+ height: v-bind(size);
115
+ }
116
+ </style>
@@ -0,0 +1,29 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path
6
+ d="M9.02 2.84004L3.63 7.04004C2.73 7.74004 2 9.23004 2 10.36V17.77C2 20.09 3.89 21.99 6.21 21.99H17.79C20.11 21.99 22 20.09 22 17.78V10.5C22 9.29004 21.19 7.74004 20.2 7.05004L14.02 2.72004C12.62 1.74004 10.37 1.79004 9.02 2.84004Z"
7
+ stroke="white"
8
+ stroke-width="1.5"
9
+ stroke-linecap="round"
10
+ stroke-linejoin="round"
11
+ />
12
+ <path
13
+ d="M15.5 19C16.6 19 17.5 18.2385 17.5 17.3077V9.69231C17.5 8.76154 16.6 8 15.5 8C14.4 8 13.5 8.76154 13.5 9.69231V17.3077C13.5 18.2385 14.39 19 15.5 19Z"
14
+ stroke="white"
15
+ stroke-width="1.5"
16
+ stroke-linecap="round"
17
+ stroke-linejoin="round"
18
+ />
19
+ <path
20
+ d="M8.5 19C9.6 19 10.5 18.1 10.5 17V13.5C10.5 12.4 9.6 11.5 8.5 11.5C7.4 11.5 6.5 12.4 6.5 13.5V17C6.5 18.1 7.39 19 8.5 19Z"
21
+ stroke="white"
22
+ stroke-width="1.5"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ />
26
+ </svg>
27
+ </template>
28
+
29
+ <style scoped lang="scss"></style>
@@ -0,0 +1,56 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path
6
+ d="M6.70001 18H4.15002C2.72002 18 2 17.28 2 15.85V4.15002C2 2.72002 2.72002 2 4.15002 2H8.45001C9.88001 2 10.6 2.72002 10.6 4.15002V6"
7
+ stroke="white"
8
+ stroke-width="1.5"
9
+ stroke-miterlimit="10"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ />
13
+ <path
14
+ d="M17.37 8.41998V19.58C17.37 21.19 16.57 22 14.96 22H9.12C7.51 22 6.70001 21.19 6.70001 19.58V8.41998C6.70001 6.80998 7.51 6 9.12 6H14.96C16.57 6 17.37 6.80998 17.37 8.41998Z"
15
+ stroke="white"
16
+ stroke-width="1.5"
17
+ stroke-miterlimit="10"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ />
21
+ <path
22
+ d="M13.3999 6V4.15002C13.3999 2.72002 14.1199 2 15.5499 2H19.8499C21.2799 2 21.9999 2.72002 21.9999 4.15002V15.85C21.9999 17.28 21.2799 18 19.8499 18H17.3699"
23
+ stroke="white"
24
+ stroke-width="1.5"
25
+ stroke-miterlimit="10"
26
+ stroke-linecap="round"
27
+ stroke-linejoin="round"
28
+ />
29
+ <path
30
+ d="M10 11H14"
31
+ stroke="white"
32
+ stroke-width="1.5"
33
+ stroke-miterlimit="10"
34
+ stroke-linecap="round"
35
+ stroke-linejoin="round"
36
+ />
37
+ <path
38
+ d="M10 14H14"
39
+ stroke="white"
40
+ stroke-width="1.5"
41
+ stroke-miterlimit="10"
42
+ stroke-linecap="round"
43
+ stroke-linejoin="round"
44
+ />
45
+ <path
46
+ d="M12 22V19"
47
+ stroke="white"
48
+ stroke-width="1.5"
49
+ stroke-miterlimit="10"
50
+ stroke-linecap="round"
51
+ stroke-linejoin="round"
52
+ />
53
+ </svg>
54
+ </template>
55
+
56
+ <style scoped lang="scss"></style>
@@ -0,0 +1,23 @@
1
+ <script setup lang="ts"></script>
2
+
3
+ <template>
4
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path d="M12 21.61V12.54" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
6
+ <path
7
+ d="M3.17 7.43994L12 12.5499L20.77 7.46994"
8
+ stroke="white"
9
+ stroke-width="1.5"
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ />
13
+ <path
14
+ d="M9.93 2.48004L4.59 5.44004C3.38 6.11004 2.39 7.79004 2.39 9.17004V14.82C2.39 16.2 3.38 17.88 4.59 18.55L9.93 21.52C11.07 22.15 12.94 22.15 14.08 21.52L19.42 18.55C20.63 17.88 21.62 16.2 21.62 14.82V9.17004C21.62 7.79004 20.63 6.11004 19.42 5.44004L14.08 2.47004C12.93 1.84004 11.07 1.84004 9.93 2.48004Z"
15
+ stroke="white"
16
+ stroke-width="1.5"
17
+ stroke-linecap="round"
18
+ stroke-linejoin="round"
19
+ />
20
+ </svg>
21
+ </template>
22
+
23
+ <style scoped lang="scss"></style>