瀏覽代碼

申述审核

1178232204@qq.com 3 年之前
父節點
當前提交
242e76d759
共有 5 個文件被更改,包括 23 次插入11 次删除
  1. 1 1
      src/css/appealExamine.less
  2. 1 1
      src/html/appealUserPage.html
  3. 0 3
      src/js/appealExamine.js
  4. 20 5
      src/js/appealUserPage.js
  5. 1 1
      src/js/roleManager.js

+ 1 - 1
src/css/appealExamine.less

@@ -129,7 +129,7 @@ h2 {
       margin: 0 5px;
     }
     .title {
-      width: 70px;
+      width: 80px;
       text-align: right;
       display: inline-block;
     }

+ 1 - 1
src/html/appealUserPage.html

@@ -139,7 +139,7 @@
         <div {{if isReject==='1'}} class="flaw-item high-light" {{else}} class="flaw-item" {{/if}} code="${modelName.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">
             <div  {{if isDeleted==="Y"}} class="delete title"{{else}}  class="title" {{/if}}>
                 {{if exampleStatus==="0"||exampleStatus==="1"||exampleStatus==="2"}}
-                <span data_id="${appealInfoId}" data_type="${exampleStatus}" class="btn ${exampleStatus==='0'?'appeal':exampleStatus==='2'?'examine':exampleStatus==='1'?'reject':''}" msg="${msg}">${exampleStatus==='0'?'申诉':exampleStatus==='2'?'审核':exampleStatus==='1'?'驳回':''}</span>
+                <span data_id="${appealInfoId}" data_type="${exampleStatus}"  data_casesEntryId="${casesEntryId}" data_qcresultDetailId="${id}"  class="btn ${exampleStatus==='0'?'appeal':exampleStatus==='2'?'examine':exampleStatus==='1'?'reject':''}" msg="${msg}">${exampleStatus==='0'?'申诉':exampleStatus==='2'?'审核':exampleStatus==='1'?'驳回':''}</span>
                 {{/if}}
                 {{if gradeType===2}}
                 <img {{if explainInfo}} title="${explainInfo}" {{/if}} src="../images/tag.png" alt=""/>

+ 0 - 3
src/js/appealExamine.js

@@ -248,15 +248,12 @@ function rejected() {
         console.log(res.data.data.code);
         if (res.data.data.code === '0') {
             $("#delModal").hide();
-            $("#anchor" + info.pageKeyList[0]).removeClass("active");
             $.alerModal({ "message": "驳回成功", type: "tip", time: '1000', win: true });
         } else {
             console.log(123);
             $.alerModal({ "message": res.data.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'default' });
-
         }
     }).catch(() => {
         $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
-
     });
 }

+ 20 - 5
src/js/appealUserPage.js

@@ -25,6 +25,7 @@ $(function () {
   let global_flawData = {};    //缺陷数据
   let global_flawDataPay = {};    //缺陷数据
   const global_id = getUrlArgObject("id");
+  const global_hid = getUrlArgObject("hid");
   let global_check;
   let global_check_home, global_check_show;
   const global_code = getUrlArgObject("code");
@@ -44,7 +45,7 @@ $(function () {
   function showAppealDetailEvent() {
     //申诉状态点击事件
     $(".flaw-item").off("click").on("click", ".title .btn", function () {
-      showModal("1", $(this).attr("data_id"), $(this).attr("data_type"));
+      showModal("1", $(this).attr("data_id"), $(this).attr("data_type"), $(this).attr("casesEntryId"),$(this).attr("qcresultDetailId"));
     });
   }
 
@@ -334,8 +335,10 @@ $(function () {
 
   //评分项数据填充
   function initScoreItem(data) {
+    
     $("#flaws .flaw-box").html("");
     for (let k in data) {
+      console.log(data[k]);
       $("#flawTmpl").tmpl(data[k]).appendTo("#flaws .flaw-box");
     }
     showFlawList();
@@ -437,8 +440,14 @@ $(function () {
     });
   }
 
-  function getAppealDetail(id, flg) {
-    const param = { id: +id, type: 1 };
+  function getAppealDetail(id, flg,casesEntryId,qcresultDetailId) {
+    const param = {
+      behospitalCode: global_id,
+      casesEntryId: casesEntryId,
+      hospitalId: global_hid,
+      qcresultDetailId: qcresultDetailId,
+      id: +id
+    };
     post(api.getApprovedView, param).then((res) => {
       const info = res.data.data.data || {};
       $("#appealStatusTmpl").tmpl(info).appendTo("#delModal .modal-body");
@@ -452,7 +461,7 @@ $(function () {
   }
 
   //申诉弹窗
-  function showModal(flag, code, i) {
+  function showModal(flag, code, i,id,qcresultDetailId) {
     $("#delModal .modal-body").html("");
     $("#delModal").show();
     //事件解绑
@@ -484,10 +493,12 @@ $(function () {
           return;
         }
       });
+      console.log(info);
       $("#delModal .confirm").unbind("click").click(function () {
         if ($(".edit-box .warning").is(":visible")) {
           return;
         }
+        
         const obj = {
           appealExplain: $("#delModal #qcInfo").val(),
           appealOperationType: 0,
@@ -497,6 +508,10 @@ $(function () {
           modeName: info.modelName,
           qcresultDetailId: info.id,
           workFlowNodeId: 1,
+          casesScore:info.casesScore,
+          casesEntryId:info.casesEntryId,
+          casesId:info.casesId,
+          isReject:info.isReject,
         };
         appealItem(obj);
       });
@@ -506,7 +521,7 @@ $(function () {
       $("#delModal .modal-box").css("margin-top", i === '0' ? "-161px" : (i === '1' ? "-225px" : '-305px'));
       //0申诉1驳回2审核
       //新增项模板
-      getAppealDetail(code, i);
+      getAppealDetail(code, i,id,qcresultDetailId);
     } else if (flag === '2') {   //新增
       $("#delModal .title").text("申诉新增");
       $("#delModal .modal-box").css("margin-top", "-281px");

+ 1 - 1
src/js/roleManager.js

@@ -112,7 +112,7 @@ $(function(){
             let grandParentId = $(this).parents(".mainSys").attr("data-menuId")
             let grandIndex = $(this).parents(".mainSys").attr("data-index")
             let tmpSelectData = null,tmpSelectDataOr=[];
-            if(grandParentId == 3||grandParentId == 2||grandParentId==17||grandParentId==18||grandParentId==61||grandParentId==69||grandParentId==72||grandParentId==100){//循环
+            if(grandParentId == 3||grandParentId == 2||grandParentId==17||grandParentId==18||grandParentId==61||grandParentId==69||grandParentId==72||grandParentId==81||grandParentId==100){//循环
                 // console.log(curData[grandIndex])
                 let tmpData = curData[grandIndex];
                 let tmpDataLis = curData[grandIndex].sonMenuDTOList;