소스 검색

his页面更新

wyq 3 년 전
부모
커밋
526b171e08
3개의 변경된 파일55개의 추가작업 그리고 0개의 파일을 삭제
  1. 26 0
      src/css/informationOut.less
  2. 27 0
      src/html/informationOut.html
  3. 2 0
      src/js/informationOut.js

+ 26 - 0
src/css/informationOut.less

@@ -404,6 +404,7 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   line-height: 28px;
   margin: 30px 0 8px 0;
   text-align: center;
+  display: none;
 }
 .scaleBox{
   border-bottom: none;
@@ -579,4 +580,29 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
 }
 .chColor{
   color: red!important;
+}
+.info_left {
+  width: 527px;
+  margin: auto;
+  display: none;
+  overflow: hidden;
+  margin-top: 10px;
+  border:1px solid #D8D8D8;
+  li {
+    width: 50%;
+    height: 30px;
+    padding: 0 10px;
+    box-sizing: border-box;
+    border: 1px solid #bbbfc1;
+    border-right: none;
+    font-size: 14px;
+    float: left;
+    border-bottom: none;
+  }
+  &:nth-child(1) {
+    border-top: none;
+  }
+  &:nth-child(odd) {
+    border-left: none;
+  }
 }

+ 27 - 0
src/html/informationOut.html

@@ -60,6 +60,33 @@
   <div class=" container disCopy scale">
     <div class="content">
       <div class="infos" id="Print">
+        <ul class="info_left">
+          <li>
+            <label>姓名:</label>
+          </li>
+          <li>
+            <label>门诊号:</label>
+          </li>
+          <li>
+            <label>年龄:</label>
+          </li>
+          <li>
+            <label>医生:</label>
+          </li>
+          <li>
+            <label>性别:</label>
+          </li>
+          <li>
+            <label>科室:</label>
+          </li>
+          <li>
+            <label>卡号:</label>
+          </li>
+          <li>
+            <label>就诊时间:</label>
+          </li>
+        </ul>
+        <p class="scaletitle"></p>
         <div class="infos-box"></div>
       </div>
     </div>

+ 2 - 0
src/js/informationOut.js

@@ -185,6 +185,8 @@ function renderContent(list, contentWrapClassName) {
 }
 
 function renderContentscale(list, contentWrapClassName, name) {
+  $(`.${contentWrapClassName} .infos .infos-box`).html('');
+  $(`.${contentWrapClassName} .anchors ul`).html('');
   var pushInfo = []
   $('.scaletitle').html(name);
   for (var i = 0; i < list[0].detailList.length; i++) {