<!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="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="chain" id="chain" 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="servicePackageId" id="servicePackageId" 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="servicePackageName" id="servicePackageName" 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="orderTime" id="orderTime" 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="userId" id="userId" 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="orderingPhone" id="orderingPhone" 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="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="orderingStore" id="orderingStore" 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="scanningStaffNumber" id="scanningStaffNumber" 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="scanningStaffName" id="scanningStaffName" 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="scanningTime" id="scanningTime" 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 orderNumber = $("input[name='orderNumber']").val();
           var chain = $("input[name='chain']").val();
           var servicePackageId = $("input[name='servicePackageId']").val();
           var servicePackageName = $("input[name='servicePackageName']").val();
           var orderTime = $("input[name='orderTime']").val();
           var userId = $("input[name='userId']").val();
           var orderingPhone = $("input[name='orderingPhone']").val();
           var orderStatus = $("input[name='orderStatus']").val();
           var orderingStore = $("input[name='orderingStore']").val();
           var scanningStaffNumber = $("input[name='scanningStaffNumber']").val();
           var scanningStaffName = $("input[name='scanningStaffName']").val();
           var scanningTime = $("input[name='scanningTime']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "fwgl/sfwglservicepackageinfo/sFwglServicepackageinfoAdd",
            data : {
                "orderNumber": orderNumber,
                "chain": chain,
                "servicePackageId": servicePackageId,
                "servicePackageName": servicePackageName,
                "orderTime": orderTime,
                "userId": userId,
                "orderingPhone": orderingPhone,
                "orderStatus": orderStatus,
                "orderingStore": orderingStore,
                "scanningStaffNumber": scanningStaffNumber,
                "scanningStaffName": scanningStaffName,
                "scanningTime": scanningTime,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
