Browse Source

添加 首次质控缺陷和评分的记录展示

yangdr 5 months ago
parent
commit
fc15fffebe
5 changed files with 553 additions and 251 deletions
  1. 489 244
      src/css/qcScore.less
  2. 4 0
      src/html/qcScore.html
  3. 4 3
      src/js/api.js
  4. 17 1
      src/js/qcList.js
  5. 39 3
      src/js/qcScore.js

File diff suppressed because it is too large
+ 489 - 244
src/css/qcScore.less


+ 4 - 0
src/html/qcScore.html

@@ -46,6 +46,10 @@
         <span>科室:${behDeptName}</span>
         <span class="level">病历等级:${level}</span>
         <span class="score">病历得分:${scoreRes}</span>
+        <span class="first">
+            <span class="text">首次质控缺陷和评分</span>
+            <div class="detail"></div>
+        </span>
         {{if showCheckBtns}}
         <span class="ywCheck">${checkState===1 ? "重新核查" : "完成核查"}</span>
         {{/if}}

+ 4 - 3
src/js/api.js

@@ -25,7 +25,7 @@ const api = {
   recordScore: '/qc/behospitalInfo/analyze',
   getInfoModule: '/qc/module/getById',
   getDeptList: '/bas/dept/getList',
-  getTimelinessList:'/bas/dept/getTimelinessList',
+  getTimelinessList: '/bas/dept/getTimelinessList',
   getDeptA: '/console/TimelinessReportA',
   getDeptB: '/console/TimelinessReportB',
   getDeptListUser: '/bas/dept/listForUser',
@@ -95,7 +95,7 @@ const api = {
   exportDeptFlawsTz: '/console/export/levelExport_TZ', //各科室缺陷占比导出-台州
   exportIndexQualified: '/console/export/homePageLevelExport', //病案首页合格率占比导出
   exportItemFlaw: '/console/export/entryGroupByEntryExport', //条目缺陷占比导出
-  
+
   entryRejectPercent: '/console/entryRejectPercent', //单项否决占比
   qcResultLevelPercent: '/console/qcResultLevelPercent', //各科室甲乙丙级占比
   qcResultDefectList: '/console/qcResultShortPage', //条目缺陷质控评分
@@ -192,7 +192,8 @@ const api = {
   levelStatisticsByDeptPage: '/consoleByDept/levelStatisticsByDeptPage',//科室缺陷列表 七院
   levelStatisticsExportByDept: '/print/export/levelStatisticsExportByDept',//科室缺陷列表导出 七院
 
-  sendRuleWarn: "/qc/behospitalInfo/sendRuleWarn" // 发送入院记录
+  sendRuleWarn: "/qc/behospitalInfo/sendRuleWarn",// 发送入院记录
+  getQcFirstAnalyze: "/qc/casesEntryHospital/getQcFirstAnalyze" //首次质控缺陷和评分
 }
 const ywCheckApi = {
   addMedCheckInfo: '/qc/medCheckInfo/addMedCheckInfo',   //核查

+ 17 - 1
src/js/qcList.js

@@ -1222,4 +1222,20 @@ function bindSaveColPort(param) {
             downloadExportedData(res.data, behosDateStart.slice(0, 10).replace(/-/g, "") + "-" + behosDateEnd.slice(0, 10).replace(/-/g, "") + "抽查住院病历质量情况.xls")
         })
     })
-}
+}
+
+function getQcFirstAnalyze() {
+    post(api.getQcFirstAnalyze, {
+        "behospitalCode": behospitalCode,
+        "hospitalId": "",
+        "isPlacefile": isPlacefile,
+    }).then(res => {
+        console.log("getQcFirstAnalyze", res)
+    }).catch(err => {
+
+    })
+}
+$(document).on("click", ".patient-info .first .text", function (event) {
+    event.stopPropagation()
+    $(".patient-info .first .detail").slideToggle()
+})

+ 39 - 3
src/js/qcScore.js

@@ -44,6 +44,7 @@ $(function () {
   let global_modules = {}; //模板数据缓存
   let global_flaws = []; //缺陷条目列表缓存
   let global_selectedFlaw = {}; //新增时选中的条目信息
+  let qcFirstAnalyzeData = {} //首次质控缺陷和评分的数据
   getAllModules();
   let showCheckBtns = true;
   window.document.title = (showCheckBtns ? "质控核查-" : "质控评分-") + getUrlArgObject("name");
@@ -212,14 +213,14 @@ $(function () {
       if (res.data.code === '0' && res.data.data === true) {
         this_flaw.text("已发送")
         this_flaw.off('click')
-          $("#delModal").hide();
+        $("#delModal").hide();
       }
 
     }).catch(err => {
       console.error('发送警告失败:', err);
-    })    
+    })
   }
-    //获取病例明细
+  //获取病例明细
   function getRecordDetail() {
     post(api.getRecordDetail, {
       'behospitalCode': global_id
@@ -1145,5 +1146,40 @@ $(function () {
       }
     });
   }
+  // 获取首次质控缺陷和评分的数据
+  function getQcFirstAnalyze() {
+    if ($(".patient-info .first .detail").css('display') == 'none') return;
+    post(api.getQcFirstAnalyze, {
+      "behospitalCode": global_id,
+    }).then(res => {
+      console.log("getQcFirstAnalyze", res)
+
+      const { code, msg, data } = res.data
+      if (code == '0') {
+        qcFirstAnalyzeData = data
+      }
+    }).catch(err => {
+      console.log("getQcFirstAnalyze接口错误", err)
+    })
+  }
+  getQcFirstAnalyze()
+  $(document).on("click", "body", function () {
+    $(".patient-info .first .detail").slideUp()
+  })
+  $(document).on("click", ".patient-info .first .text", function (event) {
+    // console.log("event", event)
+    event.stopPropagation()
+    $(".patient-info .first .detail").on("click", function (event) {
+      event.stopPropagation()
+    })
+    $(".patient-info .first .detail").slideToggle()
+    $(".patient-info .first .detail").empty()
+    let data = qcFirstAnalyzeData
+    let str = `<p> 病历等级:${data.level} &nbsp;病历得分:${data.scoreRes}</p>`
+    data.msg.forEach((el, index) => {
+      str += `<p>${index}:${el}</p>`
+    })
+    $(".patient-info .first .detail").html(str)
 
+  })
 });