<!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="platformOrderNo" id="platformOrderNo" 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="invoiceCode" id="invoiceCode" 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="invoiceNumber" id="invoiceNumber" 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="invoiceAmount" id="invoiceAmount" 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="channelStore" id="channelStore" 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="orderInvoiceType" id="orderInvoiceType" 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="invoiceType" id="invoiceType" 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="headerType" id="headerType" 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="headerName" id="headerName" 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="billingType" id="billingType" 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="billingTime" id="billingTime" 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="mailingInfo" id="mailingInfo" 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="billingAmount" id="billingAmount" 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="storeName" id="storeName" 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="auditType" id="auditType" 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="auditStatus" id="auditStatus" class="styled-input" type="text" maxlength="255" >
                                </div>
                            </div>
                            <label class="col-sm-3 control-label">暂无数据 (0: 否, 1: 是):</label>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input name="noData" id="noData" 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="mergeOrderNo" id="mergeOrderNo" 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="orderNo" id="orderNo" 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="billingStatus" id="billingStatus" 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="createTime" id="createTime" 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 platformOrderNo = $("input[name='platformOrderNo']").val();
           var invoiceCode = $("input[name='invoiceCode']").val();
           var invoiceNumber = $("input[name='invoiceNumber']").val();
           var invoiceAmount = $("input[name='invoiceAmount']").val();
           var channelStore = $("input[name='channelStore']").val();
           var orderInvoiceType = $("input[name='orderInvoiceType']").val();
           var invoiceType = $("input[name='invoiceType']").val();
           var headerType = $("input[name='headerType']").val();
           var headerName = $("input[name='headerName']").val();
           var billingType = $("input[name='billingType']").val();
           var billingTime = $("input[name='billingTime']").val();
           var mailingInfo = $("input[name='mailingInfo']").val();
           var billingAmount = $("input[name='billingAmount']").val();
           var storeName = $("input[name='storeName']").val();
           var auditType = $("input[name='auditType']").val();
           var auditStatus = $("input[name='auditStatus']").val();
           var noData = $("input[name='noData']").val();
           var mergeOrderNo = $("input[name='mergeOrderNo']").val();
           var orderNo = $("input[name='orderNo']").val();
           var billingStatus = $("input[name='billingStatus']").val();
           var createTime = $("input[name='createTime']").val();

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "ddgl/sddglfpglinvoiceinfo/sDdglFpglInvoiceinfoAdd",
            data : {
                "platformOrderNo": platformOrderNo,
                "invoiceCode": invoiceCode,
                "invoiceNumber": invoiceNumber,
                "invoiceAmount": invoiceAmount,
                "channelStore": channelStore,
                "orderInvoiceType": orderInvoiceType,
                "invoiceType": invoiceType,
                "headerType": headerType,
                "headerName": headerName,
                "billingType": billingType,
                "billingTime": billingTime,
                "mailingInfo": mailingInfo,
                "billingAmount": billingAmount,
                "storeName": storeName,
                "auditType": auditType,
                "auditStatus": auditStatus,
                "noData": noData,
                "mergeOrderNo": mergeOrderNo,
                "orderNo": orderNo,
                "billingStatus": billingStatus,
                "createTime": createTime,
            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
