Przeglądaj źródła

页面编辑新增的功能

xiaochan 2 lat temu
rodzic
commit
f0c461a6fb

+ 1 - 2
src/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrTest.vue

@@ -13,7 +13,6 @@
       <br>
     </div>
     <div class="describe">
-
       <el-button v-if="isEmr" type="primary" @click="copyOutcome('病理结果')">
         病理结果
       </el-button>
@@ -321,7 +320,7 @@ onMounted(async () => {
   dateRange.value = await currentAndAFewDaysAgo()
   await query()
   // todo 检验接口没有返回危急值。
-  let res = await getCriticalValueByPatInfo(patNo, times)
+  // let res = await getCriticalValueByPatInfo(patNo, times)
 })
 
 </script>

+ 13 - 0
src/utils/date.js

@@ -278,6 +278,19 @@ export const dateRangeAddTime = (val) => {
     }
 }
 
+export const getDateRange = (val) => {
+    if (XEUtils.isEmpty(val)) {
+        return {start: '', end: ''}
+    }
+    if (val.length === 2) {
+        let start = moment(val[0]).format(DATEFORMAT.DATE)
+        let end = moment(val[1]).format(DATEFORMAT.DATE)
+        return {start, end}
+    }
+
+    return {start: '', end: ''}
+}
+
 // 获取两个日期的时间差返回天数,使用moment
 export const getDateDiffToDay = (start, end) => {
     return moment(end).diff(moment(start), 'day')

+ 1 - 3
src/utils/request.js

@@ -13,9 +13,7 @@ const createAPopup = (message = '错误信息') => {
     }
     popUps = ElMessageBox.alert(message, '提示', {
         type: "error",
-    }).then(() => {
-        popUps = null
-    }).catch(() => {
+    }).finally(()=>{
         popUps = null
     })
 }

+ 2 - 1
src/views/settings/Test.vue

@@ -1,8 +1,9 @@
 <template>
-
+  <EmrTestV2 pat-no="0420929"/>
 </template>
 
 <script setup lang="ts">
+import EmrTestV2 from "@/components/zhu-yuan-yi-sheng/emr/auxiliary-tools/EmrTestV2.vue";
 
 
 </script>

Plik diff jest za duży
+ 3 - 3
src/views/utilities/page-editor-help/PageEditorHelp.vue


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików