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
@@ -7,6 +7,7 @@ import Dialog from '~/components/pub/my-ui/modal/dialog.vue'
import { FunctionSoapiSchema } 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)
@@ -102,7 +103,10 @@ function handleClick(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 (