🐛 fix (cprj): fix encounter-id prop for getlist function
This commit is contained in:
@@ -41,6 +41,7 @@ interface Props {
|
||||
}
|
||||
const props = defineProps<Props>()
|
||||
const emits = defineEmits(['add', 'edit'])
|
||||
const route = useRoute()
|
||||
|
||||
const { recordId } = useQueryCRUDRecordId()
|
||||
const { goToEntry, backToList } = useQueryCRUDMode('mode')
|
||||
@@ -48,6 +49,7 @@ const { goToEntry, backToList } = useQueryCRUDMode('mode')
|
||||
let units = ref<{ value: string; label: string }[]>([])
|
||||
const encounterId = ref<number>(props?.encounter?.id || 0)
|
||||
const title = ref('')
|
||||
const id = route.params.id
|
||||
|
||||
const {
|
||||
data,
|
||||
@@ -60,7 +62,7 @@ const {
|
||||
} = usePaginatedList({
|
||||
fetchFn: async ({ page, search }) => {
|
||||
const result = await getList({
|
||||
'encounter-id': props.encounter.id,
|
||||
'encounter-id': id,
|
||||
'type-code': 'dev-record',
|
||||
includes: 'encounter',
|
||||
search,
|
||||
|
||||
Reference in New Issue
Block a user