diff --git a/app/components/content/radiology-order/list.vue b/app/components/content/radiology-order/list.vue index b2c8571d..47c822e9 100644 --- a/app/components/content/radiology-order/list.vue +++ b/app/components/content/radiology-order/list.vue @@ -13,7 +13,6 @@ import { recAction, recItem, isReadonly, - isFormEntryDialogOpen, isRecordConfirmationOpen, handleActionSave, handleActionRemove, @@ -28,6 +27,7 @@ const route = useRoute() const { setQueryParams } = useQueryParam() const title = ref('') +const addTrigger = ref(false) const plainEid = route.params.id const encounter_id = (plainEid && typeof plainEid == 'string') ? parseInt(plainEid) : 0 // here the @@ -74,7 +74,7 @@ const headerPrep: HeaderPrep = { onClick: () => { recItem.value = null recId.value = 0 - isFormEntryDialogOpen.value = true + addTrigger.value = true isReadonly.value = false }, }, @@ -90,7 +90,7 @@ const getMyDetail = async (id: number | string) => { if (result.success) { const currentValue = result.body?.data || {} recItem.value = currentValue - isFormEntryDialogOpen.value = true + addTrigger.value = true } } @@ -113,10 +113,10 @@ watch([recId, recAction], () => { } }) -watch([isFormEntryDialogOpen], async () => { - if (isFormEntryDialogOpen.value) { - isFormEntryDialogOpen.value = false; - const saveResp = await handleActionSave({ encounter_id }, getMyList, () =>{}, toast) +watch([addTrigger], async () => { + if (addTrigger.value) { + addTrigger.value = false; + const saveResp = await handleActionSave({ encounter_id, "scope_code": "rad" }, getMyList, () =>{}, toast) if (saveResp.success) { setQueryParams({ 'mode': 'entry',