<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <title>用药情况</title>
        <meta name="description" content="">
        <link rel="shortcut icon" href="../../favicon.ico">
        <link rel="stylesheet" type="text/css" href="../../css/font-awesome.min93e3.css"/>
        <link href="../../css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="../../css/plugins/chosen/chosen.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/plugins/toastr/toastr.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../js/plugins/layer/skin/layer.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/followup.css"/>
    </head>
    <body>
        <form id="question_form" class="" onsubmit="return false;">
            <div class="clearfix form-info">
                <h1 class="text-center mb30" style="font-size: 20px;">6、用药情况</h1>
                <div class="form-group">
                    <label class="fl h34 lh34">服药依从性：</label>
                    <div class="input-group col-xs-6" style="width: 120px;">
                        <select name="DRUG_COMPLIANCE_CODE" class="my_select_box form-control" >
                            <option value="undefined">请选择</option>
                            <option value="1">规律服药</option>
                            <option value="2">间断服药</option>
                            <option value="3">不服药</option>
                        </select>
                    </div>
                </div>
            </div>
            <table class="table" id="table1">
                <thead>
                    <tr>
                        <th>药品名称</th>
                        <th>次剂量</th>
                        <th>单位</th>
                        <th>频次</th>
                    </tr>
                </thead>
                <tbody>
                    
                </tbody>
            </table>
            <table class="table" id="table2">
                <thead>
                    <tr>
                        <th>胰岛素药品名称</th>
                        <th>次剂量</th>
                        <th>单位</th>
                        <th>频次</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
        </form>
        <div class="mlr30 ui-grid">
            <div class="ui-col-1">
                <a class="link-blue" id="getPrescription">从居民用药记录中获取</a>
            </div>
            <div class="ui-col-1 text-right">
                <a class="link-red">清空用药信息</a>
            </div>
        </div>
        <div class="text-center mt40 mb30">
            <button type="submit" id="submitBtn" class="btn btn-blue">保存并下一步</a>
        </div>
        <script type="text/html" id="drug_tmp">
            {{each dataList as it}}
            <tr class="drugs-tr">
                <td>
                    <div class="input-group">
                        <input type="text" class="form-control j-drugName {{if isInsulin}}isInsulin{{else}}noInsulin{{/if}}" data-id="{{it.drugsCode}}" value="{{it.drugsName}}"  placeholder="请输入药品名称或拼音首码">
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </td>
                <td><input type="number" class="form-control dose" step="0.1" size="5" value="{{it.dose}}"></td>
                <td>
                    <div class="input-group" style="width: 110px;">
                        <input type="text" class="form-control unit-select" data-id="{{it.unit}}" value="{{it.unitName}}" placeholder="请选择">
                        <span><i class="fa fa-angle-down c-arrow"></i></span>
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </td>
                <td>
                    <div class="input-group" style="width: 110px;">
                        <input type="text" class="form-control frequency-select" data-id="{{it.frequency}}" value="{{it.frequencyName}}" placeholder="请选择">
                        <span><i class="fa fa-angle-down c-arrow"></i></span>
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </td>
            </tr>
            {{/each}}
            {{each emptyList as it}}
            <tr class="drugs-tr">
                <td>
                    <div class="input-group">
                        <input type="text" class="form-control j-drugName {{if isInsulin}}isInsulin{{else}}noInsulin{{/if}}" placeholder="请输入药品名称或拼音首码">
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </td>
                <td><input type="number" class="form-control dose" size="5" step="0.1" value=""></td>
                <td>
                    <div class="input-group" style="width: 110px;">
                        <input type="text" class="form-control unit-select" placeholder="请选择">
                        <span><i class="fa fa-angle-down c-arrow"></i></span>
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </td>
                <td>
                    <div class="input-group" style="width: 110px;">
                        <input type="text" class="form-control frequency-select" placeholder="请选择">
                        <span><i class="fa fa-angle-down c-arrow"></i></span>
                        <div class="input-group-btn">
                            <ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
                        </div>
                    </div>
                </td>
            </tr>
            {{/each}}
        </script>
        <script src="../../js/jquery.min.js?v=2.1.4"></script>
        <script src="../../js/bootstrap.min.js?v=3.3.6"></script>
        <script src="../../js/plugins/toastr/toastr.min.js"></script>
        <script src="../../js/plugins/pace/pace.min.js"></script>
        <script src="../../js/plugins/chosen/chosen.jquery.js " type="text/javascript" charset="utf-8"></script>
        <script src="../../js/plugins/layer/layer.min.js"></script>
        <script src="../../js/plugins/suggest/bootstrap-suggest.min.js"></script>
        <script src="../../js/template.js"></script>
        <script src="../../js/util.js"></script>
        <script src="../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/api-service.js"></script>
        <script src="../../js/followup-api.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/buz/followup/template_gxy.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/buz/followup/measure_unit_dict.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/buz/followup/recipe_frequency_dict.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/buz/followup/drugs.js" type="text/javascript" charset="utf-8"></script>
    </body>
</html>
