+
{{ firstOperation?.code_service }}
diff --git a/resources/js/Pages/Report/Components/OperationInfoModal.vue b/resources/js/Pages/Report/Components/OperationInfoModal.vue
index 9cda563..ec8a2e4 100644
--- a/resources/js/Pages/Report/Components/OperationInfoModal.vue
+++ b/resources/js/Pages/Report/Components/OperationInfoModal.vue
@@ -6,14 +6,10 @@ import {format} from "date-fns";
import AppPanel from "../../../Components/AppPanel.vue";
const props = defineProps({
- historyId: {
- type: Number,
- required: true
- }
+ operations: Array
})
const show = defineModel('show')
-const operations = ref(null)
const showInfoDrawer = ref(false)
const showedOperation = ref(null)
@@ -21,39 +17,30 @@ const onShowInfoDrawer = (operation) => {
showedOperation.value = {...operation}
showInfoDrawer.value = true
}
-
-watch(() => props.historyId, (value) => {
- console.log(value)
- axios.get(`/api/mis/operations`, {
- params: {
- historyId: value
- }
- })
- .then(response => {
- operations.value = response.data
- })
-})
-
+
- Операция №{{operation.num}}
+ Операция №
- {{operation.duration}} мин.
+ мин.
@@ -62,17 +49,17 @@ watch(() => props.historyId, (value) => {
- {{format(operation.startAt, 'dd.MM.yyyy')}}
+ {{format(operation.start_date, 'dd.MM.yyyy')}}
- {{operation.service.ServiceMedicalCode}}
+ {{operation.code_service}}
- {{operation.service.ServiceMedicalName}}
+ {{operation.name_service}}
Просмотреть
@@ -83,10 +70,10 @@ watch(() => props.historyId, (value) => {
- Операция №{{showedOperation.num}}
+ Операция №
-
+
diff --git a/resources/js/Pages/Report/Components/PatientDataTable.vue b/resources/js/Pages/Report/Components/PatientDataTable.vue
index 72c31ed..0acf710 100644
--- a/resources/js/Pages/Report/Components/PatientDataTable.vue
+++ b/resources/js/Pages/Report/Components/PatientDataTable.vue
@@ -39,7 +39,7 @@ const tableColumns = computed(() => {
const searchArg = ref(null)
const findPatient = (arg) => {
- patients.value = patients.value.find(itm => itm.full_name === arg)
+ // TODO: сделать поиск пациента через БДц
}
const rowProps = (row) => {
@@ -69,8 +69,8 @@ const rowProps = (row) => {
h(OperationsColumn, { operations: row.latest_migration.operations })
+ render: (row) => h(OperationsColumn, { operations: row.latest_migration.operations, onClick: (operations) => onShowOperationsModal(operations) })
},
{
title: '',
@@ -134,6 +141,11 @@ const columns = [
}
]
+const onShowOperationsModal = (operations) => {
+ operationsInModal.value = operations
+ showOperationsModal.value = true
+}
+
const syncPageProps = () => reportStore.initializeFromPage(props)
onMounted(syncPageProps)
@@ -199,8 +211,8 @@ watch(() => props, (newProps) => {
-
-
+
+
@@ -247,4 +259,5 @@ watch(() => props, (newProps) => {
+