feat/radiology-order-54: adjust wip
This commit is contained in:
@@ -13,7 +13,6 @@ import {
|
|||||||
recAction,
|
recAction,
|
||||||
recItem,
|
recItem,
|
||||||
isReadonly,
|
isReadonly,
|
||||||
isFormEntryDialogOpen,
|
|
||||||
isRecordConfirmationOpen,
|
isRecordConfirmationOpen,
|
||||||
handleActionSave,
|
handleActionSave,
|
||||||
handleActionRemove,
|
handleActionRemove,
|
||||||
@@ -28,6 +27,7 @@ const route = useRoute()
|
|||||||
const { setQueryParams } = useQueryParam()
|
const { setQueryParams } = useQueryParam()
|
||||||
|
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
|
const addTrigger = ref(false)
|
||||||
|
|
||||||
const plainEid = route.params.id
|
const plainEid = route.params.id
|
||||||
const encounter_id = (plainEid && typeof plainEid == 'string') ? parseInt(plainEid) : 0 // here the
|
const encounter_id = (plainEid && typeof plainEid == 'string') ? parseInt(plainEid) : 0 // here the
|
||||||
@@ -74,7 +74,7 @@ const headerPrep: HeaderPrep = {
|
|||||||
onClick: () => {
|
onClick: () => {
|
||||||
recItem.value = null
|
recItem.value = null
|
||||||
recId.value = 0
|
recId.value = 0
|
||||||
isFormEntryDialogOpen.value = true
|
addTrigger.value = true
|
||||||
isReadonly.value = false
|
isReadonly.value = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -90,7 +90,7 @@ const getMyDetail = async (id: number | string) => {
|
|||||||
if (result.success) {
|
if (result.success) {
|
||||||
const currentValue = result.body?.data || {}
|
const currentValue = result.body?.data || {}
|
||||||
recItem.value = currentValue
|
recItem.value = currentValue
|
||||||
isFormEntryDialogOpen.value = true
|
addTrigger.value = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,10 +113,10 @@ watch([recId, recAction], () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
watch([isFormEntryDialogOpen], async () => {
|
watch([addTrigger], async () => {
|
||||||
if (isFormEntryDialogOpen.value) {
|
if (addTrigger.value) {
|
||||||
isFormEntryDialogOpen.value = false;
|
addTrigger.value = false;
|
||||||
const saveResp = await handleActionSave({ encounter_id }, getMyList, () =>{}, toast)
|
const saveResp = await handleActionSave({ encounter_id, "scope_code": "rad" }, getMyList, () =>{}, toast)
|
||||||
if (saveResp.success) {
|
if (saveResp.success) {
|
||||||
setQueryParams({
|
setQueryParams({
|
||||||
'mode': 'entry',
|
'mode': 'entry',
|
||||||
|
|||||||
Reference in New Issue
Block a user