<%@ page contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <!-- 移动设备 viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <jsp:include page="../../../common.jsp"/>
</head>
<body>
<div class="row animated fadeInRight" style="margin: 0;">

    <div class="mb50 mt10">
        <div class="whitebg pl10 pr10">
            <table class="layui-hide" id="mercOrderExpressDetailTab" lay-filter="mercOrderExpressDetailTab"></table>
        </div>
    </div>
</div>
<script>
    layui.use(['table', 'layer'], function () {
        var table = layui.table;
        var layer = layui.layer;

        var tableIns = table.render({
            elem: '#mercOrderExpressDetailTab'
            , url: '${ctx}/mercOrderExpressDetail/page'
            , id: 'mercOrderExpressDetail'
            , where:{
                expressNo : '${expressNo}'
            }
            , response: {
                statusName: 'code' //数据状态的字段名称，默认：code
                , countName: 'count' //数据总数的字段名称，默认：count
                , dataName: 'data' //默数据列表的字段名称，认：data
                , statusCode: 200
            }
            , parseData: function (res) { //res 即为原始返回的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.message, //解析提示文本
                    "count": res.data.total, //解析数据长度
                    "data": res.data.records //解析数据列表
                };
            }
            , defaultToolbar: ['filter']
            , defaultToolbar: ['filter', 'exports', 'print', { //自定义头部工具栏右侧图标。如无需自定义，去除该参数即可
                title: '提示'
                , layEvent: 'LAYTABLE_TIPS'
                , icon: 'layui-icon-tips'
            }]
            , title: '订单物流详情'
            , cols: [[
                {type: 'checkbox', fixed: 'left', hidden: true}
                , {field: 'orderNo', title: '订单号',width: 200}
                , {field: 'expressNo', title: '快递单号',width: 150}
                , {field: 'remark', title: '备注'}
                , {field: 'questionCause', title: '失败原因',width: 100}
                , {field: 'weight', title: '重量(kg)',width: 100}
                , {
                    field: 'acceptTime',
                    title: '处理时间',
                    width: 140,
                    templet: "<div>{{layui.util.toDateString(d.acceptTime,'yyyy-MM-dd HH:mm')}}</div>"
                 }
            ]]
            , request: {
                pageName: 'current' //页码的参数名称，默认：page
                , limitName: 'size' //每页数据量的参数名，默认：limit
            }
            , page: true
        });
    });
</script>
</body>
</html>
