2023-08-21 18:31:23 +07:00
|
|
|
/**
|
|
|
|
|
* api รายงานทั้งหมด
|
|
|
|
|
*/
|
|
|
|
|
import env from "../index";
|
|
|
|
|
const reportOrder = `${env.API_REPORT2_URI}/report/order`;
|
2023-08-25 14:48:10 +07:00
|
|
|
const reportRetire = `${env.API_REPORT2_URI}/report/retire`;
|
2023-08-28 17:22:51 +07:00
|
|
|
const reportProbation = `${env.API_REPORT2_URI}/report/probation`;
|
2023-08-29 14:43:05 +07:00
|
|
|
const reportResign = `${env.API_REPORT2_URI}/report/resign/33`;
|
2023-08-30 14:39:35 +07:00
|
|
|
const reportTransfer = `${env.API_REPORT2_URI}/report/transfer`;
|
2023-08-21 18:31:23 +07:00
|
|
|
|
|
|
|
|
export default {
|
2023-08-26 18:37:58 +07:00
|
|
|
reportOrderCover: (fileType: string, id: string, commandCode: string) =>
|
|
|
|
|
`${reportOrder}/${commandCode}/cover/${fileType}/${id}`,
|
|
|
|
|
reportOrderAttachment: (fileType: string, id: string, commandCode: string) =>
|
|
|
|
|
`${reportOrder}/${commandCode}/attachment/${fileType}/${id}`,
|
2023-08-25 14:48:10 +07:00
|
|
|
reportRetireList: (fileType: string, id: string) =>
|
|
|
|
|
`${reportRetire}/${fileType}/${id}`,
|
2023-08-29 14:43:05 +07:00
|
|
|
reportResignList: (fileType: string, id: string) =>
|
|
|
|
|
`${reportResign}/${fileType}/${id}`,
|
2023-08-26 13:17:07 +07:00
|
|
|
|
|
|
|
|
fileCover: (format: string, fileType: string, id: string) =>
|
|
|
|
|
`${reportOrder}/${format}/cover/${fileType}/${id}`,
|
|
|
|
|
fileAttachment: (format: string, fileType: string, id: string) =>
|
|
|
|
|
`${reportOrder}/${format}/attachment/${fileType}/${id}`,
|
2023-08-28 17:22:51 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//ระบบทดลองงาน
|
|
|
|
|
reportAssign:(type:string, id:string) => `${reportProbation}/13/${type}/${id}`,
|
2023-08-29 09:34:27 +07:00
|
|
|
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}`,
|
2023-08-28 17:22:51 +07:00
|
|
|
reportEvaluateChairman:(type:string, id:string) => `${reportProbation}/17/${type}/${id}`,
|
|
|
|
|
reportEvaluateResult:(type:string, id:string) => `${reportProbation}/18/${type}/${id}`,
|
2023-08-30 14:39:35 +07:00
|
|
|
reportSurvey:(type:string, id:string) => `${reportProbation}/19/${type}/${id}`,
|
|
|
|
|
|
|
|
|
|
//filetransfer
|
|
|
|
|
reportTransferFile:(no:number,type:string,id:string) => `${reportTransfer}/${no}/${type}/${id}`
|
|
|
|
|
};
|