ソースを参照

核查完状态修改

zhangxc 5 年 前
コミット
50d956def6
2 ファイル変更5 行追加2 行削除
  1. 1 1
      src/js/qcList.js
  2. 4 1
      src/js/qcScore.js

+ 1 - 1
src/js/qcList.js

@@ -281,7 +281,7 @@ function isTextCenter(name){
 }
 
 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}`)
+    window.open(`./qcScore.html?id=${id}&age=${age}&name=${name}&hid=${getCookie('hospitalid')}&code=${code}&checkStatus=${checkStatus}`)
 }
 function bindScoreDetail(hisId){
     $('.patientNameSpan').on('click',function(e){

+ 4 - 1
src/js/qcScore.js

@@ -12,7 +12,7 @@ $(function(){
   let global_flawData = {};    //缺陷数据
   const global_id=getUrlArgObject("id");
   const global_age = getUrlArgObject("age");
-  const global_check = getUrlArgObject("checkStatus");
+  let global_check = getUrlArgObject("checkStatus");
   const global_code = getUrlArgObject("code");
   let global_activeTab=$(".sub-menu .page.active").attr("code");  //当前激活菜单项
   let global_modules ={};   //模板数据缓存
@@ -631,7 +631,10 @@ function formatFlawKeys(data){
     };
     post(api.checkQc,param).then((res)=>{
       if(res.data.code==='0') {
+        global_check = 1
+        $(".check").text("重新核查")
         $.alerModal({"message":`<div class="checkTipsBox"><img class="checkImg" src=${checkOk}><p class="checkTxt">审核成功</p></div>`,type:"tip",time:'1000',isFather: true, fatherWrapper: $(".flaw-table", parent.document)});
+       
       }else{
         $.alerModal({"message":'核查失败',type:"tip",time:'1000',isFather: true, fatherWrapper: $(".flaw-table", parent.document)});
       }