WIP косметические правки
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
.flex.flex-col.gap-y-6
|
.flex.flex-col.gap-y-6
|
||||||
base-input(
|
base-input(
|
||||||
label="ФИО пациента",
|
label="ФИО пациента",
|
||||||
v-model="patient.full_name"
|
v-model="patientFullName",
|
||||||
|
disabled
|
||||||
)
|
)
|
||||||
.flex.justify-between
|
//-.flex.justify-between
|
||||||
base-custom-select.w-80(
|
base-custom-select.w-80(
|
||||||
placeholder="Тип документа",
|
placeholder="Тип документа",
|
||||||
v-model="patient.doc_type",
|
v-model="patient.doc_type",
|
||||||
@@ -18,20 +19,23 @@
|
|||||||
label="Серия и номер"
|
label="Серия и номер"
|
||||||
)
|
)
|
||||||
.flex.justify-between
|
.flex.justify-between
|
||||||
base-input.w-80(
|
base-select.w-80(
|
||||||
v-model="patient.address",
|
v-model="selectedPatient.address",
|
||||||
|
:items="patientAddresses"
|
||||||
label="Адрес"
|
label="Адрес"
|
||||||
)
|
)
|
||||||
base-input(
|
base-select(
|
||||||
v-model="patient.phone",
|
v-model="selectedPatient.phone",
|
||||||
v-mask="'+7 (###) ###-##-##'",
|
label="Телефон",
|
||||||
label="Телефон"
|
:items="patientPhones"
|
||||||
)
|
)
|
||||||
|
input(:value='patientEqualClient')
|
||||||
|
.text 'Пациент = Заказчик' + {{ patientEqualClient }}
|
||||||
base-input(
|
base-input(
|
||||||
v-model="patient.full_name"
|
v-model="patient.full_name"
|
||||||
label="ФИО Заказчика",
|
label="ФИО Заказчика",
|
||||||
)
|
)
|
||||||
.flex.justify-between
|
//-.flex.justify-between
|
||||||
base-custom-select.w-80(
|
base-custom-select.w-80(
|
||||||
placeholder="Тип документа",
|
placeholder="Тип документа",
|
||||||
v-model="patient.doc_type",
|
v-model="patient.doc_type",
|
||||||
@@ -59,26 +63,31 @@
|
|||||||
<script>
|
<script>
|
||||||
import BaseInput from "@/components/base/BaseInput";
|
import BaseInput from "@/components/base/BaseInput";
|
||||||
import BaseCustomSelect from "@/components/base/BaseCustomSelect.vue";
|
import BaseCustomSelect from "@/components/base/BaseCustomSelect.vue";
|
||||||
|
import BaseSelect from "@/components/base/BaseSelect.vue";
|
||||||
import { mask } from "vue-the-mask";
|
import { mask } from "vue-the-mask";
|
||||||
export default {
|
export default {
|
||||||
name: "AgreementPerson",
|
name: "AgreementPerson",
|
||||||
components: {
|
components: {
|
||||||
BaseInput,
|
BaseInput,
|
||||||
BaseCustomSelect,
|
BaseCustomSelect,
|
||||||
|
BaseSelect,
|
||||||
},
|
},
|
||||||
directives: { mask },
|
directives: { mask },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
patient: {
|
patientEqualClient: true,
|
||||||
|
selectedPatient: {
|
||||||
full_name: "",
|
full_name: "",
|
||||||
doc_type: {
|
doc_type: {
|
||||||
id: null,
|
id: null,
|
||||||
label: "",
|
label: "",
|
||||||
},
|
},
|
||||||
seriesAndNumber: "2354 125423",
|
seriesAndNumber: "2354 125423",
|
||||||
phone: "",
|
phone: undefined,
|
||||||
address: "",
|
address: undefined,
|
||||||
},
|
},
|
||||||
|
patientAddresses: [],
|
||||||
|
patientPhones: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -91,6 +100,13 @@ export default {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
patient() {
|
||||||
|
return this.$store.state.currentPatient;
|
||||||
|
},
|
||||||
|
patientFullName() {
|
||||||
|
console.log(this.patient);
|
||||||
|
return `${this.patient.last_name} ${this.patient.first_name} ${this.patient.patronymic}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user