1178232204@qq.com 3 éve
szülő
commit
2493a69c2a

+ 2 - 2
src/html/appealExamine.html

@@ -25,8 +25,8 @@
             <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 msg" value="${msg}" /></p>
-            <p class="item"><span class="title">分值:</span><input class="inp score"  value="${value}" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')"/></p>
-            <p class="item"><span class="title">备注:</span><input class="inp explainInfo"  value="${explainInfo}" maxlength="100" maxlength="255"/></p>
+            <p class="item"><span class="title">分值:</span><input class="inp score"  value="${value}" maxlength="100" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')"/></p>
+            <p class="item"><span class="title">备注:</span><input class="inp explainInfo"  value="${explainInfo}" maxlength="255"/></p>
         </div>
     </script>
 

+ 21 - 9
src/html/appealUserPage.html

@@ -1,5 +1,6 @@
 <!DOCTYPE html>
 <html lang="en">
+
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -138,7 +139,7 @@
     <script type="text/html" id="flawTmpl">
         <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"}}
+                {{if (exampleStatus==="0"||exampleStatus==="1"||exampleStatus==="2")}}
                 <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}}
@@ -158,7 +159,9 @@
                 {{/if}}
                 {{if exampleStatus!=="0"}}
                 <div class="oper fr">
+                    {{if onAppeal<"0"}}
                     <a class="edit-flaw blue" code="${id}" href="javascript:void(0);" style="margin-right: 18px;">申诉</a>
+                    {{/if}}
                 </div>
                 {{/if}}
             </div>
@@ -318,6 +321,7 @@
         </div>
     </script>
 </head>
+
 <body>
     <div class="main-part clearfix">
         <div class="sub-menu">
@@ -328,7 +332,9 @@
             <a href="javascript:void(0);" class="slide-show">
                 <img src="../images/down.png" alt="">
             </a>
-            <div class="copy-right"><p>©杭州朗通信息技术有限公司</p></div>
+            <div class="copy-right">
+                <p>©杭州朗通信息技术有限公司</p>
+            </div>
         </div>
         <div class="menu-mini fl">
             <div class="logo">
@@ -338,17 +344,22 @@
             <a href="javascript:void(0);" class="slide-hide">
                 <img src="../images/up.png" alt="">
             </a>
-           
+
         </div>
         <div class="tab-container clearfix">
             <div class="patient-info" id="patientInfo"></div>
             <p id="loading">加载中,请稍候 ...</p>
             <div class="flaw-table">
-                <iframe src="./nursing.html" frameborder="0" id="contentNursing" name="contentNursing" style="display: none;"></iframe>
-                <iframe src="./advice.html" frameborder="0" id="contentIframeIn" name="contentIframeIn" style="display: none;"></iframe>
-                <iframe src="./pacs.html" frameborder="0" id="pacsIframeIn" name="pacsIframeIn" style="display: none;"></iframe>
-                <iframe src="./assist.html" frameborder="0" id="assistIframeIn" name="assistIframeIn" style="display: none;"></iframe>
-                <iframe src="./pacsDetail.html" frameborder="0" id="pacsDetailIframeIn" name="pacsDetailIframeIn" style="display: none;"></iframe>
+                <iframe src="./nursing.html" frameborder="0" id="contentNursing" name="contentNursing"
+                    style="display: none;"></iframe>
+                <iframe src="./advice.html" frameborder="0" id="contentIframeIn" name="contentIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./pacs.html" frameborder="0" id="pacsIframeIn" name="pacsIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./assist.html" frameborder="0" id="assistIframeIn" name="assistIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./pacsDetail.html" frameborder="0" id="pacsDetailIframeIn" name="pacsDetailIframeIn"
+                    style="display: none;"></iframe>
             </div>
             <div class="content-box fl" id="contentInfo"></div>
             <div class="operation fr" id="flaws">
@@ -383,4 +394,5 @@
         </div>
     </div>
 </body>
-</html>
+
+</html>

+ 3 - 0
src/js/api.js

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

+ 3 - 3
src/js/appealCheck.js

@@ -317,7 +317,7 @@ getmoduleList()
 
 //获取模块类型
 function getmoduleList() {
-    post(api.getQcCasesAll).then(res => {
+    post(api.getAppealMode,{pageType:2}).then(res => {
         if (res.data.code == '0') {
             const moduleTypeList = res.data.data
             renderModuleList(moduleTypeList)
@@ -330,7 +330,7 @@ function getmoduleList() {
 function renderModuleList(moduleTypeList) {
     let str = `<li class="modularItem " data-id="" data-name="全部">全部</li>`
     for (let i = 0; i < moduleTypeList.length; i++) {
-        str += `<li class="modularItem ellipsis" title=${moduleTypeList[i].name} data-id=${moduleTypeList[i].id} data-name=${moduleTypeList[i].name}> ${moduleTypeList[i].name}</li>`
+        str += `<li class="modularItem ellipsis" title=${moduleTypeList[i].modeName} data-id=${moduleTypeList[i].modeId} data-name=${moduleTypeList[i].modeName}> ${moduleTypeList[i].modeName}</li>`
     }
     $('.modularList').html(str)
     bindModuleSelect()
@@ -425,7 +425,7 @@ $('.selectDept').on("click", function (e) {
 //获取科室列表
 getDeptList()
 function getDeptList() {
-    post(api.getDeptListDept, { inputStr: "" }).then(res => {
+    post(api.getAppealDept, { inputStr: "",pageType:2}).then(res => {
         if (res.data.code == '0') {
             const deptList = res.data.data
             rendeDeptList(deptList)

+ 3 - 4
src/js/appealHistory.js

@@ -36,7 +36,6 @@ let tabList = [], deptName = "", deptNameTemp = "", behosDateStart = "", behosDa
     fpCheckStatusTemp = "", fpCheckNameTemp = "", qcCheckNameTemp = "", state = "",
     global_checkers = [];    //审核人列表;
 let isPlacefile = getCookie('isPlacefile') || 1
-
 $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
 $('.iconCalen').on("mouseenter", function (e) {
     $(this).attr("src", iconCalenBlue)
@@ -214,7 +213,7 @@ getmoduleList()
 
 //获取模块类型
 function getmoduleList() {
-    post(api.getQcCasesAll).then(res => {
+    post(api.getAppealMode,{pageType:1}).then(res => {
         if (res.data.code == '0') {
             const moduleTypeList = res.data.data
             renderModuleList(moduleTypeList)
@@ -227,7 +226,7 @@ function getmoduleList() {
 function renderModuleList(moduleTypeList) {
     let str = `<li class="modularItem " data-id="" data-name="全部">全部</li>`
     for (let i = 0; i < moduleTypeList.length; i++) {
-        str += `<li class="modularItem ellipsis" title=${moduleTypeList[i].name} data-id=${moduleTypeList[i].id} data-name=${moduleTypeList[i].name}> ${moduleTypeList[i].name}</li>`
+        str += `<li class="modularItem ellipsis" title=${moduleTypeList[i].modeName} data-id=${moduleTypeList[i].modeId} data-name=${moduleTypeList[i].modeName}> ${moduleTypeList[i].modeName}</li>`
     }
     $('.modularList').html(str)
     bindModuleSelect()
@@ -543,7 +542,7 @@ $('.selectDept').on("click", function (e) {
 //获取科室列表
 getDeptList()
 function getDeptList() {
-    post(api.getDeptListDept, { inputStr: "" }).then(res => {
+    post(api.getAppealDept, { inputStr: "",pageType:1 }).then(res => {
         if (res.data.code == '0') {
             const deptList = res.data.data
             rendeDeptList(deptList)

+ 7 - 4
src/js/appealUserPage.js

@@ -38,9 +38,12 @@ $(function () {
   getAllModules();
   getCheckUser(); //获取审核人列表
   const form = getUrlArgObject("form");
+  const onAppeal = getCookie('checkAuth').indexOf('10')
   window.document.title = "质控申诉-" + getUrlArgObject("name");
   //新增申诉点击事件
-
+  if(onAppeal>0){
+    $(".add-flaw").hide()
+  }
   $(".add-flaw").click(function () {
     showModal('2');
   });
@@ -368,6 +371,7 @@ $(function () {
 
     $("#flaws .flaw-box").html("");
     for (let k in data) {
+      data[k][0].onAppeal = onAppeal
       $("#flawTmpl").tmpl(data[k]).appendTo("#flaws .flaw-box");
     }
     showFlawList();
@@ -427,7 +431,6 @@ $(function () {
   //新增申诉
   function addScore(info) {
     let param = {};
-    console.log(info);
     if (info.type === '1') {
       param = {
         "appealExplain": info.appealExec,
@@ -465,11 +468,11 @@ $(function () {
         //updateFlaws(res.data.data);
         $.alerModal({ "message": "申诉成功", type: "tip", win: true, time: '1000' });
       } else {
-        $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
+        $.alerModal({ "message": res.data.msg || '申诉失败,请重试~', type: "tip", win: 'default', time: '1000' });
 
       }
     }).catch(() => {
-      $.alerModal({ "message": "申诉失败,请重试~", type: "tip", win: 'default', time: '1000' });
+      $.alerModal({ "message": res.data.msg || '申诉失败,请重试~', type: "tip", win: 'default', time: '1000' });
 
     });
   }