<!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">更新时间:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="updateTime" id="updateTime" 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="orderNumber" id="orderNumber" 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="createdBy" id="createdBy" 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="createdDate" id="createdDate" 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="recipientPhone" id="recipientPhone" 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="recipientName" id="recipientName" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">1待审核, 2审核, 3驳回:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="orderStatus" id="orderStatus" 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="operator" id="operator" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">定金支付状态：1支付中，2未支付，3支付完成:</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="depositPaymentStatus" id="depositPaymentStatus" 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 updateTime = $("input[name='updateTime']").val();
           var orderNumber = $("input[name='orderNumber']").val();
           var createdBy = $("input[name='createdBy']").val();
           var createdDate = $("input[name='createdDate']").val();
           var recipientPhone = $("input[name='recipientPhone']").val();
           var recipientName = $("input[name='recipientName']").val();
           var orderStatus = $("input[name='orderStatus']").val();
           var operator = $("input[name='operator']").val();
           var depositPaymentStatus = $("input[name='depositPaymentStatus']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "gkdggl/sgkdgglcustomerorderaudit/sGkdgglCustomerOrderAuditAdd",
            data : {
                "updateTime": updateTime,
                "orderNumber": orderNumber,
                "createdBy": createdBy,
                "createdDate": createdDate,
                "recipientPhone": recipientPhone,
                "recipientName": recipientName,
                "orderStatus": orderStatus,
                "operator": operator,
                "depositPaymentStatus": depositPaymentStatus,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
