<!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 id="form-SSpglJfspProductinfo-add" class="customize-search-form">

            <div class="customize-form-group-container"> <div class="customize-form-group">
                <label>审核药师:</label>
                <input name="pharmacistName" placeholder="请输入审核药师" id="pharmacistName" class="styled-input" type="text">
            </div>

            <div class="customize-form-group">
                <label>审核密码:</label>
                <input name="reviewPassword" placeholder="请输入审核密码" id="reviewPassword" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>职位:</label>
                <input name="position" placeholder="请输入职位" id="position" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>所属门店:</label>
                <input name="storeName" placeholder="请输入所属门店" id="storeName" class="styled-input" type="text">
            </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 data = $("#form-SSpglJfspProductinfo-add").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "gxhpz/pharmacists/savePharmacists",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
