安东尼奥发货看板显示数据定时刷新,列字段间距修改、每页显示15条数据
| | |
| | | .layui-table td { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .clock { |
| | | font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif; |
| | | font-size: 20px; |
| | |
| | | }, 20000); |
| | | interval1 = setInterval(function () { |
| | | $("#tb_order").bootstrapTable('refresh'); |
| | | }, 1000); |
| | | DataTable(); |
| | | DataTable2(); |
| | | DataTable3(); |
| | | }, 30000); |
| | | //根据浏览器大小改变大小 |
| | | //window.onresize = () => { |
| | | // mychart1.resize(); |
| | |
| | | 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', |
| | |
| | | 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 }); |
| | |
| | | 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; |
| | | } |
| | |
| | | , 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) { |
| | |
| | | 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', |
| | |
| | | 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 }); |
| | |
| | | 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; |
| | | } |
| | |
| | | , 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) { |
| | |
| | | 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', |
| | |
| | | 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 }); |
| | |
| | | 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; |
| | | } |
| | |
| | | , 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) { |
| | |
| | | <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> |
| | | <!--基本信息--> |