<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('订单的基础信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-orderbase-edit" th:object="${orderBase}">


            <div class="form-group">
                <label class="col-sm-3 control-label">订单编号：</label>
                <div class="col-sm-8">
                    <input name="orderNumber" th:field="*{orderNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单生成时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="orderCreationTime" th:field="*{orderCreationTime}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单金额：</label>
                <div class="col-sm-8">
                    <input name="orderAmount" th:field="*{orderAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单重量：</label>
                <div class="col-sm-8">
                    <input name="orderAmount" th:field="*{orderWeight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发货过账：</label>
                <div class="col-sm-8">
                    <input name="freezeAmount" th:field="*{shipmentPosted}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发货未过账：</label>
                <div class="col-sm-8">
                    <input name="unclearAmount" th:field="*{shipmentNotPosted}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">未清金额：</label>
                <div class="col-sm-8">
                    <input name="shipmentNotPosted" th:field="*{unclearAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">冻结金额：</label>
                <div class="col-sm-8">
                    <input name="shipmentPosted" th:field="*{freezeAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订单状态：</label>
                <div class="col-sm-8">
                    <select name="status" class="form-control m-b" th:with="type=${@dict.getType('order_type')}" readonly="true" disabled>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{status}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="table-responsive">
                    <table class="table table-bordered table-striped">
                        <thead>
                            <tr>
                                <th>物料名称</th>
                                <th>规格</th>
                                <th>数量</th>
                                <th>未交货数量</th>
                                <th>发货数量</th>
                                <th>已收货数量</th>
                            </tr>
                        </thead>
                        <tbody>
                        <tr  th:each="info,infoStat : ${orderBase.orderLineDetailLineModels}" >
                            <th th:text="${info.materialName}"></th>
                            <th th:text="${info.sizeDim}"></th>
                            <th th:text="${info.count}"></th>
                            <th th:text="${info.notDeliveryCount}"></th>
                            <th th:text="${info.sendCount}"></th>
                            <th th:text="${info.collectCount}"></th>
                        </tr>
                        </tbody>

                </table>

            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        $('input').attr('disabled',true);
        var prefix = ctx + "order/orderbase";
        $("#form-orderbase-edit").validate({
            focusCleanup: true
        });
        function submitHandler() {
            $.modal.close();
        }



    </script>
</body>
</html>