feat (soapi): implement soapi entry with form and list

This commit is contained in:
Abizrh
2025-11-02 23:20:38 +07:00
parent da80d1a206
commit 6bb881d248
8 changed files with 189 additions and 107 deletions

No files matched your search

+5 -1
View File
@@ -7,6 +7,7 @@ import Dialog from '~/components/pub/my-ui/modal/dialog.vue'
import { EarlyRehabSchema } from '~/schemas/soapi.schema'
import { toast } from '~/components/pub/ui/toast'
import { handleActionSave, handleActionEdit } from '~/handlers/soapi-early.handler'
const { backToList } = useQueryMode('mode')
const route = useRoute()
const isOpenProcedure = ref(false)
@@ -101,7 +102,10 @@ function handleOpen(type: string) {
const entryRehabRef = ref()
async function actionHandler(type: string) {
console.log(type)
if (type === 'back') {
backToList()
return
}
const result = await entryRehabRef.value?.validate()
if (result?.valid) {
if (selectedDiagnose.value?.length > 0) {