<!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">
                    <label>医院名称:</label>
                    <input name="standardName" placeholder="请输入医院名称" id="standardName"  th:value="${standardName}" class="styled-input" type="text">
                </div>

                <div class="customize-form-group">
                    <label>医院地址:</label>
                    <input name="address" placeholder="请输入医院地址" id="address" th:value="${address}" class="styled-input" type="text">
                </div>

                <div class="customize-form-group">
                    <label>医院电话:</label>
                    <input name="phone" placeholder="请输入医院电话" id="phone" th:value="${phone}" 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/hospital/hospitalEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

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