소스 검색

再次申诉改为接口获取缺陷

1178232204@qq.com 3 년 전
부모
커밋
127282943b
5개의 변경된 파일37개의 추가작업 그리고 9개의 파일을 삭제
  1. 3 1
      src/html/appealUserPage.html
  2. 6 0
      src/html/qcScore.html
  3. 3 2
      src/js/api.js
  4. 23 4
      src/js/appealHistory.js
  5. 2 2
      src/js/qcScore.js

+ 3 - 1
src/html/appealUserPage.html

@@ -228,11 +228,13 @@
             <p><span>申诉人: </span> ${claimantName}</p>
             <p><span>审核人: </span> ${checkName}</p>
             <p><span>操作类型: </span> ${appealOperationType == 0 ? '删改条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</p>
+            <p><span>申诉说明: </span> ${appealExplain}</p>
+            {{if appealOperationType==='1'}}
             <p><span>质控条目:</span>${casesEntryName}</p>
             <p><span>提示信息:</span>${casesEntryMsg}</p>
             <p><span>分值:</span>${value}</p>
             <p><span>备注:</span>${appealRemark}</p>
-            <p><span>申诉说明: </span> ${appealExplain}</p>
+		  	{{/if}}
             {{if exampleStatus==='1'||exampleStatus==='2'}}
             <p class="check-item reject-item"><span>审核时间:</span>${appealExamineDate}</p>
             <p class="check-item reject-item"><span>审核人: </span> ${checkName}</p>

+ 6 - 0
src/html/qcScore.html

@@ -145,6 +145,12 @@
             <p><span>审核人: </span> ${checkName}</p>
             <p><span>操作类型: </span> ${appealOperationType == 0 ? '删改条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</p>
             <p><span>申诉说明: </span> ${appealExplain}</p>
+            {{if appealOperationType==='1'}}
+            <p><span>质控条目:</span>${casesEntryName}</p>
+            <p><span>提示信息:</span>${casesEntryMsg}</p>
+            <p><span>分值:</span>${value}</p>
+            <p><span>备注:</span>${appealRemark}</p>
+		  	{{/if}}
             {{if exampleStatus==='1'||exampleStatus==='2'}}
             <p class="line"></p>
             <p class="check-item reject-item"><span>审核时间:</span>${appealExamineDate}</p>

+ 3 - 2
src/js/api.js

@@ -223,8 +223,9 @@ const api = {
   getAppealReviewExport:'/qc/appealExamineInfo/getAppealReviewExport', //申诉审核导出
   getComplaintRecordExport:'/qc/appealExamineInfo/getComplaintRecordExport', //申诉记录导出
   getAppealReviewDictionary:'/qc/appealExamineInfo/getAppealReviewDictionary', //操作类型
-  getAppealDept:'/qc/appealInfo/getAppealDept ', //申诉科室
-  getAppealMode:'/qc/appealInfo/getAppealMode ', //申诉模块
+  getAppealDept:'/qc/appealInfo/getAppealDept', //申诉科室
+  getAppealMode:'/qc/appealInfo/getAppealMode', //申诉模块
+  getComplaintDetailMsg:'/qc/appealExamineInfo/getComplaintDetailMsg', //获取缺陷详情
 }
 const ywCheckApi = {
   addMedCheckInfo: '/qc/medCheckInfo/addMedCheckInfo',   //核查

+ 23 - 4
src/js/appealHistory.js

@@ -369,7 +369,6 @@ function renderTab(data) {
     })
     $(".appealAgain").click(function () {
         let i = $(this).parent().attr("data-index")
-        
         getCheckUser()
         getAppealOperationType(data[i])
     })
@@ -383,10 +382,10 @@ function renderTab(data) {
         $(parent.document).find("#contentIframe").attr("src", "appealExamine.html?id=" + id + "&hospitalId=" + hospitalId + "&behospitalCode=" + behospitalCode + "&casesEntryId=" + casesEntryId + "&qcresultDetailId=" + qcresultDetailId + "&appealOperationType=" + appealOperationType + "&page=" + page + "&form=" + 3)
     })
 }
-function getAppealOperationType(data) {
-    post(api.getAppealOperationType, { appealOperationType: data.appealOperationType, exampleStatus: data.exampleStatus, qcresultDetailId: data.qcresultDetailId }).then(function (res) {
+function getComplaintDetailMsg(data){
+    post(api.getComplaintDetailMsg, { behospitalCode: data.behospitalCode, casesEntryId: data.casesEntryId, id: data.qcresultDetailId }).then(function (res) {
         if (res.data.code === '0') {
-            data.appealOperationType = res.data.data.appealOperationType
+            data.qcresultDetailMsg = res.data.data.qcresultDetailMsg
             $("#delModal .modal-body").html("");
             $("#delModal").show();
             $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
@@ -402,6 +401,26 @@ function getAppealOperationType(data) {
 
     });
 }
+function getAppealOperationType(data) {
+    post(api.getAppealOperationType, { appealOperationType: data.appealOperationType, exampleStatus: data.exampleStatus, qcresultDetailId: data.qcresultDetailId }).then(function (res) {
+        if (res.data.code === '0') {
+            data.appealOperationType = res.data.data.appealOperationType
+            getComplaintDetailMsg(data)
+            // $("#delModal .modal-body").html("");
+            // $("#delModal").show();
+            // $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
+            // $("#delModal .confirm").text("确定").unbind("click").click(function () {
+            //     addAppealInfo(data)
+            // });
+        } else {
+            $.alerModal({ "message": res.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'warn' });
+
+        }
+    }).catch(() => {
+        $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
+
+    });
+}
 function cancelAppealInfo(id) {
     post(api.cancelAppealInfo, { id: id }).then(function (res) {
         if (res.data.code === '0') {

+ 2 - 2
src/js/qcScore.js

@@ -446,8 +446,8 @@ function editScore(info){
   const param={
     "behospitalCode": global_id,
     "optResultAlgVO": {
-      "reviewer":info.exampleStatus?reviewer:linkman,
-      "exampleDate":info.exampleStatus?exampleDate:gmtModified,
+      "reviewer":info.exampleStatus?info.reviewer:info.linkman,
+      "exampleDate":info.exampleStatus?info.exampleDate:info.gmtModified,
       ...info
     }
 };