|
@@ -1,8 +1,3 @@
|
|
|
-import store from '../../../../../store'
|
|
|
-import {
|
|
|
- deletePatientEmrByDocumentId,
|
|
|
- insertEmrData
|
|
|
-} from "../../../../../api/zhu-yuan-yi-sheng/emr-patient";
|
|
|
import {xcMessage} from "../../../../../utils/xiaochan-element-plus";
|
|
|
import EventBus from "../../../../../utils/mitt";
|
|
|
import {ref} from 'vue'
|
|
@@ -12,99 +7,6 @@ import XEUtils from "xe-utils";
|
|
|
import Patient from "../../../../../ts-type/patient";
|
|
|
|
|
|
// 患者数据
|
|
|
-export function EMRInteractive(data, editorEvent) {
|
|
|
-
|
|
|
- this.setEditor = (editor, runtime) => {
|
|
|
- this.editor = editor;
|
|
|
- this.runtime = runtime;
|
|
|
- if (editorEvent !== null) {
|
|
|
- for (let key in editorEvent) {
|
|
|
- editor.on(key, function (...args) {
|
|
|
- editorEvent[key](...args)
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
- this.getEditor = () => {
|
|
|
- return this.editor
|
|
|
- }
|
|
|
-
|
|
|
- this.getRuntime = () => {
|
|
|
- return this.runtime
|
|
|
- }
|
|
|
-
|
|
|
- this.deleteElement = (params) => {
|
|
|
- this.editor.execute('execFn', {
|
|
|
- value: {
|
|
|
- fn: function () {
|
|
|
- let EMR = this.editor.getScriptRuntime().EMR
|
|
|
- let emrDoc = EMR.getDocument()
|
|
|
- let components = emrDoc.getComponentsByCode(params);
|
|
|
- components.forEach((component) => {
|
|
|
- let view = component.target;
|
|
|
- let viewDom = view.el;
|
|
|
- let viewParagraphDom = viewDom.parentElement;
|
|
|
- viewDom.remove();
|
|
|
- if (viewParagraphDom.textContent === "") {
|
|
|
- viewParagraphDom.remove()
|
|
|
- }
|
|
|
- })
|
|
|
- }, persist: true, scope: this, params: params
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- this.getRoot = () => {
|
|
|
- return this.editor.model.document.getRoot()
|
|
|
- }
|
|
|
-
|
|
|
- this.callMethod = (name, ...value) => {
|
|
|
- return this.editor[name](...value)
|
|
|
- }
|
|
|
-
|
|
|
- // 这个不能删除是编辑器需要的东西
|
|
|
- this.getAppContext = () => {
|
|
|
- return {
|
|
|
- endpoints: {
|
|
|
- app: "/bdp/dataservice/api", his: import.meta.env.VITE_BASE_URL,
|
|
|
- }, input: {
|
|
|
- user: store.state.user.info.code, name: store.state.user.info.name
|
|
|
- }, login: {
|
|
|
- token: store.state.user.info.token,
|
|
|
- user: {
|
|
|
- id: store.state.user.info.code,
|
|
|
- name: store.state.user.info.name,
|
|
|
- }
|
|
|
- }, data
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
- this.saveDocument = (value, newDate) => {
|
|
|
- let document = this.editor.getDocument();
|
|
|
-
|
|
|
- document.properties.categoryCode = value.emrCategoryCode
|
|
|
- document.properties.patientId = value.patNo + "_" + value.times;
|
|
|
- document._id = value.emrDocumentId
|
|
|
- value.documentData = document
|
|
|
-
|
|
|
- if (document.properties.creator) {
|
|
|
- document.properties.modifier = data['编辑者姓名'];
|
|
|
- document.properties.modifierId = data['编辑者编码'];
|
|
|
- document.properties.modifyTime = newDate
|
|
|
- } else {
|
|
|
- document.properties.creator = data['编辑者姓名'];
|
|
|
- document.properties.creatorId = data['编辑者编码'];
|
|
|
- document.properties.createTime = newDate
|
|
|
- }
|
|
|
- return insertEmrData(value)
|
|
|
- };
|
|
|
-
|
|
|
- this.deleteDocument = (documentId) => {
|
|
|
- return deletePatientEmrByDocumentId(documentId)
|
|
|
- };
|
|
|
-
|
|
|
-}
|
|
|
|
|
|
export const query = ref({
|
|
|
patNo: '',
|
|
@@ -129,7 +31,6 @@ export function resolveRoute(val) {
|
|
|
export const emrConfig = ref({
|
|
|
// 当前是否可以编辑,用来分辨出院只读,和在院患者的
|
|
|
editor: true,
|
|
|
- loading: false,
|
|
|
loadDocument: false
|
|
|
})
|
|
|
|
|
@@ -228,198 +129,200 @@ export function elementReplication(str, name) {
|
|
|
xcMessage.success('复制成功')
|
|
|
}
|
|
|
|
|
|
-export const fontSizes = [{
|
|
|
- "code": "42pt", "name": "初号"
|
|
|
-}, {
|
|
|
- "code": "36pt", "name": "小初"
|
|
|
-}, {
|
|
|
- "code": "26pt", "name": "一号"
|
|
|
-}, {
|
|
|
- "code": "24pt", "name": "小一"
|
|
|
-}, {
|
|
|
- "code": "22pt", "name": "二号"
|
|
|
-}, {
|
|
|
- "code": "18pt", "name": "小二"
|
|
|
-}, {
|
|
|
- "code": "16pt", "name": "三号"
|
|
|
-}, {
|
|
|
- "code": "15pt", "name": "小三"
|
|
|
-}, {
|
|
|
- "code": "14pt", "name": "四号"
|
|
|
-}, {
|
|
|
- "code": "12pt", "name": "小四"
|
|
|
-}, {
|
|
|
- "code": "10.5pt", "name": "五号"
|
|
|
-}, {
|
|
|
- "code": "9pt", "name": "小五"
|
|
|
-}, {
|
|
|
- "code": "7.5pt", "name": "六号"
|
|
|
-}, {
|
|
|
- "code": "6.5pt", "name": "小六"
|
|
|
-}, {
|
|
|
- "code": "5.5pt", "name": "七号"
|
|
|
-}, {
|
|
|
- "code": "5pt", "name": "八号"
|
|
|
-}, {
|
|
|
- "code": "4pt", "name": "4"
|
|
|
-}, {
|
|
|
- "code": "8pt", "name": "8"
|
|
|
-}, {
|
|
|
- "code": "10pt", "name": "10"
|
|
|
-}, {
|
|
|
- "code": "11pt", "name": "11"
|
|
|
-}, {
|
|
|
- "code": "20pt", "name": "20"
|
|
|
-}, {
|
|
|
- "code": "28pt", "name": "28"
|
|
|
-}, {
|
|
|
- "code": "48pt", "name": "48"
|
|
|
-}, {
|
|
|
- "code": "72pt", "name": "72"
|
|
|
-}]
|
|
|
-export const availableFonts = [{
|
|
|
- "text": "微软雅黑", "font": "\"Microsoft YaHei\""
|
|
|
-}, {
|
|
|
- "text": "宋体", "font": "SimSun"
|
|
|
-}, {
|
|
|
- "text": "黑体", "font": "SimHei"
|
|
|
-}, {
|
|
|
- "text": "仿宋", "font": "FangSong"
|
|
|
-}, {
|
|
|
- "text": "楷体", "font": "KaiTi"
|
|
|
-}, {
|
|
|
- "text": "新宋体", "font": "NSimSun"
|
|
|
-}, {
|
|
|
- "text": "微软正黑体", "font": "\"Microsoft JhengHei\""
|
|
|
-}, {
|
|
|
- "text": "Arial", "font": "Arial"
|
|
|
-}, {
|
|
|
- "text": "Times New Roman", "font": "\"Times New Roman\""
|
|
|
-}, {
|
|
|
- "text": "Calibri", "font": "Calibri"
|
|
|
-}, {
|
|
|
- "text": "Comic Sans MS", "font": "\"Comic Sans MS\""
|
|
|
-}, {
|
|
|
- "text": "Courier New", "font": "\"Courier New\""
|
|
|
-}, {
|
|
|
- "text": "Georgia", "font": "Georgia"
|
|
|
-}, {
|
|
|
- "text": "Impact", "font": "Impact"
|
|
|
-}, {
|
|
|
- "text": "Trebuchet MS", "font": "\"Trebuchet MS\""
|
|
|
-}, {
|
|
|
- "text": "Verdana", "font": "Verdana"
|
|
|
-}, {
|
|
|
- "text": "Arial Black", "font": "\"Arial Black\""
|
|
|
-}, {
|
|
|
- "text": "Arial Narrow", "font": "\"Arial Narrow\""
|
|
|
-}, {
|
|
|
- "text": "Cambria", "font": "Cambria"
|
|
|
-}, {
|
|
|
- "text": "Cambria Math", "font": "\"Cambria Math\""
|
|
|
-}, {
|
|
|
- "text": "Candara", "font": "Candara"
|
|
|
-}, {
|
|
|
- "text": "Consolas", "font": "Consolas"
|
|
|
-}, {
|
|
|
- "text": "Constantia", "font": "Constantia"
|
|
|
-}, {
|
|
|
- "text": "Corbel", "font": "Corbel"
|
|
|
-}, {
|
|
|
- "text": "Ebrima", "font": "Ebrima"
|
|
|
-}, {
|
|
|
- "text": "Franklin Gothic", "font": "\"Franklin Gothic\""
|
|
|
-}, {
|
|
|
- "text": "Franklin Gothic Medium", "font": "\"Franklin Gothic Medium\""
|
|
|
-}, {
|
|
|
- "text": "Gabriola", "font": "Gabriola"
|
|
|
-}, {
|
|
|
- "text": "Gadugi", "font": "Gadugi"
|
|
|
-}, {
|
|
|
- "text": "Lucida Console", "font": "\"Lucida Console\""
|
|
|
-}, {
|
|
|
- "text": "Lucida Sans Unicode", "font": "\"Lucida Sans Unicode\""
|
|
|
-}, {
|
|
|
- "text": "Malgun Gothic", "font": "\"Malgun Gothic\""
|
|
|
-}, {
|
|
|
- "text": "Marlett", "font": "Marlett"
|
|
|
-}, {
|
|
|
- "text": "Microsoft Himalaya", "font": "\"Microsoft Himalaya\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft JhengHei UI", "font": "\"Microsoft JhengHei UI\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft JhengHei UI Light", "font": "\"Microsoft JhengHei UI Light\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft New Tai Lue", "font": "\"Microsoft New Tai Lue\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft PhagsPa", "font": "\"Microsoft PhagsPa\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft Sans Serif", "font": "\"Microsoft Sans Serif\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft Tai Le", "font": "\"Microsoft Tai Le\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft YaHei UI", "font": "\"Microsoft YaHei UI\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft YaHei UI Light", "font": "\"Microsoft YaHei UI Light\""
|
|
|
-}, {
|
|
|
- "text": "Microsoft Yi Baiti", "font": "\"Microsoft Yi Baiti\""
|
|
|
-}, {
|
|
|
- "text": "MingLiU-ExtB", "font": "MingLiU-ExtB"
|
|
|
-}, {
|
|
|
- "text": "MingLiU_HKSCS-ExtB", "font": "MingLiU_HKSCS-ExtB"
|
|
|
-}, {
|
|
|
- "text": "Mongolian Baiti", "font": "\"Mongolian Baiti\""
|
|
|
-}, {
|
|
|
- "text": "MS Gothic", "font": "\"MS Gothic\""
|
|
|
-}, {
|
|
|
- "text": "MS PGothic", "font": "\"MS PGothic\""
|
|
|
-}, {
|
|
|
- "text": "MS UI Gothic", "font": "\"MS UI Gothic\""
|
|
|
-}, {
|
|
|
- "text": "MT Extra", "font": "\"MT Extra\""
|
|
|
-}, {
|
|
|
- "text": "MV Boli", "font": "\"MV Boli\""
|
|
|
-}, {
|
|
|
- "text": "Myanmar Text", "font": "\"Myanmar Text\""
|
|
|
-}, {
|
|
|
- "text": "Nirmala UI", "font": "\"Nirmala UI\""
|
|
|
-}, {
|
|
|
- "text": "Palatino Linotype", "font": "\"Palatino Linotype\""
|
|
|
-}, {
|
|
|
- "text": "PMingLiU-ExtB", "font": "PMingLiU-ExtB"
|
|
|
-}, {
|
|
|
- "text": "Segoe Print", "font": "\"Segoe Print\""
|
|
|
-}, {
|
|
|
- "text": "Segoe Script", "font": "\"Segoe Script\""
|
|
|
-}, {
|
|
|
- "text": "Segoe UI Symbol", "font": "\"Segoe UI Symbol\""
|
|
|
-}, {
|
|
|
- "text": "Sylfaen", "font": "Sylfaen"
|
|
|
-}, {
|
|
|
- "text": "Symbol", "font": "Symbol"
|
|
|
-}, {
|
|
|
- "text": "Tahoma", "font": "Tahoma"
|
|
|
-}, {
|
|
|
- "text": "Webdings", "font": "Webdings"
|
|
|
-}, {
|
|
|
- "text": "Wingdings", "font": "Wingdings"
|
|
|
-}, {
|
|
|
- "text": "Yu Gothic", "font": "\"Yu Gothic\""
|
|
|
-}, {
|
|
|
- "text": "Yu Gothic Light", "font": "\"Yu Gothic Light\""
|
|
|
-}, {
|
|
|
- "text": "Yu Gothic Medium", "font": "\"Yu Gothic Medium\""
|
|
|
-}, {
|
|
|
- "text": "Yu Gothic UI", "font": "\"Yu Gothic UI\""
|
|
|
-}, {
|
|
|
- "text": "Yu Gothic UI Light", "font": "\"Yu Gothic UI Light\""
|
|
|
-}, {
|
|
|
- "text": "Yu Gothic UI Semibold", "font": "\"Yu Gothic UI Semibold\""
|
|
|
-}, {
|
|
|
- "text": "Courier", "font": "Courier"
|
|
|
-}, {
|
|
|
- "text": "Times", "font": "Times"
|
|
|
-}]
|
|
|
+export const fontSizes = [
|
|
|
+ {
|
|
|
+ "code": "42pt", "name": "初号"
|
|
|
+ }, {
|
|
|
+ "code": "36pt", "name": "小初"
|
|
|
+ }, {
|
|
|
+ "code": "26pt", "name": "一号"
|
|
|
+ }, {
|
|
|
+ "code": "24pt", "name": "小一"
|
|
|
+ }, {
|
|
|
+ "code": "22pt", "name": "二号"
|
|
|
+ }, {
|
|
|
+ "code": "18pt", "name": "小二"
|
|
|
+ }, {
|
|
|
+ "code": "16pt", "name": "三号"
|
|
|
+ }, {
|
|
|
+ "code": "15pt", "name": "小三"
|
|
|
+ }, {
|
|
|
+ "code": "14pt", "name": "四号"
|
|
|
+ }, {
|
|
|
+ "code": "12pt", "name": "小四"
|
|
|
+ }, {
|
|
|
+ "code": "10.5pt", "name": "五号"
|
|
|
+ }, {
|
|
|
+ "code": "9pt", "name": "小五"
|
|
|
+ }, {
|
|
|
+ "code": "7.5pt", "name": "六号"
|
|
|
+ }, {
|
|
|
+ "code": "6.5pt", "name": "小六"
|
|
|
+ }, {
|
|
|
+ "code": "5.5pt", "name": "七号"
|
|
|
+ }, {
|
|
|
+ "code": "5pt", "name": "八号"
|
|
|
+ }, {
|
|
|
+ "code": "4pt", "name": "4"
|
|
|
+ }, {
|
|
|
+ "code": "8pt", "name": "8"
|
|
|
+ }, {
|
|
|
+ "code": "10pt", "name": "10"
|
|
|
+ }, {
|
|
|
+ "code": "11pt", "name": "11"
|
|
|
+ }, {
|
|
|
+ "code": "20pt", "name": "20"
|
|
|
+ }, {
|
|
|
+ "code": "28pt", "name": "28"
|
|
|
+ }, {
|
|
|
+ "code": "48pt", "name": "48"
|
|
|
+ }, {
|
|
|
+ "code": "72pt", "name": "72"
|
|
|
+ }]
|
|
|
+export const availableFonts = [
|
|
|
+ {
|
|
|
+ "text": "微软雅黑", "font": "\"Microsoft YaHei\""
|
|
|
+ }, {
|
|
|
+ "text": "宋体", "font": "SimSun"
|
|
|
+ }, {
|
|
|
+ "text": "黑体", "font": "SimHei"
|
|
|
+ }, {
|
|
|
+ "text": "仿宋", "font": "FangSong"
|
|
|
+ }, {
|
|
|
+ "text": "楷体", "font": "KaiTi"
|
|
|
+ }, {
|
|
|
+ "text": "新宋体", "font": "NSimSun"
|
|
|
+ }, {
|
|
|
+ "text": "微软正黑体", "font": "\"Microsoft JhengHei\""
|
|
|
+ }, {
|
|
|
+ "text": "Arial", "font": "Arial"
|
|
|
+ }, {
|
|
|
+ "text": "Times New Roman", "font": "\"Times New Roman\""
|
|
|
+ }, {
|
|
|
+ "text": "Calibri", "font": "Calibri"
|
|
|
+ }, {
|
|
|
+ "text": "Comic Sans MS", "font": "\"Comic Sans MS\""
|
|
|
+ }, {
|
|
|
+ "text": "Courier New", "font": "\"Courier New\""
|
|
|
+ }, {
|
|
|
+ "text": "Georgia", "font": "Georgia"
|
|
|
+ }, {
|
|
|
+ "text": "Impact", "font": "Impact"
|
|
|
+ }, {
|
|
|
+ "text": "Trebuchet MS", "font": "\"Trebuchet MS\""
|
|
|
+ }, {
|
|
|
+ "text": "Verdana", "font": "Verdana"
|
|
|
+ }, {
|
|
|
+ "text": "Arial Black", "font": "\"Arial Black\""
|
|
|
+ }, {
|
|
|
+ "text": "Arial Narrow", "font": "\"Arial Narrow\""
|
|
|
+ }, {
|
|
|
+ "text": "Cambria", "font": "Cambria"
|
|
|
+ }, {
|
|
|
+ "text": "Cambria Math", "font": "\"Cambria Math\""
|
|
|
+ }, {
|
|
|
+ "text": "Candara", "font": "Candara"
|
|
|
+ }, {
|
|
|
+ "text": "Consolas", "font": "Consolas"
|
|
|
+ }, {
|
|
|
+ "text": "Constantia", "font": "Constantia"
|
|
|
+ }, {
|
|
|
+ "text": "Corbel", "font": "Corbel"
|
|
|
+ }, {
|
|
|
+ "text": "Ebrima", "font": "Ebrima"
|
|
|
+ }, {
|
|
|
+ "text": "Franklin Gothic", "font": "\"Franklin Gothic\""
|
|
|
+ }, {
|
|
|
+ "text": "Franklin Gothic Medium", "font": "\"Franklin Gothic Medium\""
|
|
|
+ }, {
|
|
|
+ "text": "Gabriola", "font": "Gabriola"
|
|
|
+ }, {
|
|
|
+ "text": "Gadugi", "font": "Gadugi"
|
|
|
+ }, {
|
|
|
+ "text": "Lucida Console", "font": "\"Lucida Console\""
|
|
|
+ }, {
|
|
|
+ "text": "Lucida Sans Unicode", "font": "\"Lucida Sans Unicode\""
|
|
|
+ }, {
|
|
|
+ "text": "Malgun Gothic", "font": "\"Malgun Gothic\""
|
|
|
+ }, {
|
|
|
+ "text": "Marlett", "font": "Marlett"
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft Himalaya", "font": "\"Microsoft Himalaya\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft JhengHei UI", "font": "\"Microsoft JhengHei UI\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft JhengHei UI Light", "font": "\"Microsoft JhengHei UI Light\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft New Tai Lue", "font": "\"Microsoft New Tai Lue\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft PhagsPa", "font": "\"Microsoft PhagsPa\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft Sans Serif", "font": "\"Microsoft Sans Serif\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft Tai Le", "font": "\"Microsoft Tai Le\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft YaHei UI", "font": "\"Microsoft YaHei UI\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft YaHei UI Light", "font": "\"Microsoft YaHei UI Light\""
|
|
|
+ }, {
|
|
|
+ "text": "Microsoft Yi Baiti", "font": "\"Microsoft Yi Baiti\""
|
|
|
+ }, {
|
|
|
+ "text": "MingLiU-ExtB", "font": "MingLiU-ExtB"
|
|
|
+ }, {
|
|
|
+ "text": "MingLiU_HKSCS-ExtB", "font": "MingLiU_HKSCS-ExtB"
|
|
|
+ }, {
|
|
|
+ "text": "Mongolian Baiti", "font": "\"Mongolian Baiti\""
|
|
|
+ }, {
|
|
|
+ "text": "MS Gothic", "font": "\"MS Gothic\""
|
|
|
+ }, {
|
|
|
+ "text": "MS PGothic", "font": "\"MS PGothic\""
|
|
|
+ }, {
|
|
|
+ "text": "MS UI Gothic", "font": "\"MS UI Gothic\""
|
|
|
+ }, {
|
|
|
+ "text": "MT Extra", "font": "\"MT Extra\""
|
|
|
+ }, {
|
|
|
+ "text": "MV Boli", "font": "\"MV Boli\""
|
|
|
+ }, {
|
|
|
+ "text": "Myanmar Text", "font": "\"Myanmar Text\""
|
|
|
+ }, {
|
|
|
+ "text": "Nirmala UI", "font": "\"Nirmala UI\""
|
|
|
+ }, {
|
|
|
+ "text": "Palatino Linotype", "font": "\"Palatino Linotype\""
|
|
|
+ }, {
|
|
|
+ "text": "PMingLiU-ExtB", "font": "PMingLiU-ExtB"
|
|
|
+ }, {
|
|
|
+ "text": "Segoe Print", "font": "\"Segoe Print\""
|
|
|
+ }, {
|
|
|
+ "text": "Segoe Script", "font": "\"Segoe Script\""
|
|
|
+ }, {
|
|
|
+ "text": "Segoe UI Symbol", "font": "\"Segoe UI Symbol\""
|
|
|
+ }, {
|
|
|
+ "text": "Sylfaen", "font": "Sylfaen"
|
|
|
+ }, {
|
|
|
+ "text": "Symbol", "font": "Symbol"
|
|
|
+ }, {
|
|
|
+ "text": "Tahoma", "font": "Tahoma"
|
|
|
+ }, {
|
|
|
+ "text": "Webdings", "font": "Webdings"
|
|
|
+ }, {
|
|
|
+ "text": "Wingdings", "font": "Wingdings"
|
|
|
+ }, {
|
|
|
+ "text": "Yu Gothic", "font": "\"Yu Gothic\""
|
|
|
+ }, {
|
|
|
+ "text": "Yu Gothic Light", "font": "\"Yu Gothic Light\""
|
|
|
+ }, {
|
|
|
+ "text": "Yu Gothic Medium", "font": "\"Yu Gothic Medium\""
|
|
|
+ }, {
|
|
|
+ "text": "Yu Gothic UI", "font": "\"Yu Gothic UI\""
|
|
|
+ }, {
|
|
|
+ "text": "Yu Gothic UI Light", "font": "\"Yu Gothic UI Light\""
|
|
|
+ }, {
|
|
|
+ "text": "Yu Gothic UI Semibold", "font": "\"Yu Gothic UI Semibold\""
|
|
|
+ }, {
|
|
|
+ "text": "Courier", "font": "Courier"
|
|
|
+ }, {
|
|
|
+ "text": "Times", "font": "Times"
|
|
|
+ }]
|
|
|
|
|
|
export interface EmrParam extends LoadParams {
|
|
|
// 名称
|
|
@@ -507,28 +410,6 @@ export function canIUnlockIt(val) {
|
|
|
return applicationData.value.unlockJson.includes(val)
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 患者信息填充完成后的操作
|
|
|
- */
|
|
|
-const patInfoFunc = []
|
|
|
-let isReady = false
|
|
|
-
|
|
|
-export function patInfoMounted(callback: () => void) {
|
|
|
- if (isReady) {
|
|
|
- callback()
|
|
|
- return
|
|
|
- }
|
|
|
- patInfoFunc.push(callback)
|
|
|
-}
|
|
|
-
|
|
|
-export function patInfoCallback() {
|
|
|
- isReady = true
|
|
|
- XEUtils.remove(patInfoFunc, (item) => {
|
|
|
- item()
|
|
|
- return true
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
export interface EmrPatient extends Patient {
|
|
|
// 1-在院 2-出院
|
|
|
$inOutFlag?: number
|