<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('交货单基础列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>订单号：</p>
                                <input type="text" name="orderNumber"/>
                            </li>
                            <li>
                                <p>交货单号：</p>
                                <input type="text" name="deliveryNumber"/>
                            </li>
                            <li>
                                <p>运单号：</p>
                                <input type="text" name="shipmentNumber"/>
                            </li>
                            <li>
                                <p>客户编码：</p>
                                <input type="text" name="belongTo"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-primary single disabled" onclick="$.operate.detail()" shiro:hasPermission="orderBase:evaluateManage:details">
                    <i class="fa fa-edit"></i> 详情
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="orderBase:evaluateManage:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "orderBase/evaluateManage";

        $(function() {
            var options = {
                url: prefix + "/list",
                detailUrl: prefix + "/details/{id}",
                exportUrl: prefix + "/export",
                modalName: "评价列表",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : 'id',
                    visible: false
                },
                {
                    field : 'orderNumber', 
                    title : '订单号'
                },
                {
                    field : 'orderCreationTime', 
                    title : '订单生成时间'
                },
                {
                    field : 'deliveryNumber', 
                    title : '交货单号'
                },
                {
                    field : 'shipmentNumber', 
                    title : '运单号'
                },
                {
                    field : 'belongTo', 
                    title : '客户编码'
                },
                {
                    field : 'customersName',
                    title : '客户名称'
                },
                {
                    field : 'evaluationServiceAttitude', 
                    title : '评价服务态度'
                },
                {
                    field : 'evaluationDamageCondition', 
                    title : '评价破损情况'
                },
                {
                    field : 'evaluationArriveTime', 
                    title : '评价按时到达'
                },
                {
                    field : 'evaluationHandlingConditions', 
                    title : '评价装卸情况'
                },
                {
                    field : 'evaluation', 
                    title : '文字评价'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>