Browse Source

电子病历优化

DESKTOP-MINPJAU\Administrator 3 years ago
parent
commit
fffc59c6e8

+ 1 - 43
src/api/zhu-yuan-yi-sheng/emr-api.js

@@ -42,21 +42,6 @@ export async function getEmrTree(patNo, times) {
     return returnValue
 }
 
-
-export function getTemplate(code) {
-    return service({
-        url: `template/${code}`,
-        method: 'get',
-    })
-}
-
-export function getPatientsEmr(patNo) {
-    return service({
-        url: `document/docs/patient/${patNo}`,
-        method: 'GET'
-    })
-}
-
 export async function getSnippet() {
     let data = await service({
         url: `snippet/list/tree`,
@@ -65,31 +50,4 @@ export async function getSnippet() {
     return getTree(data, '_id', 'parent')
 }
 
-export async function getDataByDocumentId(documentId) {
-    let data = await service({
-        url: `document/docs/data/${documentId}`,
-        method: 'get'
-    })
-    let returnData = {}
-    if (data) {
-        for (let key in data) {
-            let item = data[key].element
-            console.log(item.code)
-            if (item.code) {
-                if (item.code.business) {
-                    if (item.code.business === 'ward_round_time') {
-                        console.log('查房时间', item)
-                    }
-                }
-            }
-            // if (item.code && item.code.business && item.code.business === 'ward_round_time') {
-            //     if (item.value) {
-            //         returnData['查房时间' + item.value] = item.value
-            //     }
-            // }
-            // console.log(item);
-        }
-    }
-    console.log(returnData)
-    console.log(data);
-}
+

+ 1 - 4
src/components/xc/input-and-dialog/XcDiaLog.vue

@@ -36,9 +36,6 @@ let searchMethod = $ref([
   {code: 'name', name: '名称'},
 ])
 
-onMounted(() => {
-  console.log(data)
-})
 
 
 </script>
@@ -49,4 +46,4 @@ onMounted(() => {
   color: white;
 }
 
-</style>
+</style>

+ 1 - 2
src/components/zhu-yuan-yi-sheng/emr/EmrMain.vue

@@ -29,13 +29,12 @@ onMounted(() => {
       patNo: huanZheXinXi.value.inpatientNo,
       times: huanZheXinXi.value.admissTimes
     })
+
     getCurrentPersonnelInformation(patientData)
     patientId = huanZheXinXi.value.inpatientNo
     currentEmr.value = new EMRInteractive(patientData, editorEvents);
     emrRef.value.parentElement.emr = currentEmr.value
-
     window.addEventListener('beforeunload', monitorPageRefresh)
-
   })
 })
 

+ 1 - 1
src/components/zhu-yuan-yi-sheng/emr/EmrSidebar.vue

@@ -135,7 +135,7 @@ const diseaseDurationRecordTime = ({ward_round_time}) => {
 
 const queryData = () => {
   getEmrTree(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes).then((res) => {
-    if (res.patientTree) {
+    if (res.patientTree?.length > 0) {
       treeData = res.patientTree
       templateType = 2
     } else {

+ 0 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-init.js

@@ -34,8 +34,6 @@ export function EMRInteractive(data, endiorEvent) {
             // 默认值
             defaultData: data
         }
-        console.log(data)
-
         this.editor.execute("insertContents", insertContent);
     }
 

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -64,7 +64,7 @@
                 row-key="id"
                 @currentChange="handleCurrentChange"
                 @sizeChange="handleSizeChange"
-                :height="windowSize.h / 1.5"
+                :height="250"
                 @rowContextmenu="clickToViewTheDoctorSOrderFee"
                 @selectionChange="huoQuXuanZhongDeShuJu"
                 ref="tableRef">