add create patient popup

This commit is contained in:
kandrusyak
2023-09-11 17:08:57 +03:00
committed by andrusyakka
parent 85b68c726b
commit 1ee0e8f0e8
12 changed files with 268 additions and 340 deletions

View File

@@ -47,7 +47,7 @@ export default {
BaseSelect,
},
mixins: [v_model],
emits: ["createPerson"],
emits: ["create-person"],
data() {
return {
fullName: "",
@@ -76,7 +76,8 @@ export default {
},
methods: {
createPerson() {
this.$emit("createPerson");
this.$refs?.selectRef?.hidePopup();
this.$emit("create-person");
},
filterFn(val, update) {
fetchWrapper.get(`persons/?full_name=${val}`).then((result) => {