shared-ritm 1.2.64 → 1.2.65

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.
Files changed (47) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +3983 -3990
  4. package/dist/shared-ritm.umd.js +7 -7
  5. package/package.json +63 -63
  6. package/src/api/services/ControlsService.ts +64 -64
  7. package/src/api/services/GanttService.ts +17 -17
  8. package/src/api/services/InstrumentsService.ts +22 -22
  9. package/src/api/services/MetricsService.ts +109 -109
  10. package/src/api/services/ProjectsService.ts +67 -67
  11. package/src/api/services/RepairsService.ts +100 -100
  12. package/src/api/services/VideoService.ts +14 -14
  13. package/src/api/types/Api_Files.ts +1 -1
  14. package/src/api/types/Api_Instruments.ts +133 -133
  15. package/src/api/types/Api_Projects.ts +55 -55
  16. package/src/api/types/Api_Repairs.ts +93 -93
  17. package/src/api/types/Api_Tasks.ts +155 -155
  18. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  19. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  20. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  21. package/src/common/app-select/AppSelect.vue +157 -157
  22. package/src/common/app-sheet/AppSheet.vue +120 -120
  23. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  24. package/src/common/app-table/AppTable.vue +250 -250
  25. package/src/common/app-table/AppTableLayout.vue +111 -111
  26. package/src/common/app-table/components/ModalSelect.vue +264 -264
  27. package/src/common/app-table/components/TableModal.vue +329 -329
  28. package/src/common/app-table/components/TablePagination.vue +152 -152
  29. package/src/common/app-table/components/TableSearch.vue +76 -76
  30. package/src/common/app-table/controllers/useBaseTable.ts +42 -42
  31. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  32. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  33. package/src/common/app-toggle/AppToggle.vue +23 -23
  34. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  35. package/src/icons/components/table-filter-icon.vue +30 -30
  36. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  37. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  38. package/src/icons/task/attention-icon.vue +13 -13
  39. package/src/icons/task/clock-icon.vue +10 -10
  40. package/src/icons/task/delete-icon.vue +10 -10
  41. package/src/icons/task/fire-icon.vue +16 -16
  42. package/src/index.ts +89 -89
  43. package/src/shared/styles/general.css +125 -125
  44. package/src/styles/variables.sass +12 -12
  45. package/src/utils/confirm.ts +12 -12
  46. package/src/utils/helpers.ts +39 -39
  47. package/src/utils/notification.ts +9 -9
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "shared-ritm",
3
- "version": "1.2.64",
4
- "private": false,
5
- "files": [
6
- "dist",
7
- "src"
8
- ],
9
- "main": "dist/shared-ritm.umd.js",
10
- "type": "module",
11
- "module": "./dist/shared-ritm.es.js",
12
- "types": "./dist/types/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "import": "./dist/shared-ritm.es.js",
16
- "require": "./dist/shared-ritm.umd.js",
17
- "default": "./dist/shared-ritm.es.js",
18
- "types": "./dist/types/index.d.ts"
19
- },
20
- "./style": "./dist/index.css"
21
- },
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "vite build && tsc --emitDeclarationOnly",
25
- "typecheck": "vue-tsc --noEmit",
26
- "lint": "eslint --fix",
27
- "format": "prettier -w -u ."
28
- },
29
- "dependencies": {
30
- "@quasar/extras": "^1.16.17",
31
- "@vueuse/core": "^10.1.2",
32
- "axios": "^1.7.7",
33
- "vue": "^3.5.12",
34
- "vue-router": "^4.0.3"
35
- },
36
- "peerDependencies": {
37
- "quasar": "^2.18.1"
38
- },
39
- "devDependencies": {
40
- "@quasar/vite-plugin": "^1.9.0",
41
- "@rollup/pluginutils": "^5.1.3",
42
- "@types/node": "^22.7.9",
43
- "@typescript-eslint/eslint-plugin": "^4.25.0",
44
- "@typescript-eslint/parser": "^4.25.0",
45
- "@vitejs/plugin-vue": "^5.1.4",
46
- "@vue/compiler-sfc": "^3.0.5",
47
- "@vue/eslint-config-prettier": "^6.0.0",
48
- "@vue/eslint-config-typescript": "^7.0.0",
49
- "eslint": "^7.27.0",
50
- "eslint-plugin-prettier": "^3.4.0",
51
- "eslint-plugin-vue": "^7.10.0",
52
- "install": "^0.13.0",
53
- "npm": "^11.4.0",
54
- "prettier": "^2.3.0",
55
- "quasar": "^2.18.1",
56
- "rollup-plugin-visualizer": "^5.14.0",
57
- "sass": "^1.80.4",
58
- "typescript": "^5.6.3",
59
- "vite": "^5.4.9",
60
- "vite-plugin-css-modules": "^0.0.1",
61
- "vue-tsc": "^2.1.6"
62
- }
63
- }
1
+ {
2
+ "name": "shared-ritm",
3
+ "version": "1.2.65",
4
+ "private": false,
5
+ "files": [
6
+ "dist",
7
+ "src"
8
+ ],
9
+ "main": "dist/shared-ritm.umd.js",
10
+ "type": "module",
11
+ "module": "./dist/shared-ritm.es.js",
12
+ "types": "./dist/types/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/shared-ritm.es.js",
16
+ "require": "./dist/shared-ritm.umd.js",
17
+ "default": "./dist/shared-ritm.es.js",
18
+ "types": "./dist/types/index.d.ts"
19
+ },
20
+ "./style": "./dist/index.css"
21
+ },
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "vite build && tsc --emitDeclarationOnly",
25
+ "typecheck": "vue-tsc --noEmit",
26
+ "lint": "eslint --fix",
27
+ "format": "prettier -w -u ."
28
+ },
29
+ "dependencies": {
30
+ "@quasar/extras": "^1.16.17",
31
+ "@vueuse/core": "^10.1.2",
32
+ "axios": "^1.7.7",
33
+ "vue": "^3.5.12",
34
+ "vue-router": "^4.0.3"
35
+ },
36
+ "peerDependencies": {
37
+ "quasar": "^2.18.1"
38
+ },
39
+ "devDependencies": {
40
+ "@quasar/vite-plugin": "^1.9.0",
41
+ "@rollup/pluginutils": "^5.1.3",
42
+ "@types/node": "^22.7.9",
43
+ "@typescript-eslint/eslint-plugin": "^4.25.0",
44
+ "@typescript-eslint/parser": "^4.25.0",
45
+ "@vitejs/plugin-vue": "^5.1.4",
46
+ "@vue/compiler-sfc": "^3.0.5",
47
+ "@vue/eslint-config-prettier": "^6.0.0",
48
+ "@vue/eslint-config-typescript": "^7.0.0",
49
+ "eslint": "^7.27.0",
50
+ "eslint-plugin-prettier": "^3.4.0",
51
+ "eslint-plugin-vue": "^7.10.0",
52
+ "install": "^0.13.0",
53
+ "npm": "^11.4.0",
54
+ "prettier": "^2.3.0",
55
+ "quasar": "^2.18.1",
56
+ "rollup-plugin-visualizer": "^5.14.0",
57
+ "sass": "^1.80.4",
58
+ "typescript": "^5.6.3",
59
+ "vite": "^5.4.9",
60
+ "vite-plugin-css-modules": "^0.0.1",
61
+ "vue-tsc": "^2.1.6"
62
+ }
63
+ }
@@ -1,64 +1,64 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
-
3
- import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '@/api/types/Api_Controls'
4
-
5
- class ControlsService extends ApiService {
6
- public fetchControlZones(params: Record<string, any>): Promise<ResponseApi<Api_ControlZones_Dto[]>> {
7
- return this.get('/frame/list', { params })
8
- }
9
-
10
- public async fetchControlZone(id: string): Promise<ResponseApi<Api_ControlZones_Dto>> {
11
- return this.get(`/frame/${id}`)
12
- }
13
-
14
- public createControlZone(params: any): Promise<ResponseApi<any>> {
15
- return this.post<any, ResponseApi<any>>('/frame', params)
16
- }
17
-
18
- public editControlZone(id: string, params: any): Promise<ResponseApi<any>> {
19
- return this.put<any, ResponseApi<any>>(`/frame/${id}`, params)
20
- }
21
-
22
- public deleteControlZone(id: string): Promise<any> {
23
- return this.delete<ResponseApi<any>>(`/frame/${id}`)
24
- }
25
-
26
- public fetchControlLogs(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
27
- return this.get('/exposed_equipment_zones/list', { params })
28
- }
29
-
30
- public fetchControllers(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
31
- return this.get('/frame/controllers/list', { params })
32
- }
33
-
34
- public fetchUsersWithPasses(): Promise<any> {
35
- return this.get('inspector/users-with-passes')
36
- }
37
-
38
- public fetchWarehousesList(): Promise<any> {
39
- return this.get('tasks/warehouse/list?only_outside_exposed_equipment_zone=1')
40
- }
41
-
42
- public manualEntry(params: any): Promise<ResponseApi<any>> {
43
- return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/enter', params)
44
- }
45
-
46
- public manualExit(params: any): Promise<ResponseApi<any>> {
47
- return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/exit', params)
48
- }
49
-
50
- public deleteControlLogs(params: any): Promise<any> {
51
- return this.delete<ResponseApi<any>>(`exposed_equipment_zones`, params)
52
- }
53
-
54
- public fetchInstrumentTypeList(params: any): Promise<any> {
55
- return this.get<ResponseApi<any>>(`search/instrument_types`, { params })
56
- }
57
- }
58
-
59
- let api: ControlsService
60
-
61
- export default function useControlsService() {
62
- if (!api) api = new ControlsService()
63
- return api
64
- }
1
+ import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
+
3
+ import { Api_ControlLogs_Dto, Api_ControlZones_Dto } from '@/api/types/Api_Controls'
4
+
5
+ class ControlsService extends ApiService {
6
+ public fetchControlZones(params: Record<string, any>): Promise<ResponseApi<Api_ControlZones_Dto[]>> {
7
+ return this.get('/frame/list', { params })
8
+ }
9
+
10
+ public async fetchControlZone(id: string): Promise<ResponseApi<Api_ControlZones_Dto>> {
11
+ return this.get(`/frame/${id}`)
12
+ }
13
+
14
+ public createControlZone(params: any): Promise<ResponseApi<any>> {
15
+ return this.post<any, ResponseApi<any>>('/frame', params)
16
+ }
17
+
18
+ public editControlZone(id: string, params: any): Promise<ResponseApi<any>> {
19
+ return this.put<any, ResponseApi<any>>(`/frame/${id}`, params)
20
+ }
21
+
22
+ public deleteControlZone(id: string): Promise<any> {
23
+ return this.delete<ResponseApi<any>>(`/frame/${id}`)
24
+ }
25
+
26
+ public fetchControlLogs(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
27
+ return this.get('/exposed_equipment_zones/list', { params })
28
+ }
29
+
30
+ public fetchControllers(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>> {
31
+ return this.get('/frame/controllers/list', { params })
32
+ }
33
+
34
+ public fetchUsersWithPasses(): Promise<any> {
35
+ return this.get('inspector/users-with-passes')
36
+ }
37
+
38
+ public fetchWarehousesList(): Promise<any> {
39
+ return this.get('tasks/warehouse/list?only_outside_exposed_equipment_zone=1')
40
+ }
41
+
42
+ public manualEntry(params: any): Promise<ResponseApi<any>> {
43
+ return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/enter', params)
44
+ }
45
+
46
+ public manualExit(params: any): Promise<ResponseApi<any>> {
47
+ return this.post<any, ResponseApi<any>>('exposed_equipment_zones/hand/exit', params)
48
+ }
49
+
50
+ public deleteControlLogs(params: any): Promise<any> {
51
+ return this.delete<ResponseApi<any>>(`exposed_equipment_zones`, params)
52
+ }
53
+
54
+ public fetchInstrumentTypeList(params: any): Promise<any> {
55
+ return this.get<ResponseApi<any>>(`search/instrument_types`, { params })
56
+ }
57
+ }
58
+
59
+ let api: ControlsService
60
+
61
+ export default function useControlsService() {
62
+ if (!api) api = new ControlsService()
63
+ return api
64
+ }
@@ -1,17 +1,17 @@
1
- import ApiService from '@/api/settings/ApiService'
2
-
3
- class GanttService extends ApiService {
4
- public async fetchCriticalPathTasks(params: string): Promise<any> {
5
- return await this.get(`gantt/get_list_task_on_critical_path?${params}`)
6
- }
7
- public async fetchGanttList(params: string): Promise<any> {
8
- return await this.get(`/list/tasks/search?${params}&gantt=1`)
9
- }
10
- }
11
-
12
- let api: GanttService
13
-
14
- export default function useGanttService() {
15
- if (!api) api = new GanttService()
16
- return api
17
- }
1
+ import ApiService from '@/api/settings/ApiService'
2
+
3
+ class GanttService extends ApiService {
4
+ public async fetchCriticalPathTasks(params: string): Promise<any> {
5
+ return await this.get(`gantt/get_list_task_on_critical_path?${params}`)
6
+ }
7
+ public async fetchGanttList(params: string): Promise<any> {
8
+ return await this.get(`/list/tasks/search?${params}&gantt=1`)
9
+ }
10
+ }
11
+
12
+ let api: GanttService
13
+
14
+ export default function useGanttService() {
15
+ if (!api) api = new GanttService()
16
+ return api
17
+ }
@@ -1,22 +1,22 @@
1
- import ApiService from '@/api/settings/ApiService'
2
- import { Api_instruments_HistoryResponse } from '@/api/types/Api_Instruments'
3
-
4
- class InstrumentsService extends ApiService {
5
- public async fetchUserInstrumentsHistory(id: string, page: number): Promise<Api_instruments_HistoryResponse> {
6
- const params = {
7
- status: 'issued',
8
- page,
9
- desc: 'desc',
10
- column: 'updated_at',
11
- }
12
-
13
- return await this.get(`users/${id}/instruments`, { params })
14
- }
15
- }
16
-
17
- let api: InstrumentsService
18
-
19
- export default function useInstrumentsService() {
20
- if (!api) api = new InstrumentsService()
21
- return api
22
- }
1
+ import ApiService from '@/api/settings/ApiService'
2
+ import { Api_instruments_HistoryResponse } from '@/api/types/Api_Instruments'
3
+
4
+ class InstrumentsService extends ApiService {
5
+ public async fetchUserInstrumentsHistory(id: string, page: number): Promise<Api_instruments_HistoryResponse> {
6
+ const params = {
7
+ status: 'issued',
8
+ page,
9
+ desc: 'desc',
10
+ column: 'updated_at',
11
+ }
12
+
13
+ return await this.get(`users/${id}/instruments`, { params })
14
+ }
15
+ }
16
+
17
+ let api: InstrumentsService
18
+
19
+ export default function useInstrumentsService() {
20
+ if (!api) api = new InstrumentsService()
21
+ return api
22
+ }
@@ -1,109 +1,109 @@
1
- import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
-
3
- class MetricsService extends ApiService {
4
- public async fetchPieProjects(queryString: string): Promise<ResponseApi<any>> {
5
- return await this.get('repairs/pie/projects' + '?' + queryString)
6
- }
7
-
8
- public async fetchPieTasks(queryString: string): Promise<ResponseApi<any>> {
9
- return await this.get('repairs/pie/tasks' + '?' + queryString)
10
- }
11
-
12
- public async fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>> {
13
- return await this.get('repairs/metrics/get_list_position' + '?' + queryString)
14
- }
15
-
16
- public async fetchPersonnelData(queryString: string): Promise<ResponseApi<any>> {
17
- return await this.get('repairs/metrics/list_position_intersection_group_by_status' + '?' + queryString)
18
- }
19
-
20
- public async fetchPersonnelInfo(params: string): Promise<ResponseApi<any>> {
21
- return await this.get(`repairs/metrics/list_position_intersection_details?${params}`)
22
- }
23
-
24
- public async fetchPiePersonnelInfo(params: string): Promise<any> {
25
- return await this.get(`repairs/metrics/get_list_user_by_position?${params}`)
26
- }
27
-
28
- public async fetchPieCriticalPath(queryString: string): Promise<any[]> {
29
- return await this.get('repairs/metrics/get_critical_path_group_by_status' + '?' + queryString)
30
- }
31
-
32
- public async fetchPieCriticalPathInfo(params: string): Promise<any> {
33
- return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${params}`)
34
- }
35
-
36
- public async fetchPieTmc(queryString: string): Promise<ResponseApi<any>> {
37
- return await this.get('repairs/metrics/get_list_instrument_type' + '?' + queryString)
38
- }
39
-
40
- public async fetchPieTmcInfo(params: string): Promise<any> {
41
- return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${params}`)
42
- }
43
-
44
- public async fetchPieUntimelyClosedTask(queryString: string): Promise<any[]> {
45
- return await this.get('repairs/metrics/get_list_comment_type' + '?' + queryString)
46
- }
47
-
48
- public async fetchPieUntimelyClosedTaskInfo(params: string): Promise<any> {
49
- return await this.get(`repairs/metrics/get_list_task_by_comment_type?${params}`)
50
- }
51
-
52
- public async fetchPieAdditionalTasks(queryString: string): Promise<any[]> {
53
- return await this.get('repairs/metrics/get_list_task_after_plan_fixate_group_by_status' + '?' + queryString)
54
- }
55
-
56
- public async fetchPieAdditionalTasksInfo(params: string): Promise<any> {
57
- return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${params}`)
58
- }
59
-
60
- public async fetchPersonnel(queryString: string): Promise<any[]> {
61
- return await this.get('repairs/statistic/personnel' + '?' + queryString)
62
- }
63
-
64
- public async fetchPieExpired(queryString: string): Promise<any[]> {
65
- return await this.get('repairs/metrics/get_list_task_expired_group_by_status' + '?' + queryString)
66
- }
67
-
68
- public async fetchPieExpiredInfo(params: string): Promise<any> {
69
- return await this.get(`repairs/metrics/get_list_task_expired?${params}`)
70
- }
71
-
72
- public async fetchEconomicsPerformance(params: string): Promise<any> {
73
- return await this.get(`repairs/metrics/get_economic_performance?${params}`)
74
- }
75
-
76
- public async fetchEconomicsInfo(params: string): Promise<any> {
77
- return await this.get(`repairs/metrics/get_list_task_economic_performance?${params}`)
78
- }
79
- public async fetchQualityMetrics(params: string): Promise<any> {
80
- return await this.get(`repairs/metrics/get_quality_metrics?${params}`)
81
- }
82
-
83
- public async fetchQualityInfo(params: string): Promise<any> {
84
- return await this.get(`repairs/metrics/get_list_task_by_quality?${params}`)
85
- }
86
-
87
- public async fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>> {
88
- return await this.get('repairs/metrics/get_list_work_zone_instrument' + '?' + queryString)
89
- }
90
-
91
- public async fetchWorkZoneInfo(queryString: string): Promise<ResponseApi<any>> {
92
- return await this.get('repairs/metrics/get_list_work_zone_instrument_by_status' + '?' + queryString)
93
- }
94
-
95
- public async fetchPieAllTasks(queryString: string): Promise<ResponseApi<any>> {
96
- return await this.get('repairs/metrics/get_list_task_group_by_status' + '?' + queryString)
97
- }
98
-
99
- public async fetchPieAllTasksInfo(queryString: string): Promise<ResponseApi<any>> {
100
- return await this.get('repairs/metrics/get_list_task_by_status' + '?' + queryString)
101
- }
102
- }
103
-
104
- let api: MetricsService
105
-
106
- export default function useMetricsService() {
107
- if (!api) api = new MetricsService()
108
- return api
109
- }
1
+ import ApiService, { ResponseApi } from '@/api/settings/ApiService'
2
+
3
+ class MetricsService extends ApiService {
4
+ public async fetchPieProjects(queryString: string): Promise<ResponseApi<any>> {
5
+ return await this.get('repairs/pie/projects' + '?' + queryString)
6
+ }
7
+
8
+ public async fetchPieTasks(queryString: string): Promise<ResponseApi<any>> {
9
+ return await this.get('repairs/pie/tasks' + '?' + queryString)
10
+ }
11
+
12
+ public async fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>> {
13
+ return await this.get('repairs/metrics/get_list_position' + '?' + queryString)
14
+ }
15
+
16
+ public async fetchPersonnelData(queryString: string): Promise<ResponseApi<any>> {
17
+ return await this.get('repairs/metrics/list_position_intersection_group_by_status' + '?' + queryString)
18
+ }
19
+
20
+ public async fetchPersonnelInfo(params: string): Promise<ResponseApi<any>> {
21
+ return await this.get(`repairs/metrics/list_position_intersection_details?${params}`)
22
+ }
23
+
24
+ public async fetchPiePersonnelInfo(params: string): Promise<any> {
25
+ return await this.get(`repairs/metrics/get_list_user_by_position?${params}`)
26
+ }
27
+
28
+ public async fetchPieCriticalPath(queryString: string): Promise<any[]> {
29
+ return await this.get('repairs/metrics/get_critical_path_group_by_status' + '?' + queryString)
30
+ }
31
+
32
+ public async fetchPieCriticalPathInfo(params: string): Promise<any> {
33
+ return await this.get(`repairs/metrics/get_list_task_critical_path_by_status?${params}`)
34
+ }
35
+
36
+ public async fetchPieTmc(queryString: string): Promise<ResponseApi<any>> {
37
+ return await this.get('repairs/metrics/get_list_instrument_type' + '?' + queryString)
38
+ }
39
+
40
+ public async fetchPieTmcInfo(params: string): Promise<any> {
41
+ return await this.get(`repairs/metrics/get_list_warehouse_by_instrument_type?${params}`)
42
+ }
43
+
44
+ public async fetchPieUntimelyClosedTask(queryString: string): Promise<any[]> {
45
+ return await this.get('repairs/metrics/get_list_comment_type' + '?' + queryString)
46
+ }
47
+
48
+ public async fetchPieUntimelyClosedTaskInfo(params: string): Promise<any> {
49
+ return await this.get(`repairs/metrics/get_list_task_by_comment_type?${params}`)
50
+ }
51
+
52
+ public async fetchPieAdditionalTasks(queryString: string): Promise<any[]> {
53
+ return await this.get('repairs/metrics/get_list_task_after_plan_fixate_group_by_status' + '?' + queryString)
54
+ }
55
+
56
+ public async fetchPieAdditionalTasksInfo(params: string): Promise<any> {
57
+ return await this.get(`repairs/metrics/get_list_task_after_plan_fixate_by_status?${params}`)
58
+ }
59
+
60
+ public async fetchPersonnel(queryString: string): Promise<any[]> {
61
+ return await this.get('repairs/statistic/personnel' + '?' + queryString)
62
+ }
63
+
64
+ public async fetchPieExpired(queryString: string): Promise<any[]> {
65
+ return await this.get('repairs/metrics/get_list_task_expired_group_by_status' + '?' + queryString)
66
+ }
67
+
68
+ public async fetchPieExpiredInfo(params: string): Promise<any> {
69
+ return await this.get(`repairs/metrics/get_list_task_expired?${params}`)
70
+ }
71
+
72
+ public async fetchEconomicsPerformance(params: string): Promise<any> {
73
+ return await this.get(`repairs/metrics/get_economic_performance?${params}`)
74
+ }
75
+
76
+ public async fetchEconomicsInfo(params: string): Promise<any> {
77
+ return await this.get(`repairs/metrics/get_list_task_economic_performance?${params}`)
78
+ }
79
+ public async fetchQualityMetrics(params: string): Promise<any> {
80
+ return await this.get(`repairs/metrics/get_quality_metrics?${params}`)
81
+ }
82
+
83
+ public async fetchQualityInfo(params: string): Promise<any> {
84
+ return await this.get(`repairs/metrics/get_list_task_by_quality?${params}`)
85
+ }
86
+
87
+ public async fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>> {
88
+ return await this.get('repairs/metrics/get_list_work_zone_instrument' + '?' + queryString)
89
+ }
90
+
91
+ public async fetchWorkZoneInfo(queryString: string): Promise<ResponseApi<any>> {
92
+ return await this.get('repairs/metrics/get_list_work_zone_instrument_by_status' + '?' + queryString)
93
+ }
94
+
95
+ public async fetchPieAllTasks(queryString: string): Promise<ResponseApi<any>> {
96
+ return await this.get('repairs/metrics/get_list_task_group_by_status' + '?' + queryString)
97
+ }
98
+
99
+ public async fetchPieAllTasksInfo(queryString: string): Promise<ResponseApi<any>> {
100
+ return await this.get('repairs/metrics/get_list_task_by_status' + '?' + queryString)
101
+ }
102
+ }
103
+
104
+ let api: MetricsService
105
+
106
+ export default function useMetricsService() {
107
+ if (!api) api = new MetricsService()
108
+ return api
109
+ }