yuwandanmian hace 1 año
padre
commit
a635e3119f
Se han modificado 2 ficheros con 89 adiciones y 24 borrados
  1. 65 0
      src/api/qc.js
  2. 24 24
      src/views/recordsRoom/qc/caseViews.vue

+ 65 - 0
src/api/qc.js

@@ -26,3 +26,68 @@ export function getCaseQuality(data) {
     data: data
     data: data
   })
   })
 }
 }
+
+// 病案室-病案详情-病历内容
+export function getCasePlatform(data) {
+  return request({
+    url: '/bl_zk/getCasePlatform',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getAllCase(data) {
+  return request({
+    url: '/bl_zk/getAllCase',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getLong(data) {
+  return request({
+    url: '/bl_zk/long',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getTemporary(data) {
+  return request({
+    url: '/bl_zk/temporary',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getPacsData(data) {
+  return request({
+    url: '/bl_zk/getPacsData',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getBcData(data) {
+  return request({
+    url: '/bl_zk/getBcData',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getHomeData(data) {
+  return request({
+    url: '/bl_zk/getHomeData',
+    method: 'post',
+    data: data
+  })
+}
+
+export function getSurgeryData(data) {
+  return request({
+    url: '/bl_zk/getSurgeryData',
+    method: 'post',
+    data: data
+  })
+}

+ 24 - 24
src/views/recordsRoom/qc/caseViews.vue

@@ -133,7 +133,7 @@ import NoFormatText from './components/NoFormatText.vue'
 import OutHospitalRecord from './components/OutHospitalRecord.vue'
 import OutHospitalRecord from './components/OutHospitalRecord.vue'
 import CaseQualityBox from './components/CaseQualityBox2.vue'
 import CaseQualityBox from './components/CaseQualityBox2.vue'
 import DeathText from './components/DeathText.vue'
 import DeathText from './components/DeathText.vue'
-import { getBlMenuList, getCaseQuality } from '@/api/qc'
+import { getBlMenuList, getCaseQuality, getCasePlatform, getAllCase, getLong, getTemporary, getPacsData, getBcData, getHomeData, getSurgeryData } from '@/api/qc'
 
 
 export default {
 export default {
   components: {
   components: {
@@ -256,7 +256,7 @@ export default {
   mounted() {
   mounted() {
     this.valData = localStorage.getItem('getData')
     this.valData = localStorage.getItem('getData')
     if (this.valData) {
     if (this.valData) {
-      // this.funQuery()
+      this.funQuery()
       this.getCaseQualityResults()
       this.getCaseQualityResults()
     }
     }
     this.getTree()
     this.getTree()
@@ -302,8 +302,8 @@ export default {
       if (this.$route.query.status) {
       if (this.$route.query.status) {
         params.is_tm = 1
         params.is_tm = 1
       }
       }
-      this.$axios.post('/medical_record', params).then(res => {
-        this.mainHomeData = res.data
+      getHomeData(params).then(res => {
+        this.mainHomeData = res.p
       })
       })
     },
     },
 
 
@@ -329,7 +329,7 @@ export default {
       } else if (b == 294) {
       } else if (b == 294) {
         that.is_active = event.target.id
         that.is_active = event.target.id
       } else if (b == 303) {
       } else if (b == 303) {
-        that.is_active = event.target.id
+        that.is_active = b
       } else {
       } else {
         that.is_active = b
         that.is_active = b
       }
       }
@@ -342,9 +342,9 @@ export default {
         if (this.$route.query.status) {
         if (this.$route.query.status) {
           params.is_tm = 1
           params.is_tm = 1
         }
         }
-        that.$axios.post('/getAllCase', params).then(res => {
-          that.text = res.data
-          that.dataObj = res.data
+        getAllCase(params).then(res => {
+          that.text = res.p
+          that.dataObj = res.p
           that.reload()
           that.reload()
         })
         })
       } else if (b == 292) {
       } else if (b == 292) {
@@ -356,8 +356,8 @@ export default {
         if (this.$route.query.status) {
         if (this.$route.query.status) {
           params.is_tm = '1'
           params.is_tm = '1'
         }
         }
-        that.$axios.post('/get_case_platform', params).then(res => {
-          this.admissionRecord = res.data
+        getCasePlatform(params).then(res => {
+          this.admissionRecord = res.p
         })
         })
       } else if (b == 1) {
       } else if (b == 1) {
         // 获取详情
         // 获取详情
@@ -368,8 +368,8 @@ export default {
         if (this.$route.query.status) {
         if (this.$route.query.status) {
           params.is_tm = 1
           params.is_tm = 1
         }
         }
-        that.$axios.post('/get_case_platform', params).then(res => {
-          this.outHospitalRecordData = res.data
+        getCasePlatform(params).then(res => {
+          this.outHospitalRecordData = res.p
         })
         })
       }
       }
       if (that.is_active == '长期医嘱') {
       if (that.is_active == '长期医嘱') {
@@ -380,8 +380,8 @@ export default {
         if (this.$route.query.status) {
         if (this.$route.query.status) {
           params.is_tm = 1
           params.is_tm = 1
         }
         }
-        that.$axios.post('/long', params).then(res => {
-          this.longAdvice = res.data
+        getLong(params).then(res => {
+          this.longAdvice = res.p
         })
         })
       }
       }
       if (that.is_active == '临时医嘱') {
       if (that.is_active == '临时医嘱') {
@@ -392,8 +392,8 @@ export default {
         if (this.$route.query.status) {
         if (this.$route.query.status) {
           params.is_tm = 1
           params.is_tm = 1
         }
         }
-        that.$axios.post('/temporary', params).then(res => {
-          this.happensAdvice = res.data
+        getTemporary(params).then(res => {
+          this.happensAdvice = res.p
         })
         })
       }
       }
       if (that.parentType == '2000002' && that.is_active != '') {
       if (that.parentType == '2000002' && that.is_active != '') {
@@ -411,8 +411,8 @@ export default {
           }
           }
         })
         })
 
 
-        that.$axios.post('/get_pacs_data', parm).then(res => {
-          this.pacsDetail = res.data
+        getPacsData(parm).then(res => {
+          this.pacsDetail = res.p
         })
         })
       }
       }
       // 病程记录
       // 病程记录
@@ -424,9 +424,9 @@ export default {
           if (this.$route.query.status) {
           if (this.$route.query.status) {
             parm.is_tm = 1
             parm.is_tm = 1
           }
           }
-          that.$axios.post('/get_bc_data', parm).then(res => {
-            that.caseRecodeInfo = res.data[0].bc_data
-            that.caseRecodeInfo.is_format = res.data[0].is_format
+          getBcData(parm).then(res => {
+            that.caseRecodeInfo = res.p[0].bc_data
+            that.caseRecodeInfo.is_format = res.p[0].is_format
           })
           })
         }
         }
       }
       }
@@ -439,9 +439,9 @@ export default {
           if (this.$route.query.status) {
           if (this.$route.query.status) {
             parm.is_tm = 1
             parm.is_tm = 1
           }
           }
-          that.$axios.post('/get_surgery_data', parm).then(res => {
-            that.surgeryData = res.data[0].surgery_data
-            that.surgeryData.is_format = res.data[0].is_format
+          getSurgeryData(parm).then(res => {
+            that.surgeryData = res.p[0].surgery_data
+            that.surgeryData.is_format = res.p[0].is_format
           })
           })
         }
         }
       }
       }