 <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('随访任务详情')" />
    <th:block th:include="include :: layout-latest-css" />
    <th:block th:include="include :: ztree-css" />
</head>
<style>
    .styled-input5 {
        /*display: block; /* 使其独占一行 */
        width: 150px; /* 宽度为容器宽度 */
        height: 26px;
        padding: 6px; /* 内边距 */
        font-size: 14px; /* 字体大小 */
        color: #333; /* 字体颜色 */
        /*background-color: #fff; !* 背景颜色 *!*/
        border: 1px solid #ccc; /* 边框 */
        border-radius: 4px; /* 圆角边框 */
        outline: none; /* 移除轮廓 */
        transition: all 0.3s ease; /* 过渡动画 */
    }
    .btn {
        background-color: #f2f2f2;
        border: none;
        color: black;
        padding: 5px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        margin: 4px 2px;
        cursor: pointer;
    }

    .btn-primary {
        background-color: #1a7bb9;
        color: white;
    }

    .btn-w-m {
        width: max-content;
    }

    .btn-default {
        background-color: #f2f2f2;
        color: black;
    }
    .btn:hover {
        opacity: 0.8;
    }
    .tab-1a {
        padding-left: 50px;
        width: 100px;
        font-size: 15px
    }
    .tab-1b {
        width: 100px;
        color: blue;
        font-size:15px;
    }
    .task-follow-up {
        display: flex;
        align-items: center;
    }

    .follow-up-person, .plan-buttons {
        flex: 1;
    }

    .plan-buttons {
        text-align: right;
    }
    .ibox-title2 {
        display: flex;
        align-items: center;
        justify-content: start;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
    .right-aligned-link {
        float: right;
        margin-left: 20px; /* 增加左侧边距 */
    }

    .right-aligned-link::after {
        content: ">";
        color: blue;
    }
    .task-info {
        flex: 1;
    }

    .task-details {
        flex: 2;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .task-buttons {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .task-buttons span {
        margin-left: 10px;
    }

    .task-details span {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .custom-file-upload {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .custom-file-upload input[type=file] {
        opacity: 0;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
    }

    .custom-file-upload label {
        background-color: white;
        border: 2px dashed #007bff;
        color: #007bff;
        padding: 20px;
        text-align: center;
        display: block;
        min-height: 150px;
    }
    #hbyyjlTable {
        width: 100%;
        border-collapse: collapse;
    }

     th,
     td {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

     thead th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

     tbody tr:hover {
        background-color: #f5f5f5;
    }

     .no-data {
        text-align: center;
        padding: 0px;
    }

    .btn-primarys {
        margin-left: 10px;
        color: green;
    }



    .customize-form-group3 {
        width: 700px;
        display: flex;
    }

    .input-groups3 {
        flex-direction: column;
    }

    .radio-item {
        margin-bottom: 10px;
    }

    .radio-item label {
        margin-left: 5px;
    }

</style>
<script>

</script>
<body>
<div class="">
    <div class="ibox">
        <div class="ibox-title">

            <h5>李华 <span style="font-size: 1.5rem;" class="label-primary">已实名</span></h5>
            <button type="button" class="btn btn-sm btn-danger pull-right" onclick="closeItem()"><i class="fa fa-remove"></i>关 闭 页 面</button>
            <button class="btn btn-w-m btn-primary pull-right"  onclick="editArchives()">编辑档案</button>
        </div>
        <div class="ibox-content">
            <p>
                <span style="font-size: 1.5rem;">性别: </span><code style="font-size: 1.5rem;">男</code>
                <span style="font-size: 1.5rem;">年龄:</span><code style="font-size: 1.5rem;">62</code><span style="font-size: 1.5rem;">岁</span>
                <code style="font-size: 1.5rem;">肿瘤</code>
                <code style="font-size: 1.5rem;">脱落</code>
                <code style="font-size: 1.5rem;">乐卫马</code>
                <span style="font-size: 1.5rem;">用药天数</span>
                <code style="font-size: 1.5rem;">12 </code>
                <span style="font-size: 1.5rem;">天</span>
                <code style="font-size: 1.5rem;">持续购药</code>
            </p>
            <div>
                <span>信息完整度：已完善---></span>
                <div class="stat-percent">90%</div>
                <div class="progress progress-mini">
                    <div style="width: 90%;" class="progress-bar">cscsac</div>
                </div>
            </div>
        </div>
    </div>
    <div class="ui-layout-center">
        <div class="row">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs" id="myUlTabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a>
                        </li>
                        <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">用药购药</a>
                        </li>
                        <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">随访小结</a>
                        </li>
                        <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">随访计划</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                                <form class="customize-search-form" id="form-hz-info" >
                                    <input type="hidden" id="id" name="id" th:value="${id}">
                                    <div class="customize-form-group">
                                        <span class="tab-1a" style="font-size:15px;">手机号:</span> <span class="tab-1b" style="color: #2E2D3C;font-size:15px;">13899845568</span>
                                        <span style="width: 50px;font-size:15px;">疾病:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">慢病</span>
                                        <span style="width: 100px;font-size:15px;">患者是否知情:</span> <span style="width: 50px;color: #2E2D3C;font-size:15px;">是</span>
                                        <span style="width: 80px;font-size:15px;">病理分期:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">慢务处病</span>
                                        <span style="width: 80px;font-size:15px;">治疗分期:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">带无强大</span>
                                        <span style="width: 80px;font-size:15px;">营养评分:</span> <span style="width: 30px;color: #2E2D3C;font-size:15px;">66</span>
                                        <span style="width: 80px;font-size:15px;">病程天数:</span> <span style="width: 30px;color: #2E2D3C;font-size:15px;">6</span>
                                        <span style="width: 80px;font-size:15px;">购药天数:</span> <span style="width: 30px;color: #2E2D3C;font-size:15px;">5</span>
<!--                                        <input name="phoneNumber" id="phoneNumber"   class="styled-input" th:value="${phoneNumber}" readonly>-->
<!--                                        <label>疾病：</label>-->
<!--                                        <input name="diseaseTyp1" id="diseaseType"   class="styled-input" th:value="${diseaseType}" readonly>-->
<!--                                        <label>患者是否知情：</label>-->
<!--                                        <input name="patientAwareness" id="patientAwareness"   class="styled-input" th:value="${patientAwareness}" readonly>-->
<!--                                        <label>病理分期：</label>-->
<!--                                        <input name="pathologicalStage" id="pathologicalStage"   class="styled-input" th:value="${pathologicalStage}" readonly>-->

<!--                                        <label>治疗分期：</label>-->
<!--                                        <input name="treatmentStage" id="treatmentStage"   class="styled-input" th:value="${treatmentStage}" readonly>-->
<!--                                        <label>营养评分：</label>-->
<!--                                        <input name="NutritionalScore" id="NutritionalScore"   class="styled-input" th:value="${NutritionalScore}" readonly>-->
<!--                                        <label>病程天数：</label>-->
<!--                                        <input name="PurchaseDays" id="PurchaseDays"   class="styled-input" th:value="${PurchaseDays}" readonly>-->
<!--                                        <label>购药天数：</label>-->
<!--                                        <input name="DurationDisease" id="DurationDisease"   class="styled-input" th:value="${DurationDisease}" readonly>-->

                                        <span><button class="btn btn-w-m btn-primary pull-right" onclick="showAllUserInfo()">查看全部</button></span>
                                    </div>
                                </form>
                        </div>
                        <div id="tab-2" class="tab-pane">
                                    <div class="panel-body">
                                            <div class="row">
                                                <div class="col-sm-12 select-table table-striped">
                                                    <table id="bootstrap-table-2"></table>
                                                </div>
                                            </div>
                                    </div>
                        </div>
                        <div id="tab-3" class="tab-pane active">
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-sm-12 select-table table-striped">
                                        <table id="bootstrap-table-3"></table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="tab-4" class="tab-pane">
                            <div class="task-follow-up">
                                <div class="follow-up-person">
                                    <label for="followUpPerson" style="padding-left: 50px;">任务跟进人：</label>
                                    <input type="text" id="followUpPerson" value="蒋娟" style="border: none; width: 40px; color: red;" />
                                    <a href="#" onclick="editGenJinRen()">修改<i class="glyphicon glyphicon-pencil"></i></a>
                                </div>
                                <div class="plan-buttons">
                                     <button class="btn btn-w-m btn-primary" onclick="createPlan()">创建计划</button>
                                    <button class="btn btn-w-m btn-primary" onclick="showAllPlan()">查看全部计划</button>
                                </div>
                            </div>

                            <div class="row">
                                <div class="ibox-content">
                                    <div class="ibox-title2">
                                             <code style="font-size: 1.5rem;padding-right: 30px;">
                                                 甲磺酸仑伐替尼胶囊
                                                 <a onclick="editGenJinRen()"><i class="glyphicon glyphicon-pencil"></i></a>
                                             </code>
                                        <code style="font-size: 1.5rem;color: #00B83F;padding-right: 30px;"><i class="glyphicon glyphicon-ice-lolly">常规随访</i></code>
                                            <button style="color: #00B83F;padding-right: 30px;" >进行中</button>
                                        <code style="font-size: 1.5rem;padding-right: 30px;">甲磺酸仑伐替尼胶囊</code>
                                        <code style="font-size: 1.5rem;padding-right: 30px;">(乐卫玛)甲磺酸仑伐替尼胶囊(13%)</code>
                                        <code style="font-size: 1.5rem;padding-right: 30px;">4mgx10粒x3板,Eisai Co</code>
                                        <code style="font-size: 1.5rem;padding-right: 30px;"> Ltd</code>
                                        <a onclick="closePlane()" href="javascript:void(0)" class="right-aligned-link">关闭计划</a>
                                    </div>

                                    </div>

                            </div>
                            <div class="row">
                                <div class="ibox-content">
                                    <div class="ibox-title2">
                                        <span style="padding-left: 10px;font-size:15px;">创建人:</span>
                                        <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">系统订单</span>
                                        <span style="font-size:15px;">开始时间:</span> <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">2024-08-19</span>
                                        <span style="font-size:15px;">更新人:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">宝智达</span>
                                        <span style="font-size:15px;">更新时间:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">2024-08-19</span>
                                        <a href="javascript:void(0)" onclick="ViewOperationLog()" class="right-aligned-link">查看操作记录</a>
                                    </div>

                                </div>

                            </div>
                            <div class="row">
                                <div class="col-sm-12 select-table table-striped">
                                    <table id="bootstrap-table-4"></table>
                                </div>
                            </div>

                            <div class="row">
                                <div class="ibox-content">
                                    <div class="ibox-title2">
                                        <code style="font-size: 1.5rem; padding-right: 30px;">
                                            甲磺酸仑伐替尼胶囊
                                            <a onclick="editGenJinRen()"><i class="glyphicon glyphicon-pencil"></i> </a>
                                        </code>

                                        <code style="font-size: 1.5rem; color:#ec971f;padding-right: 30px;"><i class="glyphicon glyphicon-ice-lolly-tasted">脱落召回</i></code>
                                        <button style="color: #00B83F;padding-right: 30px;" >进行中</button>
                                        <a onclick="closePlane()" href="javascript:void(0)" class="right-aligned-link">关闭计划</a>
                                    </div>

                                </div>

                            </div>
                            <div class="row">
                                <div class="ibox-content">
                                    <div class="ibox-title2">
                                        <span style="padding-left: 10px;font-size:15px;">创建人:</span>
                                        <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">系统订单</span>
                                        <span style="font-size:15px;">开始时间:</span> <span style="width: 120px;color: #2E2D3C;font-size:15px;padding-right: 40px;">2024-08-19</span>
                                        <span style="font-size:15px;">更新人:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">宝智达</span>
                                        <span style="font-size:15px;">更新时间:</span> <span style="width: 100px;color: #2E2D3C;font-size:15px;">2024-08-19</span>
                                        <a href="javascript:void(0)" onclick="ViewOperationLog()" class="right-aligned-link">查看操作记录</a>
                                    </div>

                                </div>

                            </div>
                            <div class="row">
                                <div class="col-sm-12 select-table table-striped">
                                    <table id="bootstrap-table-5"></table>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="ibox-content">
            <div class="ibox-title2">
                <div class="task-info">
                    <h4>本次任务 <code style="font-size: 1.5rem;">待执行</code></h4>
                </div>
                <div class="task-details">
                    <span style="font-size:15px;">任务名称：
                        <span style="font-size:15px;">随访</span>
                    </span>
                        <span style="font-size:15px;">任务主题：
                            <span>
                                <select name="taskTheme" class="styled-input" th:with="type=${@dict.getType('sys_select_dtp_sfrw_rwzt')}">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
                                </select>
                           </span>
                       </span>
                    <span style="font-size:15px;">任务跟进人：
                        <span style="color: #2E2D3C;font-size:15px;"><code style="font-size: 1.4rem;font-size:15px;">蒋娟</code>
                       <a onclick="editGenJinRen()" style="font-size:15px;"> 修改 <i class="glyphicon glyphicon-pencil"></i></a>
                       </span>
                    </span>
                </div>
                <div class="task-buttons">
                    <span style="font-size:15px;">营养测评<a  data-toggle="modal" data-target="#myModalDpg" style="font-size:15px;"> 待评估 <i class="glyphicon glyphicon-edit"></i></a></span>
                    <button class="btn btn-w-m btn-primary" onclick="showDetailHistory()">查看历史随访</button>
                </div>
            </div>
        </div>
            <div class="row">
                <div class="col-sm-12">
                <div class="panel blank-panel">
                    <div class="panel-heading" style="width: 1100px;">
                        <div class="panel-options">
                            <ul class="nav nav-tabs" id="myTabs2">
                                <li class="active"><a data-toggle="tab" href="#tab-5" aria-expanded="true">本次任务</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-6">用药依从性</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-7" >药物安全性</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-8">药物有效性</i></a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-9">治疗方案</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-10">适宜性评估</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-11">用药记录</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-12">量表测评</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-13">患者咨询</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-14">其他</a>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <div class="panel-body">
                        <div class="tab-content">
                            <div id="tab-5" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label class="is-required">回访方式：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangfangshi')}">
                                        <input type="radio" class="form-check-radio"  th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"   th:checked="${dict.dictLabel}==${currentEconomicSituation}" name="currentEconomicSituation" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div id="weixin">
                                    <div class="customize-form-group edit">
                                        <label class="is-required" for="adverseReactionImage">回访图片：</label>
                                        <div class="custom-file-upload">
                                            <input type="file" id="adverseReactionImage" accept=".jpg,.jpeg,.png,.gif">
                                            <label for="adverseReactionImage"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
                                        </div>
                                    </div>

                                </div>
                                <div id="mianfang">
                                    <div class="customize-form-group edit">
                                        <label>面访记录：</label>
                                        <div class="input-groups">
                                            <input name="weight" id="mfjilu" placeholder="请输入面访记录" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                </div>
                                <div class="customize-form-group edit">
                                    <label class="is-required">是否配合：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group">
                                    <label>回访对象：</label>
                                    <select name="bloodPressureStatus" class="select-input" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangduixaing')}">
                                        <option value="">请选择</option>
                                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                th:selected="${dict.dictLabel}==${bloodPressureStatus}"></option>
                                    </select>
                                    <span class="status"></span>
                                </div>
                            </div>
                            <div id="tab-6" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label  >是否持续用药(用药状态):</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_huifangduixaing')}">
                                        <input type="radio" class="form-check-radio"  th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"   th:checked="${dict.dictLabel}==${currentEconomicSituation}" name="currentEconomicSituation" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label class="is-required">确诊后首次用药日期：</label>
                                    <div class="input-groups select-time">
                                        <input name="timeFirstDiagnosis" placeholder="确诊后首次用药日期" class="time-input-new styled-input" type="text"  th:value="${timeFirstDiagnosis}" required>
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>慈善援助用药：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>永久停药时间：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input name="timeFirstDiagnosis" placeholder="永久停药时间" class="time-input-new styled-input" type="text"  th:value="${timeFirstDiagnosis}" required>
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>永久停药原因：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>永久停药：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>其他渠道购药：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>延迟购药(医嘱建议):</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>延迟购药(患者用药不规范:</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>更换治疗用药药品名称:</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="text" class="styled-input" name="followUpFeedbackDoctor" th:value="${followUpFeedbackDoctor}">
                                    </div>
                                    <span class="status"></span>
                                </div>

                             </div>
                            <div id="tab-7" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label  >是否出现不良反应：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio"  th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"   th:checked="${dict.dictLabel}==${currentEconomicSituation}" name="currentEconomicSituation" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div id="bulfyyes">
                                    <div class="customize-form-group edit">
                                        <label>不良反应时间：</label>
                                        <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                            <input name="nyfysj" placeholder="永久停药时间" class="time-input-new styled-input" type="text"  th:value="${timeFirstDiagnosis}" required>
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label>不良反应：</label>
                                    <div class="input-groups">
                                        <input name="weight" id="blfy" placeholder="请输入不良反应" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                    </div>
                                    <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label>不良反应处理方式：</label>
                                        <div class="input-groups">
                                            <input name="weight" id="blfyclfs" placeholder="不良反应处理方式" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                </div>
                                <div id="hbyyqtblfydiv">
                                    <div class="customize-form-group edit">
                                        <label>合并用药其他不良反应：</label>
                                        <div class="input-groups">
                                            <input name="weight" id="hbyyqtblfy" placeholder="合并用药其他不良反应" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label  for="blfyclfsImage">合并用药其他不良反应图片：</label>
                                        <div class="custom-file-upload">
                                            <input type="file" id="blfyclfsImage" name="blfyclfsImage" accept=".jpg,.jpeg,.png,.gif">
                                            <label for="blfyclfsImage"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label>合并用药其他不良反应处理：</label>
                                             <textarea id="hbyyqtqtblfy" name="hbyyqtqtblfy" class="styled-input edit_inputs textareas"
                                                       style="width: auto;height: auto ;border: 1px solid ;"
                                                       th:text="${accompanyingSymptoms}" placeholder="合并用药其他不良反应处理..." rows="4" cols="112" ></textarea>
                                        <span class="status"></span>
                                    </div>

                                </div>
                            </div>
                            <div id="tab-8" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label class="is-required">是否复查：</label>
                                    <select name="patientAwareness" class="select-input" th:with="type=${@dict.getType('sys_yes_no')}" required>
                                        <option value="">请选择</option>
                                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                th:selected="${dict.dictLabel}==${patientAwareness}"></option>
                                    </select>
                                    <span class="status"></span>
                                </div>
                                <div id="sffcyes">
                                    <div class="customize-form-group edit">
                                        <label class="is-required">影像学检查：</label>
                                        <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_bxlx')}" id="targetInsuranceDiv">
                                            <input type="checkbox" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"   name="insurance2">
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div id="ctradio">
                                        <div class="customize-form-group edit" >
                                            <label>CT：</label>
                                            <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_mqjjzt')}">
                                                <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                            </div>
                                            <span class="status"></span>
                                        </div>

                                        <div class="customize-form-group edit">
                                            <label>CT文本：</label>
                                            <div class="input-groups">
                                                <input name="weight" id="CTtext" placeholder="请输入CT文本" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                            </div>
                                            <span class="status"></span>
                                        </div>
                                    </div>
                                    <div id="bcradio">
                                        <div class="customize-form-group edit">
                                            <label>B超：</label>
                                            <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_mqjjzt')}">
                                                <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                            </div>
                                            <span class="status"></span>
                                        </div>

                                        <div class="customize-form-group edit">
                                            <label>B超文本：</label>
                                            <div class="input-groups">
                                                <input name="weight" id="BCtext" placeholder="请输入B超文本" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                            </div>
                                            <span class="status"></span>
                                        </div>
                                    </div>
                                    <div id="HCradio">
                                        <div class="customize-form-group edit">
                                            <label>核磁：</label>
                                            <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_mqjjzt')}">
                                                <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="followUpFeedbackDoctor" >
                                            </div>
                                            <span class="status"></span>
                                        </div>

                                        <div class="customize-form-group edit">
                                            <label>核磁文本：</label>
                                            <div class="input-groups">
                                                <input name="weight" id="HCtext" placeholder="请输入核磁文本它" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                            </div>
                                            <span class="status"></span>
                                        </div>
                                    </div>
                                    <div id="QTradio">
                                        <div class="customize-form-group edit">
                                            <label>影像学检查其它：</label>
                                            <div class="input-groups">
                                                <input name="weight" id="yxxqtjc" placeholder="请输入影像学检查其它" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                            </div>
                                            <span class="status"></span>
                                        </div>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label  for="yxxjctpImage">影像学检查图片：</label>
                                        <div class="custom-file-upload">
                                            <input type="file" id="yxxjctpImage" name="blfyclfsImage" accept=".jpg,.jpeg,.png,.gif">
                                            <label for="yxxjctpImage"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label  for="zlbjwjcImage">肿瘤物标记检查图片：</label>
                                        <div class="custom-file-upload">
                                            <input type="file" id="zlbjwjcImage" name="zlbjwjcImage" accept=".jpg,.jpeg,.png,.gif">
                                            <label for="zlbjwjcImage"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label class="is-required">肿瘤标记物检查：</label>
                                        <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_bxlx')}" id="zlbjwjc">
                                            <input type="checkbox" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"   name="zlbjwjc">
                                        </div>
                                        <span class="status"></span>
                                    </div>

                                    <div id="zlbjwjcfuji">
                                        <div class="customize-form-group edit">
                                            <label>CEA：</label>
                                            <div class="input-groups">
                                                <input name="CEA" id="CEA" placeholder="请输入CEA" class="styled-input edit_inputs" type="text"  th:value="${weight}">
                                            </div>
                                            <span class="status"></span>
                                        </div>
                                    </div>

                                    <div class="customize-form-group edit">
                                        <label>实验室检查指标：</label>
                                        <textarea id="sysjczb" name="sysjczb" class="styled-input edit_inputs textareas"
                                                  style="width: auto;height: 140px ;border: 1px solid ;"
                                                  th:text="${accompanyingSymptoms}" placeholder="实验室检查指标..." rows="1.9" cols="112" ></textarea>

                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label>提示</label>
                                        <input name="tishi" id="tishi" placeholder="可填写中性粒细胞（NEUT）、血小板（PLT）、白蛋白（AIB）、谷丙转氨酶（ALT）、谷草转氨酶（AST）、肌酐（Crea）、总胆红素（T-BIL）" class="styled-input"
                                               style="border: none" type="text"  value="可填写中性粒细胞（NEUT）、血小板（PLT）、白蛋白（AIB）、谷丙转氨酶（ALT）、谷草转氨酶（AST）、肌酐（Crea）、总胆红素（T-BIL）" readonly>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label  for="sysjctbtp">实验室检查指标图片：</label>
                                        <div class="custom-file-upload">
                                            <input type="file" id="sysjctbtp" name="sysjctbtp" accept=".jpg,.jpeg,.png,.gif">
                                            <label for="sysjctbtp"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#007bff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></label>
                                        </div>
                                        <span class="status"></span>
                                    </div>

                                </div>

                            </div>
                            <div id="tab-9" class="tab-pane active">
                                <div class="customize-search-form">
                                <div class="customize-form-group edit">
                                    <label class="is-required">治疗类型：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_phr')}" id="zhiliaolxDiv">
                                        <input type="checkbox" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}" name="zhiliaolx">
                                    </div>
                                    <span class="status"></span>
                                </div>
                                </div>
                                <div class="customize-form-group edit">
                                    <div style="display: flex;">
                                        <label style="width: 100px;">用药前治疗方案:</label>
                                        <button type="button"  data-toggle="modal" data-target="#myModal1" class="btn-primarys">+新增</button>
                                        <table id="yyqzlfaTable" style="width: 500px;">
                                            <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>治疗方案</th>
                                                <th>治疗时间</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="yyqzlfaTableBody">
                                            <!-- 表格行将在这里动态添加 -->
                                            <tr class="no-data" style="display: none;">
                                                <td colspan="7">
                                                    <img th:src="@{/img/locked.png}" alt="暂无数据" style="max-width: 100%;">
                                                    <p>暂无数据</p>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="modal inmodal" id="myModal1" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <form class="form-horizontal" id="form-yyqzlfa-add">
                                                <div class="modal-content animated bounceInRight">
                                                    <div class="modal-header">
                                                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                                                        </button>
                                                        <h4 class="modal-title">用药前治疗方案</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >治疗时间</label>
                                                                <input type="text" name="yyqzltime" placeholder="治疗时间" class="time-input time-input2"  style="width: 200px;" id="yyqzltime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label>治疗方案</label>
                                                                <select name="zlfangan" class="styled-input edit_inputs"  style="width: 200px;" th:with="type=${@dict.getType('sys_select_dtp_ysfw_lxryhzgx')}" id="zlfangan">
                                                                    <option value="">请选择治疗方案</option>
                                                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                                            th:selected="${dict.dictLabel}==${member}"></option>
                                                                </select>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                        <button type="button" class="btn btn-primary" onclick="saveRow(1)">保存</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>

                                <div class="customize-form-group edit">
                                    <div style="display: flex;">
                                        <label style="width: 100px;">目前治疗方案:</label>
                                        <button type="button"  data-toggle="modal" data-target="#myModal1" class="btn-primarys">+新增</button>
                                        <table id="mqzlfaTable" style="width: 500px;">
                                            <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>治疗方案</th>
                                                <th>治疗时间</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="mqzlfaTableBody">
                                            <!-- 表格行将在这里动态添加 -->
                                            <tr class="no-data" style="display: none;">
                                                <td colspan="7">
                                                    <img th:src="@{/img/locked.png}" alt="暂无数据" style="max-width: 100%;">
                                                    <p>暂无数据</p>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="modal inmodal" id="myModal2" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <form class="form-horizontal" id="form-mqzlfa-add">
                                                <div class="modal-content animated bounceInRight">
                                                    <div class="modal-header">
                                                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                                                        </button>
                                                        <h4 class="modal-title">目前治疗方案</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >治疗时间</label>
                                                                <input type="text" name="mqzltime" placeholder="治疗时间" class="time-input time-input2"  style="width: 200px;" id="mqzltime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label>治疗方案</label>
                                                                <select name="muqzlfa" class="styled-input edit_inputs"  style="width: 200px;" th:with="type=${@dict.getType('sys_select_dtp_ysfw_lxryhzgx')}" id="muqzlfa">
                                                                    <option value="">请选择治疗方案</option>
                                                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                                            th:selected="${dict.dictLabel}==${member}"></option>
                                                                </select>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                        <button type="button" class="btn btn-primary" onclick="saveRow(2)">保存</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <div class="customize-form-group edit">
                                    <div style="display: flex;">
                                        <label style="width: 100px;">进展后治疗方案:</label>
                                        <button type="button"  data-toggle="modal" data-target="#myModal3" class="btn-primarys">+新增</button>
                                        <table id="jzhzlfaTable" style="width: 500px;">
                                            <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>治疗方案</th>
                                                <th>治疗时间</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="jzhzlfaTableBody">
                                            <!-- 表格行将在这里动态添加 -->
                                            <tr class="no-data" style="display: none;">
                                                <td colspan="7">
                                                    <img th:src="@{/img/locked.png}" alt="暂无数据" style="max-width: 100%;">
                                                    <p>暂无数据</p>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="modal inmodal" id="myModal3" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <form class="form-horizontal" id="form-jzhzlfa-add">
                                                <div class="modal-content animated bounceInRight">
                                                    <div class="modal-header">
                                                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                                                        </button>
                                                        <h4 class="modal-title">进展后治疗方案</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >治疗时间</label>
                                                                <input type="text" name="jzhzltime" placeholder="治疗时间" class="time-input time-input2"  style="width: 200px;" id="jzhzltime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label>治疗方案</label>
                                                                <select name="jzhzlfa" class="styled-input edit_inputs"  style="width: 200px;" th:with="type=${@dict.getType('sys_select_dtp_ysfw_lxryhzgx')}" id="jzhzlfa">
                                                                    <option value="">请选择治疗方案</option>
                                                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                                            th:selected="${dict.dictLabel}==${member}"></option>
                                                                </select>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                        <button type="button" class="btn btn-primary" onclick="saveRow(3)">保存</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <div id="tab-10" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label class="is-required">有无药品适应症：</label>
                                    <select name="patientAwareness" class="select-input" th:with="type=${@dict.getType('sys_yes_no')}" required>
                                        <option value="">请选择</option>
                                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                th:selected="${dict.dictLabel}==${patientAwareness}"></option>
                                    </select>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label  >药物对该疾病是否有效：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_mqjjzt')}">
                                        <input type="radio" class="form-check-radio"  th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"   th:checked="${dict.dictLabel}==${currentEconomicSituation}" name="currentEconomicSituation" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label class="is-required">药物间是否存在临床相互作用：</label>
                                    <select name="patientAwareness" class="select-input" th:with="type=${@dict.getType('sys_yes_no')}" required>
                                        <option value="">请选择</option>
                                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                th:selected="${dict.dictLabel}==${patientAwareness}"></option>
                                    </select>
                                    <span class="status"></span>
                                </div>
                                <div id="lcxhzydiv">
                                    <div class="customize-form-group edit">
                                        <label class="is-required">请描述临床相互作用：</label>
                                        <textarea id="ms" name="lcxhzy" class="styled-input edit_inputs textareas"
                                                  style="width: auto;height: 140px ;border: 1px solid ;"
                                                  th:text="${accompanyingSymptoms}" placeholder="请描述临床相互作用..." rows="1.9" cols="112" ></textarea>

                                        <span class="status"></span>
                                    </div>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>是否有不必要重复用药：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="bbycfyyis" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div id="sfybycfyyyes">
                                    <div class="customize-form-group edit">
                                        <label class="is-required">重复用药首次使用日期：</label>
                                        <div class="input-groups select-time">
                                            <input name="sfybycfyytime" placeholder="确诊后首次用药日期" class="time-input-new styled-input" type="text"  th:value="${timeFirstDiagnosis}">
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label class="is-required">请描述不必要重复用药：</label>
                                        <textarea id="bbycfyy" name="bbycfyy" class="styled-input edit_inputs textareas"
                                                  style="width: auto;height: 140px ;border: 1px solid ;"
                                                  th:text="${accompanyingSymptoms}" placeholder="请描述不必要重复用药..." rows="1.9" cols="112" ></textarea>

                                        <span class="status"></span>
                                    </div>
                                </div>

                                <div class="customize-form-group edit">
                                    <label>是否出现用药错误：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="yycwis" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div id="yycfyes">
                                    <div class="customize-form-group edit">
                                        <label class="is-required">用药错误出现时间：</label>
                                        <div class="input-groups select-time">
                                            <input name="yycwsj" placeholder="用药错误出现时间" class="time-input-new styled-input" type="text"  th:value="${timeFirstDiagnosis}">
                                        </div>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label class="is-required">请描述用药错误：</label>
                                        <textarea id="yycwms" name="yycwms" class="styled-input edit_inputs textareas"
                                                  style="width: auto;height: 140px ;border: 1px solid ;"
                                                  th:text="${accompanyingSymptoms}" placeholder="请描述用药错误..." rows="1.9" cols="112" ></textarea>
                                        <span class="status"></span>
                                    </div>
                                </div>
                            </div>
                            <div id="tab-11" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <div style="display: flex;">
                                        <label style="width: 100px;">用药记录:</label>
                                        <button type="button"  data-toggle="modal" data-target="#myModal4" class="btn-primarys">+新增</button>
                                        <table id="yyjlTable" style="width: 800px;">
                                            <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>要命剂量</th>
                                                <th>用药频率</th>
                                                <th>开始用药时间</th>
                                                <th>停药时间</th>
                                                <th>最后一次用药时间</th>
                                                <th>注意事项</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="jyyjlTableTableBody">
                                            <!-- 表格行将在这里动态添加 -->
                                            <tr class="no-data" style="display: none;">
                                                <td colspan="7">
                                                    <img th:src="@{/img/locked.png}" alt="暂无数据" style="max-width: 100%;">
                                                    <p>暂无数据</p>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="modal inmodal" id="myModal4" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <form class="form-horizontal" id="form-yyjl-add">
                                                <div class="modal-content animated bounceInRight">
                                                    <div class="modal-header">
                                                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                                                        </button>
                                                        <h4 class="modal-title">用药记录</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >名称</label>
                                                                <input type="text" name="durgName" placeholder="请输入药品名称" class="styled-input edit_inputs"  style="width: 200px;" id="durgName">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >剂量</label>
                                                                <input type="text" name="jiliang" placeholder="请输入剂量" class="styled-input edit_inputs"  style="width: 200px;" id="jiliang">
                                                            </div>
                                                        </div>

                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >开始用药时间</label>
                                                                <input type="text" name="startyyTime" placeholder="请选择开始用药时间" class="time-input time-input2"  style="width: 200px;" id="startyyTime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >停药药时间</label>
                                                                <input type="text" name="tyTime" placeholder="请选择停药药时间" class="time-input time-input2"  style="width: 200px;" id="tyTime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >最后一次用药时间</label>
                                                                <input type="text" name="lastsyTime" placeholder="请选择最后一次用药时间" class="time-input time-input2"  style="width: 200px;" id="lastsyTime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >使用频率</label>
                                                                <input type="text" name="shiypv" placeholder="请输入使用频率" class="styled-input edit_inputs"  style="width: 200px;" id="shiypv">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >注意事项</label>
                                                                <input type="text" name="zhuyishix" placeholder="请输入注意事项" class="styled-input edit_inputs"  style="width: 200px;" id="zhuyishix">
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                        <button type="button" class="btn btn-primary" onclick="saveRow(4)">保存</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <div class="customize-form-group edit">
                                    <div style="display: flex;">
                                        <label style="width: 100px;">合并用药记录:</label>
                                        <button type="button"  data-toggle="modal" data-target="#myModal5" class="btn-primarys">+新增</button>
                                        <table id="hbyyjlTable" style="width: 800px;">
                                            <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>要命剂量</th>
                                                <th>用药频率</th>
                                                <th>开始用药时间</th>
                                                <th>停药时间</th>
                                                <th>最后一次用药时间</th>
                                                <th>注意事项</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="hbyyjlTableTableBody">
                                            <!-- 表格行将在这里动态添加 -->
                                            <!-- 表格行将在这里动态添加 -->

                                            <tr class="no-data" style="display: none;">
                                                <td colspan="7">
                                                    <img th:src="@{/img/locked.png}" alt="暂无数据" style="max-width: 100%;">
                                                    <p>暂无数据</p>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="modal inmodal" id="myModal5" tabindex="-1" role="dialog" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <form class="form-horizontal" id="form-hbyyjl-add">
                                                <div class="modal-content animated bounceInRight">
                                                    <div class="modal-header">
                                                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                                                        </button>
                                                        <h4 class="modal-title">合并用药记录</h4>
                                                    </div>
                                                    <div class="modal-body">
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >名称</label>
                                                                <input type="text" name="hbdurgName" placeholder="请输入药品名称" class="styled-input edit_inputs"  style="width: 200px;" id="hbdurgName">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >剂量</label>
                                                                <input type="text" name="hbjiliang" placeholder="请输入剂量" class="styled-input edit_inputs"  style="width: 200px;" id="hbjiliang">
                                                            </div>
                                                        </div>

                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >开始用药时间</label>
                                                                <input type="text" name="hbstartyyTime" placeholder="请选择开始用药时间" class="time-input time-input2"  style="width: 200px;" id="hbstartyyTime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >停药药时间</label>
                                                                <input type="text" name="hbtyTime" placeholder="请选择停药药时间" class="time-input time-input2"  style="width: 200px;" id="hbtyTime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >最后一次用药时间</label>
                                                                <input type="text" name="hblastsyTime" placeholder="请选择最后一次用药时间" class="time-input time-input2"  style="width: 200px;" id="hblastsyTime">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >使用频率</label>
                                                                <input type="text" name="hbshiypv" placeholder="请输入使用频率" class="styled-input edit_inputs"  style="width: 200px;" id="hbshiypv">
                                                            </div>
                                                        </div>
                                                        <div class="customize-search-form">
                                                            <div class="customize-form-group edit">
                                                                <label >注意事项</label>
                                                                <input type="text" name="hbzhuyishix" placeholder="请输入注意事项" class="styled-input edit_inputs"  style="width: 200px;" id="hbzhuyishix">
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                        <button type="button" class="btn btn-primary" onclick="saveRow(5)">保存</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="tab-12" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label>疼痛标准评分NRS：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_mqjjzt')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="NRS" >
                                    </div>
                                    <span class="status"></span>
                                </div>

                                <div class="customize-form-group edit">
                                    <label>体力状况评分：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_select_dtp_ysfw_ysph')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="tlzkpf" >
                                    </div>
                                    <span class="status"></span>
                                </div>

                            </div>
                            <div id="tab-13" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label>本次回访是否咨询：</label>
                                    <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="bchfsfzx" >
                                    </div>
                                    <span class="status"></span>
                                </div>
                                <div id="bchfsfzxyes">
                                    <div class="customize-form-group edit">
                                        <label class="is-required">咨询问题类型：</label>
                                        <select name="zxwtlx" class="select-input" th:with="type=${@dict.getType('sys_yes_no')}">
                                            <option value="">请选择</option>
                                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                    th:selected="${dict.dictLabel}==${patientAwareness}"></option>
                                        </select>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label>具体问题：</label>
                                        <textarea id="jtwt" name="jtwt" class="styled-input edit_inputs textareas"
                                                  style="width: auto;height: 140px ;border: 1px solid ;"
                                                  th:text="${accompanyingSymptoms}" placeholder="具体问题..." rows="1.9" cols="112" ></textarea>
                                        <span class="status"></span>
                                    </div>
                                    <div class="customize-form-group edit">
                                        <label>药师解答：</label>
                                        <textarea id="ysjd" name="ysjd" class="styled-input edit_inputs textareas"
                                                  style="width: auto;height: 140px ;border: 1px solid ;"
                                                  th:text="${accompanyingSymptoms}" placeholder="1-未按随访进度联系上 2-未按时取药 3-减量或停药 4-不良反应不能耐受 5-医生说要调整治疗方案 6-挂不到医生床位/转院 7-医保不够，经济压力 8-情绪不好，生活压力 9-其他" rows="1.9" cols="112" ></textarea>
                                        <span class="status"></span>
                                    </div>
                                </div>
                            </div>
                            <div id="tab-14" class="tab-pane active">
                                <div class="customize-form-group edit">
                                    <label class="is-required">患者病情评估：</label>
                                    <select name="zxwtlx" class="select-input" th:with="type=${@dict.getType('sys_yes_no')}">
                                        <option value="">请选择</option>
                                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"
                                                th:selected="${dict.dictLabel}==${patientAwareness}"></option>
                                    </select>
                                    <span class="status"></span>
                                </div>
                                <div class="customize-form-group edit">
                                    <label>共建项目描述：</label>
                                    <textarea id="gjxmu" name="ysjd" class="styled-input edit_inputs textareas"
                                              style="width: auto;height: 140px ;border: 1px solid ;"
                                              th:text="${accompanyingSymptoms}" placeholder="请输入共建项目描述" rows="1.9" cols="112" ></textarea>
                                    <span class="status"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <div class="modal inmodal fade" id="myModalDpg" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
                    </button>
                    <span class="modal-title">营养风险筛查NRS-2024评估表</span>
                </div>
                <div class="modal-body">
                    <div class="panel panel-warning">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 评分信息
                        </div>
                        <div class="panel-body">
                            <code style="font-size: 20px;">5<small>分</small></code>
                            <p>分数 ≥ 3.0：患者有营养不良的风险，需营养支持治疗</p>
                        </div>

                    </div>
                    <form id="yyzk-form"  class="customize-search-form">
                        <div class="customize-form-group edit">
                            <label class="is-required">营养状况初评：</label>
                            <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                <input type="radio" class="form-check-radio" th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"  th:checked="${dict.dictLabel}==${followUpFeedbackDoctor}"  name="yyztcp" >
                            </div>
                            <span class="status"></span>
                        </div>
                        <div class="customize-form-group edit">
                            <label>出生年月：</label>
                            <div class="input-groups" th:with="type=${@dict.getType('sys_yes_no')}">
                                <input name="scny" placeholder="出生年月" class="time-input styled-input" type="text">
                                <input name="sui"  class="styled-input5" type="text" value="58" style="border: none; width: 30px;" readonly>
                                <label style="margin-top: 3px;">岁&nbsp;&nbsp;年龄≥70岁 1分</label>
                            </div>
                        </div>
                        <div class="customize-form-group edit">
                            <label>身高：</label>
                            <div class="input-groups">
                                <input name="height" id="height" placeholder="身高" class="styled-input edit_inputs" type="number">
                            </div>
                            <span class="status"></span>
                        </div>
                        <div class="customize-form-group edit">
                            <label>体重：</label>
                            <div class="input-groups">
                                <input name="weight" id="weight" placeholder="体重" class="styled-input edit_inputs" type="number" >
                            </div>
                            <span class="status"></span>
                        </div>
                        <div class="customize-form-group edit">
                            <label>BMI：</label>
                            <div class="input-groups">
                                <input name="bmi" id="bmi"  class="styled-input5 edit_inputs" type="text">
                                <label style="padding-left: 20px;margin-top: 3px;">BMI＜18.5 伴一般情况差 3分</label>
                            </div>
                        </div>

                        <div class="customize-form-group3">
                            <label class="is-required">体重变化：</label>
                            <div class="input-groups3" th:with="type=${@dict.getType('sys_gxhpz_sfrw_tzbh')}">
                                <div th:each="dict : ${type}" class="radio-item">
                                    <input type="radio" class="form-check-radio"
                                           th:text="${dict.dictLabel}"
                                           th:value="${dict.dictLabel}"
                                           th:checked="${dict.dictLabel}==${currentEconomicSituation}"
                                           name="tzbh" />
                                    <label>  </label>
                                </div>
                            </div>
                            <span class="status"></span>
                        </div>

                        <div class="customize-form-group3">
                            <label class="is-required">进食量：</label>
                            <div class="input-groups3" th:with="type=${@dict.getType('sys_gxhpz_sfrw_jsl')}">
                                <div th:each="dict : ${type}" class="radio-item">
                                   <input type="radio" class="form-check-radio"
                                           th:text="${dict.dictLabel}"
                                           th:value="${dict.dictLabel}"
                                           th:checked="${dict.dictLabel}==${currentEconomicSituation}"
                                           name="jsl" />
                                    <label>  </label>
                                </div>
                            </div>
                            <span class="status"></span>
                        </div>

                        <div class="customize-form-group3">
                            <label class="is-required">疾病状态：</label>
                            <div class="input-groups3" th:with="type=${@dict.getType('sys_gxhpz_sfrw_jbzt')}">
                                <div th:each="dict : ${type}" class="radio-item">
                                    <input type="radio" class="form-check-radio"
                                           th:text="${dict.dictLabel}"
                                           th:value="${dict.dictLabel}"
                                           th:checked="${dict.dictLabel}==${currentEconomicSituation}"
                                           name="jbzt" />
                                    <label> </label>
                                </div>
                            </div>
                            <span class="status"></span>
                        </div>

                        </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary">提交</button>
                    </div>
                </div>
            </div>

        </div>
      </div>
    </div>
</div>
<form style="background-color: #f5f3f3;text-align: center;width: auto;" id="form-followUpTaskDetails">
    <div class="ibox-content" style="background-color: #f5f3f3;">
        <div class="ibox-title2">
            <div class="task-info">
                <h4>下次随访时间
                    <input name="nextTime" placeholder="下次随访时间" class="time-input-new styled-input" type="text"  th:value="${timeFirstDiagnosis}" required>
                </h4>
            </div>
            <div class="task-details">
                <h4> <span>间隔本次任务：<span style="color: #1a7bb9;">2</span>天</span></h4>
                <h4> <span>下次任务主题：<span style="color: #1a7bb9;">
                                    <select name="taskTheme" class="styled-input" th:with="type=${@dict.getType('sys_select_dtp_sfrw_rwzt')}">
                                      <option value="">请选择</option>
                                      <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
                                    </select>
                                </span>
                                </span></h4>
            </div>
            <div class="task-buttons">
                <button type="button" class="btn btn-primary" onclick="submitHandler()">保 存</button>
            </div>
        </div>
    </div>
</form>
<th:block th:include="include :: footer" />
<th:block th:include="include :: layout-latest-js" />
<th:block th:include="include :: bootstrap-table-fixed-columns-js" />
<th:block th:include="include :: ztree-js" />
</body>
</html>

<script>
    var formSubmitted = true;
    var prefix = ctx + "dtp/pmService";
    function submitHandler() {
        if ($.validate.form()) {
            var data = $("#form-followUp-edit").serializeArray();
            $.operate.saveTab(prefix + "/followUpEdit", data);
        }
    }
    //初始化加载
    $(document).ready(function() {
        // 获取表格体元素
        var tableBody = document.getElementById('yyqzlfaTableBody');
        // 检查表格体是否有子节点（即是否有数据）
        if (tableBody.childElementCount === 0) {
            // 如果没有数据，显示“暂无数据”
            $("#yyqzlfaTableBody .no-data").show();
        } else {
            // 如果有数据，隐藏“暂无数据”
            $("#yyqzlfaTableBody .no-data").hide();
        }
        // 监听点击事件，激活指定的选项卡
        $('#myUlTabs li a').click(function(e) {
            // 阻止默认行为
            //e.preventDefault();
            // 获取当前点击的选项卡链接
            var $this = $(this);
            if($this.attr('href') === '#tab-1'){
                formSubmitted=true;
            }
            if($this.attr('href') === '#tab-2'){
                formSubmitted=false;
                // 添加 active 类到当前点击的选项卡
                $(this).addClass('active');
                $this.attr('aria-expanded', 'true');

            }
            // 检查是否为“用药购药”选项卡
            if ($this.attr('href') === '#tab-2') {
                // 初始化表格
                initializeTableForTab('tab-2');
            }
            if ($this.attr('href') === '#tab-3') {
                // 初始化表格
                initializeTableForTab('tab-3');
            }
            if ( $this.attr('href') === '#tab-4') {
                // 初始化表格
                initializeTableForTab('tab-4');
                // 初始化表格
                initializeTableForTab('tab-5');
            }

        });

        $('#myTabs2 li a').click(function(e) {
            // 阻止默认行为
            e.preventDefault();
            // 获取当前点击的选项卡链接
            var $this = $(this);
            // 移除所有选项卡的 active 类
            //$('#myTabs li').removeClass('active');
            //$('.tab-pane').removeClass('active in');
            $('#myTabs2 li a').addClass('active');
            // 添加 active 类到当前点击的选项卡
            $this.parent().addClass('active');
            // 获取目标选项卡面板的 ID
            var target = $this.attr('href');
            // 展示对应的选项卡面板，并更新 aria-expanded
            $(target).addClass('active in');
            $this.attr('aria-expanded', 'true');
            // 执行点击链接对应的动作
            $this.tab('show');
            // 移除所有选项卡的激活类
            //$('.active').removeClass('active');
            $(this).addClass('active');
            // 滚动到目标选项卡位置
            // 将目标内容区滚动到视口中央
            $('html, body').animate({
                scrollTop: $(target).offset().top - ($(window).height() / 2)
            }, 500); // 500毫秒动画时间
            // scrollToTab($this);
            // 重新初始化当前选项卡内的表格
            var tableId = target.replace('#', '');
           // initializeTableForTab(tableId);
        });

    });



    function initializeTableForTab(tabId) {
        debugger
        var datas=[];
        var tableId = 'bootstrap-table-' + tabId.substring(4);
        var tableElement = $('#' + tableId);
        var data = {
            "flag": tabId.substring(4),
        };
        console.log("tabId="+tabId.substring(4));
        // 初始化表格 getDrugPurchaseList
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "dtp/pmService/followUpAssignList",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                datas=data.rows;
                $.operate.successCallback(data);
            }
        });
        if(tabId==='tab-2'){
            tableElement.bootstrapTable({
                // 配置表格的相关属性
                // 例如数据源、列定义等
                // 示例配置
                data: datas,
                fitColumns: true,
                striped: true,
                autoRowHeight: true,
                rowNumbers: true,
                showFooter:true,  //是否显示表格底部区域。
                clickToSelect: true, //是否启用点击行时选中整行的功能。
                singleSelect: false, //是否仅允许选择一行
                fixedColumns: true,
                //fixedNumber: 3,
                fixedRightNumber: 1,
                columns : [
                    [
                        { field: 'id', title: '序号' },
                        { field: 'salesOrderNumber', title: '订单编号' },
                        { field: 'prescriptionSource', title: '处方来源' },
                        { field: 'prescriptionDate', title: '处方日期' },
                        { field: 'hospital', title: '医院' },
                        { field: 'doctor', title: '医生' },
                        { field: 'department', title: '科室' },
                        { field: 'diseaseType', title: '疾病类型' },
                        { field: 'clinicalDiagnosis', title: '临床诊断' },
                        { field: 'genericName', title: '药品通用名' },
                        { field: 'productName', title: '商品名' },
                        { field: 'specification', title: '规格' },
                        { field: 'quantity', title: '数量' },
                        { field: 'manufacturer', title: '厂家' },
                        { field: 'mdmCode', title: 'MDM编码' },
                        { field: 'usageMethod', title: '用药途径' },
                        { field: 'frequency', title: '用药频次' },
                        { field: 'wordUsage', title: '单次剂量' },
                        { field: 'medicationCycle', title: '用药周期' },
                        { field: 'registrar', title: '登记人' },
                        { field: 'orderTime', title: '下单时间' },
                        { field: 'drugSource', title: '药品来源' }
                    ]
                ]
            });
            tableElement.bootstrapTable(options);
        }
        if(tabId==='tab-3'){
            var options = {
                data: datas,
                escape: true,
                fitColumns: true,
                striped: true,
                autoRowHeight: true,
                rowNumbers: true,
                showFooter:true,  //是否显示表格底部区域。
                clickToSelect: true, //是否启用点击行时选中整行的功能。
                singleSelect: false, //是否仅允许选择一行
                fixedColumns: true,
                //fixedNumber: 3,
                fixedRightNumber: 1,
                columns: [
                    {field: 'id',title: '序号'},
                    {field: 'taskName',title: '任务名称'},
                    {field: 'filingDate',title: '任务完成时间'},
                    {field: 'taskStatus',title: '随访小结状态'},
                    {field: 'lastOutboundFlag',title: '发送状态'},
                    {field: 'NextCallTime',title: '发送时间'},  {
                        title: '操作',
                        align: 'center',
                        width: '100px',
                        formatter: function(value, row, index) {
                            if (row.id) {
                                var actions = [];
                                actions.push('<a class="btn-info btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
                                return actions.join('');
                            } else {
                                return "";
                            }
                        }
                    }
                ]
            }
            tableElement.bootstrapTable(options);
        }

        if(tabId==='tab-4'){
            tableElement.bootstrapTable({
                // 配置表格的相关属性
                // 例如数据源、列定义等
                // 示例配置
                data: datas,
                fitColumns: true,
                striped: true,
                autoRowHeight: true,
                rowNumbers: true,
                showFooter:true,  //是否显示表格底部区域。
                clickToSelect: true, //是否启用点击行时选中整行的功能。
                singleSelect: false, //是否仅允许选择一行
                fixedColumns: true,
                //fixedNumber: 3,
                fixedRightNumber: 1,
                columns : [
                    [
                        { field: 'id', title: '序号' },
                        { field: 'followUpPersonName', title: '任务名称' },
                        { field: 'disease', title: '任务类型'},
                        { field: 'filingDate', title: '预约时间' },
                        { field: 'lastPurchaseDate', title: '完成时间' },
                        { field: 'patientName', title: '任务跟进人' },
                        { field: 'patientAssignmentStatus', title: '任务状态' },
                        {
                            title: '操作',
                            align: 'center',
                            width: '180px',
                            formatter: function(value, row, index) {
                                if (row.id) {
                                    var actions = [];
                                    actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
                                    actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">关闭任务</a> ');
                                    return actions.join('');
                                } else {
                                    return "";
                                }
                            }
                        }
                    ]
                ]
            });
            tableElement.bootstrapTable(options);
        }
        if(tabId==='tab-5'){
            tableElement.bootstrapTable({
                // 配置表格的相关属性
                // 例如数据源、列定义等
                // 示例配置
                data: datas,
                fitColumns: true,
                striped: true,
                autoRowHeight: true,
                rowNumbers: true,
                showFooter:true,  //是否显示表格底部区域。
                clickToSelect: true, //是否启用点击行时选中整行的功能。
                singleSelect: false, //是否仅允许选择一行
                fixedColumns: true,
                //fixedNumber: 3,
                fixedRightNumber: 1,
                columns : [
                    [
                        { field: 'id', title: '序号' },
                        { field: 'followUpPersonName', title: '任务名称' },
                        { field: 'disease', title: '任务类型'},
                        { field: 'filingDate', title: '预约时间' },
                        { field: 'lastPurchaseDate', title: '完成时间' },
                        { field: 'patientName', title: '任务跟进人' },
                        { field: 'patientAssignmentStatus', title: '任务状态' },
                        {
                            title: '操作',
                            align: 'center',
                            width: '180px',
                            formatter: function(value, row, index) {
                                if (row.id) {
                                    var actions = [];
                                    actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">查看</a> ');
                                    actions.push('<a class="btn-xs" href="javascript:void(0)" onclick="edit(\'' + row.id + '\')">关闭任务</a> ');
                                    return actions.join('');
                                } else {
                                    return "";
                                }
                            }
                        }
                    ]
                ]
            });
        }
        tableElement.bootstrapTable(options);
    }
    var editArchives = function(){
        var id = $("#id").val();
        table.set();
        var prefix = ctx + "dtp/pmService/archivesEdit/{id}";
        $.modal.openTab("修改档案", prefix.replace("{id}", id));
    }
</script>
