Добавил проверку источника при добавлении пациента и вывод отчетов выбранной мед. сестры

This commit is contained in:
brusnitsyn
2026-06-03 13:56:05 +09:00
parent e758769035
commit 720ca1b39a
8 changed files with 121 additions and 28 deletions

View File

@@ -27,6 +27,10 @@ const props = defineProps({
reportNurseId: {
type: Number,
default: null
},
patientSource: {
type: String,
default: 'manual'
}
})
@@ -126,7 +130,7 @@ const submit = async () => {
const fetchPatient = async (historyId) => {
loading.value = true
await axios.get(`/api/nurse/patients/${historyId}`)
await axios.get(`/api/nurse/patients/${historyId}?patient_source=${props.patientSource}`)
.then(res => {
form.value.patient_source = res.data.source_type
form.value.patient_id = historyId