| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="shortcut icon" href="/img/logo.png" />
- <link rel="bookmark" href="/img/logo.png" />
- <link href="/Plugins/animate/animate.min.css" rel="stylesheet" />
- <link rel="stylesheet" href="../DashBoard.css?v3" />
- <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
- <script src="/Plugins/animate/xanimate.js"></script>
- <script src="/Plugins/xrequest/xrequest.min.js"></script>
- <title>东科软件</title>
- </head>
- <body style="background-color:black;">
- <div class="box_1920_1080">
- <div class="box_title" style="display:flex;flex-direction:row;">
- <div style="width:30%;text-align:left;"></div>
- <div style="width: 40%; text-align: center; font-size: 38px; font-weight: 700">成检工序看板</div>
- <div style="width:30%;text-align:right;"><span class="box_title_loading" style="font-size:32px;" id="报表加载"></span></div>
- </div>
- <div class="box_body" style="display: flex; flex-direction: column;">
- <!--31天产量曲线图-->
- <div style="width:1840px;height:400px;display:flex;flex-direction:row;">
- <div style="width: 100%; height: 400px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">每日产量计划达成</div>
- <canvas id="canvasDayCL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 350px; width: 100%"></canvas>
- </div>
- </div>
- <!--表格-->
- <div style="width:1840px;height:530px;display:flex;flex-direction:row;">
- <div style="width: 50%;height:530px;padding-right:20px;">
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%">
- <tr class="tr_title_warning">
- <td colspan="9" style="color:white;">每日型号达成情况</td>
- </tr>
- <tr class="tr_title_warning">
- <td style="font-size: 18px; width: 25%">产品型号</td>
- <td style="font-size: 18px; width: 25%">计划数量</td>
- <td style="font-size: 18px; width: 25%">达成数量</td>
- <td style="font-size: 18px; width: 25%">达成率</td>
- </tr>
- </table>
- <div style="display:flex; height:460px;overflow:hidden;">
- <table id="table1" cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">1</td>
- <td style="font-size: 18px; width: 25%">1</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">2</td>
- <td style="font-size: 18px; width: 25%">2</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">3</td>
- <td style="font-size: 18px; width: 25%">3</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">4</td>
- <td style="font-size: 18px; width: 25%">4</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">5</td>
- <td style="font-size: 18px; width: 25%">5</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">6</td>
- <td style="font-size: 18px; width: 25%">6</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">7</td>
- <td style="font-size: 18px; width: 25%">7</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">8</td>
- <td style="font-size: 18px; width: 25%">8</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">9</td>
- <td style="font-size: 18px; width: 25%">9</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">11</td>
- <td style="font-size: 18px; width: 25%">11</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">12</td>
- <td style="font-size: 18px; width: 25%">12</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">13</td>
- <td style="font-size: 18px; width: 25%">13</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">14</td>
- <td style="font-size: 18px; width: 25%">14</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">15</td>
- <td style="font-size: 18px; width: 25%">15</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">16</td>
- <td style="font-size: 18px; width: 25%">16</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">17</td>
- <td style="font-size: 18px; width: 25%">17</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">18</td>
- <td style="font-size: 18px; width: 25%">18</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">19</td>
- <td style="font-size: 18px; width: 25%">19</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width: 50%;height:530px;padding-right:20px;">
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%">
- <tr class="tr_title_warning">
- <td colspan="9" style="color:white;">每月型号达成情况</td>
- </tr>
- <tr class="tr_title_warning">
- <td style="font-size: 18px; width: 25%">产品型号</td>
- <td style="font-size: 18px; width: 25%">计划数量</td>
- <td style="font-size: 18px; width: 25%">达成数量</td>
- <td style="font-size: 18px; width: 25%">达成率</td>
- </tr>
- </table>
- <div style="display:flex; height:460px;overflow:hidden;">
- <table id="table1" cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">1</td>
- <td style="font-size: 18px; width: 25%">1</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">2</td>
- <td style="font-size: 18px; width: 25%">2</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">3</td>
- <td style="font-size: 18px; width: 25%">3</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">4</td>
- <td style="font-size: 18px; width: 25%">4</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">5</td>
- <td style="font-size: 18px; width: 25%">5</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">6</td>
- <td style="font-size: 18px; width: 25%">6</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">7</td>
- <td style="font-size: 18px; width: 25%">7</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">8</td>
- <td style="font-size: 18px; width: 25%">8</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">9</td>
- <td style="font-size: 18px; width: 25%">9</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">11</td>
- <td style="font-size: 18px; width: 25%">11</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">12</td>
- <td style="font-size: 18px; width: 25%">12</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">13</td>
- <td style="font-size: 18px; width: 25%">13</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">14</td>
- <td style="font-size: 18px; width: 25%">14</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">15</td>
- <td style="font-size: 18px; width: 25%">15</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">16</td>
- <td style="font-size: 18px; width: 25%">16</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">17</td>
- <td style="font-size: 18px; width: 25%">17</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">18</td>
- <td style="font-size: 18px; width: 25%">18</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 25%">H0966L-W</td>
- <td style="font-size: 18px; width: 25%">19</td>
- <td style="font-size: 18px; width: 25%">19</td>
- <td style="font-size: 18px; width: 25%">80%</td>
- </tr>
- </table>
- </div>
- </div>
- <!--<div style="width: 25%;height:530px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">每月产量计划达成</div>
- <canvas id="canvasMonthCL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 400px; width: 100%"></canvas>
- </div>-->
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- initData();
- doGetData = setInterval(function () { timeUpdate(); }, 2000);
- setInterval(timerFn, 3000);
- });
- function timerFn(){
- var scrollHeight = $("#table1").find("tr").outerHeight();
- $("#table1").animate({marginTop: -scrollHeight,},500,
- function () {
- $(this).css({marginTop: "0px",}).find("tr:first").appendTo(this);
- }
- );
- }
- function timeUpdate() {
- loadData();
- }
- function loadData() {
- //31天产量
- window.DayCL.data.datasets[0].data = [
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5,
- randomScalingFactor(8) + 5
- ];
- window.DayCL.data.datasets[1].data = [
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DayCL.update();
- //产量计划达成
- window.MonthCL.data.datasets[0].data = [
- randomScalingFactor(1000),
- randomScalingFactor(1000)
- ];
- window.MonthCL.update();
- }
- function initData() {
- window.chartColors = {
- red: 'rgb(255, 99, 132)',
- orange: 'rgb(255, 159, 64)',
- yellow: 'rgb(255, 250, 86)',
- green: 'rgb(75, 192, 192)',
- blue: 'rgb(54, 162, 250)',
- purple: 'rgb(153, 102, 255)',
- grey: 'rgb(231,233,237)'
- };
- var color = Chart.helpers.color;
- window.randomScalingFactor = function (num) {
- return Math.round(Math.random() * num);
- }
- Chart.defaults.global.defaultFontColor = 'white';
- Chart.defaults.global.defaultFontSize = 18;
- Chart.defaults.global.legend.display = false;
- //每小时产量=========================================
- window.configDayCL = {
- data: {
- labels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"],
- datasets: [{
- label: "日计划",
- backgroundColor: color(window.chartColors.orange).alpha(0.6).rgbString(),
- borderColor: window.chartColors.orange,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
- fill: false,
- }, {
- label: "日达成",
- fill: false,
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }]
- },
- type: 'line',
- options: {
- responsive: true,
- legend: {
- display: true
- },
- title: {
- display: false,
- text: '每小时产量'
- },
- tooltips: {
- mode: 'index',
- intersect: false,
- },
- hover: {
- mode: 'nearest',
- intersect: true
- },
- scales: {
- xAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: ''
- }
- }],
- yAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: 'Value'
- }
- }]
- }
- }
- };
- var ctxDayCL = document.getElementById("canvasDayCL").getContext("2d");
- window.DayCL = new Chart(ctxDayCL, configDayCL);
- //===================================================
- ////月饼图===========================================
- //window.configMonthCL = {
- // data: {
- // labels: ['待达成', '月达成'],
- // datasets: [{
- // label: '工序',
- // backgroundColor: [
- // color(window.chartColors.red).alpha(0.35).rgbString(),
- // color(window.chartColors.blue).alpha(0.35).rgbString(),
- // color(window.chartColors.green).alpha(0.35).rgbString(),
- // color(window.chartColors.orange).alpha(0.35).rgbString(),
- // color(window.chartColors.purple).alpha(0.35).rgbString()
- // ],
- // fill: false,
- // borderColor: [
- // window.chartColors.red,
- // window.chartColors.blue,
- // window.chartColors.green,
- // window.chartColors.orange,
- // window.chartColors.purple
- // ],
- // borderWidth: 2,
- // pointRadius: 30,
- // data: [0, 0]
- // }]
- // },
- // type: 'doughnut',
- // options: {
- // legend: {
- // display: true
- // },
- // title: {
- // display: false,
- // text: ""
- // },
- // tooltips: {
- // mode: 'point',
- // intersect: false
- // },
- // responsive: true
- // }
- //};
- //var ctxMonthCL = document.getElementById("canvasMonthCL").getContext("2d");
- //window.MonthCL = new Chart(ctxMonthCL, configMonthCL);
- ////===================================================
- }
- </script>
- <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
- <script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>
- <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
- <script src="/Plugins/circleChart/circleChart.min.js"></script>
- </body>
- </html>
|