feat(sep): make default value for destination clinic
This commit is contained in:
No files matched your search
@@ -957,6 +957,8 @@ onMounted(() => {
|
|||||||
|
|
||||||
<!-- {{ JSON.stringify(errors, null, 2) }} -->
|
<!-- {{ JSON.stringify(errors, null, 2) }} -->
|
||||||
|
|
||||||
|
{{ JSON.stringify(errors, null, 2) }}
|
||||||
|
|
||||||
<!-- Actions -->
|
<!-- Actions -->
|
||||||
<div class="mt-6 flex justify-end gap-2">
|
<div class="mt-6 flex justify-end gap-2">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -442,6 +442,10 @@ async function handleEvent(menu: string, value: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!value.destinationClinic) {
|
||||||
|
mappedValues.destinationClinic = selectedObjects.value['destination'] || ''
|
||||||
|
}
|
||||||
|
|
||||||
createSep(makeSepData(mappedValues))
|
createSep(makeSepData(mappedValues))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ const IntegrationBpjsSchema = z
|
|||||||
.optional(),
|
.optional(),
|
||||||
destinationClinic: z
|
destinationClinic: z
|
||||||
.string({ required_error: ERROR_MESSAGES.required.destinationClinic })
|
.string({ required_error: ERROR_MESSAGES.required.destinationClinic })
|
||||||
.min(1, ERROR_MESSAGES.required.destinationClinic),
|
.min(1, ERROR_MESSAGES.required.destinationClinic).optional(),
|
||||||
attendingDoctor: z
|
attendingDoctor: z
|
||||||
.string({ required_error: ERROR_MESSAGES.required.attendingDoctor })
|
.string({ required_error: ERROR_MESSAGES.required.attendingDoctor })
|
||||||
.min(1, ERROR_MESSAGES.required.attendingDoctor),
|
.min(1, ERROR_MESSAGES.required.attendingDoctor),
|
||||||
|
|||||||
Reference in New Issue
Block a user