<!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">
        <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>
                             <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="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 exampleStatus!=="0"}}
                <div class="oper fr">
                    <a class="edit-flaw blue" code="${id}" href="javascript:void(0);" style="margin-right: 18px;">申诉</a>
                </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">
            {{if score===0}}
            <p><span>评分: </span> 0</p>
            {{else}}
            <p><span>评分: </span> -${score}</p>
            {{/if}}
            <p><span>操作类型: </span>${appealOperationType == 3 ? '恢复条目' : appealOperationType == 1 ? '新增已有条目' : appealOperationType == 2 ? '新增缺失条目' : '删改条目'}</p>
            <p><span>缺陷详情: </span>${msg}</p>
            <div class="drop-box checker-drop-box">
            <span><i class="required">*</i>审核人: </span>
                <span type="text" class="checker-drop-input ellipsis"></span>
                <ul></ul>
            </div>
            <p><span><i class="required">*</i>申诉说明: </span><textarea  id="qcInfo" class="textarea-text" cols="38" rows="6"></textarea></p>
            <p class="warning"><span></span><span class="red">申诉说明不能为空~</span></p>
        </div>
    </script>
    <script type="text/html" id="flawDropTmpl">
        {{each(i,it) info}}
        <li class="infoItem" idx="${i}" name="${it.entryName||it.userName}" code="${it.id}" title="${it.entryName||it.userName}">${it.entryName||it.userName}</li>
        {{/each}}
    </script>
    <script type="text/html" id="addFlawTmpl">
        <div class="edit-box add-box">
            <p><span><i class="required">*</i>操作类型: </span>
                <input type="radio" name="operType" value="1" checked><span class="radio-label">新增已有条目</span>
                <input type="radio" name="operType" value="2"><span class="radio-label">新增缺失条目</span></p>
            <div class="drop-box checker-drop-box">
                <span><i class="required">*</i>审核人: </span>
                <span type="text" class="checker-drop-input ellipsis"></span>
                <ul></ul>
            </div>
            <div class="drop-box flaw-drop-box exist-item">
                <span><i class="required">*</i>质控条目: </span>
                <input type="text" class="flaw-drop-input ellipsis"/>
                <ul></ul>
            </div>
            <p class="exist-item"><span style="margin-right: 16px;"><i class="required">*</i>提示信息:</span><input title="${msg}" class="ellipsis" disabled id="addQcMsg" type="text" value="${msg}" /></p>
            <p class="exist-item"><span><i class="required">*</i>分值:</span> <input id="addQcScore" type="text" value="${score}" disabled onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')"/></p>
            <p class="exist-item"><span style="margin-right: 16px;">备注:</span><input title="${explainInfo}" class="ellipsis" disabled id="addQcInfo" type="text" value="${explainInfo}" autocomplete="off"/></p>
            <p><span><i class="required">*</i>申诉说明: </span><textarea  id="addQcEx" class="textarea-text" cols="40" rows="6"></textarea></p>
            <p class="warning"><span></span><span class="red">支持≥0的数字输入，最多保留小数点后1位~</span></p>
        </div>
    </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="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>
                </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 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" title=${msg} {{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>
                </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>