安东尼奥发货看板显示数据定时刷新,列字段间距修改、每页显示15条数据
1个文件已修改
56 ■■■■■ 已修改文件
Delivery.html 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Delivery.html
@@ -30,6 +30,7 @@
        .layui-table td {
            font-weight: bold;
        }
        .clock {
            font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
            font-size: 20px;
@@ -380,7 +381,10 @@
                }, 20000);
                interval1 = setInterval(function () {
                    $("#tb_order").bootstrapTable('refresh');
                }, 1000);
                    DataTable();
                    DataTable2();
                    DataTable3();
                }, 30000);
                //根据浏览器大小改变大小
                //window.onresize = () => {
                //    mychart1.resize();
@@ -710,7 +714,7 @@
                        type: "GET",
                        url: GetWEBURL() + '/loaddata/DeliveryTableData',
                        contentType: "application/json;charset=utf-8",
                        data: { "limit": "10", "offset": num },
                        data: { "limit": "15", "offset": num },
                        async: false,
                        dataType: "json",
                        json: 'callback',
@@ -726,13 +730,16 @@
                                    if (result.columnNameList[key].ColmType == "Decimal") {
                                        col.push({
                                            field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) {
                                            field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120, formatter: function (value, row, index) {
                                                return parseFloat(value).toFixed(2);
                                            }
                                        });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '日期' || result.columnNameList[key].ColmCols == '客户名称') {
                                    else if (result.columnNameList[key].ColmCols == '日期' || result.columnNameList[key].ColmCols == '客户名称' || result.columnNameList[key].ColmCols == '司机电话') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120 });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '装车时间' || result.columnNameList[key].ColmCols == '进厂时间' || result.columnNameList[key].ColmCols == '出厂时间') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 170 });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '物料名称') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 });
@@ -740,12 +747,12 @@
                                    else if (result.columnNameList[key].ColmCols == '规格型号') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 250 });
                                    } else {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 });
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 110 });
                                    }
                            }
                            var num_total = (result.total) / 10;
                            var num_total = (result.total) / 15;
                            if (num >= num_total) {
                                num = 0;
                            }
@@ -755,7 +762,8 @@
                                , toolbar: '#toolbarDemo'
                                , data: result.rows
                                , page: true    // 开启分页
                                , limit: 10
                                , limit: 15
                                , limits: [15, 30, 45, 60, 75, 100, 115, 130, 145, 160, 175, 200]
                                , cols: [col]
                                , done: function (res, curr, count) {
                                    res.data.forEach(function (item, index) {
@@ -861,7 +869,7 @@
                        type: "GET",
                        url: GetWEBURL() + '/loaddata/DeliveryTableData2',
                        contentType: "application/json;charset=utf-8",
                        data: { "limit": "10", "offset": num2 },
                        data: { "limit": "15", "offset": num2 },
                        async: false,
                        dataType: "json",
                        json: 'callback',
@@ -876,13 +884,16 @@
                                    if (result.columnNameList[key].ColmType == "Decimal") {
                                        col.push({
                                            field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) {
                                            field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120, formatter: function (value, row, index) {
                                                return parseFloat(value).toFixed(2);
                                            }
                                        });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '日期' || result.columnNameList[key].ColmCols == '客户名称') {
                                    else if (result.columnNameList[key].ColmCols == '日期' || result.columnNameList[key].ColmCols == '客户名称' || result.columnNameList[key].ColmCols == '司机电话') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120 });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '装车时间' || result.columnNameList[key].ColmCols == '进厂时间' || result.columnNameList[key].ColmCols == '出厂时间') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 170 });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '物料名称') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 });
@@ -890,12 +901,12 @@
                                    else if (result.columnNameList[key].ColmCols == '规格型号') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 250 });
                                    } else {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 });
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 110 });
                                    }
                            }
                            var num_total2 = (result.total) / 10;
                            var num_total2 = (result.total) / 15;
                            if (num2 >= num_total2) {
                                num2 = 0;
                            }
@@ -905,7 +916,8 @@
                                , toolbar: '#toolbarDemo2'
                                , data: result.rows
                                , page: true    // 开启分页
                                , limit: 10
                                , limit: 15
                                , limits: [15, 30, 45, 60, 75, 100, 115, 130, 145, 160, 175, 200]
                                , cols: [col]
                                , done: function (res, curr, count) {
                                    res.data.forEach(function (item, index) {
@@ -996,7 +1008,7 @@
                        type: "GET",
                        url: GetWEBURL() + '/loaddata/DeliveryTableData3',
                        contentType: "application/json;charset=utf-8",
                        data: { "limit": "10", "offset": num3 },
                        data: { "limit": "15", "offset": num3 },
                        async: false,
                        dataType: "json",
                        json: 'callback',
@@ -1011,13 +1023,16 @@
                                    if (result.columnNameList[key].ColmType == "Decimal") {
                                        col.push({
                                            field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100, formatter: function (value, row, index) {
                                            field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120, formatter: function (value, row, index) {
                                                return parseFloat(value).toFixed(2);
                                            }
                                        });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '日期' || result.columnNameList[key].ColmCols == '客户名称') {
                                    else if (result.columnNameList[key].ColmCols == '日期' || result.columnNameList[key].ColmCols == '客户名称' || result.columnNameList[key].ColmCols == '司机电话') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 120 });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '装车时间' || result.columnNameList[key].ColmCols == '进厂时间' || result.columnNameList[key].ColmCols == '出厂时间') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 170 });
                                    }
                                    else if (result.columnNameList[key].ColmCols == '物料名称') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 150 });
@@ -1025,12 +1040,12 @@
                                    else if (result.columnNameList[key].ColmCols == '规格型号') {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 250 });
                                    } else {
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 100 });
                                        col.push({ field: result.columnNameList[key].ColmCols, title: result.columnNameList[key].ColmCols, align: 'center', width: 110 });
                                    }
                            }
                            var num_total3 = (result.total) / 10;
                            var num_total3 = (result.total) / 15;
                            if (num3 >= num_total3) {
                                num3 = 0;
                            }
@@ -1040,7 +1055,8 @@
                                , toolbar: '#toolbarDemo3'
                                , data: result.rows
                                , page: true    // 开启分页
                                , limit: 10
                                , limit: 15
                                , limits: [15, 30, 45, 60, 75, 100, 115, 130, 145, 160, 175, 200]
                                , cols: [col]
                                , done: function (res, curr, count) {
                                    res.data.forEach(function (item, index) {
@@ -1170,7 +1186,7 @@
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="OutFactory1">出厂</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="DOutFactory1">撤销出厂</button>
                            </div>
                        </script>S
                        </script>
                    </div>
                </div>
                <!--基本信息-->