Jelajahi Sumber

电子病历恢复

DESKTOP-0GD05B0\Administrator 2 tahun lalu
induk
melakukan
7b2c0bbe9c

+ 18 - 0
src/api/zhu-yuan-yi-sheng/emr-patient.js

@@ -109,3 +109,21 @@ export function getEmrAllWardsApi() {
         method: 'get',
     })
 }
+
+
+export function getDeleteMedicalRecord(patNo) {
+    return request({
+        url: url + 'getDeleteMedicalRecord',
+        method: 'get',
+        params: {patNo}
+    })
+}
+
+
+export function resumeMedicalRecords(documentId) {
+    return request({
+        url: url + 'resumeMedicalRecords',
+        method: 'get',
+        params: {documentId}
+    })
+}

+ 0 - 1
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -420,7 +420,6 @@ const xuanZhongFeiYong = async (row, laiyuan = 1) => {
     // 判断这个是不是 新添加的数据 如果是空的就是 新数据
     let serverDate = await getServerDateApi()
 
-
     if (!yiZhuData.value.orderTime) {
       yiZhuData.value.orderTime = serverDate
     }

+ 3 - 2
src/layout/PageLayer.vue

@@ -22,7 +22,7 @@
 </template>
 
 <script setup name='PageLayer' lang="ts">
-import {onMounted, Ref, ref, useSlots} from "vue";
+import {nextTick, onMounted, Ref, ref, useSlots} from "vue";
 import {getVisibleSize, visibleWindowSize} from "../utils/window-size.js"
 import {$ref} from "vue/macros";
 
@@ -43,7 +43,8 @@ getVisibleSize((val) => {
   heightRef = val.height - headerRef.value?.$el?.clientHeight
 })
 
-onMounted(() => {
+onMounted(async () => {
+  await nextTick()
   let val = visibleWindowSize.value
   let clientHeight = (val.height - headerRef.value?.$el.clientHeight) + 'px'
   mainStyleSize = {

+ 57 - 0
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/ResumeMedicalRecords.vue

@@ -1,8 +1,65 @@
 <template>
+  <page-layer>
+    <template #header>
+      <el-input v-model="patNo" style="width: 120px"/>
+      <el-button type="primary" @click="queryData">查询</el-button>
+      <el-button type="success" @click="recovery" :disabled="!rowData.id">恢复</el-button>
+    </template>
 
+    <template #aside>
+      <xc-table :local-data="deleteData"
+                :height="200"
+                @rowClick="rowClick"
+                layout="total,prev, pager, next">
+        <el-table-column label="名称" prop="emrName"/>
+        <el-table-column label="创建时间" prop="createDate">
+          <template #default="{row}">
+            <span v-html="huanHangXianShi(row.createDate)"/>
+          </template>
+        </el-table-column>
+      </xc-table>
+    </template>
+
+    <template #main>
+
+    </template>
+
+  </page-layer>
 </template>
 
 <script setup name='ResumeMedicalRecords'>
+import {getDeleteMedicalRecord, resumeMedicalRecords} from "@/api/zhu-yuan-yi-sheng/emr-patient";
+import PageLayer from "@/layout/PageLayer.vue";
+import {huanZheXinXi} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
+import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
+import {huanHangXianShi} from "@/utils/date";
+
+const deleteData = ref([])
+const patNo = ref('')
+const rowData = ref({})
+const queryData = () => {
+  if (!patNo.value) return
+  getDeleteMedicalRecord(patNo.value).then((res) => {
+    deleteData.value = res
+  })
+}
+
+const recovery = () => {
+  resumeMedicalRecords(rowData.value.emrDocumentId).then((res) => {
+    console.log(res)
+  })
+  console.log(rowData.value)
+}
+
+const rowClick = (val) => {
+  rowData.value = val
+}
+
+watch(() => huanZheXinXi.value.inpatientNo, () => {
+  patNo.value = huanZheXinXi.value.inpatientNo
+  queryData()
+})
+
 
 </script>
 

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng.js

@@ -164,7 +164,7 @@ export const tempYzData = computed(() => {
         } else if (queryParam.value.zhuangTai === 5) {
             zhuangTai = item.statusFlag === '5'
         }
-        return flag && frequFlag && zhuangTai;
+        return flag && frequFlag && zhuangTai && item.selfBuy !== '4';
     })
 })