diff --git a/app/components/app/prescription-item/mix-entry.vue b/app/components/app/prescription-item/mix-entry.vue index 187e9569..5a3c74fd 100644 --- a/app/components/app/prescription-item/mix-entry.vue +++ b/app/components/app/prescription-item/mix-entry.vue @@ -29,7 +29,7 @@ const emit = defineEmits<{ }>() watch(medicines, (data) => { - medicineItems.value = CB.objectsToItem(data, 'code', 'name') + medicineItems.value = CB.objectsToItems(data, 'code', 'name') }) function navClick(type: ClickType) { diff --git a/app/components/app/prescription-item/non-mix-entry.vue b/app/components/app/prescription-item/non-mix-entry.vue index 9115eeb9..90cf3e01 100644 --- a/app/components/app/prescription-item/non-mix-entry.vue +++ b/app/components/app/prescription-item/non-mix-entry.vue @@ -48,7 +48,7 @@ const emit = defineEmits<{ }>() watch(medicines, (data) => { - medicineItems.value = CB.objectsToItem(data, 'code', 'name') + medicineItems.value = CB.objectsToItems(data, 'code', 'name') }) function navClick(type: ClickType) { diff --git a/app/components/app/prescription/flat-list.vue b/app/components/app/prescription/flat-list.vue new file mode 100644 index 00000000..cf563ef2 --- /dev/null +++ b/app/components/app/prescription/flat-list.vue @@ -0,0 +1,88 @@ + + + diff --git a/app/components/app/prescription/list.vue b/app/components/app/prescription/grouped-list.vue similarity index 100% rename from app/components/app/prescription/list.vue rename to app/components/app/prescription/grouped-list.vue diff --git a/app/components/content/prescription/list.vue b/app/components/content/prescription/list.vue index 5042a74b..9447a748 100644 --- a/app/components/content/prescription/list.vue +++ b/app/components/content/prescription/list.vue @@ -1,6 +1,8 @@