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

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

@@ -14,7 +14,7 @@ const props = defineProps({
const emits = defineEmits(['clickEdit', 'clickDelete'])
const onClickEdit = () => {
emits('clickEdit', props.row.id)
emits('clickEdit', props.row)
}
const onClickDelete = () => {
emits('clickDelete', props.row.id)

View File

@@ -168,7 +168,7 @@ const search = (search) => {
const onChangeSearch = (historyId) => {
loadingChangeSelect.value = true
axios.get(`/api/nurse/patients/${historyId}`).then(res => {
axios.get(`/api/nurse/patients/${historyId}?patient_source=mis`).then(res => {
form.value.medical_card_number = res.data.medical_card_number
form.value.full_name = res.data.full_name
form.value.urgency_id = res.data.urgency_id

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