Просмотр исходного кода

核查状态从接口获取(5539)

zhangxc 5 лет назад
Родитель
Сommit
0436fcdb76

+ 1 - 1
src/html/qcScore.html

@@ -42,7 +42,7 @@
         <span>科室:${behDeptName}</span>
         <span class="level">病历等级:${level}</span>
         <span class="score">病历得分:${scoreRes}</span>
-        <span class="check">${checkState==="1" ? "重新核查" : "核查"}</span>
+        <span class="check">${checkState===1 ? "重新核查" : "核查"}</span>
     </script>
     <script type="text/html" id="tableTmpl">
          {{if k==="出院诊断"}}

+ 3 - 3
src/js/qcList.js

@@ -280,8 +280,8 @@ function isTextCenter(name){
     return textCenterList.findIndex(item=> item==name) > -1
 }
 
-function scoreDetail(id,age,hid,code,name,checkStatus){
-    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}&checkStatus=${checkStatus}`)
+function scoreDetail(id,age,hid,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}`)
 }
 function bindScoreDetail(hisId){
     $('.patientNameSpan').on('click',function(e){
@@ -294,7 +294,7 @@ function bindScoreDetail(hisId){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name,checkStatus)
+            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name)
         }
        
     })

+ 3 - 3
src/js/qcListCopy.js

@@ -325,8 +325,8 @@ function isTextCenter(name){
     return textCenterList.findIndex(item=> item==name) > -1
 }
 
-function scoreDetail(id,age,hid,code,name,checkStatus){
-    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}&checkStatus=${checkStatus}`)
+function scoreDetail(id,age,hid,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}`)
 }
 function bindScoreDetail(hisId){
     $('.patientNameSpan').on('click',function(e){
@@ -339,7 +339,7 @@ function bindScoreDetail(hisId){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name,checkStatus)
+            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name)
         }
        
     })

+ 3 - 3
src/js/qcListDept.js

@@ -299,8 +299,8 @@ function isTextCenter(name){
     return textCenterList.findIndex(item=> item==name) > -1
 }
 
-function scoreDetail(id,age,code,name,checkStatus){
-    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}&checkStatus=${checkStatus}`)
+function scoreDetail(id,age,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}`)
 }
 function bindScoreDetail(){
     $('.patientNameSpan').on('click',function(e){
@@ -313,7 +313,7 @@ function bindScoreDetail(){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name,checkStatus)
+            scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name)
         }
        
     })

+ 3 - 3
src/js/qcListDocteam.js

@@ -279,8 +279,8 @@ function isTextCenter(name){
     return textCenterList.findIndex(item=> item==name) > -1
 }
 
-function scoreDetail(id,age,code,name,checkStatus){
-    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}&checkStatus=${checkStatus}`)
+function scoreDetail(id,age,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}`)
 }
 function bindScoreDetail(){
     $('.patientNameSpan').on('click',function(e){
@@ -293,7 +293,7 @@ function bindScoreDetail(){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name,checkStatus)
+            scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name)
         }
 
     })

+ 3 - 3
src/js/qcListOutHospital.js

@@ -331,8 +331,8 @@ function isTextCenter(name){
     return textCenterList.findIndex(item=> item==name) > -1
 }
 
-function scoreDetail(id,age,hid,code,name,checkStatus){
-    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}&checkStatus=${checkStatus}`)
+function scoreDetail(id,age,hid,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}`)
 }
 function bindScoreDetail(hisId){
     $('.patientNameSpan').on('click',function(e){
@@ -345,7 +345,7 @@ function bindScoreDetail(hisId){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name,checkStatus)
+            scoreDetail(id,age,hisId,'YH-BLZK-ZKPF',tabList[index].name)
         }
        
     })

+ 3 - 3
src/js/qcListPerson.js

@@ -300,8 +300,8 @@ function isTextCenter(name){
     return textCenterList.findIndex(item=> item==name) > -1
 }
 
-function scoreDetail(id,age,code,name,checkStatus){
-    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}&checkStatus=${checkStatus}`)
+function scoreDetail(id,age,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}`)
 }
 function bindScoreDetail(){
     $('.patientNameSpan').on('click',function(e){
@@ -314,7 +314,7 @@ function bindScoreDetail(){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,'YH-BLZK-ZKPFGR',tabList[index].name,checkStatus)
+            scoreDetail(id,age,'YH-BLZK-ZKPFGR',tabList[index].name)
         }
        
     })

+ 4 - 2
src/js/qcScore.js

@@ -12,7 +12,7 @@ $(function(){
   let global_flawData = {};    //缺陷数据
   const global_id=getUrlArgObject("id");
   const global_age = getUrlArgObject("age");
-  let global_check = getUrlArgObject("checkStatus");
+  let global_check;
   const global_code = getUrlArgObject("code");
   let global_activeTab=$(".sub-menu .page.active").attr("code");  //当前激活菜单项
   let global_modules ={};   //模板数据缓存
@@ -104,7 +104,8 @@ function getRecordDetail(){
     if(res.data.code==='0'){
       const data = res.data.data;
    
-      const {beHospital,result,msg} = data;
+      const {beHospital,result,msg,checkStatus} = data;
+      global_check = checkStatus
       const info=Object.assign(beHospital,result);
       initMenu(JSON.parse(result.menuData));
       // $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
@@ -122,6 +123,7 @@ function getRecordDetail(){
 
 //填充患者信息
 function initPatientInfo(data){
+  console.log('global_check',global_check)
   const obj=Object.assign({},data,{age:!global_age||global_age=="null"?"-":global_age,checkState:global_check});
   $("#infoTmpl").tmpl(obj).appendTo("#patientInfo");
   $(".check").on("click", function(){