浏览代码

4696/4697

luolei 5 年之前
父节点
当前提交
b70ff8da44
共有 2 个文件被更改,包括 7 次插入5 次删除
  1. 2 2
      src/css/abnormal.less
  2. 5 3
      src/js/abnormal.js

+ 2 - 2
src/css/abnormal.less

@@ -48,7 +48,7 @@
         th{
             font-size: 14px;
             font-weight: 500;
-            white-space: nowrap;
+            // white-space: nowrap;
         }
         th[code]{
             cursor: pointer;
@@ -71,7 +71,7 @@
         td{
             font-size: 14px;
             font-weight: 400;
-            white-space: nowrap;
+            // white-space: nowrap;
         }
         .moduleNumber{
             text-align: center;

+ 5 - 3
src/js/abnormal.js

@@ -123,7 +123,7 @@ function renderTab(data,hisId,activePage){
                 <td >${item.typeName || "-"}</td>
                 <td>${item.description || "-"}</td>
                 <td>${item.statusName || "-"}</td>
-                <td>${item.remark || "-"}</td>
+                <td style="width: 200px;">${item.remark || "-"}</td>
                 <td  class="textCenter">
                     <span data-index="${i}" style="opacity:${item.type==1&&item.description==''?'0.4':'1'};cursor:${item.type==1&&item.description==''?'no-drop':'pointer'};" data-type="1" data-des="${item.description}" data-mol="${item.type}" class="patientNameSpan">修改</span>
                     <span data-index="${i}" data-type="2" class="patientNameSpan patientNameSpans">删除</span>
@@ -135,6 +135,7 @@ function renderTab(data,hisId,activePage){
     bindScoreDetail(hisId)
 }
 function getQcAnnormalMode(item,type,mol,des){
+    console.log(type)
     post(api.getQcAnnormalMode,{'description':des}).then(res =>{
         if(res.data.code == '0'){
             const data = res.data.data;
@@ -163,10 +164,11 @@ function bindScoreDetail(hisId){
         const mol = $(this).attr("data-mol")
         const des = $(this).attr("data-des")||''
         const item = tabList[index]
-        if(item.type==1&&item.description==''){
+        console.log(item.type,item.description)
+        if(type==1&&item.type==1&&item.description==''){
             return
         }
-        if(type == 1&&mol&&mol==1){
+        if(mol&&mol == 1&&des){
             getQcAnnormalMode(item,type,mol,des)
         }else{
             midifyMsgBox(item,type,mol,des)