Bläddra i källkod

检验检查医嘱页面改为刷新模式

luolei 4 år sedan
förälder
incheckning
5578cc45da
4 ändrade filer med 24 tillägg och 10 borttagningar
  1. 6 3
      src/js/advice.js
  2. 6 0
      src/js/assist.js
  3. 6 0
      src/js/pacs.js
  4. 6 7
      src/js/qcScore.js

+ 6 - 3
src/js/advice.js

@@ -11,7 +11,6 @@ const iconUp = require("./../images/arrow_up.png")
 const arrowLeft= require("./../images/arrow_left.png")
 const arrowRight = require("./../images/arrow_right.png")
 let isPlacefile = getCookie('isPlacefile')||1
-
 const currentPage=$(window.parent.document).find(".menu .page.active").attr("code");
 if(currentPage==="YH-ZKK-TMQXZB_XQ"){
   $(".export").css("display","inline-block");
@@ -129,6 +128,12 @@ function bindDeptSelect(){
 }
 //缺陷类别展示切换
 $(".whichAdvice span").click(function(){
+    let type = $(this).attr("data-type")
+    if(type != adviceShow){
+        name = nameTemp = names = nameTemps = ''
+        setDatePicker($("#datepicker"),$("#datepicker2"),"default")
+        $(".moduleItemInp,.moduleItemInps").val('')
+    }
     adviceShow = $(this).attr("data-type")
     $(this).addClass("active").siblings("span").removeClass("active")
     getTabData(1)
@@ -420,7 +425,6 @@ function editItem(item,activePage){
                 $.alerModal({"message":"提示信息不能为空~",type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
                 return 
             }
-            
             saveEdit(itemCpoy,activePage)
             $("#mainBox .itemMsgBox .itemMsgInfoTips", parent.document).css("display","none")
             $('#mainBox .itemMsgBox', parent.document).remove()
@@ -507,7 +511,6 @@ function bindRejectSelect(){
         $('.selectReject').html(rejectItemName)
         $(".rejectList ").css("display", "none")
         $(".selectReject").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
-
     })
 }
 //是否启用选择

+ 6 - 0
src/js/assist.js

@@ -129,6 +129,12 @@ function bindDeptSelect(){
 }
 //缺陷类别展示切换
 $(".whichAdvice span").click(function(){
+    let type = $(this).attr("data-type")
+    if(type != adviceShow){
+        name = nameTemp = names = nameTemps = ''
+        setDatePicker($("#datepicker"),$("#datepicker2"),"default")
+        $(".moduleItemInp,.moduleItemInps").val('')
+    }
     adviceShow = $(this).attr("data-type")
     $(this).addClass("active").siblings("span").removeClass("active")
     getTabData(1)

+ 6 - 0
src/js/pacs.js

@@ -112,6 +112,12 @@ $(function(){
 })
 //缺陷类别展示切换
 $(".whichAdvice span").click(function(){
+    let type = $(this).attr("data-type")
+    if(type != adviceShow){
+        name = nameTemp = names = nameTemps = ''
+        setDatePicker($("#datepicker"),$("#datepicker2"),"default")
+        $(".moduleItemInp,.moduleItemInps").val('')
+    }
     adviceShow = $(this).attr("data-type")
     $(this).addClass("active").siblings("span").removeClass("active")
     getTabData(1)

+ 6 - 7
src/js/qcScore.js

@@ -101,21 +101,21 @@ function initMenu(data){
 function iframeShow(title){
   if(title === '医嘱信息'){
     $("#pacsIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
-    $("#contentIframeIn").css({display:'block'}).contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+    $("#contentIframeIn").css({display:'block'}).attr("src",'advice.html').contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     $(window).resize(function(){
-      $("#contentIframeIn").contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+      $("#contentIframeIn").attr("src",'advice.html').contents().find(".adviceWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     });
   }else if(title === '检验信息'){
     $("#contentIframeIn,#assistIframeIn,#pacsDetailIframeIn").css("display","none")
-    $("#pacsIframeIn").css({display:'block'}).contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+    $("#pacsIframeIn").css({display:'block'}).attr("src",'pacs.html').contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     $(window).resize(function(){
-      $("#pacsIframeIn").contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+      $("#pacsIframeIn").attr("src",'pacs.html').contents().find(".pacsWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     });
   }else if(title === '检查信息'){
     $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn").css("display","none")
-    $("#assistIframeIn").css({display:'block'}).contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+    $("#assistIframeIn").css({display:'block'}).attr("src",'assist.html').contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     $(window).resize(function(){
-      $("#assistIframeIn").contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
+      $("#assistIframeIn").attr("src",'assist.html').contents().find(".assistWrp").height(window.innerHeight-$("#patientInfo").height()-20+'px')
     });
   }else{
     $("#contentIframeIn,#pacsIframeIn,#pacsDetailIframeIn,#assistIframeIn").css({display:'none'})
@@ -741,7 +741,6 @@ function formatFlawKeys(data){
     });
   }
   function checkQc(){
-    console.log('global_activeTab',global_activeTab)
     const param={
       behospitalCode:getUrlArgObject("id"),
       hospitalId:getUrlArgObject("hid"),