1178232204@qq.com před 3 roky
rodič
revize
8ee697a627

+ 4 - 4
src/html/appealExamine.html

@@ -14,9 +14,9 @@
                 <input type="radio" name="status" value="1" class="radio" />修改
             </div>
             <p class="item"><span class="title">质控条目:</span><input class="inp" disabled value="${casesEntryName}" /></p>
-            <p class="item"><span class="title">提示信息:</span><input class="inp case endis" disabled value="${casesEntryMsg}" /></p>
+            <p class="item"><span class="title">提示信息:</span><input class="inp case endis" disabled value="${msg}" /></p>
             <p class="item"><span class="title">分值:</span><input class="inp endis score" disabled value="${score}" /></p>
-            <p class="item"><span class="title">备注:</span><input class="inp endis msg" disabled value="${msg}"/></p>
+            <p class="item"><span class="title">备注:</span><input class="inp endis explainInfo" disabled value="${explainInfo}"/></p>
         </div>
     </script>
 
@@ -24,9 +24,9 @@
         <div class="appeal-box">
             <p class="item"><span class="title">处理方式:</span>新增</p>
             <p class="item"><span class="title">质控条目:</span><input class="inp" disabled value="${casesEntryName}" /></p>
-            <p class="item"><span class="title">提示信息:</span><input class="inp" value="${casesEntryMsg}" /></p>
+            <p class="item"><span class="title">提示信息:</span><input class="inp" value="${msg}" /></p>
             <p class="item"><span class="title">分值:</span><input class="inp score"  value="${score}" /></p>
-            <p class="item"><span class="title">备注:</span><input class="inp msg"  value="${msg}"/></p>
+            <p class="item"><span class="title">备注:</span><input class="inp explainInfo"  value="${explainInfo}"/></p>
         </div>
     </script>
 

+ 8 - 7
src/js/appealExamine.js

@@ -58,15 +58,16 @@ function getApprovedView() {
                     casesEntryMsg: data.casesEntryMsg,
                     remark: data.remark,
                     behospitalCode: data.behospitalCode,
-                    casesScore: appealExamineRecordDTOList[0].casesScore,
-                    msg: appealExamineRecordDTOList[0].msg,
-                    score: appealExamineRecordDTOList[0].qcresultDetaiValue,
-                    isReject: appealExamineRecordDTOList[0].isReject,
                     qcResultAlgVO: {
                         casesEntryId: casesEntryId,
                         casesId: data.casesId,
                         id: data.qcresultDetailId,
-                        exampleOperation: appealOperationType
+                        exampleOperation: appealOperationType,
+                        casesScore: appealExamineRecordDTOList[0].casesScore,
+                        msg: appealExamineRecordDTOList[0].msg,
+                        score: appealExamineRecordDTOList[0].qcresultDetaiValue,
+                        isReject: appealExamineRecordDTOList[0].isReject,
+                        explainInfo:appealExamineRecordDTOList[0].explainInfo,
                     }
                 }
             getInfo(data)
@@ -222,12 +223,12 @@ function approved(type) {
         } else {
             appealInfo.casesEntryMsg == $(".case").val()
             appealInfo.score = $('.score').val()
-            appealInfo.msg = $('.msg').val()
+            appealInfo.msg = $('.explainInfo').val()
         }
     } else if (type == 2) {
         appealInfo.exampleOperation = 3
         appealInfo.score = $('.score').val()
-        appealInfo.msg = $('.msg').val()
+        appealInfo.explainInfo = $('.explainInfo').val()
     } else if (type == 3) {
         appealInfo.exampleOperation = 4
         appealInfo.processResult = $(".textarea").val()

+ 13 - 10
src/js/appealHistory.js

@@ -1,3 +1,4 @@
+
 const $ = require('jquery');
 require("../css/appealHistory.less");
 require('./modal.js');
@@ -277,7 +278,7 @@ function renderTab(data) {
                 <td >${item.exampleStatus == 0 ? '<span class="review"><i></i>待审核</span>' : item.exampleStatus == 1 ? '<span class="rejected"><i></i>已驳回</span>' : '<span class="approved"><i></i>审核通过</span>'}</td>
                 <td data-id="${item.id || ""}" data-hos="${item.hospitalId || ""}" data-behospitalCode="${item.behospitalCode || ""}" data-casesEntryId="${item.casesEntryId || ""}" data-qcresultDetailId="${item.qcresultDetailId || ""}" data-appealOperationType="${item.appealOperationType || ""}" data-index=${i}>
                     ${item.exampleStatus == 0 ? `<span class="appealBtn goHomeDetail1">查看</span><span class="appealBtn withdraw" >撤回</span>` : ''}
-                    ${item.exampleStatus == 1 || item.exampleStatus == 2 ? `<span class="appealBtn appealAgain">再次申</span>` : ''}
+                    ${item.exampleStatus == 1 || item.exampleStatus == 2 ? `<span class="appealBtn appealAgain">再次申</span>` : ''}
                 </td>
             </tr>
         `
@@ -293,6 +294,15 @@ function renderTab(data) {
         $("#delModal .modal-body").html("");
         $("#delModal").show();
         getCheckUser()
+        if (data[i].appealOperationType == 1) {
+            if (data[i].exampleStatus == 2) {
+                data[i].appealOperationType = 0
+            } else {
+                data[i].appealOperationType = 1
+            }
+        } else if (data[i].appealOperationType == 3) {
+            data[i].appealOperationType = 0
+        }
         $("#appealDef").tmpl(data[i]).appendTo("#delModal .modal-body");
         $("#delModal .confirm").text("确定").unbind("click").click(function () {
             addAppealInfo(data[i])
@@ -326,15 +336,7 @@ function cancelAppealInfo(id) {
 
 //再次申述
 function addAppealInfo(data) {
-    if (data.appealOperationType == 1) {
-        if (data.exampleStatus == 2) {
-            data.appealOperationType = 0
-        } else {
-            data.appealOperationType = 1
-        }
-    } else if (data.appealOperationType == 3) {
-        data.appealOperationType = 0
-    }
+    
     $(".warning").hide();
     let val = $(".textarea").val()
     let num = 500
@@ -353,6 +355,7 @@ function addAppealInfo(data) {
         behospitalCode: data.behospitalCode,
         checkId: $(".checker-drop-input").attr("code"),
         appealType: 1,
+        qcresultDetailId:data.qcresultDetailId,
     }
     post(api.addAppealInfo, param).then(function (res) {
         if (res.data.code === '0') {

+ 25 - 16
src/js/appealUserPage.js

@@ -369,6 +369,7 @@ $(function () {
       const i = $(".flaw-item[code=" + global_activeTab + "]").index($(this).parents(".flaw-item"));
       const code = $(this).attr("code");
       showModal('0', code, i);  //申诉
+
       //审核人下拉渲染
       $("#delModal .checker-drop-box ul").html("");
       $("#flawDropTmpl").tmpl({ info: global_checkers }).appendTo("#delModal .checker-drop-box ul");
@@ -435,10 +436,10 @@ $(function () {
         "modeName": info.modelName,
         "remark": info.explainInfo,
         "value": info.score,
-        "casesScore":info.casesScore,
-        "score":info.score,
-        "msg":info.msg,
-        "isReject":info.isReject,
+        "casesScore": info.casesScore,
+        "score": info.score,
+        "msg": info.msg,
+        "isReject": info.isReject,
       };
     } else {
       param = {
@@ -453,19 +454,19 @@ $(function () {
       };
     }
 
-    post(api.addAppealInfo, param).then(function (res) {
-      if (res.data.code === '0') {
-        $("#delModal").hide();
-        //updateFlaws(res.data.data);
-        $.alerModal({ "message": "申诉成功", type: "tip", win: true, time: '1000' });
-      } else {
-        $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
+    // post(api.addAppealInfo, param).then(function (res) {
+    //   if (res.data.code === '0') {
+    //     $("#delModal").hide();
+    //     //updateFlaws(res.data.data);
+    //     $.alerModal({ "message": "申诉成功", type: "tip", win: true, time: '1000' });
+    //   } else {
+    //     $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
 
-      }
-    }).catch(() => {
-      $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
+    //   }
+    // }).catch(() => {
+    //   $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
 
-    });
+    // });
   }
 
   function getAppealDetail(id, flg, casesEntryId, qcresultDetailId) {
@@ -522,6 +523,15 @@ $(function () {
           return;
         }
       });
+      if (info.appealOperationType == 1) {
+        if (info.exampleStatus == 2) {
+          info.appealOperationType = 0
+        } else {
+          info.appealOperationType = 1
+        }
+      } else if (info.appealOperationType == 3) {
+        info.appealOperationType = 0
+      }
       $("#delModal .confirm").unbind("click").click(function () {
         if ($(".edit-box .warning").is(":visible")) {
           return;
@@ -548,7 +558,6 @@ $(function () {
       $("#delModal .modal-box").css("margin-top", '-245px');
       //0申诉1驳回2审核
       //新增项模板
-      console.log(qcresultDetailId);
       getAppealDetail(code, i, id, qcresultDetailId);
     } else if (flag === '2') {   //新增
       $("#delModal .title").text("申诉新增");