|
@@ -25,6 +25,7 @@ import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
import {
|
|
|
emrRootContextKey
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-func/useEmrStore";
|
|
|
+import {useSystemStore} from "@/pinia/system-store";
|
|
|
|
|
|
interface EmrFunctionListProps {
|
|
|
openRecovery: Function;
|
|
@@ -38,6 +39,11 @@ const props = defineProps<EmrFunctionListProps>()
|
|
|
|
|
|
let zoom = 1;
|
|
|
|
|
|
+const size = useSystemStore().userConfig.emr_size
|
|
|
+const buttonSize = size === 'default' ? '28px' : '48px'
|
|
|
+
|
|
|
+console.log(size)
|
|
|
+
|
|
|
const emits = defineEmits(['update:isOpenPage', 'update:reviewMode'])
|
|
|
|
|
|
function setRevisionShowMode(value: number) {
|
|
@@ -129,6 +135,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: <RefreshLeft/>,
|
|
|
title: '撤销 快捷键 Ctrl + Z',
|
|
|
+ name: '撤销',
|
|
|
click() {
|
|
|
emrMitt.emit('editor')!.execute('undo')
|
|
|
}
|
|
@@ -136,6 +143,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: <RefreshRight/>,
|
|
|
title: '重做 快捷键 Ctrl + Y',
|
|
|
+ name: '重做',
|
|
|
click() {
|
|
|
emrMitt.emit('editor')!.execute('redo')
|
|
|
}
|
|
@@ -144,6 +152,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
[
|
|
|
{
|
|
|
title: "",
|
|
|
+ name: '审阅',
|
|
|
iconfontName: 'shenyue',
|
|
|
dropdown: [
|
|
|
{
|
|
@@ -172,6 +181,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: <Printer/>,
|
|
|
title: "",
|
|
|
+ name: '打印',
|
|
|
click() {
|
|
|
emrMitt.emit('getEditMain')?.print()
|
|
|
},
|
|
@@ -195,6 +205,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: <ZoomIn/>,
|
|
|
title: '放大病历',
|
|
|
+ name: '放大',
|
|
|
click() {
|
|
|
emrMitt.emit('editor')!.execute('zoom', {value: zoom += 0.1})
|
|
|
}
|
|
@@ -202,6 +213,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: <ZoomOut/>,
|
|
|
title: '缩小病历',
|
|
|
+ name: '缩小',
|
|
|
click() {
|
|
|
emrMitt.emit('editor')!.execute('zoom', {value: zoom -= 0.1})
|
|
|
}
|
|
@@ -211,6 +223,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: <SortDown/>,
|
|
|
title: '仅在病程记录中生效,根据病程记录的时间来进行排序,从小到大。',
|
|
|
+ name: '排序',
|
|
|
click() {
|
|
|
emrMitt.emit('diseaseCourseSequencing')
|
|
|
}
|
|
@@ -218,6 +231,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: 'chaifenyemian',
|
|
|
title: "为页面添加分页标识符,分页符后强制为新页面。",
|
|
|
+ name: '分页符',
|
|
|
click() {
|
|
|
emrMitt.emit('editor')!.execute('insertContents', {value: [{type: 'pagebreak'}]})
|
|
|
}
|
|
@@ -225,6 +239,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
{
|
|
|
iconfontName: 'xianshifenye',
|
|
|
title: '病历中显示分页',
|
|
|
+ name: '显示分页',
|
|
|
activation: false,
|
|
|
click(value) {
|
|
|
value.activation = !value.activation
|
|
@@ -236,6 +251,7 @@ const functionList = ref<FunctionList[][]>([
|
|
|
[
|
|
|
{
|
|
|
title: "点击可以打开聊天室",
|
|
|
+ name: '聊天室',
|
|
|
iconfontName: <Avatar/>,
|
|
|
click() {
|
|
|
emrMitt.emit('openChatRoom')
|
|
@@ -248,7 +264,8 @@ emrMitt.emit('setHeaderFunction', [...businessFunctions, ...functionList.value[0
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="emr_function-content">
|
|
|
+ <div
|
|
|
+ class="emr_function-content">
|
|
|
<el-scrollbar>
|
|
|
<template v-for="(item , itemIndex) in functionList">
|
|
|
<div class="emr_function-action-group"
|
|
@@ -292,9 +309,25 @@ emrMitt.emit('setHeaderFunction', [...businessFunctions, ...functionList.value[0
|
|
|
border: 1px solid var(--el-border-color);
|
|
|
}
|
|
|
|
|
|
+ .emr-function-button-upright {
|
|
|
+
|
|
|
+ > span {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ height: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-icon {
|
|
|
+ margin-bottom: 6px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
button {
|
|
|
- width: 28px;
|
|
|
- height: 28px;
|
|
|
+ width: v-bind(buttonSize);
|
|
|
+ height: v-bind(buttonSize);
|
|
|
font-size: 12px;
|
|
|
padding: 5px;
|
|
|
border-radius: 0;
|