251225:1703 On going update to 1.7.0: Refoctory drawing Module not finish
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-25 17:03:33 +07:00
parent 7db6a003db
commit cd73cc1549
60 changed files with 8201 additions and 832 deletions

View File

@@ -274,18 +274,19 @@ export const numberingApi = {
*/
previewNumber: async (ctx: {
projectId: number;
originatorId: number;
typeId: number;
originatorOrganizationId: number;
correspondenceTypeId: number;
disciplineId?: number;
subTypeId?: number;
rfaTypeId?: number;
recipientOrganizationId?: number;
}): Promise<{ previewNumber: string; nextSequence: number }> => {
const res = await apiClient.post<{ previewNumber: string; nextSequence: number }>(
const res = await apiClient.post<{ data: { previewNumber: string; nextSequence: number } }>(
'/document-numbering/preview',
ctx
);
return res.data;
// Backend wraps response in { data: { ... }, message: "Success" }
return res.data.data || res.data;
},
/**