<!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">
    <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}">
            {{else}}
        <li class="page  menu-${id}" code="${name}">
            {{/if}}
            {{if sonMode.length}}
            <ul>
                {{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">
        <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>
    </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>
                         </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>${手术医生ID}</td>
         </tr>
         {{/each}}
         </table>
         {{/if}}
    </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 class="title">
                {{if gradeType===2}}
                <i class="add-icon">人工</i>
                {{/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 class="fl">评分：<span class="red">warn</span></p>
                {{else}}
                <p class="fl">评分：<span class="red">-${score}</span></p>
                {{/if}}
                <div class="oper fr">
                    <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>
                </div>
            </div>
        </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" title="${msg}" value="${msg}" /></p>
            <p><span style="margin-right: 8px">分值: </span> <input id="qcScore" type="text" value="${score}" /></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}" class="ellipsis" id="addQcMsg" type="text" value="${msg}" /></p>
            <p><span>分值:</span> <input id="addQcScore" type="text" value="${score}" /></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" code="${title}">${title}</h2>
            {{if !data}}
            <div class="empty">
                <img src="../images/empty.png" alt="空"/>
                <p>暂无信息～</p>
            </div>
            {{else}}
            {{if title==='缺陷总览'}}
            <table class="scroll-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}" {{if isReject==="1"}} class="high-light" {{/if}}>
                    <td style="text-indent: 14px;">${modelName}</td>
                    <td><a href="javascript:void(0);" class="page-anchor" code="${id}">${standardMsg}</a></td>
                    <td class="red">${score}</td>
                </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>
            <a href="javescript:void(0);" class="slide-show">
                <img src="../images/down.png" alt="">
            </a>
            <ul id="subMenu"></ul>
            <div class="copy-right"><p>©杭州朗通信息技术有限公司</p></div>
        </div>
        <div class="menu-mini fl">
            <div class="logo">
                朗通
            </div>
            <a href="javescript:void(0);" class="slide-hide">
                <img src="../images/up.png" alt="">
            </a>
            <ul></ul>
        </div>
        <div class="tab-container clearfix">
            <div class="patient-info" id="patientInfo"></div>
            <p id="loading">加载中，请稍候 ...</p>
            <div class="flaw-table"></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 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="confirm" href="javascript:void(0);">保存</a>
                <!--<a class="close cancel" href="javascript:void(0);">取消</a>-->
            </div>
        </div>
    </div>
</body>
</html>
