diff --git a/app/components/app/outpatient/encounter/_common/select-date.vue b/app/components/app/control-letter/_common/select-date.vue similarity index 100% rename from app/components/app/outpatient/encounter/_common/select-date.vue rename to app/components/app/control-letter/_common/select-date.vue diff --git a/app/components/app/outpatient/encounter/_common/select-dpjp.vue b/app/components/app/control-letter/_common/select-dpjp.vue similarity index 93% rename from app/components/app/outpatient/encounter/_common/select-dpjp.vue rename to app/components/app/control-letter/_common/select-dpjp.vue index 2f5a9c6e..2053ebdb 100644 --- a/app/components/app/outpatient/encounter/_common/select-dpjp.vue +++ b/app/components/app/control-letter/_common/select-dpjp.vue @@ -36,11 +36,10 @@ async function fetchDpjp(specialistId: string, subspecialistId: string) { doctors.value = await getDoctorLabelList({ serviceType: 1, serviceDate: new Date().toISOString().substring(0, 10), - specialistCode: 0, includes: 'employee-person', // "unit-id": parseInt(unitId), - "specialist-id": String(specialistId), - "subspecialist-id": String(subspecialistId), + "specialist-code": String(specialistId), + "subspecialist-code": String(subspecialistId), }, true) } @@ -53,7 +52,8 @@ const selectedSubSpecialistId = inject>("selectedSubSpecialis // } watch([ selectedSpecialistId, selectedSubSpecialistId], () => { - if ( selectedSpecialistId.value && selectedSubSpecialistId.value) { + if (selectedSpecialistId.value && selectedSubSpecialistId.value) { + console.log(`Select Doctor`) fetchDpjp( selectedSpecialistId.value, selectedSubSpecialistId.value) } }) diff --git a/app/components/app/outpatient/encounter/_common/select-specialist.vue b/app/components/app/control-letter/_common/select-specialist.vue similarity index 98% rename from app/components/app/outpatient/encounter/_common/select-specialist.vue rename to app/components/app/control-letter/_common/select-specialist.vue index f4de1373..cd5ee923 100644 --- a/app/components/app/outpatient/encounter/_common/select-specialist.vue +++ b/app/components/app/control-letter/_common/select-specialist.vue @@ -54,7 +54,6 @@ watch([selectedUnitId], () => { fetchSpecialists(selectedUnitId.value) } }) - console.log(selectedUnitId.value)