shared-ritm 1.2.106 → 1.2.108
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/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +41 -10
- package/dist/shared-ritm.umd.js +41 -41
- package/dist/types/api/services/InstrumentsService.d.ts +17 -1
- package/dist/types/api/services/PhotoService.d.ts +38 -51
- package/dist/types/api/services/SearchService.d.ts +2 -1
- package/dist/types/api/types/Api_Instruments.d.ts +26 -0
- package/dist/types/api/types/Api_Search.d.ts +16 -0
- package/package.json +64 -64
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +63 -22
- package/src/api/services/SearchService.ts +5 -2
- package/src/api/services/UserService.ts +101 -101
- package/src/api/services/VideoService.ts +62 -62
- package/src/api/settings/ApiService.ts +124 -126
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +136 -98
- package/src/api/types/Api_Search.ts +19 -0
- package/src/api/types/Api_User.ts +117 -117
- package/src/api/types/Api_Video.ts +123 -123
- package/src/common/app-input-new/AppInputNew.vue +167 -167
- package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
- package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
- package/src/common/app-table/AppTable.vue +314 -312
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +270 -270
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/index.ts +119 -119
- package/src/styles/variables.sass +12 -12
- package/dist/types/api/services/ComentsServise.d.ts +0 -10
- package/dist/types/api/types/Api_Users.d.ts +0 -43
|
@@ -1,98 +1,136 @@
|
|
|
1
|
-
import { Api_User } from '../types/Api_User'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
1
|
+
import { Api_User } from '../types/Api_User'
|
|
2
|
+
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
3
|
+
import { Api_Search_User } from '@/api/types/Api_Search'
|
|
4
|
+
|
|
5
|
+
export type Api_Instrument_Storage = {
|
|
6
|
+
id: string
|
|
7
|
+
created_at: string
|
|
8
|
+
deleted_at: string | null
|
|
9
|
+
updated_at: string
|
|
10
|
+
description: string
|
|
11
|
+
name: string
|
|
12
|
+
title: string
|
|
13
|
+
parent: unknown | null
|
|
14
|
+
parents: unknown[]
|
|
15
|
+
state_id: unknown | null
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type Api_Instrument_Type = {
|
|
19
|
+
id: string
|
|
20
|
+
name: string
|
|
21
|
+
created_at: string
|
|
22
|
+
updated_at: string
|
|
23
|
+
deleted_at: string | null
|
|
24
|
+
icon: string
|
|
25
|
+
storage_id: string
|
|
26
|
+
storage: Api_Instrument_Storage
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Api_Instrument_Location = {
|
|
30
|
+
id: string
|
|
31
|
+
name: string
|
|
32
|
+
title: string
|
|
33
|
+
description: string
|
|
34
|
+
created_at: string
|
|
35
|
+
updated_at: string
|
|
36
|
+
deleted_at: string | null
|
|
37
|
+
state_id: unknown | null
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Api_Instrument_Status = {
|
|
41
|
+
id: string
|
|
42
|
+
description: string
|
|
43
|
+
name: string
|
|
44
|
+
title: string
|
|
45
|
+
created_at: string
|
|
46
|
+
updated_at: string
|
|
47
|
+
deleted_at: string | null
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type Api_Instrument = {
|
|
51
|
+
id: string
|
|
52
|
+
RFID: string | null
|
|
53
|
+
instrument_id: string
|
|
54
|
+
arrival_at: string
|
|
55
|
+
created_at: string
|
|
56
|
+
supply_at: string
|
|
57
|
+
updated_at: string
|
|
58
|
+
deleted_at: string | null
|
|
59
|
+
inventory_number: string
|
|
60
|
+
instrument_type: Api_Instrument_Type
|
|
61
|
+
invoice_ref_key: string
|
|
62
|
+
last_status_updated_at: string
|
|
63
|
+
location_id: string
|
|
64
|
+
location: Api_Instrument_Location
|
|
65
|
+
misplacement: boolean
|
|
66
|
+
module: string | null
|
|
67
|
+
module_id: string | null
|
|
68
|
+
name: string
|
|
69
|
+
pressure: unknown | null
|
|
70
|
+
registry_module_id: string
|
|
71
|
+
responsible_id: string
|
|
72
|
+
responsible: Api_User
|
|
73
|
+
status: Api_Instrument_Status
|
|
74
|
+
status_id: string
|
|
75
|
+
storage: Api_Instrument_Storage
|
|
76
|
+
supervisor: unknown | null
|
|
77
|
+
supervisor_id: string
|
|
78
|
+
type: unknown | null
|
|
79
|
+
weight: unknown | null
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type Api_instruments_HistoryResponse = {
|
|
83
|
+
data: Api_Instrument[]
|
|
84
|
+
from: number
|
|
85
|
+
to: number
|
|
86
|
+
total: number
|
|
87
|
+
per_page: number
|
|
88
|
+
current_page: number
|
|
89
|
+
total_pages: number
|
|
90
|
+
last_page_url: string
|
|
91
|
+
first_page_url: string
|
|
92
|
+
next_page_url: string | null
|
|
93
|
+
prev_page_url: string | null
|
|
94
|
+
path: string
|
|
95
|
+
links: {
|
|
96
|
+
label: string
|
|
97
|
+
url: string
|
|
98
|
+
active: boolean
|
|
99
|
+
}[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Api_Warehouse_Search = Omit<
|
|
103
|
+
Api_Instrument,
|
|
104
|
+
| 'created_at'
|
|
105
|
+
| 'deleted_at'
|
|
106
|
+
| 'invoice_ref_key'
|
|
107
|
+
| 'last_status_updated_at'
|
|
108
|
+
| 'pressure'
|
|
109
|
+
| 'registry_module_id'
|
|
110
|
+
| 'supervisor'
|
|
111
|
+
| 'supervisor_id'
|
|
112
|
+
| 'type'
|
|
113
|
+
| 'weight'
|
|
114
|
+
> & {
|
|
115
|
+
issued_in: unknown | null
|
|
116
|
+
registry: {
|
|
117
|
+
id: string
|
|
118
|
+
title: string
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type Api_Warehouse_Create = {
|
|
123
|
+
instrument_id: string
|
|
124
|
+
inventory_number: string
|
|
125
|
+
module_id?: string
|
|
126
|
+
registry_module_id?: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type Api_Warehouse_Status_History_Item = {
|
|
130
|
+
old_status: Api_Status_DTO
|
|
131
|
+
new_status: Api_Status_DTO
|
|
132
|
+
created_at: string
|
|
133
|
+
responsible: Omit<Api_Search_User, 'photos' | 'divisions' | 'passes'> & {
|
|
134
|
+
roles: { id: string; display_name: string }[]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
|
|
2
|
+
|
|
1
3
|
export type Api_Search_User_Passes = {
|
|
2
4
|
id: string
|
|
3
5
|
type: string
|
|
@@ -56,3 +58,20 @@ export type Api_Search_Instruments = {
|
|
|
56
58
|
divisions: string
|
|
57
59
|
personnel_number: string
|
|
58
60
|
}
|
|
61
|
+
|
|
62
|
+
export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
|
|
63
|
+
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Api_Search_Module = {
|
|
67
|
+
id: string
|
|
68
|
+
RFID: string
|
|
69
|
+
inventory_number: string
|
|
70
|
+
title: string
|
|
71
|
+
type: string
|
|
72
|
+
mac: unknown
|
|
73
|
+
wlan: unknown
|
|
74
|
+
warehouses: Api_Warehouse_Search[]
|
|
75
|
+
user: Api_Search_Module_User
|
|
76
|
+
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
77
|
+
}
|
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
-
|
|
3
|
-
export type Api_User_Team = {
|
|
4
|
-
id: string
|
|
5
|
-
name: string
|
|
6
|
-
display_name: string
|
|
7
|
-
description: string
|
|
8
|
-
created_at: string
|
|
9
|
-
updated_at: string
|
|
10
|
-
pivot?: {
|
|
11
|
-
team_id: string
|
|
12
|
-
user_id: string
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type Api_User_Team_Search = {
|
|
17
|
-
id: string
|
|
18
|
-
name: string
|
|
19
|
-
display_name: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export type Api_User_Photo = {
|
|
23
|
-
id: string
|
|
24
|
-
name: string
|
|
25
|
-
path: string
|
|
26
|
-
type: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type Api_User_Archive_History_Item = {
|
|
30
|
-
user_id: string
|
|
31
|
-
responsible_id: string
|
|
32
|
-
archived_at: string
|
|
33
|
-
reason: string | null
|
|
34
|
-
restored_at: string | null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_User_Task = {
|
|
38
|
-
id: string
|
|
39
|
-
name: string
|
|
40
|
-
project_id: string
|
|
41
|
-
status: Api_Tasks_Status_Dto
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type Api_User = {
|
|
45
|
-
id: string
|
|
46
|
-
RFID: string
|
|
47
|
-
avatar: unknown | null
|
|
48
|
-
avatar_id: string | null
|
|
49
|
-
change_password: string
|
|
50
|
-
created_at: string
|
|
51
|
-
updated_at: string
|
|
52
|
-
deleted_at: string | null
|
|
53
|
-
dismissal_at: string | null
|
|
54
|
-
email_verified_at: string
|
|
55
|
-
divisions: string
|
|
56
|
-
email: string
|
|
57
|
-
face_recognition_id: string | null
|
|
58
|
-
first_name: string
|
|
59
|
-
full_name: string
|
|
60
|
-
last_name: string
|
|
61
|
-
patronymic: string
|
|
62
|
-
personnel_number: number
|
|
63
|
-
phone: string
|
|
64
|
-
profession: string
|
|
65
|
-
teams: Api_User_Team[]
|
|
66
|
-
photos: Api_User_Photo[]
|
|
67
|
-
archiveHistory: Api_User_Archive_History_Item[]
|
|
68
|
-
assigned_tasks?: Api_User_Task[]
|
|
69
|
-
responsible_tasks?: Api_User_Task[]
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type Api_User_Create = {
|
|
73
|
-
last_name?: string
|
|
74
|
-
first_name?: string
|
|
75
|
-
patronymic?: string
|
|
76
|
-
email?: string
|
|
77
|
-
phone?: string
|
|
78
|
-
divisions?: string
|
|
79
|
-
positions?: [string]
|
|
80
|
-
teams?: {
|
|
81
|
-
team_id: string
|
|
82
|
-
roles: string[]
|
|
83
|
-
}[]
|
|
84
|
-
current_password?: string
|
|
85
|
-
password?: string
|
|
86
|
-
password_confirmation?: string
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export type Api_User_Permission = {
|
|
90
|
-
id: string
|
|
91
|
-
name: string
|
|
92
|
-
display_name: string
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export type Api_User_Role = {
|
|
96
|
-
id: string
|
|
97
|
-
name: string
|
|
98
|
-
display_name: string
|
|
99
|
-
permissions?: Api_User_Permission[]
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type Api_User_Position = {
|
|
103
|
-
id: string
|
|
104
|
-
name: string
|
|
105
|
-
display_name: string
|
|
106
|
-
description?: string
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type Api_User_Delete_Body = {
|
|
110
|
-
user_id: string
|
|
111
|
-
archive_reason?: string
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export type Api_User_Delete_Photos_Body = {
|
|
115
|
-
user_id: string
|
|
116
|
-
photos?: string[]
|
|
117
|
-
}
|
|
1
|
+
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
|
|
3
|
+
export type Api_User_Team = {
|
|
4
|
+
id: string
|
|
5
|
+
name: string
|
|
6
|
+
display_name: string
|
|
7
|
+
description: string
|
|
8
|
+
created_at: string
|
|
9
|
+
updated_at: string
|
|
10
|
+
pivot?: {
|
|
11
|
+
team_id: string
|
|
12
|
+
user_id: string
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Api_User_Team_Search = {
|
|
17
|
+
id: string
|
|
18
|
+
name: string
|
|
19
|
+
display_name: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Api_User_Photo = {
|
|
23
|
+
id: string
|
|
24
|
+
name: string
|
|
25
|
+
path: string
|
|
26
|
+
type: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Api_User_Archive_History_Item = {
|
|
30
|
+
user_id: string
|
|
31
|
+
responsible_id: string
|
|
32
|
+
archived_at: string
|
|
33
|
+
reason: string | null
|
|
34
|
+
restored_at: string | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_User_Task = {
|
|
38
|
+
id: string
|
|
39
|
+
name: string
|
|
40
|
+
project_id: string
|
|
41
|
+
status: Api_Tasks_Status_Dto
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Api_User = {
|
|
45
|
+
id: string
|
|
46
|
+
RFID: string
|
|
47
|
+
avatar: unknown | null
|
|
48
|
+
avatar_id: string | null
|
|
49
|
+
change_password: string
|
|
50
|
+
created_at: string
|
|
51
|
+
updated_at: string
|
|
52
|
+
deleted_at: string | null
|
|
53
|
+
dismissal_at: string | null
|
|
54
|
+
email_verified_at: string
|
|
55
|
+
divisions: string
|
|
56
|
+
email: string
|
|
57
|
+
face_recognition_id: string | null
|
|
58
|
+
first_name: string
|
|
59
|
+
full_name: string
|
|
60
|
+
last_name: string
|
|
61
|
+
patronymic: string
|
|
62
|
+
personnel_number: number
|
|
63
|
+
phone: string
|
|
64
|
+
profession: string
|
|
65
|
+
teams: Api_User_Team[]
|
|
66
|
+
photos: Api_User_Photo[]
|
|
67
|
+
archiveHistory: Api_User_Archive_History_Item[]
|
|
68
|
+
assigned_tasks?: Api_User_Task[]
|
|
69
|
+
responsible_tasks?: Api_User_Task[]
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type Api_User_Create = {
|
|
73
|
+
last_name?: string
|
|
74
|
+
first_name?: string
|
|
75
|
+
patronymic?: string
|
|
76
|
+
email?: string
|
|
77
|
+
phone?: string
|
|
78
|
+
divisions?: string
|
|
79
|
+
positions?: [string]
|
|
80
|
+
teams?: {
|
|
81
|
+
team_id: string
|
|
82
|
+
roles: string[]
|
|
83
|
+
}[]
|
|
84
|
+
current_password?: string
|
|
85
|
+
password?: string
|
|
86
|
+
password_confirmation?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type Api_User_Permission = {
|
|
90
|
+
id: string
|
|
91
|
+
name: string
|
|
92
|
+
display_name: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type Api_User_Role = {
|
|
96
|
+
id: string
|
|
97
|
+
name: string
|
|
98
|
+
display_name: string
|
|
99
|
+
permissions?: Api_User_Permission[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Api_User_Position = {
|
|
103
|
+
id: string
|
|
104
|
+
name: string
|
|
105
|
+
display_name: string
|
|
106
|
+
description?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type Api_User_Delete_Body = {
|
|
110
|
+
user_id: string
|
|
111
|
+
archive_reason?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type Api_User_Delete_Photos_Body = {
|
|
115
|
+
user_id: string
|
|
116
|
+
photos?: string[]
|
|
117
|
+
}
|