<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('发票管理表(开发票，发票查询)修改')" />
</head>
<style>

</style>
<script>

</script>
<body>
<div class="ui-layout-center">
    <form class="form-horizontal" id="form-SDdglFpglInvoiceinfo-edit" th:object="${user}">
        <h4 class="form-header h4">基本信息</h4>
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                    <label class="col-sm-1 control-label">平台订单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="platformOrderNo" placeholder="平台订单号" th:value="${platformOrderNo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">发票代码:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="invoiceCode" placeholder="发票代码" th:value="${invoiceCode}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">发票号码:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="invoiceNumber" placeholder="发票号码" th:value="${invoiceNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">发票金额:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="invoiceAmount" placeholder="发票金额" th:value="${invoiceAmount}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">渠道店铺:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="channelStore" placeholder="渠道店铺" th:value="${channelStore}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单发票类型 (线上, 线下):</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderInvoiceType" placeholder="订单发票类型 (线上, 线下)" th:value="${orderInvoiceType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">发票类型:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="invoiceType" placeholder="发票类型" th:value="${invoiceType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">抬头类型:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="headerType" placeholder="抬头类型" th:value="${headerType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">抬头名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="headerName" placeholder="抬头名称" th:value="${headerName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">开票类型:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="billingType" placeholder="开票类型" th:value="${billingType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">开票时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="billingTime" placeholder="开票时间" th:value="${billingTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">邮寄信息:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="mailingInfo" placeholder="邮寄信息" th:value="${mailingInfo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">开票金额:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="billingAmount" placeholder="开票金额" th:value="${billingAmount}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">店铺名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="storeName" placeholder="店铺名称" th:value="${storeName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">审核类型:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="auditType" placeholder="审核类型" th:value="${auditType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">审核状态:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="auditStatus" placeholder="审核状态" th:value="${auditStatus}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">暂无数据 (0: 否, 1: 是):</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="noData" placeholder="暂无数据 (0: 否, 1: 是)" th:value="${noData}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">合并订单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="mergeOrderNo" placeholder="合并订单号" th:value="${mergeOrderNo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderNo" placeholder="订单号" th:value="${orderNo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">开票状态:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="billingStatus" placeholder="开票状态" th:value="${billingStatus}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">创建时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="createTime" placeholder="创建时间" th:value="${createTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
        <!--<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>
        <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>-->
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>

<script>
    function edit() {
        var data = $("#form-SDdglFpglInvoiceinfo-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "ddgl/sddglfpglinvoiceinfo/sDdglFpglInvoiceinfoEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

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