แก้รายงานออกคำสั่งวินัย และแก้ path url report-template
This commit is contained in:
parent
c49b528861
commit
defe861b55
4 changed files with 119 additions and 48 deletions
|
|
@ -32,6 +32,8 @@ const config = ref<any>({
|
|||
// API_PROBATION_URI: "http://192.168.1.151:7776/v1",
|
||||
API_REPORT2_URI: "https://bma-ehr.frappet.synology.me/api/v2",
|
||||
LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me",
|
||||
API_REPORT_TEMPLATE_URI:
|
||||
"https://report-server.frappet.synology.me/api/v1/report-template",
|
||||
},
|
||||
test: {
|
||||
API_URI: "http://localhost:5010/api/v1",
|
||||
|
|
@ -55,6 +57,8 @@ const config = ref<any>({
|
|||
API_PROBATION_URI: `${window.location.protocol}//${window.location.host}/api/v1/probation`,
|
||||
API_REPORT2_URI: `${window.location.protocol}//${window.location.host}/api/v2`,
|
||||
LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me",
|
||||
API_REPORT_TEMPLATE_URI:
|
||||
"https://report-server.frappet.synology.me/api/v1/report-template",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -84,7 +88,12 @@ const API_PROBATION_URI = ref<string>(
|
|||
config.value[env.value].API_PROBATION_URI
|
||||
);
|
||||
const API_REPORT2_URI = ref<string>(config.value[env.value].API_REPORT2_URI);
|
||||
const LINK_EVALUATE_PUBLISH = ref<string>(config.value[env.value].LINK_EVALUATE_PUBLISH);
|
||||
const LINK_EVALUATE_PUBLISH = ref<string>(
|
||||
config.value[env.value].LINK_EVALUATE_PUBLISH
|
||||
);
|
||||
const API_REPORT_TEMPLATE_URI = ref<string>(
|
||||
config.value[env.value].API_REPORT_TEMPLATE_URI
|
||||
);
|
||||
|
||||
export default {
|
||||
env: env.value,
|
||||
|
|
@ -102,4 +111,5 @@ export default {
|
|||
API_PROBATION_URI: API_PROBATION_URI.value,
|
||||
API_REPORT2_URI: API_REPORT2_URI.value,
|
||||
LINK_EVALUATE_PUBLISH: LINK_EVALUATE_PUBLISH.value,
|
||||
API_REPORT_TEMPLATE_URI: API_REPORT_TEMPLATE_URI.value,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue