shared-ritm 1.1.70 → 1.1.71
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/README.md +103 -103
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +250 -243
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/TasksService.d.ts +6 -1
- package/dist/types/api/types/Api_Tasks.d.ts +4 -0
- package/package.json +57 -57
- package/src/api/services/AuthService.ts +41 -41
- package/src/api/services/FileService.ts +15 -15
- package/src/api/services/GanttService.ts +17 -17
- package/src/api/services/MetricsService.ts +101 -101
- package/src/api/services/ProjectsService.ts +61 -61
- package/src/api/services/TasksService.ts +10 -0
- package/src/api/settings/ApiService.ts +125 -125
- package/src/api/types/Api_Files.ts +1 -1
- package/src/api/types/Api_Projects.ts +55 -55
- package/src/api/types/Api_Tasks.ts +5 -0
- package/src/common/app-button/AppButton.vue +173 -173
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-date-picker/AppDatePicker.vue +74 -74
- package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
- package/src/common/app-dropdown/AppDropdown.vue +31 -31
- package/src/common/app-icon/AppIcon.vue +104 -104
- package/src/common/app-input/AppInput.vue +147 -147
- package/src/common/app-input-search/AppInputSearch.vue +170 -170
- package/src/common/app-layout/AppLayout.vue +63 -63
- package/src/common/app-layout/components/AppLayoutHeader.vue +123 -123
- package/src/common/app-loader/index.vue +43 -43
- package/src/common/app-page-layout/AppPageLayout.vue +122 -122
- package/src/common/app-select/AppSelect.vue +157 -157
- package/src/common/app-sheet/AppSheet.vue +114 -114
- package/src/common/app-sidebar/AppSidebar.vue +168 -168
- package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +139 -139
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/global.d.ts +1 -1
- package/src/icons/components/arrow-down-icon.vue +25 -25
- package/src/icons/components/arrow-frame-icon.vue +19 -19
- package/src/icons/components/arrow-square.vue +22 -22
- package/src/icons/dialogs/RemoveIcon.vue +12 -12
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/icons/header/flashIcon.vue +24 -24
- package/src/icons/header/notificationIcon.vue +18 -18
- package/src/icons/header/searchStatusIcon.vue +24 -24
- package/src/icons/header/smallCapsIcon.vue +34 -34
- package/src/icons/sidebar/assign-module-icon.vue +36 -36
- package/src/icons/sidebar/instrument-history-icon.vue +32 -32
- package/src/icons/sidebar/instrument-order-icon.vue +38 -38
- package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
- package/src/icons/sidebar/instruments-icon.vue +45 -45
- package/src/icons/sidebar/logo-icon.vue +15 -15
- package/src/icons/sidebar/logout-icon.vue +13 -13
- package/src/icons/sidebar/modules-icon.vue +16 -16
- package/src/icons/sidebar/notifications-icon.vue +24 -24
- package/src/icons/sidebar/order-icon.vue +44 -44
- package/src/icons/sidebar/pass-icon.vue +38 -38
- package/src/icons/sidebar/positions-icon.vue +42 -42
- package/src/icons/sidebar/preorder-icon.vue +19 -19
- package/src/icons/sidebar/projects-icon.vue +31 -31
- package/src/icons/sidebar/repair-object-icon.vue +18 -18
- package/src/icons/sidebar/repairs-icon.vue +20 -20
- package/src/icons/sidebar/roles-icon.vue +26 -26
- package/src/icons/sidebar/status-history-icon.vue +24 -24
- package/src/icons/sidebar/tasks-icon.vue +28 -28
- package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
- package/src/icons/sidebar/tasks_today-icon.vue +27 -27
- package/src/icons/sidebar/teams-icon.vue +32 -32
- package/src/icons/sidebar/user-icon.vue +18 -18
- package/src/icons/sidebar/users-icon.vue +46 -46
- package/src/icons/sidebar/videosources-icon.vue +19 -19
- package/src/icons/sidebar/videowall-icon.vue +13 -13
- package/src/icons/sidebar/videozones-icon.vue +21 -21
- package/src/icons/sidebar/warehouses-icon.vue +43 -43
- package/src/icons/sidebar/workshop-icon.vue +100 -100
- package/src/icons/sidebar/workzones-icon.vue +22 -22
- package/src/icons/task/attention-icon.vue +13 -13
- package/src/icons/task/clock-icon.vue +10 -10
- package/src/icons/task/delete-icon.vue +10 -10
- package/src/icons/task/fire-icon.vue +16 -16
- package/src/index.ts +62 -62
- package/src/main.ts +18 -18
- package/src/quasar-user-options.ts +17 -17
- package/src/router/index.ts +10 -10
- package/src/shared/styles/general.css +96 -96
- package/src/shims-vue.d.ts +5 -5
- package/src/utils/confirm.ts +12 -12
- package/src/utils/notification.ts +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService';
|
|
2
|
-
import { Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Tasks_Dto, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
2
|
+
import { Api_Task_Close_Reason, Api_Task_Instrument_Dto, Api_Task_Instrument_From_Warehouse, Api_Task_Module_Instrument_Condition, Api_Tasks_Dto, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
|
|
3
3
|
import { Api_Equipment_Full_Dto, Api_Task_Video_Source, Api_Task_Video_Source_Stream } from '@/api/types/Api_Repairs';
|
|
4
4
|
declare class TasksService extends ApiService {
|
|
5
5
|
fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
|
|
@@ -39,6 +39,11 @@ declare class TasksService extends ApiService {
|
|
|
39
39
|
data: unknown;
|
|
40
40
|
}): Promise<unknown>;
|
|
41
41
|
saveMetrics(payload: unknown): Promise<unknown>;
|
|
42
|
+
checkReasonForStatus(payload: any): Promise<Api_Task_Close_Reason>;
|
|
43
|
+
verifyTaskStatus(payload: {
|
|
44
|
+
taskId: string;
|
|
45
|
+
data: unknown;
|
|
46
|
+
}): Promise<unknown>;
|
|
42
47
|
}
|
|
43
48
|
export default function useTasksService(): TasksService;
|
|
44
49
|
export {};
|
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "shared-ritm",
|
|
3
|
-
"version": "1.1.
|
|
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.12",
|
|
31
|
-
"@vueuse/core": "^10.1.2",
|
|
32
|
-
"axios": "^1.7.7",
|
|
33
|
-
"quasar": "^2.17.1",
|
|
34
|
-
"vue": "^3.5.12",
|
|
35
|
-
"vue-router": "^4.0.3"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@quasar/vite-plugin": "^1.8.0",
|
|
39
|
-
"@rollup/pluginutils": "^5.1.3",
|
|
40
|
-
"@types/node": "^22.7.9",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
|
42
|
-
"@typescript-eslint/parser": "^4.25.0",
|
|
43
|
-
"@vitejs/plugin-vue": "^5.1.4",
|
|
44
|
-
"@vue/compiler-sfc": "^3.0.5",
|
|
45
|
-
"@vue/eslint-config-prettier": "^6.0.0",
|
|
46
|
-
"@vue/eslint-config-typescript": "^7.0.0",
|
|
47
|
-
"eslint": "^7.27.0",
|
|
48
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
49
|
-
"eslint-plugin-vue": "^7.10.0",
|
|
50
|
-
"prettier": "^2.3.0",
|
|
51
|
-
"sass": "^1.80.4",
|
|
52
|
-
"typescript": "^5.6.3",
|
|
53
|
-
"vite": "^5.4.9",
|
|
54
|
-
"vite-plugin-css-modules": "^0.0.1",
|
|
55
|
-
"vue-tsc": "^2.1.6"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "shared-ritm",
|
|
3
|
+
"version": "1.1.71",
|
|
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.12",
|
|
31
|
+
"@vueuse/core": "^10.1.2",
|
|
32
|
+
"axios": "^1.7.7",
|
|
33
|
+
"quasar": "^2.17.1",
|
|
34
|
+
"vue": "^3.5.12",
|
|
35
|
+
"vue-router": "^4.0.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@quasar/vite-plugin": "^1.8.0",
|
|
39
|
+
"@rollup/pluginutils": "^5.1.3",
|
|
40
|
+
"@types/node": "^22.7.9",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
|
42
|
+
"@typescript-eslint/parser": "^4.25.0",
|
|
43
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
44
|
+
"@vue/compiler-sfc": "^3.0.5",
|
|
45
|
+
"@vue/eslint-config-prettier": "^6.0.0",
|
|
46
|
+
"@vue/eslint-config-typescript": "^7.0.0",
|
|
47
|
+
"eslint": "^7.27.0",
|
|
48
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
49
|
+
"eslint-plugin-vue": "^7.10.0",
|
|
50
|
+
"prettier": "^2.3.0",
|
|
51
|
+
"sass": "^1.80.4",
|
|
52
|
+
"typescript": "^5.6.3",
|
|
53
|
+
"vite": "^5.4.9",
|
|
54
|
+
"vite-plugin-css-modules": "^0.0.1",
|
|
55
|
+
"vue-tsc": "^2.1.6"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import ApiService from '@/api/settings/ApiService'
|
|
2
|
-
|
|
3
|
-
type LoginPayload = {
|
|
4
|
-
email: string
|
|
5
|
-
password: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type LoginResponse = {
|
|
9
|
-
token: string
|
|
10
|
-
user: any
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type ConfigResponse = any
|
|
14
|
-
|
|
15
|
-
class AuthService extends ApiService {
|
|
16
|
-
public login(email: string, password: string) {
|
|
17
|
-
return this.post<LoginPayload, LoginResponse>(`/login`, {
|
|
18
|
-
email,
|
|
19
|
-
password,
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public logout() {
|
|
24
|
-
return this.post<null, LoginResponse>(`/logout`, null)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public userInfo() {
|
|
28
|
-
return this.get<any>(`/users/auth`)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public configs() {
|
|
32
|
-
return this.get<ConfigResponse>(`/configs`)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
let api: AuthService
|
|
37
|
-
|
|
38
|
-
export default function useAuthService() {
|
|
39
|
-
if (!api) api = new AuthService()
|
|
40
|
-
return api
|
|
41
|
-
}
|
|
1
|
+
import ApiService from '@/api/settings/ApiService'
|
|
2
|
+
|
|
3
|
+
type LoginPayload = {
|
|
4
|
+
email: string
|
|
5
|
+
password: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type LoginResponse = {
|
|
9
|
+
token: string
|
|
10
|
+
user: any
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type ConfigResponse = any
|
|
14
|
+
|
|
15
|
+
class AuthService extends ApiService {
|
|
16
|
+
public login(email: string, password: string) {
|
|
17
|
+
return this.post<LoginPayload, LoginResponse>(`/login`, {
|
|
18
|
+
email,
|
|
19
|
+
password,
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public logout() {
|
|
24
|
+
return this.post<null, LoginResponse>(`/logout`, null)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public userInfo() {
|
|
28
|
+
return this.get<any>(`/users/auth`)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public configs() {
|
|
32
|
+
return this.get<ConfigResponse>(`/configs`)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
let api: AuthService
|
|
37
|
+
|
|
38
|
+
export default function useAuthService() {
|
|
39
|
+
if (!api) api = new AuthService()
|
|
40
|
+
return api
|
|
41
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
-
import { Api_Files_Responsible_Dto } from '@/api/types/Api_Files'
|
|
3
|
-
|
|
4
|
-
class FileService extends ApiService {
|
|
5
|
-
public uploadFile(data: FormData): Promise<ResponseApi<Api_Files_Responsible_Dto>> {
|
|
6
|
-
return this.post<FormData, any>(`/upload-file`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
let api: FileService
|
|
11
|
-
|
|
12
|
-
export default function useFileService() {
|
|
13
|
-
if (!api) api = new FileService()
|
|
14
|
-
return api
|
|
15
|
-
}
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
+
import { Api_Files_Responsible_Dto } from '@/api/types/Api_Files'
|
|
3
|
+
|
|
4
|
+
class FileService extends ApiService {
|
|
5
|
+
public uploadFile(data: FormData): Promise<ResponseApi<Api_Files_Responsible_Dto>> {
|
|
6
|
+
return this.post<FormData, any>(`/upload-file`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
let api: FileService
|
|
11
|
+
|
|
12
|
+
export default function useFileService() {
|
|
13
|
+
if (!api) api = new FileService()
|
|
14
|
+
return api
|
|
15
|
+
}
|
|
@@ -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,101 +1,101 @@
|
|
|
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
|
-
|
|
96
|
-
let api: MetricsService
|
|
97
|
-
|
|
98
|
-
export default function useMetricsService() {
|
|
99
|
-
if (!api) api = new MetricsService()
|
|
100
|
-
return api
|
|
101
|
-
}
|
|
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
|
+
|
|
96
|
+
let api: MetricsService
|
|
97
|
+
|
|
98
|
+
export default function useMetricsService() {
|
|
99
|
+
if (!api) api = new MetricsService()
|
|
100
|
+
return api
|
|
101
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
-
|
|
3
|
-
import { Api_Project_Dto } from '@/api/types/Api_Projects'
|
|
4
|
-
|
|
5
|
-
class ProjectsService extends ApiService {
|
|
6
|
-
public async fetchProjectById(id: string): Promise<ResponseApi<Api_Project_Dto>> {
|
|
7
|
-
return this.get(`/projects/${id}`)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
public createProject(params: any): Promise<ResponseApi<any>> {
|
|
11
|
-
return this.post<any, ResponseApi<any>>('/projects', params)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public editProject(id: string, params: any): Promise<ResponseApi<any>> {
|
|
15
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, params)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>> {
|
|
19
|
-
return this.get(`/get_list_project`, { params })
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public cloneProject(project: any): Promise<ResponseApi<any>> {
|
|
23
|
-
return this.post<any, ResponseApi<any>>(`projects/${project.id}/clone`, project)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public archiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
27
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public unArchiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
31
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public moveAprProject(id: string): Promise<ResponseApi<any>> {
|
|
35
|
-
return this.post<any, ResponseApi<any>>('repairs/move_plan_to_real', {
|
|
36
|
-
repairs: [id],
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
public restoreProject(id: string): Promise<ResponseApi<any>> {
|
|
40
|
-
return this.post<any, ResponseApi<any>>('/restore_project', { projects_ids: [id] })
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public importTasks(payload: any): Promise<ResponseApi<any>> {
|
|
44
|
-
return this.post<any, ResponseApi<any>>('tasks/import', payload)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public fetchProjectTeamList(id: string): Promise<ResponseApi<any>> {
|
|
48
|
-
return this.put<any, ResponseApi<any>>(`/projects/${id}`, null)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
public deleteProject(id: string): Promise<any> {
|
|
52
|
-
return this.delete<ResponseApi<any>>(`/projects/${id}`)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
let api: ProjectsService
|
|
57
|
-
|
|
58
|
-
export default function useProjectsService() {
|
|
59
|
-
if (!api) api = new ProjectsService()
|
|
60
|
-
return api
|
|
61
|
-
}
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
+
|
|
3
|
+
import { Api_Project_Dto } from '@/api/types/Api_Projects'
|
|
4
|
+
|
|
5
|
+
class ProjectsService extends ApiService {
|
|
6
|
+
public async fetchProjectById(id: string): Promise<ResponseApi<Api_Project_Dto>> {
|
|
7
|
+
return this.get(`/projects/${id}`)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public createProject(params: any): Promise<ResponseApi<any>> {
|
|
11
|
+
return this.post<any, ResponseApi<any>>('/projects', params)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public editProject(id: string, params: any): Promise<ResponseApi<any>> {
|
|
15
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, params)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
public fetchProjects(params: any): Promise<ResponseApi<Api_Project_Dto[]>> {
|
|
19
|
+
return this.get(`/get_list_project`, { params })
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public cloneProject(project: any): Promise<ResponseApi<any>> {
|
|
23
|
+
return this.post<any, ResponseApi<any>>(`projects/${project.id}/clone`, project)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public archiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
27
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public unArchiveProject(id: string, data: any): Promise<ResponseApi<any>> {
|
|
31
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, data)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public moveAprProject(id: string): Promise<ResponseApi<any>> {
|
|
35
|
+
return this.post<any, ResponseApi<any>>('repairs/move_plan_to_real', {
|
|
36
|
+
repairs: [id],
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
public restoreProject(id: string): Promise<ResponseApi<any>> {
|
|
40
|
+
return this.post<any, ResponseApi<any>>('/restore_project', { projects_ids: [id] })
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public importTasks(payload: any): Promise<ResponseApi<any>> {
|
|
44
|
+
return this.post<any, ResponseApi<any>>('tasks/import', payload)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public fetchProjectTeamList(id: string): Promise<ResponseApi<any>> {
|
|
48
|
+
return this.put<any, ResponseApi<any>>(`/projects/${id}`, null)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public deleteProject(id: string): Promise<any> {
|
|
52
|
+
return this.delete<ResponseApi<any>>(`/projects/${id}`)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let api: ProjectsService
|
|
57
|
+
|
|
58
|
+
export default function useProjectsService() {
|
|
59
|
+
if (!api) api = new ProjectsService()
|
|
60
|
+
return api
|
|
61
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
2
|
import {
|
|
3
|
+
Api_Task_Close_Reason,
|
|
3
4
|
Api_Task_Instrument_Dto,
|
|
4
5
|
Api_Task_Instrument_From_Warehouse,
|
|
5
6
|
Api_Task_Module_Instrument_Condition,
|
|
@@ -106,6 +107,15 @@ class TasksService extends ApiService {
|
|
|
106
107
|
public async saveMetrics(payload: unknown): Promise<unknown> {
|
|
107
108
|
return await this.put('/update_quality_metrics', payload)
|
|
108
109
|
}
|
|
110
|
+
|
|
111
|
+
public async checkReasonForStatus(payload): Promise<Api_Task_Close_Reason> {
|
|
112
|
+
return await this.post('/tasks/check_reason_for_task', payload)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public async verifyTaskStatus(payload: { taskId: string; data: unknown }): Promise<unknown> {
|
|
116
|
+
const { taskId, data } = payload
|
|
117
|
+
return await this.post(`/task/${taskId}/change-status/verification`, data)
|
|
118
|
+
}
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
let api: TasksService
|