* изменил таблицы в основном отчете
* изменил метод сохранения пациентов основного отчета
This commit is contained in:
27
resources/js/Pages/Report/Components/PatientSectionItem.vue
Normal file
27
resources/js/Pages/Report/Components/PatientSectionItem.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<script setup>
|
||||
import { NCollapseItem } from 'naive-ui'
|
||||
import {computed} from "vue";
|
||||
const props = defineProps({
|
||||
label: {
|
||||
type: String
|
||||
},
|
||||
counter: {
|
||||
type: [String, Number],
|
||||
default: null
|
||||
}
|
||||
})
|
||||
|
||||
const counterText = computed(() => props.counter ? `(${props.counter})` : '')
|
||||
|
||||
const header = computed(() => `${props.label} ${counterText.value}`)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NCollapseItem :title="header">
|
||||
<slot />
|
||||
</NCollapseItem>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user