1178232204@qq.com 3 rokov pred
rodič
commit
0ce46487b4
3 zmenil súbory, kde vykonal 21 pridanie a 10 odobranie
  1. 7 9
      src/js/cdss.js
  2. 10 1
      src/js/cdssHorizontal.js
  3. 4 0
      src/js/util.js

+ 7 - 9
src/js/cdss.js

@@ -72,7 +72,6 @@ let planCode = getUrlArgObject('planCode') || 'all'
 let hospitalIdUrl = getUrlArgObject('hospitalId') || ''
 let msg;
 let treatDisName;
-
 function getMRInfo() {
   return post(config.getMr2, { mrId: mrId })
 }
@@ -463,7 +462,7 @@ function adjustHei() {
 }
 function isNeedPush(list) {
   let pass = false;
-  let pushCode = ['critical', "diag", "lis", "pacs", "symptom", "vital", "treat", "medicines", 'evaluation', 'general', 'medicine', 'operation', 'nurse']
+  let pushCode = ['critical', "diag", "lis", "pacs", "symptom", "vital", "treat", "medicines", 'evaluation', 'general', 'medicine', 'operation', 'nurse','maydiagnose','hasdiagnose']
   for (let i = 0; i < list.length; i++) {
     if (pushCode.indexOf(list[i].code) > -1) {
       if (list[i].status == "1") {
@@ -486,7 +485,7 @@ function isNeedwriteStandardPush(list) {
   return pass
 }
 function isNeedPushWarning(list) {
-  let pushCode = ["crivalue", "rationali", "highrisk", "otherremind"];
+  let pushCode = ["crivalue", "rationali", "highrisk", "otherremind", "nurse"];
   let pass = false;
   for (let i = 0; i < list.length; i++) {
     if (pushCode.indexOf(list[i].code.trim()) > -1) {
@@ -636,6 +635,7 @@ function renderNursePush(list) {
   return str
 }
 function renderBillingNursePush(list, showNum) {
+  console.log(list);
   if (list.length > 0 && $(".moduleItem.nurse").length > 0) {
     moduleNum++
     $('.moduleItem.nurse').append(titleStr("nursePush"))
@@ -1078,7 +1078,7 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush) {
   $(".maydiagnose  .box[data-index=" + indexNow + "]").find(".moduleCenter .centerBox").append(str)
   if ($(".maydiagnose .centerBox ul li").length == 0) {
     $(".maydiagnose .centerBox").hide()
-  }else{
+  } else {
     $(".maydiagnose .centerBox").show()
   }
   renderMayTreatPush(treatPush)
@@ -1132,7 +1132,7 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
   console.log($(".hasdiagnose  .centerBox ul li").length, 222);
   if ($(".hasdiagnose .centerBox ul li").length == 0) {
     $(".hasdiagnose .centerBox").hide()
-  }else{
+  } else {
     $(".hasdiagnose .centerBox").show()
   }
   renderHasTreatPush(treatPush)
@@ -1372,7 +1372,7 @@ function renderTab(tabList) {
   let showModuleName = $(".tabList .tab").eq(tabNum).attr("data-name")
   getModuleShow(moduleConfig[showModuleName])
   bindTabClick()
-  
+
 }
 
 function titleStr(type) {
@@ -1388,7 +1388,7 @@ function titleStr2(name) {
 
 function bindTabClick() {
   $(".tabList .tab").off("click").on("click", function () {
-    
+
     $(".activeTab").removeClass("activeTab")
     $(this).addClass("activeTab")
     const moduleName = $(this).attr("data-name")
@@ -1445,8 +1445,6 @@ function empty() {
     setTimeout(function () {
       const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
       const configShownBox = $('.recommendWrap .moduleItem:visible').length;
-      console.log(configShownBox,111);
-      console.log(configShownBox,222);
       if (configShownBox === 0 && emptyShownBox === 0) {       //有配置但没数据
         $('.empty-box').hide();
         $('.recommendBox .empty-null').show();

+ 10 - 1
src/js/cdssHorizontal.js

@@ -839,6 +839,11 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
   ${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
   </div>`
   $(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
+  if ($(".maydiagnose .centerBox ul li").length == 0) {
+    $(".maydiagnose .centerBox").hide()
+  } else {
+    $(".maydiagnose .centerBox").show()
+  }
   renderMayTreatPush(treatPush, inx)
   renderMayMedicinesPush(medicinesPush, inx)
   renderMayOperationsPush(operationsPush, inx)
@@ -889,6 +894,11 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
     ${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
   </div>`
   $(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
+  if ($(".hasdiagnose .centerBox ul li").length == 0) {
+    $(".hasdiagnose .centerBox").hide()
+  } else {
+    $(".hasdiagnose .centerBox").show()
+  }
   renderHasTreatPush(treatPush, inx)
   renderHasMedicinesPush(medicinesPush, inx)
   renderHasOperationsPush(operationsPush, inx)
@@ -1325,7 +1335,6 @@ function titleStr(type) {
 function bindSlide() {
   $(".showMore").off("click").on("click", function () {
     const longBox = $(this).parent().next().length ? $(this).parent().next() : $(this).parent().parent().next();
-    console.log(longBox);
     $(".longStrBox").css("display", "none")
     longBox.css("display", "block")
     let location = longBox.attr("data-location")

+ 4 - 0
src/js/util.js

@@ -57,6 +57,10 @@ function toggleWarnBox(text) {
         $(".warning-box").hide();
     }
 }
+require('./../images/toast-1.png').replace(/^undefined/g, '');
+require('./../images/toast-2.png').replace(/^undefined/g, '');
+require('./../images/toast-3.png').replace(/^undefined/g, '');
+require('./../images/toast-4.png').replace(/^undefined/g, '');
 (function () {
     $.extend({
         /****