luolei пре 5 година
родитељ
комит
d7667fe869
5 измењених фајлова са 195 додато и 13 уклоњено
  1. 29 0
      src/css/qcScore.less
  2. 145 0
      src/html/qcScore.html
  3. 5 3
      src/js/console.js
  4. 10 7
      src/js/qcScore.js
  5. 6 3
      src/js/qcScore_byll.js

+ 29 - 0
src/css/qcScore.less

@@ -247,4 +247,33 @@
     margin-right: 20px;
     text-align: right;
   }
+}
+
+.wardRoundWrap {
+  .container {
+    .wardRound {
+      margin-right: 50px;
+      padding: 7px  0;
+      display: inline-block;
+      i {
+        font-weight: bold;
+        color: #333333;
+      }
+    }
+    .cont {
+      .wardRound-table {
+        border: 0 none;
+        td {
+          border: 0 none;
+          text-align: left;
+          padding-left: 0;
+          color: #333333;
+        }
+        .tdFstTitle {
+          vertical-align: top;
+          font-weight: bold;
+        }
+      }
+    }
+  }
 }

+ 145 - 0
src/html/qcScore.html

@@ -126,6 +126,151 @@
             </div>
         </div>
     </script>
+    <!-- 查房记录 -->
+    <script type="text/html" id="wardRound">
+        <div class="content-item wardRoundWrap" code="${title}">
+            <h2 class="title">${title}</h2>
+            <div class="container content-ht">
+                {{each(i,val) info}}
+                    {{if val['查房类别']&&val['查房类别']=='主治医师查房'}}<!-- 非soap -->
+                        <div class="cont">
+                            <span class="wardRound">${val['事件日期']}</span>
+                            <span class="wardRound">${val['医生']}</span>
+                            <span class="wardRound">${val['查房类别']}</span>
+                            <table class="wardRound-table">
+                                <tr>
+                                    <td class="tdFstTitle">S:</td>
+                                    <td>${val['主诉']}</td>
+                                </tr>
+                                <tr>
+                                    <td class="tdFstTitle">O:</td>
+                                    <td>${val['体检']}</td>
+                                </tr>
+                                <tr>
+                                    <td class="tdFstTitle">A:</td>
+                                    <td>${val['简要病情']}</td>
+                                </tr>
+                                <tr>
+                                    <td class="tdFstTitle">P:</td>
+                                    <td>${val['治疗计划和措施']}</td>
+                                </tr>
+                            </table>
+                            <span class="wardRound"><i>记录医师:</i>${val['查房医师']}</span>
+                            <span class="wardRound"><i>上级医师审核:</i>${val['审核人']}</span>
+                            <span class="wardRound"><i>审核时间:</i>${val['审核日期']}</span>
+                        </div>
+                    {{else val['查房类别'].indexOf('主刀')!=-1}}
+                        <!-- <div class="cont">
+                            <span>${val['事件日期']}</span>
+                            <span>${val['医生']}</span>
+                            <span>${val['查房备注']}</span>
+                        </div> -->
+                    {{else val['查房类别']==''}}
+                        <div class="cont">
+                            <span class="wardRound">${val['事件日期']}</span>
+                            <span class="wardRound">${val['医生']}</span>
+                            <span class="wardRound">${val['查房备注']}</span>
+                            <p>${val['查房记录']}</p>
+                            <span class="wardRound"><i>记录医师:</i>${val['医生']}</span>
+                        </div>
+                    {{/if}}
+                {{/each}}
+
+                <!-- {{each(i,val) info}}
+                {{each(k,text) val}}
+                <div class="cont">
+                    <span class="label">${k}:</span>
+                    {{if text.substr(0,3)==='[{"'}}
+                        {{if k==="出院诊断"}}
+                        <table class="embed-table">
+                            <tr>
+                                <td>
+                                    <table>
+                                        <tr>
+                                            <th>出院诊断</th>
+                                            <th>疾病编码</th>
+                                            <th>入院病情</th>
+                                        </tr>
+                                        {{each(i,v) JSON.parse(text)}}
+                                        {{if i<(JSON.parse(text).length/2)}}
+                                        <tr>
+                                            <td>${诊断名称}</td>
+                                            <td>${诊断编码}</td>
+                                            <td>${入院情况}</td>
+                                        </tr>
+                                        {{/if}}
+                                        {{/each}}
+                                    </table>
+                                </td>
+                                <td>
+                                    <table>
+                                        <tr>
+                                            <th>出院诊断</th>
+                                            <th>疾病编码</th>
+                                            <th>入院病情</th>
+                                        </tr>
+                                        {{each(i,v) JSON.parse(text)}}
+                                        {{if i>=(JSON.parse(text).length/2)}}
+                                        <tr>
+                                            <td>${诊断名称}</td>
+                                            <td>${诊断编码}</td>
+                                            <td>${入院情况}</td>
+                                        </tr>
+                                        {{/if}}
+                                        {{/each}}
+                                        {{if (JSON.parse(text).length)%2===1}}
+                                        <tr>
+                                            <td></td>
+                                            <td></td>
+                                            <td></td>
+                                        </tr>
+                                        {{/if}}
+                                    </table>
+                                </td>
+                            </tr>
+                            <tr><td colspan="2" class="table-tip">入院病情:1.有,2.临床未确定,3.情况不明,4.无。</td></tr>
+                        </table>
+                        <p class="table-tip"></p>
+                        {{else}}
+                            <table>
+                        <tr>
+                            <th rowspan="2">手术及操作编码</th>
+                            <th rowspan="2">手术及操作日期</th>
+                            <th rowspan="2">手术级别</th>
+                            <th rowspan="2">手术及操作名称</th>
+                            <th colspan="3">手术及操作医生</th>
+                            <th rowspan="2">切口等级</th>
+                            <th rowspan="2">愈合等级</th>
+                            <th rowspan="2">麻醉方式</th>
+                            <th rowspan="2">麻醉医师</th>
+                        </tr>
+                        <tr><th>术者</th><th>I助</th><th>II助</th></tr>
+                        {{each JSON.parse(text)}}
+                        <tr>
+                            <td>${手术编码}</td>
+                            <td>${手术日期}</td>
+                            <td>${手术级别}</td>
+                            <td>${手术名称}</td>
+                            <td>${手术医生ID}</td>
+                            <td>${一助医生ID}</td>
+                            <td>${二助医生ID}</td>
+                            <td>${切口等级}</td>
+                            <td>${愈合等级}</td>
+                            <td>${麻醉方式}</td>
+                            <td>${麻醉医师}</td>
+                        </tr>
+                        {{/each}}
+                        </table>
+                        {{/if}}
+                    {{else}}
+                    <span>${text}</span>
+                    {{/if}}
+                </div>
+                {{/each}}
+                {{/each}} -->
+            </div>
+        </div>
+    </script>
     <script type="text/html" id="flawTmpl">
         <div class="flaw-item" code="${modelName}">
             <div class="title">${msg}</div>

+ 5 - 3
src/js/console.js

@@ -57,16 +57,18 @@ function initConsole(result){
         '本年甲级病历-机器':require("../images/icon8.png"),
         '本年乙级病历-机器':require("../images/icon9.png"),
     }
-    let dom = ''
+    let dom = '';
     for(let i in result){
+        let name = i.split("-")[0]
         if(i.indexOf("人工")==-1){
+            let num = (name=='本月病历数'||name=='本年病历数')?0:result[name+'-机器']+result[i]
             dom += `
                 <li class="partLi">
                     <div class="partIn">
-                        <p class="top">${i.split("-")[0]}</p>
+                        <p class="top">${name}</p>
                         <p class="btm clearfix">
                         <img src="${url[i]}" alt="">
-                        <span>${result[i]}</span>
+                        <span>${result[i]+num}</span>
                         </p>
                     </div>
                 </li>

+ 10 - 7
src/js/qcScore.js

@@ -4,7 +4,7 @@ require('jquery-templates');
 require('./modal.js');
 const {api,post,getUrlArgObject,setBoxHeight} = require('./utils.js');
 const {keyMaps} = require('./maps.js');
-const {wordRound} = require("./qcScore_byll.js")
+const {wardRound} = require("./qcScore_byll.js")
 //本页全局变量
 let global_flawData = {};    //缺陷数据
 const global_id=getUrlArgObject("id");
@@ -34,6 +34,7 @@ function initMenu(data){
     //显示对应内容
     const code=$(this).attr("code");
     global_activeTab=code;
+    console.log(code,88888888888)
     $(".content-item,.flaw-item").hide();
     $(".content-item[code='"+code+"']").show();
     showFlawList();
@@ -65,10 +66,12 @@ function getRecordDetail(){
       setBoxHeight();
       initScoreItem(msg);
       global_flawData=msg;
+
+      let obj = JSON.parse(result.pageData)
+      wardRound(obj['查房记录'],'查房记录')
     }
   });
 }
-
 //填充患者信息
 function initPatientInfo(data){
   const date = data.birthday.substr(0,10);
@@ -81,12 +84,12 @@ function initContent(data){
   const obj = JSON.parse(data);
   //formatData(obj['入院记录'])
   let info=[];//formatData(obj['入院记录']);
-  for(let k in obj){
-    info=formatData(obj[k],k);
-    $("#contentTmpl").tmpl({title:k,info:info}).appendTo("#contentInfo");
-  }
+  // for(let k in obj){
+  //   info=formatData(obj[k],k);
+  //   $("#contentTmpl").tmpl({title:k,info:info}).appendTo("#contentInfo");
+  // }
+  $("#contentTmpl").tmpl({title:'病案首页',info:obj['病案首页']}).appendTo("#contentInfo");
   $(".content-item[code="+global_activeTab+"]").show();
-  console.log(obj)
 }
 
 function formatData(data,title){

+ 6 - 3
src/js/qcScore_byll.js

@@ -1,7 +1,10 @@
-function wordRound(){
-    
+const $ = require('jquery');
+
+function wardRound(data,title){//查房记录
+    console.log(data,title)
+    $("#wardRound").tmpl({info:data,title:title,}).appendTo("#contentInfo");
 }
 
 module.exports = {
-    wordRound
+    wardRound
 }