瀏覽代碼

暂时存储

xiezhiming 8 月之前
父節點
當前提交
0c6e086108
共有 9 個文件被更改,包括 6496 次插入124 次删除
  1. 1873 0
      src/css/qcScore.css
  2. 76 43
      src/css/qcScore.less
  3. 21 4
      src/html/qcScore.html
  4. 455 0
      src/html/qcScore.html_
  5. 138 77
      src/js/qcScore.js
  6. 1108 0
      src/js/qcScore.js_
  7. 453 0
      temp/qcScore.html
  8. 1106 0
      temp/qcScore.js
  9. 1266 0
      temp/qcScore.less

File diff suppressed because it is too large
+ 1873 - 0
src/css/qcScore.css


+ 76 - 43
src/css/qcScore.less

@@ -850,55 +850,88 @@
     background: none;
   }
 }
+// .scroll-table {
+//   thead,
+//   tbody {
+//     display: block;
+//     width: 100%;
+//     box-sizing: border-box;
+//     th,
+//     td {
+//       width: 49%;
+//       display: inline-block;
+//       box-sizing: border-box;
+//       border: none;
+//       line-height: 32px;
+//       &:first-child {
+//         width: 30%;
+//         border-right: 1px @tableBorderColor solid;
+//       }
+//       &:last-child {
+//         width: 20%;
+//         border-left: 1px @tableBorderColor solid;
+//       }
+//     }
+//     td[colspan] {
+//       border-right: none;
+//       border-left: none;
+//     }
+//   }
+//   thead {
+//     border-bottom: 1px @tableBorderColor solid;
+//     tr {
+//       width: calc(100% - 18px);
+//       border-bottom: none;
+//     }
+//   }
+//   tbody {
+//     overflow-y: auto;
+//   }
+//   tr {
+//     display: block;
+//     border-bottom: 1px @tableBorderColor solid;
+//     &:last-child {
+//       border-bottom: none;
+//     }
+//   }
+//   tr,
+//   td[colspan] {
+//     width: 100%;
+//     box-sizing: border-box;
+//   }
+// }
+
 .scroll-table {
-  thead,
-  tbody {
-    display: block;
-    width: 100%;
-    box-sizing: border-box;
-    th,
-    td {
-      width: 49%;
-      display: inline-block;
-      box-sizing: border-box;
-      border: none;
-      line-height: 32px;
-      &:first-child {
-        width: 30%;
-        border-right: 1px @tableBorderColor solid;
-      }
-      &:last-child {
-        width: 20%;
-        border-left: 1px @tableBorderColor solid;
-      }
+
+
+  th,
+  td {
+    // box-sizing: border-box;
+    border: none;
+    line-height: 32px;
+
+    &:nth-child(1) {
+      max-width: 25% !important;
+      border-right: 1px @tableBorderColor solid;
     }
-    td[colspan] {
-      border-right: none;
-      border-left: none;
+
+    &:nth-child(2) {
+      max-width: 50% !important;
+      border-right: 1px @tableBorderColor solid;
     }
-  }
-  thead {
-    border-bottom: 1px @tableBorderColor solid;
-    tr {
-      width: calc(100% - 18px);
-      border-bottom: none;
+
+    &:nth-child(3) {
+      min-width: 100px !important;
+      border-right: 1px @tableBorderColor solid;
     }
-  }
-  tbody {
-    overflow-y: auto;
-  }
-  tr {
-    display: block;
-    border-bottom: 1px @tableBorderColor solid;
-    &:last-child {
-      border-bottom: none;
+
+    &:nth-child(4) {
+      min-width: 100px !important;
+      text-align: center;
+      gap: 0px 5px;
     }
   }
-  tr,
-  td[colspan] {
-    width: 100%;
-    box-sizing: border-box;
-  }
+  
 }
 // .modal .modal-footer a.cancel {
 //   display: none;

+ 21 - 4
src/html/qcScore.html

@@ -309,9 +309,10 @@
             <table class="scroll-table">
                 <thead>
                 <tr>
-                    <th width="250">来源</th>
+                    <th>来源</th>
                     <th>缺陷详情</th>
-                    <th width="150">扣分</th>
+                    <th>扣分</th>
+                    {{if hasAu2|| hasAu}}<th>操作</th>{{/if}}
                 </tr>
                 </thead>
                 <tbody>
@@ -323,14 +324,29 @@
                     </tr>
                     {{/if}}
                 {{each(i,val) data}}
-                <tr><td colspan="3" class="slide-up">${i}</td></tr>
+                <tr><td colspan="4" class="slide-up">${i}</td></tr>
                 {{each val}}
-                <tr code="${i}" {{if isReject==="1"}} class="high-light" {{/if}}>
+                <tr  code="${i}" {{if isReject==="1"}} class="high-light" {{/if}}>
                     <td style="text-indent: 14px; {{if isDeleted=='Y'}}  text-decoration:line-through;  {{/if}}">${modelName}</td>
                     <td>
                         <a href="javascript:void(0);" class="page-anchor page-anchor-hover" {{if isDeleted=='Y'}}  style="text-decoration:line-through;"  {{/if}} code="${id}">${msg}</a>
                     </td>
                     <td class="red" {{if isDeleted=='Y'}}  style="text-decoration:line-through;"  {{/if}}>${score}</td>
+                    {{if hasAu2|| hasAu}}
+                        <td class="oper">
+                            {{if isDeleted=='N'}}
+                                {{if hasAu}}
+                                    <a class="edit-flaw blue" code="${id}" href="javascript:void(0);">编辑</a> 
+                                {{/if}}
+                                {{if hasAu2}}
+                                    <a class="del-flaw red" code="${id}" href="javascript:void(0);">删除</a>
+                                {{/if}}
+                            {{/if}}
+                            {{if isDeleted=='Y'&&hasAu2 }}
+                                <a class="recover-flaw blue" code="${id}" href="javascript:void(0);">恢复</a>
+                            {{/if}}
+                        </td>
+                    {{/if}}
                 </tr>
                 {{/each}}
                 {{/each}}
@@ -406,6 +422,7 @@
                     <a href="javascript:void(0);" class="add-flaw">+ 新增</a>
                 </div>
                 <div class="flaw-box content-ht">
+                    <!-- 列表项 -->
                     <!--<div class="empty">
                         <img src="../images/empty.png" alt="空"/>
                         <p>暂无详情~</p>

+ 455 - 0
src/html/qcScore.html_

@@ -0,0 +1,455 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <!--<link rel="shortcut icon" href="../resource/favicon.ico" type="image/x-icon">-->
+    <title>质控评分</title>
+    <script type="text/html" id="subMenuTmpl">
+        {{if sonMode.length}}
+        <li class="list-1 menu-${id}">
+            <p>${name}</p>
+            {{else}}
+        <li class="page menu-${id}" code="${name}" mode="${id}">${name}
+            {{/if}}
+            <ul>
+                {{each sonMode}}
+                <li class="page" code="${name.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}" mode="${id}">${name}</li>
+                {{/each}}
+            </ul>
+        </li>
+    </script>
+    <script type="text/html" id="miniMenuTmpl">
+        {{if sonMode.length}}
+        <li class="list-1  menu-${id}">
+            <div class="arrow-left"></div>
+            {{else}}
+        <li class="page  menu-${id}" code="${name}">
+            {{/if}}
+            {{if sonMode.length}}
+            <ul> 
+                <div class="liExtend"></div>
+                {{each sonMode}}
+                    <li class="page" code="${name.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">${name}</li>
+                {{/each}}
+            </ul>
+            {{/if}}
+        </li>
+    </script>
+    <script type="text/html" id="infoTmpl">
+        <button class="refreshBtn">刷新</button>
+        <span>病案号:${fileCode}</span>
+        <span>姓名:${name}</span>
+        <span>性别:${sex}</span>
+        <span>年龄:${age}</span>
+        <span>科室:${behDeptName}</span>
+        <span class="level">病历等级:${level}</span>
+        <span class="score">病历得分:${scoreRes}</span>
+        {{if showCheckBtns}}
+        <span class="ywCheck">${checkState===1 ? "重新核查" : "完成核查"}</span>
+        {{/if}}
+    </script>
+    <script type="text/html" id="tableTmpl">
+         {{if k==="出院诊断"}}
+         <table class="embed-table">
+             <tr>
+                 <td>
+                     <table>
+                         <tr>
+                             <th>出院诊断</th>
+                             <th>疾病编码</th>
+                             <th>入院病情</th>
+                             <th>出院病情</th>
+                         </tr>
+                         {{each(i,v) data}}
+                         {{if i<(data.length/2)}}
+                         <tr>
+                             <td>${诊断名称}</td>
+                             <td>${诊断编码}</td>
+                             <td>${入院情况}</td>
+                             <td>${出院情况}</td>
+                         </tr>
+                         {{/if}}
+                         {{/each}}
+                     </table>
+                 </td>
+                 <td>
+                     <table>
+                         <tr>
+                             <th>出院诊断</th>
+                             <th>疾病编码</th>
+                             <th>入院病情</th>
+                             <th>出院病情</th>
+                         </tr>
+                         {{each(i,v) data}}
+                         {{if i>=(data.length/2)}}
+                         <tr>
+                             <td>${诊断名称}</td>
+                             <td>${诊断编码}</td>
+                             <td>${入院情况}</td>
+                             <td>${出院情况}</td>
+                         </tr>
+                         {{/if}}
+                         {{/each}}
+                         {{if (data.length)%2===1}}
+                         <tr>
+                             <td></td>
+                             <td></td>
+                             <td></td>
+                             <td></td>
+                         </tr>
+                         {{/if}}
+                     </table>
+                 </td>
+             </tr>
+<!--
+             <tr><td colspan="2" class="table-tip">入院病情:1、"有" 2、"临床未确定" 3、"情况不明" 4、"无"<br/>出院病情:1、"治愈"  2、"好转"  3、"未愈"  4、"死亡"  9、"其它"</td></tr>
+-->
+         </table>
+         {{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 data}}
+         <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}}
+    </script>
+    <script type="text/html" id="appealStatusTmpl">
+        <div class="edit-box show-box ${exampleStatus==='1'?'refuse':exampleStatus==='2'?'pass':''}">
+            <p><span>申诉时间: </span> ${appealCreateDate}</p>
+            <p><span>申诉人: </span> ${claimantName}</p>
+            <p><span>审核人: </span> ${checkName}</p>
+            <p><span>操作类型: </span> ${appealOperationType == 0 ? '删改条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</p>
+            {{if appealOperationType==='1'}}
+            <p><span>质控条目:</span>${casesEntryName}</p>
+            <p><span>提示信息:</span>${casesEntryMsg}</p>
+            <p><span>分值:</span>${value}</p>
+            <p><span>备注:</span>${appealRemark}</p>
+		  	{{/if}}
+            <p><span>申诉说明: </span> ${appealExplain}</p>
+            {{if exampleStatus==='1'||exampleStatus==='2'}}
+            <p class="check-item reject-item"><span>审核时间:</span>${appealExamineDate}</p>
+            <p class="check-item reject-item"><span>审核人: </span> ${checkName}</p>
+            <p class="check-item reject-item">
+                <span>审核结果:</span>
+                <span class="check-status">${exampleStatus==='1'?'驳回':'审核通过'}</span>
+            </p>
+            {{/if}}
+            {{if exampleStatus==='1'}}
+            <p class="reject-item"><span>驳回理由:</span>${rejectReason}</p>
+            {{/if}}
+            {{if exampleStatus==='2'}}
+            <p class="check-item"><span>处理方式:</span>${exampleOperation == 1 ? '修改' : exampleOperation == 2 ? '删除' : exampleOperation == 3 ? '新增已有' : exampleOperation == 4 ? '新增缺失' : '恢复'}</p>
+            <p class="check-item"><span>质控条目:</span>${casesEntryName}</p>
+            <p class="check-item"><span>提示信息:</span>${msg}</p>
+            <p class="check-item"><span>分值:</span>${score}</p>
+            <p class="check-item"><span>备注:</span>${exampleRemark}</p>
+            {{/if}}
+            <p class="line"></p>
+        </div>
+    </script>
+    <script type="text/html" id="flawTmpl">
+        <div {{if isReject==='1'}} class="flaw-item high-light" {{else}} class="flaw-item" {{/if}} code="${modelName.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">
+            <div  {{if isDeleted==="Y"}} class="delete title"{{else}}  class="title" {{/if}}>
+                {{if exampleStatus=="0"||exampleStatus=="1"||exampleStatus=="2"}}
+                <span data_id="${appealInfoId}" data_type="${exampleStatus}"  data_casesEntryId="${casesEntryId}" data_qcresultDetailId="${id}" class="btn ${exampleStatus==='0'?'appeal':exampleStatus==='2'?'examine':exampleStatus==='1'?'reject':''}" msg="${msg}">${exampleStatus==='0'?'申诉':exampleStatus==='2'?'审核':exampleStatus==='1'?'驳回':''}</span>
+                {{/if}}
+                {{if gradeType===2}}
+                <img {{if explainInfo}} title="${explainInfo}" {{/if}} src="../images/tag.png" alt=""/>
+                {{/if}}
+                {{if info}}
+                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" code="${id}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}(${info})</a>
+                {{else}}
+                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" code="${id}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}</a>
+                {{/if}}
+            </div>
+            <div class="opers clearfix">
+                {{if score===0}}
+                <p {{if isDeleted==="Y"}} class="fl delete" {{else}} class="fl" {{/if}}>评分:<span class="red">warn</span></p>
+                {{else}}
+                <p {{if isDeleted==="Y"}} class="fl delete"{{else}} class="fl" {{/if}}>评分:<span class="red">-${score}</span></p>
+                {{/if}}
+                {{if isDeleted==="N"}}
+                <div class="oper fr">
+                    {{if exampleStatus=="0"&&hasAu3}}
+                    {{else}}
+                    <a class="edit-flaw blue" code="${id}" href="javascript:void(0);" style="margin-right: 18px;">修改</a>
+                    <a class="del-flaw red" code="${id}" href="javascript:void(0);">删除</a>
+                    {{/if}}
+                </div>
+                {{else}}
+                <div class="oper fr">
+                    {{if exampleStatus != "0"}}
+                    <a class="recover-flaw blue" code="${id}" href="javascript:void(0);">恢复</a>
+                    {{/if}}
+                </div>
+                {{/if}}
+            </div>
+        {{if gradeType===2||isDeleted==="Y"}}
+            <div class="info clearfix">
+                <p class="fl name" title="${linkman}">${linkman}</p>
+                <p class="fr">${gmtModified}</p>
+            </div>
+        {{/if}}
+        </div>
+    </script>
+    <script type="text/html" id="emptyTmpl">
+        <div class="empty">
+            <img src="../images/empty.png" alt="空"/>
+            <p>暂无缺陷~</p>
+        </div>
+    </script>
+    <script type="text/html" id="editTmpl">
+        <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" 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>
+        </div>
+    </script>
+    <script type="text/html" id="flawDropTmpl">
+        {{each(i,it) info}}
+        <li idx="${i}" name="${it.entryName}" title="${it.entryName}">${it.entryName}</li>
+        {{/each}}
+    </script>
+    <script type="text/html" id="addFlawTmpl">
+        <div class="edit-box add-box">
+            <div class="drop-box">
+                <span>质控条目: </span>
+                <input type="text" class="flaw-drop-input ellipsis"/>
+                <ul></ul>
+            </div>
+            <!--<p><span>模块名称: </span><input type="text" value="${modelName}" /></p>-->
+            <p><span style="margin-right: 16px;">提示信息:</span><input title="${msg}" maxlength="100" class="ellipsis" id="addQcMsg" type="text" value="${msg}" /></p>
+            <p><span>分值:</span> <input id="addQcScore" type="text" value="${score}" /></p>
+            <p><span style="margin-right: 16px;">备注:</span><input title="${explainInfo}" class="ellipsis" id="addQcInfo" type="text" value="${explainInfo}" autocomplete="off"/></p>
+            <p class="warning"><span></span><span class="red">支持≥0的数字输入,最多保留小数点后1位~</span></p>
+        </div>
+    </script>
+    <!--<script type="text/html" id="flawTotalList">
+        {{if Object.keys(data).length===0}}
+            <div class="empty">
+                <img src="../images/empty.png" alt="空"/>
+                <p>暂无信息~</p>
+            </div>
+        {{else}}
+        <div class="page-item" code="缺陷总览">
+            <h2 class="title">${title}</h2>
+            <table>
+                <thead>
+                <tr>
+                    <th width="250">来源</th>
+                    <th>缺陷详情</th>
+                    <th width="150">扣分</th>
+
+                </tr>
+                </thead>
+                <tbody>
+                {{each(i,val) data}}
+                <tr><td colspan="4" class="slide-up">${i}</td></tr>
+                {{each val}}
+                <tr code="${i}">
+                    <td style="text-indent: 14px;">${modelName}</td>
+                    <td>${standardMsg}</td>
+                    <td class="red">${score}</td>
+
+                </tr>
+                {{/each}}
+                {{/each}}
+                </tbody>
+            </table>
+        </div>
+
+        {{/if}}
+    </script>-->
+    <script type="text/html" id="appointBookTmpl">
+        <div class="page-item" code="${title}">
+            <h2 class="title titleSpecial" code="${title}">
+                {{if title==='缺陷总览'}}
+                    <span class="titlePay" data-type="2">缺陷总览</span>
+                    <span class="titleNo" data-type="1">控费缺陷</span>
+                {{/if}}
+                {{if title!=='缺陷总览'}}
+                    ${title}
+                {{/if}}
+            </h2>
+            {{if !data || data&&data.length === 0}}
+            <div class="empty">
+                <img src="../images/empty1.png" alt="空"/>
+                <p>暂无信息~</p>
+            </div>
+            {{else}}
+            {{if title==='缺陷总览'}}
+            <table class="scroll-table">
+                <thead>
+                <tr>
+                    <th width="250">来源</th>
+                    <th>缺陷详情</th>
+                    <th width="150">扣分</th>
+
+                    {{if hasAu2|| hasAu}}<th>操作</th>{{/if}}
+                </tr>
+                </thead>
+                <tbody>
+                    {{if JSON.stringify(data) == "{}"}}
+                    <tr class="empty2">
+                        <td colspan="3" class=""> 
+                            <img src="../images/empty1.png" alt="空"/>
+                            <p>暂无数据~</p></td>
+                    </tr>
+                    {{/if}}
+                {{each(i,val) data}}
+                <tr><td colspan="3" class="slide-up">${i}</td></tr>
+                {{each val}}
+                <tr class="oper"  code="${i}" {{if isReject==="1"}} class="high-light" {{/if}}>
+                    <td style="text-indent: 14px; {{if isDeleted=='Y'}}  text-decoration:line-through;  {{/if}}">${modelName}</td>
+                    <td>
+                        <a href="javascript:void(0);" class="page-anchor page-anchor-hover" {{if isDeleted=='Y'}}  style="text-decoration:line-through;"  {{/if}} code="${id}">${msg}</a>
+                    </td>
+                    <td class="red" {{if isDeleted=='Y'}}  style="text-decoration:line-through;"  {{/if}}>${score}</td>
+                    {{if hasAu2|| hasAu}}
+                        <td class="oper">
+                            {{if isDeleted=='N'}}
+                                {{if hasAu}}
+                                    <a class="edit-flaw blue" code="${id}" href="javascript:void(0);">编辑</a> 
+                                {{/if}}
+                                {{if hasAu2}}
+                                    <a class="del-flaw red" code="${id}" href="javascript:void(0);">删除</a>
+                                {{/if}}
+                            {{/if}}
+                            {{if isDeleted=='Y'&&hasAu2 }}
+                                <a class="recover-flaw blue" code="${id}" href="javascript:void(0);">恢复</a>
+                            {{/if}}
+                        </td>
+                    {{/if}}
+                </tr>
+                {{/each}}
+                {{/each}}
+                </tbody>
+            </table>
+            {{else}}<table code="${title}" class="interval-color">
+            <thead>
+            <tr>
+                <th width="100" align="center">序号</th>
+                <th>文书详情</th>
+            </tr>
+            </thead>
+            <tbody>
+            {{each(i,val) data}}
+            <tr>
+                <td align="center">${i+1}</td>
+                <td>${recTitle}</td>
+            </tr>
+            {{/each}}
+            </tbody>
+        </table>
+            {{/if}}
+            {{/if}}
+        </div>
+    </script>
+</head>
+
+<body>
+    <div class="main-part clearfix">
+        <div class="sub-menu">
+            <div class="logo">
+                <img src="../images/lantone.png" alt="" style="width: 150px;">
+            </div>
+            <ul id="subMenu" class="subMenu"></ul>
+            <a href="javascript:void(0);" class="slide-show">
+                <img src="../images/down.png" alt="">
+            </a>
+            <div class="copy-right">
+                <p>©杭州朗通信息技术有限公司</p>
+            </div>
+        </div>
+        <div class="menu-mini fl">
+            <div class="logo">
+                朗通
+            </div>
+            <ul></ul>
+            <a href="javascript:void(0);" class="slide-hide">
+                <img src="../images/up.png" alt="">
+            </a>
+
+        </div>
+        <div class="tab-container clearfix">
+            <div class="patient-info" id="patientInfo"></div>
+            <p id="loading">加载中,请稍候 ...</p>
+            <div class="flaw-table">
+                <iframe src="./nursing.html" frameborder="0" id="contentNursing" name="contentNursing"
+                    style="display: none;"></iframe>
+                <iframe src="./advice.html" frameborder="0" id="contentIframeIn" name="contentIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./pacs.html" frameborder="0" id="pacsIframeIn" name="pacsIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./assist.html" frameborder="0" id="assistIframeIn" name="assistIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./pacsDetail.html" frameborder="0" id="pacsDetailIframeIn" name="pacsDetailIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./other.html" frameborder="0" id="contentOther" name="contentOther"
+                    style="display: none;"></iframe>
+            </div>
+            <div class="content-box fl" id="contentInfo"></div>
+            <div class="operation fr" id="flaws">
+                <div class="flaw-title">
+                    <span>缺陷详情</span>
+                    <a href="javascript:void(0);" class="add-flaw">+ 新增</a>
+                </div>
+                <div class="flaw-box content-ht">
+                    <!--<div class="empty">
+                        <img src="../images/empty.png" alt="空"/>
+                        <p>暂无详情~</p>
+                    </div>-->
+                </div>
+            </div>
+        </div>
+    </div>
+    <div id="mainBox"></div>
+    <div class="modal" id="delModal">
+        <div class="cover"></div>
+        <div class="modal-box">
+            <div class="modal-header clearfix">
+                <span class="title">提示</span>
+                <a class="close" href="javascript:void(0);">×</a>
+            </div>
+            <div class="modal-body">
+                <!--<p>确定要删除该评分记录吗?</p>-->
+            </div>
+            <div class="modal-footer">
+                <a class="close cancel" href="javascript:void(0);">关闭</a>
+                <a class="confirm" href="javascript:void(0);">保存</a>
+            </div>
+        </div>
+    </div>
+</body>
+
+</html>

+ 138 - 77
src/js/qcScore.js

@@ -10,6 +10,13 @@ const adLogo = require("../images/adlogo.png")
 if (localStorage.getItem('toLogin') === '1') {
   window.location.href = '../login.html';
 }
+/** 
+ *data_type:存储的是对缺陷总览页面的缺陷总览和控费缺陷两个子页面操作时,
+ *停留在哪个页面,2表示为缺陷总览子页面,1表示控费缺陷子页面,
+ *点击侧边菜单栏data_type会重置为2
+ *
+*/
+let data_type = 2
 $(function () {
   const hideLogo = getUrlArgObject("hideLg");
   if (hideLogo) {
@@ -35,13 +42,13 @@ $(function () {
   let global_modules = {};   //模板数据缓存
   let global_flaws = [];  //缺陷条目列表缓存
   let global_selectedFlaw = {};    //新增时选中的条目信息
-  let menuList = [];
+  let isPlacefile = getCookie('isPlacefile')
   getAllModules();
   let showCheckBtns = global_code === "YH-ZKHC-HCRWLB";
   window.document.title = (showCheckBtns ? "质控核查-" : "质控评分-") + getUrlArgObject("name");
 
-  let hasAu3 = showCheckBtns && hasData('FUNC000011');   //新增缺陷权限
-  if (hasAu3) {
+  let hasAu5 = isPlacefile == 0 ? true : showCheckBtns && hasData('FUNC000011');   //新增缺陷权限
+  if (hasAu5) {
     $(".add-flaw").click(function () {
       getQcCasesEntry();
     });
@@ -89,6 +96,7 @@ $(function () {
     });
     //右侧内容切换
     $(".page").on("click", function () {
+      data_type = 2
       $(".info-item .cont,.flaw-item,td").removeClass("active");   //清空缺陷定位背景
       const title = $(this).attr("code");
       if (title == '缺陷总览' || !global_check_show) { //质控核查页进来隐藏原核查按钮
@@ -189,15 +197,6 @@ $(function () {
         global_check = checkStatus
         global_check_home = mrStatus
         global_check_show = checkShow;//0隐藏操作按钮1显示
-        const list = JSON.parse(result.menuData)
-        for (let i = 0; i < list.length; i++) {
-          const item = list[i];
-          menuList.push(item.name)
-          for (let j = 0; j < item.sonMode.length; j++) {
-            const it = item.sonMode[j];
-            menuList.push(it.name)
-          }
-        }
         check_Operation_WithAppeal = checkOperationWithAppeal;
         const info = Object.assign(beHospital, result);
         initMenu(JSON.parse(result.menuData));
@@ -206,19 +205,19 @@ $(function () {
         global_activeTab = $(".sub-menu .page.active").attr("code");
         $(".operation").show()
         initPatientInfo(info);
-        initContent(result.pageData,2);
+        initContent(result.pageData, 2);
         initList(msg);
         initScoreItem(msg);
         global_flawData = msg;
         global_flawDataPay = drgs;
         setBoxHeight();
         changePay()
-      }else{
-		$.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
-	  }
-    }).catch(()=>{
-	  $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
-	});
+      } else {
+        $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+      }
+    }).catch(() => {
+      $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+    });
   }
   function getRecordDetailUpdate() {
     post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {
@@ -244,57 +243,59 @@ $(function () {
   //补录数据,接口来自技术服务部
   function supplementData() {
     //重新拉数据接口
-    post(api.supplementData, { 'behospitalCode': global_id,'behospitalNum':'' }).then(function (res) {
-      const {code,data}=res.data;
+    post(api.supplementData, { 'behospitalCode': global_id, 'behospitalNum': '' }).then(function (res) {
+      const { code, data } = res.data;
       if (code === '0') {
-        if(data==='0'){ //0表示数据已更新,-1表示数据未更新
+        if (data === '0') { //0表示数据已更新,-1表示数据未更新
           //数据更新后先评分(评分成功后)再重新获取详情即刷新页面
-		  recordScore();
-        }else{
-		  $.alerModal({ "message": '刷新失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
-		}
-      }else{
+          recordScore();
+        } else {
+          $.alerModal({ "message": '刷新失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+        }
+      } else {
         $.alerModal({ "message": '刷新失败,请重试~', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
       }
     });
   }
 
   function loading() {
-	const str = `
+    const str = `
     <div class="loadingBox">
             <div class="mask"></div>
             <img class="loadingImg" src=${loadingImg}  alt="loading" />
         </div>
     `
-	$("body", parent.document).append(str)
+    $("body", parent.document).append(str)
   }
   function hideLoading() {
-	$(".loadingBox", parent.document).remove()
+    $(".loadingBox", parent.document).remove()
   }
-//评分
+  //评分
   function recordScore() {
-	const param = {
-	  behospitalCode: global_id
-	};
-	loading();
-	post(api.recordScore, param).then(res => {
-	  if (res.data.code === '0') {
-		  hideLoading();
-		  //评分成功,刷新病历详情页面
-          window.parent.location.reload()
-	  } else {
-		hideLoading()
+    const param = {
+      behospitalCode: global_id
+    };
+    loading();
+    post(api.recordScore, param).then(res => {
+      if (res.data.code === '0') {
+        hideLoading();
+        //评分成功,刷新病历详情页面
+        window.parent.location.reload()
+      } else {
+        hideLoading()
         $.alerModal({ "message": res.data.msg || '刷新失败,请重试~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
-	  }
-	}).catch(() => {
-	  hideLoading()
-		$.alerModal({ "message": '刷新失败,请重试~', type: "tip", win: 'default', time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
-	})
+      }
+    }).catch(() => {
+      hideLoading()
+      $.alerModal({ "message": '刷新失败,请重试~', type: "tip", win: 'default', time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
+    })
   }
 
   function changePay() {
     $(document).on('click', ".titleSpecial span", function () {
       let type = $(this).attr("data-type")
+      // window.localStorage.setItem("data_type", type)
+      data_type = Number(type)
       if (type == 1) {
         initList(global_flawDataPay, type);
       } else {
@@ -315,15 +316,15 @@ $(function () {
     })
   }
   //显示病例模块明细
-  function initContent(data,type) {
+  function initContent(data, type) {
     const obj = JSON.parse(data);
     let info = [];
     let hml = '', moduleId = '';
-    if(type == 2){
+    if (type == 2) {
       formatSpecPage(obj["谈话告知书"], "谈话告知书");
       formatSpecPage(obj["知情同意书"], "知情同意书");
     }
-    
+
     // formatSpecPage(obj["医嘱信息"],"医嘱信息");
     $(".content-box").show();
     for (let k in obj) {
@@ -372,28 +373,69 @@ $(function () {
   //知情同意书、谈话告知书
   function formatSpecPage(data, title, type) {
     $(".page-item[code='缺陷总览']").remove()
-    $("#appointBookTmpl").tmpl({ title, data }).appendTo(".flaw-table");
+    // $(".flaw-table").html("")
+
+    let hasAu = isPlacefile == 0 ? true : showCheckBtns && global_check_show && hasData('FUNC000013');    //修改缺陷权限
+    let hasAu2 = isPlacefile == 0 ? true : showCheckBtns && global_check_show && hasData('FUNC000012');   //删除缺陷权限
+    // let hasAu4 = isPlacefile == 0 ? true : check_Operation_WithAppeal && showCheckBtns && global_check_show
+    // let hasAu3 = check_Operation_WithAppeal
+
+    // console.log("hasAu3:", check_Operation_WithAppeal)
+
+    $("#appointBookTmpl").tmpl({ title, data, hasAu, hasAu2 }).appendTo(".flaw-table");
+    // 防止页面数据更新时,页面不显示
+    $(".page-item[code='缺陷总览']").css("display", "block")
+
     setBoxHeight();
+    // console.log("data:", data)
+
+    // 操作列: 修改,恢复和编辑
+    $(".scroll-table .oper a").unbind("click").click(function () {
+      // 获取当前操作的类型,当前分为:病案首页,入院记录和出院小结等
+      let opType_old = $(this).parents("tr").attr("code");
+      // 剔除掉opType_old的特殊符号
+      let opType_new = opType_old.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g, "")
+
+      // 获取当前这条记录在同类型里的索引
+      const i = $(`.scroll-table tr[code= '${opType_old}' ]`).index($(this).parents("tr"))
+      // debugger
+      //获取当前记录的ID
+      const code = $(this).attr("code");
+      // 查看是否点击的是编辑
+      const isEdit = $(this).is(".edit-flaw");
+      //if(!hasAu)return
+      // 由于弹窗的数据填充的是由当前菜单决定的,需要修改global_activeTab为当前操作类型
+
+      global_activeTab = opType_new
+
+      if (isEdit && hasAu) {
+        showModal('0', code, i);  //编辑
+      } else if (!isEdit && hasAu2) {
+        if ($(this).is(".recover-flaw")) {
+          showModal('3', code, i);  //恢复
+          // 
+        } else {
+          showModal('1', code, i);  //删除
+
+        }
+      }
+      // 防止影响菜单,重新激活菜单项
+      global_activeTab = $(".sub-menu .page.active").attr("code");
+    })
+
     $(".page-anchor").on("click", function () {
       const code = $(this).attr("code");
       const pCode = $(this).parents("tr").attr("code").replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g, '');
-      const tCode = $(this).parents("tr").attr("code")
-      //菜单同步状态
-      if (menuList.indexOf(tCode) == -1) {
-        console.log(123);
-        $.alerModal({ "message": '模块数据缺失~', type: "tip", time: '1000', isFather: true, fatherWrapper: $(".flaw-table", parent.document) });
-        return;
-      }
       //菜单同步状态
       $(".sub-menu .page[code=" + pCode + "]").parents(".list-1").click();
       $(".sub-menu .page[code=" + pCode + "],.menu-mini .page[code=" + pCode + "").click();
       //缺陷定位
       $(".info-item .cont,.flaw-item,td").removeClass("active");
-      // 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;
-      // }
+      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();
       const anch = $(".flaw-item .title a[code=" + code + "]").attr("href");
       if ($(anch)[0]) {
@@ -451,9 +493,10 @@ $(function () {
   //评分项数据填充
   function initScoreItem(data) {
     $("#flaws .flaw-box").html("");
-    let hasAu = showCheckBtns && global_check_show && hasData('FUNC000013');    //修改缺陷权限
-    let hasAu2 = showCheckBtns && global_check_show && hasData('FUNC000012');   //删除缺陷权限
-    let hasAu4 = check_Operation_WithAppeal && showCheckBtns
+    // console.log(showCheckBtns, 11122);
+    let hasAu = isPlacefile == 0 ? true : showCheckBtns && global_check_show && hasData('FUNC000013');    //修改缺陷权限
+    let hasAu2 = isPlacefile == 0 ? true : showCheckBtns && global_check_show && hasData('FUNC000012');   //删除缺陷权限
+    let hasAu4 = isPlacefile == 0 ? true : check_Operation_WithAppeal && showCheckBtns && global_check_show
     let hasAu3 = check_Operation_WithAppeal
     for (let k in data) {
       for (let i = 0; i < data[k].length; i++) {
@@ -467,6 +510,7 @@ $(function () {
       const i = $(".flaw-item[code=" + global_activeTab + "]").index($(this).parents(".flaw-item"));
       const code = $(this).attr("code");
       const isEdit = $(this).is(".edit-flaw");
+      // console.log("global_activeTab:", global_activeTab)
       //if(!hasAu)return
       if (isEdit && hasAu) {
         showModal('0', code, i);  //编辑
@@ -480,7 +524,7 @@ $(function () {
     })
     $(".edit-flaw").css({ "display": hasAu ? "inline" : "none" });
     $(".del-flaw").css({ "display": hasAu2 ? "inline" : "none" });
-    $(".add-flaw").css({ "display": hasAu4 && global_check_show ? "inline" : "none" });
+    $(".add-flaw").css({ "display": hasAu4 ? "inline" : "none" });
     $(".recover-flaw").css({ "display": hasAu2 ? "inline" : "none" });
     $(".flaw-item .title a[href]").unbind("click").click(function () {
       const id = $(this).attr("href");
@@ -590,7 +634,7 @@ $(function () {
 
   //显示删除/修改弹窗
   function showModal(flag, code, i, id, qcresultDetailId) {
-    console.log(flag);
+    // console.log(flag);
     $("#delModal .modal-body").html("");
     $("#delModal").show();
     $("#delModal .cancel").text("关闭")
@@ -598,7 +642,16 @@ $(function () {
     $(".info-item .cont,.flaw-item .title,td").removeClass("active");
     //事件解绑
     $("#delModal .confirm").off("click");
-    const flawsList = formatFlawKeys(global_flawData);
+    let flawsList
+    if (data_type === 2) {
+      flawsList = formatFlawKeys(global_flawData)
+    } else {
+      flawsList = formatFlawKeys(global_flawDataPay)
+    }
+
+
+
+    // console.log("flawsList:", flawsList)
     const info = flawsList[global_activeTab] && flawsList[global_activeTab][i];
     if (flag === '0') {   //修改
       $("#delModal .confirm").show()
@@ -648,11 +701,6 @@ $(function () {
         if ($(".edit-box .warning").is(":visible")) {
           return;
         }
-        if (!$("#qcMsg").val().trim()) {
-          $(".edit-box .warning .red").text("提示信息不能为空~");
-          $(".edit-box .warning").show();
-          return;
-        }
         const obj = Object.assign({}, info, { explainInfo: $("#delModal #qcInfo").val(), msg: $("#delModal #qcMsg").val(), score: $("#delModal #qcScore").val() });
         editScore(obj);
       });
@@ -754,7 +802,7 @@ $(function () {
         $("#delModal").hide();
       });
       $("#delModal .cancel").show().text("删除").unbind("click").click(function () {
-        console.log(123);
+        // console.log(123);
         delScore(code, info);
       });
     }
@@ -841,7 +889,7 @@ $(function () {
     $("#addQcScore").val(score);
     $(".add-box .warning").hide();
     $(".add-box .drop-box").removeClass("show");
-    console.log(123);
+    // console.log(123);
   });
   $(document).on("blur", ".flaw-drop-input", (e) => {
     $('.flaw-drop-input').val(global_entryName).attr({ "code": global_casesEntryId, "title": global_entryName });
@@ -859,9 +907,22 @@ $(function () {
     post(api.getRecordDetail, param).then(function (res) {
       if (res.data.code === '0') {
         const data = res.data.data;
-        const { msg } = data;
+        const { msg, drgs } = data;
         initScoreItem(msg);
         global_flawData = msg;
+        global_flawDataPay = drgs
+        // console.log("data:", data)
+
+        // 单独刷新缺陷总览页面的数据
+        if (data_type === 1) {
+          // 控费缺陷
+          formatSpecPage(drgs, "缺陷总览", 1);
+
+        } else {
+          // 缺陷总览
+          formatSpecPage(msg, "缺陷总览", 2);
+        }
+
       }
     });
   }

File diff suppressed because it is too large
+ 1108 - 0
src/js/qcScore.js_


+ 453 - 0
temp/qcScore.html

@@ -0,0 +1,453 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <!--<link rel="shortcut icon" href="../resource/favicon.ico" type="image/x-icon">-->
+    <title>质控评分</title>
+    <script type="text/html" id="subMenuTmpl">
+        {{if sonMode.length}}
+        <li class="list-1 menu-${id}">
+            <p>${name}</p>
+            {{else}}
+        <li class="page menu-${id}" code="${name}" mode="${id}">${name}
+            {{/if}}
+            <ul>
+                {{each sonMode}}
+                <li class="page" code="${name.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}" mode="${id}">${name}</li>
+                {{/each}}
+            </ul>
+        </li>
+    </script>
+    <script type="text/html" id="miniMenuTmpl">
+        {{if sonMode.length}}
+        <li class="list-1  menu-${id}">
+            <div class="arrow-left"></div>
+            {{else}}
+        <li class="page  menu-${id}" code="${name}">
+            {{/if}}
+            {{if sonMode.length}}
+            <ul> 
+                <div class="liExtend"></div>
+                {{each sonMode}}
+                    <li class="page" code="${name.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">${name}</li>
+                {{/each}}
+            </ul>
+            {{/if}}
+        </li>
+    </script>
+    <script type="text/html" id="infoTmpl">
+        <button class="refreshBtn">刷新</button>
+        <span>病案号:${fileCode}</span>
+        <span>姓名:${name}</span>
+        <span>性别:${sex}</span>
+        <span>年龄:${age}</span>
+        <span>科室:${behDeptName}</span>
+        <span class="level">病历等级:${level}</span>
+        <span class="score">病历得分:${scoreRes}</span>
+        {{if showCheckBtns}}
+        <span class="ywCheck">${checkState===1 ? "重新核查" : "完成核查"}</span>
+        {{/if}}
+    </script>
+    <script type="text/html" id="tableTmpl">
+         {{if k==="出院诊断"}}
+         <table class="embed-table">
+             <tr>
+                 <td>
+                     <table>
+                         <tr>
+                             <th>出院诊断</th>
+                             <th>疾病编码</th>
+                             <th>入院病情</th>
+                             <th>出院病情</th>
+                         </tr>
+                         {{each(i,v) data}}
+                         {{if i<(data.length/2)}}
+                         <tr>
+                             <td>${诊断名称}</td>
+                             <td>${诊断编码}</td>
+                             <td>${入院情况}</td>
+                             <td>${出院情况}</td>
+                         </tr>
+                         {{/if}}
+                         {{/each}}
+                     </table>
+                 </td>
+                 <td>
+                     <table>
+                         <tr>
+                             <th>出院诊断</th>
+                             <th>疾病编码</th>
+                             <th>入院病情</th>
+                             <th>出院病情</th>
+                         </tr>
+                         {{each(i,v) data}}
+                         {{if i>=(data.length/2)}}
+                         <tr>
+                             <td>${诊断名称}</td>
+                             <td>${诊断编码}</td>
+                             <td>${入院情况}</td>
+                             <td>${出院情况}</td>
+                         </tr>
+                         {{/if}}
+                         {{/each}}
+                         {{if (data.length)%2===1}}
+                         <tr>
+                             <td></td>
+                             <td></td>
+                             <td></td>
+                             <td></td>
+                         </tr>
+                         {{/if}}
+                     </table>
+                 </td>
+             </tr>
+<!--
+             <tr><td colspan="2" class="table-tip">入院病情:1、"有" 2、"临床未确定" 3、"情况不明" 4、"无"<br/>出院病情:1、"治愈"  2、"好转"  3、"未愈"  4、"死亡"  9、"其它"</td></tr>
+-->
+         </table>
+         {{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 data}}
+         <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}}
+    </script>
+    <script type="text/html" id="appealStatusTmpl">
+        <div class="edit-box show-box ${exampleStatus==='1'?'refuse':exampleStatus==='2'?'pass':''}">
+            <p><span>申诉时间: </span> ${appealCreateDate}</p>
+            <p><span>申诉人: </span> ${claimantName}</p>
+            <p><span>审核人: </span> ${checkName}</p>
+            <p><span>操作类型: </span> ${appealOperationType == 0 ? '删改条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</p>
+            {{if appealOperationType==='1'}}
+            <p><span>质控条目:</span>${casesEntryName}</p>
+            <p><span>提示信息:</span>${casesEntryMsg}</p>
+            <p><span>分值:</span>${value}</p>
+            <p><span>备注:</span>${appealRemark}</p>
+		  	{{/if}}
+            <p><span>申诉说明: </span> ${appealExplain}</p>
+            {{if exampleStatus==='1'||exampleStatus==='2'}}
+            <p class="check-item reject-item"><span>审核时间:</span>${appealExamineDate}</p>
+            <p class="check-item reject-item"><span>审核人: </span> ${checkName}</p>
+            <p class="check-item reject-item">
+                <span>审核结果:</span>
+                <span class="check-status">${exampleStatus==='1'?'驳回':'审核通过'}</span>
+            </p>
+            {{/if}}
+            {{if exampleStatus==='1'}}
+            <p class="reject-item"><span>驳回理由:</span>${rejectReason}</p>
+            {{/if}}
+            {{if exampleStatus==='2'}}
+            <p class="check-item"><span>处理方式:</span>${exampleOperation == 1 ? '修改' : exampleOperation == 2 ? '删除' : exampleOperation == 3 ? '新增已有' : exampleOperation == 4 ? '新增缺失' : '恢复'}</p>
+            <p class="check-item"><span>质控条目:</span>${casesEntryName}</p>
+            <p class="check-item"><span>提示信息:</span>${msg}</p>
+            <p class="check-item"><span>分值:</span>${score}</p>
+            <p class="check-item"><span>备注:</span>${exampleRemark}</p>
+            {{/if}}
+            <p class="line"></p>
+        </div>
+    </script>
+    <script type="text/html" id="flawTmpl">
+        <div {{if isReject==='1'}} class="flaw-item high-light" {{else}} class="flaw-item" {{/if}} code="${modelName.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">
+            <div  {{if isDeleted==="Y"}} class="delete title"{{else}}  class="title" {{/if}}>
+                {{if exampleStatus=="0"||exampleStatus=="1"||exampleStatus=="2"}}
+                <span data_id="${appealInfoId}" data_type="${exampleStatus}"  data_casesEntryId="${casesEntryId}" data_qcresultDetailId="${id}" class="btn ${exampleStatus==='0'?'appeal':exampleStatus==='2'?'examine':exampleStatus==='1'?'reject':''}" msg="${msg}">${exampleStatus==='0'?'申诉':exampleStatus==='2'?'审核':exampleStatus==='1'?'驳回':''}</span>
+                {{/if}}
+                {{if gradeType===2}}
+                <img {{if explainInfo}} title="${explainInfo}" {{/if}} src="../images/tag.png" alt=""/>
+                {{/if}}
+                {{if info}}
+                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" code="${id}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}(${info})</a>
+                {{else}}
+                <a {{if pageKeyList[0]}} anchors="${pageKeyList}" code="${id}" href="#anchor${pageKeyList[0]}" {{/if}}>${msg}</a>
+                {{/if}}
+            </div>
+            <div class="opers clearfix">
+                {{if score===0}}
+                <p {{if isDeleted==="Y"}} class="fl delete" {{else}} class="fl" {{/if}}>评分:<span class="red">warn</span></p>
+                {{else}}
+                <p {{if isDeleted==="Y"}} class="fl delete"{{else}} class="fl" {{/if}}>评分:<span class="red">-${score}</span></p>
+                {{/if}}
+                {{if isDeleted==="N"}}
+                <div class="oper fr">
+                    {{if exampleStatus=="0"&&hasAu3}}
+                    {{else}}
+                    <a class="edit-flaw blue" code="${id}" href="javascript:void(0);" style="margin-right: 18px;">修改</a>
+                    <a class="del-flaw red" code="${id}" href="javascript:void(0);">删除</a>
+                    {{/if}}
+                </div>
+                {{else}}
+                <div class="oper fr">
+                    {{if exampleStatus != "0"}}
+                    <a class="recover-flaw blue" code="${id}" href="javascript:void(0);">恢复</a>
+                    {{/if}}
+                </div>
+                {{/if}}
+            </div>
+        {{if gradeType===2||isDeleted==="Y"}}
+            <div class="info clearfix">
+                <p class="fl name" title="${linkman}">${linkman}</p>
+                <p class="fr">${gmtModified}</p>
+            </div>
+        {{/if}}
+        </div>
+    </script>
+    <script type="text/html" id="emptyTmpl">
+        <div class="empty">
+            <img src="../images/empty.png" alt="空"/>
+            <p>暂无缺陷~</p>
+        </div>
+    </script>
+    <script type="text/html" id="editTmpl">
+        <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" 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>
+        </div>
+    </script>
+    <script type="text/html" id="flawDropTmpl">
+        {{each(i,it) info}}
+        <li idx="${i}" name="${it.entryName}" title="${it.entryName}">${it.entryName}</li>
+        {{/each}}
+    </script>
+    <script type="text/html" id="addFlawTmpl">
+        <div class="edit-box add-box">
+            <div class="drop-box">
+                <span>质控条目: </span>
+                <input type="text" class="flaw-drop-input ellipsis"/>
+                <ul></ul>
+            </div>
+            <!--<p><span>模块名称: </span><input type="text" value="${modelName}" /></p>-->
+            <p><span style="margin-right: 16px;">提示信息:</span><input title="${msg}" maxlength="100" class="ellipsis" id="addQcMsg" type="text" value="${msg}" /></p>
+            <p><span>分值:</span> <input id="addQcScore" type="text" value="${score}" /></p>
+            <p><span style="margin-right: 16px;">备注:</span><input title="${explainInfo}" class="ellipsis" id="addQcInfo" type="text" value="${explainInfo}" autocomplete="off"/></p>
+            <p class="warning"><span></span><span class="red">支持≥0的数字输入,最多保留小数点后1位~</span></p>
+        </div>
+    </script>
+    <!--<script type="text/html" id="flawTotalList">
+        {{if Object.keys(data).length===0}}
+            <div class="empty">
+                <img src="../images/empty.png" alt="空"/>
+                <p>暂无信息~</p>
+            </div>
+        {{else}}
+        <div class="page-item" code="缺陷总览">
+            <h2 class="title">${title}</h2>
+            <table>
+                <thead>
+                <tr>
+                    <th width="250">来源</th>
+                    <th>缺陷详情</th>
+                    <th width="150">扣分</th>
+                </tr>
+                </thead>
+                <tbody>
+                {{each(i,val) data}}
+                <tr><td colspan="3" class="slide-up">${i}</td></tr>
+                {{each val}}
+                <tr code="${i}">
+                    <td style="text-indent: 14px;">${modelName}</td>
+                    <td>${standardMsg}</td>
+                    <td class="red">${score}</td>
+                </tr>
+                {{/each}}
+                {{/each}}
+                </tbody>
+            </table>
+        </div>
+
+        {{/if}}
+    </script>-->
+    <script type="text/html" id="appointBookTmpl">
+        <div class="page-item" code="${title}">
+            <h2 class="title titleSpecial" code="${title}">
+                {{if title==='缺陷总览'}}
+                    <span class="titlePay" data-type="2">缺陷总览</span>
+                    <span class="titleNo" data-type="1">控费缺陷</span>
+                {{/if}}
+                {{if title!=='缺陷总览'}}
+                    ${title}
+                {{/if}}
+            </h2>
+            {{if !data || data&&data.length === 0}}
+            <div class="empty">
+                <img src="../images/empty1.png" alt="空"/>
+                <p>暂无信息~</p>
+            </div>
+            {{else}}
+            {{if title==='缺陷总览'}}
+            <table class="scroll-table">
+                <thead>
+                <tr>
+                    <th>来源</th>
+                    <th>缺陷详情</th>
+                    <th>扣分</th>
+                    {{if hasAu2|| hasAu}}<th>操作</th>{{/if}}
+                </tr>
+                </thead>
+                <tbody>
+                    {{if JSON.stringify(data) == "{}"}}
+                    <tr class="empty2">
+                        <td colspan="3" class=""> 
+                            <img src="../images/empty1.png" alt="空"/>
+                            <p>暂无数据~</p></td>
+                    </tr>
+                    {{/if}}
+                {{each(i,val) data}}
+                <tr><td colspan="4" class="slide-up">${i}</td></tr>
+                {{each val}}
+                <tr  code="${i}" {{if isReject==="1"}} class="high-light" {{/if}}>
+                    <td style="text-indent: 14px; {{if isDeleted=='Y'}}  text-decoration:line-through;  {{/if}}">${modelName}</td>
+                    <td>
+                        <a href="javascript:void(0);" class="page-anchor page-anchor-hover" {{if isDeleted=='Y'}}  style="text-decoration:line-through;"  {{/if}} code="${id}">${msg}</a>
+                    </td>
+                    <td class="red" {{if isDeleted=='Y'}}  style="text-decoration:line-through;"  {{/if}}>${score}</td>
+                    {{if hasAu2|| hasAu}}
+                        <td class="oper">
+                            {{if isDeleted=='N'}}
+                                {{if hasAu}}
+                                    <a class="edit-flaw blue" code="${id}" href="javascript:void(0);">编辑</a> 
+                                {{/if}}
+                                {{if hasAu2}}
+                                    <a class="del-flaw red" code="${id}" href="javascript:void(0);">删除</a>
+                                {{/if}}
+                            {{/if}}
+                            {{if isDeleted=='Y'&&hasAu2 }}
+                                <a class="recover-flaw blue" code="${id}" href="javascript:void(0);">恢复</a>
+                            {{/if}}
+                        </td>
+                    {{/if}}
+                </tr>
+                {{/each}}
+                {{/each}}
+                </tbody>
+            </table>
+            {{else}}<table code="${title}" class="interval-color">
+            <thead>
+            <tr>
+                <th width="100" align="center">序号</th>
+                <th>文书详情</th>
+            </tr>
+            </thead>
+            <tbody>
+            {{each(i,val) data}}
+            <tr>
+                <td align="center">${i+1}</td>
+                <td>${recTitle}</td>
+            </tr>
+            {{/each}}
+            </tbody>
+        </table>
+            {{/if}}
+            {{/if}}
+        </div>
+    </script>
+</head>
+
+<body>
+    <div class="main-part clearfix">
+        <div class="sub-menu">
+            <div class="logo">
+                <img src="../images/lantone.png" alt="" style="width: 150px;">
+            </div>
+            <ul id="subMenu" class="subMenu"></ul>
+            <a href="javascript:void(0);" class="slide-show">
+                <img src="../images/down.png" alt="">
+            </a>
+            <div class="copy-right">
+                <p>©杭州朗通信息技术有限公司</p>
+            </div>
+        </div>
+        <div class="menu-mini fl">
+            <div class="logo">
+                朗通
+            </div>
+            <ul></ul>
+            <a href="javascript:void(0);" class="slide-hide">
+                <img src="../images/up.png" alt="">
+            </a>
+
+        </div>
+        <div class="tab-container clearfix">
+            <div class="patient-info" id="patientInfo"></div>
+            <p id="loading">加载中,请稍候 ...</p>
+            <div class="flaw-table">
+                <iframe src="./nursing.html" frameborder="0" id="contentNursing" name="contentNursing"
+                    style="display: none;"></iframe>
+                <iframe src="./advice.html" frameborder="0" id="contentIframeIn" name="contentIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./pacs.html" frameborder="0" id="pacsIframeIn" name="pacsIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./assist.html" frameborder="0" id="assistIframeIn" name="assistIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./pacsDetail.html" frameborder="0" id="pacsDetailIframeIn" name="pacsDetailIframeIn"
+                    style="display: none;"></iframe>
+                <iframe src="./other.html" frameborder="0" id="contentOther" name="contentOther"
+                    style="display: none;"></iframe>
+            </div>
+            <div class="content-box fl" id="contentInfo"></div>
+            <div class="operation fr" id="flaws">
+                <div class="flaw-title">
+                    <span>缺陷详情</span>
+                    <a href="javascript:void(0);" class="add-flaw">+ 新增</a>
+                </div>
+                <div class="flaw-box content-ht">
+                    <!-- 列表项 -->
+                    <!--<div class="empty">
+                        <img src="../images/empty.png" alt="空"/>
+                        <p>暂无详情~</p>
+                    </div>-->
+                </div>
+            </div>
+        </div>
+    </div>
+    <div id="mainBox"></div>
+    <div class="modal" id="delModal">
+        <div class="cover"></div>
+        <div class="modal-box">
+            <div class="modal-header clearfix">
+                <span class="title">提示</span>
+                <a class="close" href="javascript:void(0);">×</a>
+            </div>
+            <div class="modal-body">
+                <!--<p>确定要删除该评分记录吗?</p>-->
+            </div>
+            <div class="modal-footer">
+                <a class="close cancel" href="javascript:void(0);">关闭</a>
+                <a class="confirm" href="javascript:void(0);">保存</a>
+            </div>
+        </div>
+    </div>
+</body>
+
+</html>

File diff suppressed because it is too large
+ 1106 - 0
temp/qcScore.js


File diff suppressed because it is too large
+ 1266 - 0
temp/qcScore.less