Добавил проверку источника при добавлении пациента и вывод отчетов выбранной мед. сестры
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user