<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('健康报告列表新增')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-role-add">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                            <label class="col-sm-3 control-label">健康方案ID:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="healthPlanId" id="healthPlanId" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">健康方案名称:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="healthPlanName" id="healthPlanName" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">连锁用户ID:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="chainUserId" id="chainUserId" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">用户姓名:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="userName" id="userName" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">填写人:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="filler" id="filler" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">填写人手机号:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="fillerPhoneNumber" id="fillerPhoneNumber" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">填写来源:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="fillSource" id="fillSource" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">连锁名称:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="chainName" id="chainName" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">报告生成时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="reportGenerationTime" id="reportGenerationTime" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                </div>
            </div>

        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: ztree-js" />
<script type="text/javascript">

    function submitHandler() {
        if ($.validate.form()) {
            add();
        }
    }

    function add() {
           var healthPlanId = $("input[name='healthPlanId']").val();
           var healthPlanName = $("input[name='healthPlanName']").val();
           var chainUserId = $("input[name='chainUserId']").val();
           var userName = $("input[name='userName']").val();
           var filler = $("input[name='filler']").val();
           var fillerPhoneNumber = $("input[name='fillerPhoneNumber']").val();
           var fillSource = $("input[name='fillSource']").val();
           var chainName = $("input[name='chainName']").val();
           var reportGenerationTime = $("input[name='reportGenerationTime']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "gjgzt/sgjgzthealthplaninfo/sGjgztHealthplaninfoAdd",
            data : {
                "healthPlanId": healthPlanId,
                "healthPlanName": healthPlanName,
                "chainUserId": chainUserId,
                "userName": userName,
                "filler": filler,
                "fillerPhoneNumber": fillerPhoneNumber,
                "fillSource": fillSource,
                "chainName": chainName,
                "reportGenerationTime": reportGenerationTime,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
