<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('门店积分商品列表修改')" />
</head>
<body>
<div class="ui-layout-center">
    <form id="form-SSpglJfspProductinfo-edit" class="customize-search-form">

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

                    <div class="customize-form-group">
                        <label>审核密码:</label>
                        <input name="reviewPassword" placeholder="请输入审核密码" id="reviewPassword" th:value="${reviewPassword}" class="styled-input" type="text">
                    </div>
                    <div class="customize-form-group">
                        <label>职位:</label>
                        <input name="position" placeholder="请输入职位" id="position" th:value="${position}" class="styled-input" type="text">
                    </div>
                    <div class="customize-form-group">
                        <label>所属门店:</label>
                        <input name="storeName" placeholder="请输入所属门店" id="storeName" th:value="${storeName}" class="styled-input" type="text">
                    </div>
            </div>
        </div>

    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>
<script>
    function edit() {
        var data = $("#form-SSpglJfspProductinfo-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "gxhpz/pharmacists/pharmacistsEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

    function submitHandler() {
        if ($.validate.form()) {
            edit();
        }
    }
</script>
