shared-ritm 1.0.37 → 1.0.39
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.
|
@@ -12,6 +12,7 @@ declare class RepairsService extends ApiService {
|
|
|
12
12
|
moveArchiveToCurrent(id: string): Promise<void>;
|
|
13
13
|
moveRepairToApr(id: string): Promise<void>;
|
|
14
14
|
moveRepairToArchive(id: string): Promise<void>;
|
|
15
|
+
restoreRepair(id: string): Promise<void>;
|
|
15
16
|
updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
|
|
16
17
|
deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
18
|
}
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ class RepairsService extends ApiService {
|
|
|
40
40
|
public finishPreparationProject(id: string) {
|
|
41
41
|
return this.post<null, void>(`/repairs/${id}/finish_preparation`, null)
|
|
42
42
|
}
|
|
43
|
+
|
|
43
44
|
public moveRepairToCurrent(id: string) {
|
|
44
45
|
return this.post<any, void>(`/repairs/transfer_repair_plan_to_current`, {
|
|
45
46
|
repairs: [id],
|
|
@@ -60,6 +61,11 @@ class RepairsService extends ApiService {
|
|
|
60
61
|
repairs_ids: [id],
|
|
61
62
|
})
|
|
62
63
|
}
|
|
64
|
+
public restoreRepair(id: string) {
|
|
65
|
+
return this.post<any, void>(`/restore_repair`, {
|
|
66
|
+
repairs_ids: [id],
|
|
67
|
+
})
|
|
68
|
+
}
|
|
63
69
|
public updateRepair(payload: Api_Update_Repair, id: string) {
|
|
64
70
|
return this.put<Api_Update_Repair, void>(`/repairs/${id}`, payload)
|
|
65
71
|
}
|
|
@@ -44,7 +44,7 @@ const props = defineProps<Props>()
|
|
|
44
44
|
|
|
45
45
|
// const counter = ref(1)
|
|
46
46
|
const shortName = computed(
|
|
47
|
-
() => `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0]}.`,
|
|
47
|
+
() => `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''}.`,
|
|
48
48
|
)
|
|
49
49
|
</script>
|
|
50
50
|
|