แก้รายงานออกคำสั่งวินัย และแก้ path url report-template

This commit is contained in:
Warunee Tamkoo 2024-01-08 12:19:14 +07:00
parent c49b528861
commit defe861b55
4 changed files with 119 additions and 48 deletions

View file

@ -8,6 +8,7 @@ const reportProbation = `${env.API_REPORT2_URI}/report/probation`;
const reportResign = `${env.API_REPORT2_URI}/report/resign/33`;
const reportTransfer = `${env.API_REPORT2_URI}/report/transfer`;
const reportDeceased = `${env.API_REPORT2_URI}/report/deceased`;
const reportTemplate = `${env.API_REPORT_TEMPLATE_URI}`;
export default {
reportOrderCover: (fileType: string, id: string, commandCode: string) =>
@ -16,7 +17,7 @@ export default {
`${reportOrder}/${commandCode}/attachment/${fileType}/${id}`,
reportRetireList: (fileType: string, id: string) =>
`${reportRetire}/${fileType}/${id}`,
reportResignList: (fileType: string, id: string) =>
reportResignList: (fileType: string, id: string) =>
`${reportResign}/${fileType}/${id}`,
fileCover: (format: string, fileType: string, id: string) =>
@ -24,23 +25,25 @@ export default {
fileAttachment: (format: string, fileType: string, id: string) =>
`${reportOrder}/${format}/attachment/${fileType}/${id}`,
//ระบบทดลองงาน
reportAssign: (type: string, id: string) =>
`${reportProbation}/13/${type}/${id}`,
reportEvaluateRecord1: (type: string, id: string) =>
`${reportProbation}/14/${type}/${id}`,
// reportEvaluateRecord2:(type:string, id:string) => `${reportProbation}/15/${type}/${id}`,
reportEvaluate: (type: string, id: string) =>
`${reportProbation}/16/${type}/${id}`,
reportEvaluateChairman: (type: string, id: string) =>
`${reportProbation}/17/${type}/${id}`,
reportEvaluateResult: (type: string, id: string) =>
`${reportProbation}/19/${type}/${id}`,
// reportSurvey:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
//ระบบทดลองงาน
reportAssign:(type:string, id:string) => `${reportProbation}/13/${type}/${id}`,
reportEvaluateRecord1:(type:string, id:string) => `${reportProbation}/14/${type}/${id}`,
// reportEvaluateRecord2:(type:string, id:string) => `${reportProbation}/15/${type}/${id}`,
reportEvaluate:(type:string, id:string) => `${reportProbation}/16/${type}/${id}`,
reportEvaluateChairman:(type:string, id:string) => `${reportProbation}/17/${type}/${id}`,
reportEvaluateResult:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
// reportSurvey:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
//filetransfer
reportTransferFile: (no: number, type: string, id: string) =>
`${reportTransfer}/${no}/${type}/${id}`,
//filetransfer
reportTransferFile:(no:number,type:string,id:string) => `${reportTransfer}/${no}/${type}/${id}`,
DeceasedReport:(type:string,id:string) => `${reportDeceased}/36/${type}/${id}`
};
DeceasedReport: (type: string, id: string) =>
`${reportDeceased}/36/${type}/${id}`,
reportTemplate,
};