Просмотр исходного кода

缺陷总览链接、病案首页加字段

zhouna 5 лет назад
Родитель
Сommit
2680627705
4 измененных файлов с 25 добавлено и 5 удалено
  1. 3 0
      src/css/qcScore.less
  2. 1 0
      src/css/reset.less
  3. 7 5
      src/html/qcScore.html
  4. 14 0
      src/js/qcScore.js

+ 3 - 0
src/css/qcScore.less

@@ -728,6 +728,9 @@
     }
   }
 }
+.high-light{
+  background: @highlighBg;
+}
 .scroll-table{
   thead,tbody{
     display: block;

+ 1 - 0
src/css/reset.less

@@ -140,6 +140,7 @@ textarea {
 @tableBorderColor:#E2E5EF;  /**表格边框**/
 @disColor:#EFF1F6;  /**背景颜色**/
 @trHeight:30px;   /**表格行高**/
+@highlighBg:#F4C9C3;/**单选否决高亮**/
 .h2{
   width: 100%;
   /*box-sizing: border-box;*/

+ 7 - 5
src/html/qcScore.html

@@ -70,6 +70,7 @@
                          <tr>
                              <th>出院诊断</th>
                              <th>疾病编码</th>
+                             <th>入院病情</th>
                              <th>出院病情</th>
                          </tr>
                          {{each(i,v) data}}
@@ -78,6 +79,7 @@
                              <td>${诊断名称}</td>
                              <td>${诊断编码}</td>
                              <td>${入院情况}</td>
+                             <td>${出院情况}</td>
                          </tr>
                          {{/if}}
                          {{/each}}
@@ -91,7 +93,7 @@
                      </table>
                  </td>
              </tr>
-             <tr><td colspan="2" class="table-tip">出院病情:1、"治愈"  2、"好转"  3、"未愈"  4、"死亡"  9、"其它"</td></tr>
+             <tr><td colspan="2" class="table-tip">出院病情:1、"治愈"  2、"好转"  3、"未愈"  4、"死亡"  9、"其它"<br/>入院病情:1、"有" 2、"临床未确定" 3、"情况不明" 4、"无"</td></tr>
          </table>
          {{else}}
              <table>
@@ -132,9 +134,9 @@
                 <i class="add-icon">人工</i>
                 {{/if}}
                 {{if info}}
-                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}(${info})</a>
+                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" code="${id}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}(${info})</a>
                 {{else}}
-                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}</a>
+                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" code="${id}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}</a>
                 {{/if}}
             </div>
             <div class="opers clearfix">
@@ -239,9 +241,9 @@
                 {{each(i,val) data}}
                 <tr><td colspan="3" class="slide-up">${i}</td></tr>
                 {{each val}}
-                <tr code="${i}">
+                <tr code="${i}" {{if isReject==="1"}} class="high-light" {{/if}}>
                     <td style="text-indent: 14px;">${modelName}</td>
-                    <td>${standardMsg}</td>
+                    <td><a href="javascript:void(0);" class="page-anchor" code="${id}">${standardMsg}</a></td>
                     <td class="red">${score}</td>
                 </tr>
                 {{/each}}

+ 14 - 0
src/js/qcScore.js

@@ -164,6 +164,20 @@ function formatInfoData(k,data){
 //知情同意书、谈话告知书
   function formatSpecPage(data,title){
     $("#appointBookTmpl").tmpl({title,data}).appendTo(".flaw-table");
+    $(".page-anchor").on("click",function(){
+      const code=$(this).attr("code");
+      const pCode=$(this).parents("tr").attr("code");
+      //菜单同步状态
+      $(".sub-menu .page[code="+pCode+"]").parents(".list-1").click();
+      $(".sub-menu .page[code="+pCode+"],.menu-mini .page[code="+pCode+"").click();
+      //缺陷定位
+      const flawItem=$(".flaw-item .title a[code="+code+"]");
+      if(!flawItem.length){
+        $.alerModal({"message":'模块数据缺失~',type:"tip",time:'1000',isFather: true, fatherWrapper: $(".flaw-table", parent.document)});
+        return;
+      }
+      $(".flaw-item .title a[code="+code+"]").click();
+    });
   }
 
 function initList(data){