1178232204@qq.com 3 лет назад
Родитель
Сommit
bd4cbb499f

+ 3 - 3
src/css/appealHistory.less

@@ -495,15 +495,15 @@ input[type="number"] {
       overflow: hidden;
       text-overflow: ellipsis;
       white-space: nowrap;
-      float: left;
       display: inline-block;
+      vertical-align: middle;
     }
     .radio {
       margin: 0 5px;
     }
     .title {
       display: inline-block;
-      margin-right: 50px;
+      margin-right: 40px;
     }
     .inp {
       border: 1px solid #e2e5ef;
@@ -531,7 +531,7 @@ input[type="number"] {
     background-size: 13px 7px;
     position: absolute;
     left: 85%;
-    top: 26px;
+    top: 9px;
   }
 }
 ul {

+ 1 - 1
src/html/appealHistory.html

@@ -13,7 +13,7 @@
                 <span class="title">扣分:${qcresultDetaiValue}</span>
                 <span>操作类型:</span><span>${appealOperationType == 0 ? '删改条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</span>
             </p>
-            <p class="item"><span style="width:70px;text-align:right;float: left;">缺陷详情:</span><span title=${qcresultDetailMsg} class="msg">${qcresultDetailMsg}</span></p>
+            <p class="item"><span style="width:70px;text-align:right;">缺陷详情:</span><span title=${qcresultDetailMsg} class="msg">${qcresultDetailMsg}</span></p>
             <div class="drop-box checker-drop-box">
             <span style="width:70px;text-align:right;display:inline-block"><i class="required">*</i>审核人:</span>
                 <p class="checker-drop-input" code=${checkId}>${checkName}</p>

+ 1 - 1
src/html/appealUserPage.html

@@ -197,7 +197,7 @@
     </script>
     <script type="text/html" id="flawDropTmpl">
         {{each(i,it) info}}
-        <li idx="${i}" name="${it.entryName||it.userName}" code="${it.id}" title="${it.entryName||it.userName}">${it.entryName||it.userName}</li>
+        <li class="infoItem" idx="${i}" name="${it.entryName||it.userName}" code="${it.id}" title="${it.entryName||it.userName}">${it.entryName||it.userName}</li>
         {{/each}}
     </script>
     <script type="text/html" id="addFlawTmpl">

+ 1 - 1
src/html/qcScore.html

@@ -227,7 +227,7 @@
         <div class="edit-box">
             <p><span>质控条目: </span><input disabled type="text" class="ellipsis" title="${standardMsg}" value="${standardMsg}" /></p>
             <!--<p><span>模块名称: </span><input type="text" value="${modelName}" /></p>-->
-            <p><span>提示信息: </span><input id="qcMsg" class="ellipsis" type="text" title="${msg}" value="${msg}" /></p>
+            <p><span>提示信息: </span><input id="qcMsg" class="ellipsis" type="text" maxlength="100" title="${msg}" value="${msg}" /></p>
             <p><span style="margin-right: 8px">分值: </span> <input id="qcScore" type="text" value="${score}" /></p>
             <p><span>备注: </span><input id="qcInfo" class="ellipsis" type="text" title="${explainInfo}" value="${explainInfo}" autocomplete="off"/></p>
             <p class="warning"><span></span><span class="red">支持≥0的数字输入,最多保留小数点后1位~</span></p>

+ 15 - 4
src/js/appealHistory.js

@@ -333,7 +333,7 @@ $(document).on("click", ".checker-drop-input", (e) => {
     } else {
         $("#delModal ul").css("display", "none")
     }
-    
+
 });
 $(document).on("click", ".infoItem", (e) => {
     e.stopPropagation()
@@ -386,7 +386,7 @@ function renderTab(data) {
     })
     $(".appealAgain").click(function () {
         let i = $(this).parent().attr("data-index")
-        let item = JSON.parse(JSON.stringify(data[i])) 
+        let item = JSON.parse(JSON.stringify(data[i]))
         getAppealOperationType(item)
     })
     $(".goHomeDetail1").click(function () {
@@ -423,8 +423,19 @@ function getComplaintDetailMsg(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)
+            if (data.appealOperationType == '2') {
+                $("#delModal").show();
+                getCheckUser()
+                $("#delModal .modal-body").html("");
+                $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
+                $("#delModal .confirm").text("确定").unbind("click").click(function () {
+                    addAppealInfo(data)
+                });
+            } else {
+                data.appealOperationType = res.data.data.appealOperationType
+                getComplaintDetailMsg(data)
+            }
+
             // $("#delModal .modal-body").html("");
             // $("#delModal").show();
             // $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");

+ 1 - 1
src/js/appealInit.js

@@ -169,7 +169,7 @@ $(".filter").on("click", function(e){
     const fpCheckDateStartTime = new Date(fpCheckDateStart).getTime()
     const fpCheckDateEndTime = new Date(fpCheckDateEnd).getTime()
     if(behosDateStartTime > behosDateEndTime){
-        $.alerModal({"message":'院日期开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
+        $.alerModal({"message":'院日期开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
         return
     }
     if(qcCheckDateStartTime > qcCheckDateEndTime){

+ 25 - 9
src/js/appealUserPage.js

@@ -500,8 +500,8 @@ $(function () {
 
   //申诉弹窗
   function showModal(flag, code, i, id, qcresultDetailId) {
-    global_check_home = ''
-    global_check_show = '';
+    global_entryName = ''
+    global_casesEntryId = '';
     $("#delModal .modal-body").html("");
     $("#delModal").show();
     //事件解绑
@@ -555,7 +555,6 @@ $(function () {
         // if ($(".edit-box .warning").is(":visible")) {
         //   return;
         // }
-        console.log(123);
         const userId = $(".checker-drop-input").attr("code");
         const appealExec = $("#delModal #qcInfo").val();   //申诉说明
         if (!userId) {
@@ -676,25 +675,28 @@ $(function () {
         if (!userId) {
           $(".add-box .warning .red").text("请选择审核人~");
           $(".add-box .warning").show();
+          $('.modal-body').scrollTop(100);
           return;
         }
         //必填验证
         if (type === '1') {     //新增已有时
-
           if (!$(".flaw-drop-input").attr("code")) {
             $(".add-box .warning .red").text("请选择质控条目~");
             $(".add-box .warning").show();
+            $('.modal-body').scrollTop(100)
             return;
           }
           if ((!score) && $("#delModal #addQcScore").val() != '0') {
             $(".add-box .warning .red").text("分值不能为空~");
             $(".add-box .warning").show();
+            $('.modal-body').scrollTop(100)
             return;
           }
         }
         if (appealExec.length === 0) {
           $(".add-box .warning .red").text("申诉说明不能为空~");
           $(".add-box .warning").show();
+          $('.modal-body').scrollTop(100)
           return;
         }
         if (appealExec.length > 500) {
@@ -760,10 +762,10 @@ $(function () {
   }
   //审核人下拉事件
   function userDropEvent(domSelector, selectEvent) {
-    $("body").on("click", domSelector, function (e) {
-      e.stopPropagation()
-      $(domSelector).parents(".drop-box").toggleClass("show");
-    });
+    // $("body").on("click", domSelector, function (e) {
+    //   e.stopPropagation()
+    //   $(domSelector).parents(".drop-box").toggleClass("show");
+    // });
     $("body").on("click", ".checker-drop-box li", function () {
       $(".add-box .warning").hide();
       const n = $(this).attr("idx");
@@ -772,8 +774,22 @@ $(function () {
       $(domSelector).parents(".drop-box").removeClass("show");
     });
   }
+  $(document).on("click", ".checker-drop-input", (e) => {
+    e.stopPropagation()
+    const showList = $("#delModal .checker-drop-box ul").css("display")
+    if (showList == "none" || !showList) {
+      $("#delModal .checker-drop-box ul").css("display", "block")
+    } else {
+      $("#delModal .checker-drop-box ul").css("display", "none")
+    }
+
+  });
+  $(document).on("click", ".infoItem", (e) => {
+    e.stopPropagation()
+    $("#delModal .checker-drop-box ul").css("display", "none")
+  });
   $(document).on("click", function () {
-    $(".checker-drop-box").removeClass("show");
+    $("#delModal .checker-drop-box ul").css("display", "none")
 
   })
   //增加条目弹窗元素事件

+ 4 - 3
src/js/index.js

@@ -105,10 +105,12 @@ $(function () {
   if (isPlacefile == 0) {
     $(this).find('.qiehuan i').html('切换病案质控')
     $('.subtitle').html('AI运行质控平台')
+    getAuditNumber()
     getMenu()
   } else if (isPlacefile == 1) {
     $(this).find('.qiehuan i').html('切换运行质控')
     $('.subtitle').html('AI病案质控平台')
+    getAuditNumber()
     getMenu()
   }
   $(".header .title .qiehuan").click(function () {
@@ -123,6 +125,7 @@ $(function () {
       setCookie("isPlacefile", 1)
     }
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
+    getAuditNumber()
     getMenu();
   })
   $(".header .title .qiehuan").mouseenter(function () {
@@ -330,7 +333,6 @@ function userActionHide(e) {
 }
 window.userActionHide = userActionHide
 //获取待审核数量
-getAuditNumber()
 function getAuditNumber() {
   return post(api.getAuditNumber, {}).then(res => {
     if (res.data.code == '0') {
@@ -470,15 +472,14 @@ function getMenu() {
           }
         }
       }
+      
       initMenu(data.menuWrappers, data.userLoginDTO);
       userInfo = data.userLoginDTO
       setCookie("hospital", data.basHospitalInfoDTO.name)
       setCookie("hospitalid", data.basHospitalInfoDTO.id)
       getAllCode(data.menuWrappers);
       for (let i = 0; i < data.menuWrappers.length; i++) {
-        console.log(isPlacefile);
         if (isPlacefile === '0' && data.menuWrappers[i].code === 'YH-ZKHC') {
-          console.log(123);
           $(".menuList .YH-ZKHC").hide()
           $(".menu-mini .YH-ZKHC").hide()