|
|
@@ -0,0 +1,1124 @@
|
|
|
+<!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 rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
|
|
|
+ <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
|
|
|
+ <link href="/Plugins/bootstrap-table/bootstrap-table.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/xrequest/xrequest.min.js"></script>
|
|
|
+ <title>东科软件</title>
|
|
|
+ <style type="text/css">
|
|
|
+ #TK div div {
|
|
|
+ margin:2px;
|
|
|
+ padding:2px;
|
|
|
+ border: 1px solid black;
|
|
|
+ border-radius:4px;
|
|
|
+ width: 60px;
|
|
|
+ height: 125px;
|
|
|
+ line-height:150%;
|
|
|
+ text-align:center;
|
|
|
+ font-size:16px;
|
|
|
+ cursor:pointer;
|
|
|
+ }
|
|
|
+ #HG1 div div {
|
|
|
+ margin: 2px;
|
|
|
+ padding: 2px;
|
|
|
+ border: 1px solid lightgray;
|
|
|
+ border-radius: 4px;
|
|
|
+ background-color: #FFE100;
|
|
|
+ width: 60px;
|
|
|
+ height: 125px;
|
|
|
+ line-height: 150%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ #HG2 div div {
|
|
|
+ margin: 2px;
|
|
|
+ padding: 2px;
|
|
|
+ border: 1px solid lightgray;
|
|
|
+ border-radius: 4px;
|
|
|
+ background-color: #FFE100;
|
|
|
+ width: 60px;
|
|
|
+ height: 125px;
|
|
|
+ line-height: 150%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ #GOODS {
|
|
|
+ border-radius: 4px;
|
|
|
+ height: 548px;
|
|
|
+ margin-top: 0px;
|
|
|
+ margin-left: 0px;
|
|
|
+ margin-right: 3px;
|
|
|
+ }
|
|
|
+ #GOODS div {
|
|
|
+ /*padding:10px 10px 10px 10px;*/
|
|
|
+ height: 548px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ #GOODS div div {
|
|
|
+ margin: 5px 5px 5px 5px;
|
|
|
+ width: 170px;
|
|
|
+ height: 536px;
|
|
|
+ text-align: center;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ #GOODS div div div {
|
|
|
+ width: 170px;
|
|
|
+ background-color: #00b7f4;
|
|
|
+ border: 1px solid lightgray;
|
|
|
+ border-radius: 4px;
|
|
|
+ padding-top: 2px;
|
|
|
+ padding-bottom: 2px;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body class="p-0 dk-report" style="background-color:#2c2e2d;">
|
|
|
+
|
|
|
+ <!--宣传视频-->
|
|
|
+ <script src="/main/Common/video.js"></script>
|
|
|
+
|
|
|
+ <!--导航菜单-->
|
|
|
+ <script src="/main/common/navbar.js"></script>
|
|
|
+
|
|
|
+ <!--统计-->
|
|
|
+ <div class="container-fluid pt-3 p-0">
|
|
|
+ <div style="padding-top:5px;padding-bottom:2px;color:white;">
|
|
|
+ <div class="position-absolute">
|
|
|
+ <!--<img src="/Img/dongke_logo_white.png" class="dk-report-logo" />-->
|
|
|
+ <img src="/Img/hegii_logo_white.png" class="dk-report-logo2" />
|
|
|
+ <span id="报表加载" class="dk-report-loading"></span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="position-relative pull-right">
|
|
|
+ <div id="当前时间" class="dk-report-time"></div>
|
|
|
+ <a class="nav-link" href="javascript:void(0)" onclick="fullScreen(); $('#navbar').toggle();">
|
|
|
+ <i class="fa fa-bars" aria-hidden="true"></i>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <h4 class="text-center dk-report-title2">TK3烧成示意图</h4>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="row m-0 p-0 pt-4">
|
|
|
+ <div class="col-12" id="TK">
|
|
|
+ <!--行1-->
|
|
|
+ <div style="display: flex; justify-content: space-between; height:96px;">
|
|
|
+ <div id="tk_1" onclick="loadGoods(tkJson,1)"style="font-size: 10px; height: 95px;">01</div>
|
|
|
+ <div id="tk_2" onclick="loadGoods(tkJson,2)"style="font-size: 10px; height: 95px;">02</div>
|
|
|
+ <div id="tk_3" onclick="loadGoods(tkJson,3)"style="font-size: 10px; height: 95px;">03</div>
|
|
|
+ <div id="tk_4" onclick="loadGoods(tkJson,4)"style="font-size: 10px; height: 95px;">04</div>
|
|
|
+ <div id="tk_5" onclick="loadGoods(tkJson,5)"style="font-size: 10px; height: 95px;">05</div>
|
|
|
+ <div id="tk_6" onclick="loadGoods(tkJson,6)"style="font-size: 10px; height: 95px;">06</div>
|
|
|
+ <div id="tk_7" onclick="loadGoods(tkJson,7)"style="font-size: 10px; height: 95px; ">07</div>
|
|
|
+ <div id="tk_8" onclick="loadGoods(tkJson,8)"style="font-size: 10px; height: 95px;">08</div>
|
|
|
+ <div id="tk_9" onclick="loadGoods(tkJson,9)"style="font-size: 10px; height: 95px;">09</div>
|
|
|
+ <div id="tk_10" onclick="loadGoods(tkJson,10)"style="font-size: 10px; height: 95px;">10</div>
|
|
|
+ <div id="tk_11" onclick="loadGoods(tkJson,11)"style="font-size: 10px; height: 95px;">11</div>
|
|
|
+ <div id="tk_12" onclick="loadGoods(tkJson,12)"style="font-size: 10px; height: 95px;">12</div>
|
|
|
+ <div id="tk_13" onclick="loadGoods(tkJson,13)"style="font-size: 10px; height: 95px;">13</div>
|
|
|
+ <div id="tk_14" onclick="loadGoods(tkJson,14)"style="font-size: 10px; height: 95px;">14</div>
|
|
|
+ <div id="tk_15" onclick="loadGoods(tkJson,15)"style="font-size: 10px; height: 95px;">15</div>
|
|
|
+ <div id="tk_16" onclick="loadGoods(tkJson,16)"style="font-size: 10px; height: 95px;">16</div>
|
|
|
+ <div id="tk_17" onclick="loadGoods(tkJson,17)"style="font-size: 10px; height: 95px;">17</div>
|
|
|
+ <div id="tk_18" onclick="loadGoods(tkJson,18)"style="font-size: 10px; height: 95px;">18</div>
|
|
|
+ <div id="tk_19" onclick="loadGoods(tkJson,19)"style="font-size: 10px; height: 95px;">19</div>
|
|
|
+ <div id="tk_20" onclick="loadGoods(tkJson,20)"style="font-size: 10px; height: 95px;">20</div>
|
|
|
+ <div id="tk_21" onclick="loadGoods(tkJson,21)"style="font-size: 10px; height: 95px;">21</div>
|
|
|
+ <div id="tk_22" onclick="loadGoods(tkJson,22)"style="font-size: 10px; height: 95px;">22</div>
|
|
|
+ <div id="tk_23" onclick="loadGoods(tkJson,23)"style="font-size: 10px; height: 95px;">23</div>
|
|
|
+ <div id="tk_24" onclick="loadGoods(tkJson,24)"style="font-size: 10px; height: 95px;">24</div>
|
|
|
+ <div id="tk_25" onclick="loadGoods(tkJson,25)"style="font-size: 10px; height: 95px;">25</div>
|
|
|
+ <div id="tk_26" onclick="loadGoods(tkJson,26)"style="font-size: 10px; height: 95px;">26</div>
|
|
|
+ <div id="tk_27" onclick="loadGoods(tkJson,27)"style="font-size: 10px; height: 95px;">27</div>
|
|
|
+ <div id="tk_28" onclick="loadGoods(tkJson,28)"style="font-size: 10px; height: 95px;">28</div>
|
|
|
+ <div id="tk_29" onclick="loadGoods(tkJson,29)"style="font-size: 10px; height: 95px;">29</div>
|
|
|
+ <div id="tk_30" onclick="loadGoods(tkJson,30)"style="font-size: 10px; height: 95px;">30</div>
|
|
|
+ <div id="tk_31" onclick="loadGoods(tkJson,31)"style="font-size: 10px; height: 95px;">31</div>
|
|
|
+ </div>
|
|
|
+ <!--行2-->
|
|
|
+ <div style="display:flex;justify-content:space-between;height:96px;">
|
|
|
+ <div id="tk_62" onclick="loadGoods(tkJson,62)"style="font-size: 10px; height: 95px;">62</div>
|
|
|
+ <div id="tk_61" onclick="loadGoods(tkJson,61)"style="font-size: 10px; height: 95px;">61</div>
|
|
|
+ <div id="tk_60" onclick="loadGoods(tkJson,60)"style="font-size: 10px; height: 95px;">60</div>
|
|
|
+ <div id="tk_59" onclick="loadGoods(tkJson,59)"style="font-size: 10px; height: 95px;">58</div>
|
|
|
+ <div id="tk_57" onclick="loadGoods(tkJson,57)"style="font-size: 10px; height: 95px;">57</div>
|
|
|
+ <div id="tk_56" onclick="loadGoods(tkJson,56)"style="font-size: 10px; height: 95px;">56</div>
|
|
|
+ <div id="tk_55" onclick="loadGoods(tkJson,55)"style="font-size: 10px; height: 95px;">55</div>
|
|
|
+ <div id="tk_54" onclick="loadGoods(tkJson,54)"style="font-size: 10px; height: 95px;">54</div>
|
|
|
+ <div id="tk_53" onclick="loadGoods(tkJson,53)"style="font-size: 10px; height: 95px;">53</div>
|
|
|
+ <div id="tk_52" onclick="loadGoods(tkJson,52)"style="font-size: 10px; height: 95px;">52</div>
|
|
|
+ <div id="tk_51" onclick="loadGoods(tkJson,51)"style="font-size: 10px; height: 95px;">51</div>
|
|
|
+ <div id="tk_50" onclick="loadGoods(tkJson,50)"style="font-size: 10px; height: 95px;">50</div>
|
|
|
+ <div id="tk_49" onclick="loadGoods(tkJson,49)"style="font-size: 10px; height: 95px;">49</div>
|
|
|
+ <div id="tk_48" onclick="loadGoods(tkJson,48)"style="font-size: 10px; height: 95px;">48</div>
|
|
|
+ <div id="tk_47" onclick="loadGoods(tkJson,47)"style="font-size: 10px; height: 95px;">47</div>
|
|
|
+ <div id="tk_46" onclick="loadGoods(tkJson,46)"style="font-size: 10px; height: 95px;">46</div>
|
|
|
+ <div id="tk_45" onclick="loadGoods(tkJson,45)"style="font-size: 10px; height: 95px;">45</div>
|
|
|
+ <div id="tk_44" onclick="loadGoods(tkJson,44)"style="font-size: 10px; height: 95px;">44</div>
|
|
|
+ <div id="tk_43" onclick="loadGoods(tkJson,43)"style="font-size: 10px; height: 95px;">43</div>
|
|
|
+ <div id="tk_42" onclick="loadGoods(tkJson,42)"style="font-size: 10px; height: 95px;">42</div>
|
|
|
+ <div id="tk_41" onclick="loadGoods(tkJson,41)"style="font-size: 10px; height: 95px;">41</div>
|
|
|
+ <div id="tk_40" onclick="loadGoods(tkJson,40)"style="font-size: 10px; height: 95px;">40</div>
|
|
|
+ <div id="tk_39" onclick="loadGoods(tkJson,39)"style="font-size: 10px; height: 95px;">39</div>
|
|
|
+ <div id="tk_38" onclick="loadGoods(tkJson,38)"style="font-size: 10px; height: 95px;">38</div>
|
|
|
+ <div id="tk_37" onclick="loadGoods(tkJson,37)"style="font-size: 10px; height: 95px;">37</div>
|
|
|
+ <div id="tk_36" onclick="loadGoods(tkJson,36)"style="font-size: 10px; height: 95px;">36</div>
|
|
|
+ <div id="tk_35" onclick="loadGoods(tkJson,35)"style="font-size: 10px; height: 95px;">35</div>
|
|
|
+ <div id="tk_34" onclick="loadGoods(tkJson,34)"style="font-size: 10px; height: 95px;">34</div>
|
|
|
+ <div id="tk_33" onclick="loadGoods(tkJson,33)"style="font-size: 10px; height: 95px;">33</div>
|
|
|
+ <div id="tk_32" onclick="loadGoods(tkJson,32)"style="font-size: 10px; height: 95px;">32</div>
|
|
|
+ </div>
|
|
|
+ <!--行3-->
|
|
|
+ <div style="display:flex;justify-content:space-between;height:96px;">
|
|
|
+ <div id="tk_63" onclick="loadGoods(tkJson,63)"style="font-size: 10px; height: 95px; ">63</div>
|
|
|
+ <div id="tk_64" onclick="loadGoods(tkJson,64)"style="font-size: 10px; height: 95px;">64</div>
|
|
|
+ <div id="tk_65" onclick="loadGoods(tkJson,65)"style="font-size: 10px; height: 95px;">65</div>
|
|
|
+ <div id="tk_66" onclick="loadGoods(tkJson,66)"style="font-size: 10px; height: 95px;">66</div>
|
|
|
+ <div id="tk_67" onclick="loadGoods(tkJson,67)"style="font-size: 10px; height: 95px;">67</div>
|
|
|
+ <div id="tk_68" onclick="loadGoods(tkJson,68)"style="font-size: 10px; height: 95px;">68</div>
|
|
|
+ <div id="tk_69" onclick="loadGoods(tkJson,69)"style="font-size: 10px; height: 95px;">69</div>
|
|
|
+ <div id="tk_70" onclick="loadGoods(tkJson,70)"style="font-size: 10px; height: 95px;">70</div>
|
|
|
+ <div id="tk_71" onclick="loadGoods(tkJson,71)"style="font-size: 10px; height: 95px;">71</div>
|
|
|
+ <div id="tk_72" onclick="loadGoods(tkJson,72)"style="font-size: 10px; height: 95px;">72</div>
|
|
|
+ <div id="tk_73" onclick="loadGoods(tkJson,73)"style="font-size: 10px; height: 95px;">73</div>
|
|
|
+ <div id="tk_74" onclick="loadGoods(tkJson,74)"style="font-size: 10px; height: 95px;">74</div>
|
|
|
+ <div id="tk_75" onclick="loadGoods(tkJson,75)"style="font-size: 10px; height: 95px;">75</div>
|
|
|
+ <div id="tk_76" onclick="loadGoods(tkJson,76)"style="font-size: 10px; height: 95px;">76</div>
|
|
|
+ <div id="tk_77" onclick="loadGoods(tkJson,77)"style="font-size: 10px; height: 95px;">77</div>
|
|
|
+ <div id="tk_78" onclick="loadGoods(tkJson,78)"style="font-size: 10px; height: 95px;">78</div>
|
|
|
+ <div id="tk_79" onclick="loadGoods(tkJson,79)"style="font-size: 10px; height: 95px;">79</div>
|
|
|
+ <div id="tk_80" onclick="loadGoods(tkJson,80)"style="font-size: 10px; height: 95px;">80</div>
|
|
|
+ <div id="tk_81" onclick="loadGoods(tkJson,81)"style="font-size: 10px; height: 95px;">81</div>
|
|
|
+ <div id="tk_82" onclick="loadGoods(tkJson,82)"style="font-size: 10px; height: 95px;">82</div>
|
|
|
+ <div id="tk_83" onclick="loadGoods(tkJson,83)"style="font-size: 10px; height: 95px;">83</div>
|
|
|
+ <div id="tk_84" onclick="loadGoods(tkJson,84)"style="font-size: 10px; height: 95px;">84</div>
|
|
|
+ <div id="tk_85" onclick="loadGoods(tkJson,85)"style="font-size: 10px; height: 95px;">85</div>
|
|
|
+ <div id="tk_86" onclick="loadGoods(tkJson,86)"style="font-size: 10px; height: 95px;">86</div>
|
|
|
+ <div id="tk_87" onclick="loadGoods(tkJson,87)"style="font-size: 10px; height: 95px;">87</div>
|
|
|
+ <div id="tk_88" onclick="loadGoods(tkJson,88)"style="font-size: 10px; height: 95px;">88</div>
|
|
|
+ <div id="tk_89" onclick="loadGoods(tkJson,89)"style="font-size: 10px; height: 95px;">89</div>
|
|
|
+ <div id="tk_90" onclick="loadGoods(tkJson,90)"style="font-size: 10px; height: 95px;">90</div>
|
|
|
+ <div id="tk_91" onclick="loadGoods(tkJson,91)"style="font-size: 10px; height: 95px;">91</div>
|
|
|
+ <div id="tk_92" onclick="loadGoods(tkJson,92)"style="font-size: 10px; height: 95px;">92</div>
|
|
|
+ <div id="tk_93" onclick="loadGoods(tkJson,93)"style="font-size: 10px; height: 95px;">93</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <div class="row m-0 p-0 pt-2">
|
|
|
+ <div class="col-12" style="display: flex; height: 460px;">
|
|
|
+ <div style="width:1340px;height:460px;">
|
|
|
+ <div class="text-center pt-1" style="color:lightgray;font-size:16px;height:25px;"><b>烘干窑2</b></div>
|
|
|
+ <div id="HG2">
|
|
|
+ <div style="display:flex;justify-content:space-between;height:96px;">
|
|
|
+ <div id="hg2_44" onclick="loadGoods(hg2Json,44)"style="font-size: 10px; height: 95px;">44</div>
|
|
|
+ <div id="hg2_43" onclick="loadGoods(hg2Json,43)"style="font-size: 10px; height: 95px;">43</div>
|
|
|
+ <div id="hg2_42" onclick="loadGoods(hg2Json,42)"style="font-size: 10px; height: 95px;">42</div>
|
|
|
+ <div id="hg2_41" onclick="loadGoods(hg2Json,41)"style="font-size: 10px; height: 95px;">41</div>
|
|
|
+ <div id="hg2_40" onclick="loadGoods(hg2Json,40)"style="font-size: 10px; height: 95px;">40</div>
|
|
|
+ <div id="hg2_39" onclick="loadGoods(hg2Json,39)"style="font-size: 10px; height: 95px;">39</div>
|
|
|
+ <div id="hg2_38" onclick="loadGoods(hg2Json,38)"style="font-size: 10px; height: 95px;">38</div>
|
|
|
+ <div id="hg2_37" onclick="loadGoods(hg2Json,37)"style="font-size: 10px; height: 95px;">37</div>
|
|
|
+ <div id="hg2_36" onclick="loadGoods(hg2Json,36)"style="font-size: 10px; height: 95px;">36</div>
|
|
|
+ <div id="hg2_35" onclick="loadGoods(hg2Json,35)"style="font-size: 10px; height: 95px;">35</div>
|
|
|
+ <div id="hg2_34" onclick="loadGoods(hg2Json,34)"style="font-size: 10px; height: 95px;">34</div>
|
|
|
+ <div id="hg2_33" onclick="loadGoods(hg2Json,33)"style="font-size: 10px; height: 95px;">33</div>
|
|
|
+ <div id="hg2_32" onclick="loadGoods(hg2Json,32)"style="font-size: 10px; height: 95px;">32</div>
|
|
|
+ <div id="hg2_31" onclick="loadGoods(hg2Json,31)"style="font-size: 10px; height: 95px;">31</div>
|
|
|
+ <div id="hg2_30" onclick="loadGoods(hg2Json,30)"style="font-size: 10px; height: 95px;">30</div>
|
|
|
+ <div id="hg2_29" onclick="loadGoods(hg2Json,29)"style="font-size: 10px; height: 95px;">29</div>
|
|
|
+ <div id="hg2_28" onclick="loadGoods(hg2Json,28)"style="font-size: 10px; height: 95px;">28</div>
|
|
|
+ <div id="hg2_27" onclick="loadGoods(hg2Json,27)"style="font-size: 10px; height: 95px;">27</div>
|
|
|
+ <div id="hg2_26" onclick="loadGoods(hg2Json,26)"style="font-size: 10px; height: 95px;">26</div>
|
|
|
+ <div id="hg2_25" onclick="loadGoods(hg2Json,25)"style="font-size: 10px; height: 95px;">25</div>
|
|
|
+ <div id="hg2_24" onclick="loadGoods(hg2Json,24)"style="font-size: 10px; height: 95px;">24</div>
|
|
|
+ <div id="hg2_23" onclick="loadGoods(hg2Json,23)"style="font-size: 10px; height: 95px;">23</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex; justify-content: space-between; height: 96px;">
|
|
|
+ <div id="hg2_22" onclick="loadGoods(hg2Json,22)"style="font-size: 10px; height: 95px;">22</div>
|
|
|
+ <div id="hg2_21" onclick="loadGoods(hg2Json,21)"style="font-size: 10px; height: 95px;">21</div>
|
|
|
+ <div id="hg2_20" onclick="loadGoods(hg2Json,20)"style="font-size: 10px; height: 95px;">20</div>
|
|
|
+ <div id="hg2_19" onclick="loadGoods(hg2Json,19)"style="font-size: 10px; height: 95px; ">19</div>
|
|
|
+ <div id="hg2_18" onclick="loadGoods(hg2Json,18)"style="font-size: 10px; height: 95px;">18</div>
|
|
|
+ <div id="hg2_17" onclick="loadGoods(hg2Json,17)"style="font-size: 10px; height: 95px;">17</div>
|
|
|
+ <div id="hg2_16" onclick="loadGoods(hg2Json,16)"style="font-size: 10px; height: 95px;">16</div>
|
|
|
+ <div id="hg2_15" onclick="loadGoods(hg2Json,15)"style="font-size: 10px; height: 95px;">15</div>
|
|
|
+ <div id="hg2_14" onclick="loadGoods(hg2Json,14)"style="font-size: 10px; height: 95px;">14</div>
|
|
|
+ <div id="hg2_13" onclick="loadGoods(hg2Json,13)"style="font-size: 10px; height: 95px;">13</div>
|
|
|
+ <div id="hg2_12" onclick="loadGoods(hg2Json,12)"style="font-size: 10px; height: 95px;">12</div>
|
|
|
+ <div id="hg2_11" onclick="loadGoods(hg2Json,11)"style="font-size: 10px; height: 95px;">11</div>
|
|
|
+ <div id="hg2_10" onclick="loadGoods(hg2Json,10)"style="font-size: 10px; height: 95px;">10</div>
|
|
|
+ <div id="hg2_9" onclick="loadGoods(hg2Json,09)"style="font-size: 10px; height: 95px;">09</div>
|
|
|
+ <div id="hg2_8" onclick="loadGoods(hg2Json,08)"style="font-size: 10px; height: 95px;">08</div>
|
|
|
+ <div id="hg2_7" onclick="loadGoods(hg2Json,07)"style="font-size: 10px; height: 95px;">07</div>
|
|
|
+ <div id="hg2_6" onclick="loadGoods(hg2Json,06)"style="font-size: 10px; height: 95px;">06</div>
|
|
|
+ <div id="hg2_5" onclick="loadGoods(hg2Json,05)"style="font-size: 10px; height: 95px;">05</div>
|
|
|
+ <div id="hg2_4" onclick="loadGoods(hg2Json,04)"style="font-size: 10px; height: 95px;">04</div>
|
|
|
+ <div id="hg2_3" onclick="loadGoods(hg2Json,03)"style="font-size: 10px; height: 95px;">03</div>
|
|
|
+ <div id="hg2_2" onclick="loadGoods(hg2Json,02)"style="font-size: 10px; height: 95px;">02</div>
|
|
|
+ <div id="hg2_1" onclick="loadGoods(hg2Json,01)"style="font-size: 10px; height: 95px;">01</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="text-center pt-2" style="color: lightgray; font-size: 16px; height: 25px;"><b>烘干窑1</b></div>
|
|
|
+ <div id="HG1">
|
|
|
+ <div style="display: flex; justify-content: space-between; height: 96px;">
|
|
|
+ <div id="hg1_44" onclick="loadGoods(hg1Json,44)"style="font-size: 10px; height: 95px;">44</div>
|
|
|
+ <div id="hg1_43" onclick="loadGoods(hg1Json,43)"style="font-size: 10px; height: 95px;">43</div>
|
|
|
+ <div id="hg1_42" onclick="loadGoods(hg1Json,42)"style="font-size: 10px; height: 95px;">42</div>
|
|
|
+ <div id="hg1_41" onclick="loadGoods(hg1Json,41)"style="font-size: 10px; height: 95px;">41</div>
|
|
|
+ <div id="hg1_40" onclick="loadGoods(hg1Json,40)"style="font-size: 10px; height: 95px;">40</div>
|
|
|
+ <div id="hg1_39" onclick="loadGoods(hg1Json,39)"style="font-size: 10px; height: 95px;">39</div>
|
|
|
+ <div id="hg1_38" onclick="loadGoods(hg1Json,38)"style="font-size: 10px; height: 95px;">38</div>
|
|
|
+ <div id="hg1_37" onclick="loadGoods(hg1Json,37)"style="font-size: 10px; height: 95px;">37</div>
|
|
|
+ <div id="hg1_36" onclick="loadGoods(hg1Json,36)"style="font-size: 10px; height: 95px;">36</div>
|
|
|
+ <div id="hg1_35" onclick="loadGoods(hg1Json,35)"style="font-size: 10px; height: 95px;">35</div>
|
|
|
+ <div id="hg1_34" onclick="loadGoods(hg1Json,34)"style="font-size: 10px; height: 95px;">34</div>
|
|
|
+ <div id="hg1_33" onclick="loadGoods(hg1Json,33)"style="font-size: 10px; height: 95px;">33</div>
|
|
|
+ <div id="hg1_32" onclick="loadGoods(hg1Json,32)"style="font-size: 10px; height: 95px;">32</div>
|
|
|
+ <div id="hg1_31" onclick="loadGoods(hg1Json,31)"style="font-size: 10px; height: 95px;">31</div>
|
|
|
+ <div id="hg1_30" onclick="loadGoods(hg1Json,30)"style="font-size: 10px; height: 95px;">30</div>
|
|
|
+ <div id="hg1_29" onclick="loadGoods(hg1Json,29)"style="font-size: 10px; height: 95px;">29</div>
|
|
|
+ <div id="hg1_28" onclick="loadGoods(hg1Json,28)"style="font-size: 10px; height: 95px;">28</div>
|
|
|
+ <div id="hg1_27" onclick="loadGoods(hg1Json,27)"style="font-size: 10px; height: 95px;">27</div>
|
|
|
+ <div id="hg1_26" onclick="loadGoods(hg1Json,26)"style="font-size: 10px; height: 95px;">26</div>
|
|
|
+ <div id="hg1_25" onclick="loadGoods(hg1Json,25)"style="font-size: 10px; height: 95px;">25</div>
|
|
|
+ <div id="hg1_24" onclick="loadGoods(hg1Json,24)"style="font-size: 10px; height: 95px;">24</div>
|
|
|
+ <div id="hg1_23" onclick="loadGoods(hg1Json,23)"style="font-size: 10px; height: 95px;">23</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex; justify-content: space-between; height: 96px;">
|
|
|
+ <div id="hg1_22" onclick="loadGoods(hg1Json,22)"style="font-size: 10px; height: 95px;">22</div>
|
|
|
+ <div id="hg1_21" onclick="loadGoods(hg1Json,21)"style="font-size: 10px; height: 95px;">21</div>
|
|
|
+ <div id="hg1_20" onclick="loadGoods(hg1Json,20)"style="font-size: 10px; height: 95px;">20</div>
|
|
|
+ <div id="hg1_19" onclick="loadGoods(hg1Json,19)"style="font-size: 10px; height: 95px;">19</div>
|
|
|
+ <div id="hg1_18" onclick="loadGoods(hg1Json,18)"style="font-size: 10px; height: 95px;">18</div>
|
|
|
+ <div id="hg1_17" onclick="loadGoods(hg1Json,17)"style="font-size: 10px; height: 95px;">17</div>
|
|
|
+ <div id="hg1_16" onclick="loadGoods(hg1Json,16)"style="font-size: 10px; height: 95px;">16</div>
|
|
|
+ <div id="hg1_15" onclick="loadGoods(hg1Json,15)"style="font-size: 10px; height: 95px;">15</div>
|
|
|
+ <div id="hg1_14" onclick="loadGoods(hg1Json,14)"style="font-size: 10px; height: 95px;">14</div>
|
|
|
+ <div id="hg1_13" onclick="loadGoods(hg1Json,13)"style="font-size: 10px; height: 95px;">13</div>
|
|
|
+ <div id="hg1_12" onclick="loadGoods(hg1Json,12)"style="font-size: 10px; height: 95px;">12</div>
|
|
|
+ <div id="hg1_11" onclick="loadGoods(hg1Json,11)"style="font-size: 10px; height: 95px;">11</div>
|
|
|
+ <div id="hg1_10" onclick="loadGoods(hg1Json,10)"style="font-size: 10px; height: 95px;">10</div>
|
|
|
+ <div id="hg1_9" onclick="loadGoods(hg1Json,9)"style="font-size: 10px; height: 95px;">09</div>
|
|
|
+ <div id="hg1_8" onclick="loadGoods(hg1Json,8)"style="font-size: 10px; height: 95px;">08</div>
|
|
|
+ <div id="hg1_7" onclick="loadGoods(hg1Json,7)"style="font-size: 10px; height: 95px; ">07</div>
|
|
|
+ <div id="hg1_6" onclick="loadGoods(hg1Json,6)"style="font-size: 10px; height: 95px;">06</div>
|
|
|
+ <div id="hg1_5" onclick="loadGoods(hg1Json,5)"style="font-size: 10px; height: 95px;">05</div>
|
|
|
+ <div id="hg1_4" onclick="loadGoods(hg1Json,4)"style="font-size: 10px; height: 95px;">04</div>
|
|
|
+ <div id="hg1_3" onclick="loadGoods(hg1Json,3)"style="font-size: 10px; height: 95px;">03</div>
|
|
|
+ <div id="hg1_2" onclick="loadGoods(hg1Json,2)"style="font-size: 10px; height: 95px;">02</div>
|
|
|
+ <div id="hg1_1" onclick="loadGoods(hg1Json,1)"style="font-size: 10px; height: 95px;">01</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="width:580px;">
|
|
|
+ <div class="text-center pt-1" style="color:lightgray;font-size:16px;"><b id="GOODSTITLE">窑车产品数据</b></div>
|
|
|
+ <div id="GOODS" style="height: 416px; margin-top: -10px; ">
|
|
|
+ <div style="height: 416px;">
|
|
|
+ <div style="height: 416px;">
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color:white;padding:2px;border-radius:10px;opacity:0.65;width:20px;">01</td><td id="G_1"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">02</td><td id="G_2"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">03</td><td id="G_3"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">04</td><td id="G_4"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">05</td><td id="G_5"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">06</td><td id="G_6"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">07</td><td id="G_7"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">08</td><td id="G_8"><br /><br /></td></tr></table></div>
|
|
|
+ </div>
|
|
|
+ <div style="height: 416px;">
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color:white;padding:2px;border-radius:10px;opacity:0.65;width:20px;">09</td><td id="G_9"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">10</td><td id="G_10"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">11</td><td id="G_11"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">12</td><td id="G_12"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">13</td><td id="G_13"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">14</td><td id="G_14"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">15</td><td id="G_15"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">16</td><td id="G_16"><br /><br /></td></tr></table></div>
|
|
|
+ </div>
|
|
|
+ <div style="height:416px;">
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color:white;padding:2px;border-radius:10px;opacity:0.65;width:20px;">17</td><td id="G_17"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">18</td><td id="G_18"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">19</td><td id="G_19"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">20</td><td id="G_20"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">21</td><td id="G_21"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">22</td><td id="G_22"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">23</td><td id="G_23"><br /><br /></td></tr></table></div>
|
|
|
+ <div style="font-size:10px;height:42px;"><table style="margin-left:4px;"><tr><td style="background-color: white; padding: 2px; border-radius: 10px; opacity: 0.65;width:20px;">24</td><td id="G_24"><br /><br /></td></tr></table></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--缺陷统计-->
|
|
|
+ <div style="width:1840px;height:200px;display:flex;flex-direction:row;">
|
|
|
+ <div style="width: 30%; height: 200px;">
|
|
|
+ <div style="color:white;font-size:20px;font-weight:600; text-align:center">烧成质量七日趋势图</div>
|
|
|
+ <canvas id="canvasDayZL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
|
|
|
+ </div>
|
|
|
+ <div style="width: 18%; height: 200px;">
|
|
|
+ <div style="color:white;font-size:20px;font-weight:600; text-align:center">归属烧成缺陷TOP3</div>
|
|
|
+ <canvas id="canvasDefectA" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
|
|
|
+ </div>
|
|
|
+ <div style="width: 18%; height: 200px;">
|
|
|
+ <div style="color:white;font-size:20px;font-weight:600; text-align:center">归属烧成缺陷位置TOP3</div>
|
|
|
+ <canvas id="canvasDefectW" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
|
|
|
+ </div>
|
|
|
+ <div style="width: 18%; height: 200px;">
|
|
|
+ <div style="color:white;font-size:20px;font-weight:600; text-align:center">外观检验车间设备状态</div>
|
|
|
+ <canvas id="canvasDefectB" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
|
|
|
+ </div>
|
|
|
+ <div style="width: 18%; height: 200px;">
|
|
|
+ <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: 200px; width: 100%"></canvas>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="height:26px;"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!--版权信息-->
|
|
|
+ <!--<script src="../common/footer.js"></script>-->
|
|
|
+
|
|
|
+ <script src="/Plugins/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
|
|
|
+ <script src="/Plugins/bootstrap-table/bootstrap-table.min.js"></script>
|
|
|
+ <script src="/Plugins/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
|
|
|
+ <script src="/Plugins/sweetalert/sweetalert.min.js"></script>
|
|
|
+
|
|
|
+ <script>
|
|
|
+ //缺陷统计刷新时间
|
|
|
+ var refreshTime1 = 30000;
|
|
|
+ var currentTime1 = 0;
|
|
|
+
|
|
|
+ var doGetData;
|
|
|
+ var doGetTime;
|
|
|
+
|
|
|
+ var frameHeight;
|
|
|
+ var tableHeight;
|
|
|
+ var offsetHeight = 20;
|
|
|
+
|
|
|
+ var tkJson;
|
|
|
+ var hg1Json;
|
|
|
+ var hg2Json;
|
|
|
+
|
|
|
+ $(document).ready(function () {
|
|
|
+ //设置缩放
|
|
|
+ //xuwell.setScale(1);
|
|
|
+
|
|
|
+ //首次加载
|
|
|
+ loadData();
|
|
|
+ //定时刷新数据
|
|
|
+ doGetData = setInterval(function () { timeUpdate(); }, 1000);
|
|
|
+ //刷新时间
|
|
|
+ loadServerTime();
|
|
|
+ doGetTime = setInterval(function () { loadServerTime(); }, 15000);
|
|
|
+ //扇形折线图样式加载
|
|
|
+ initData();
|
|
|
+ //扇形折线图数据加载
|
|
|
+ DefectDataW();
|
|
|
+ setInterval(function () { DefectDataW(); }, 5000);
|
|
|
+ setInterval(function () { DdfectData(); }, 5000);
|
|
|
+ DdfectDataB();
|
|
|
+ setInterval(function () { DdfectDataB(); }, 5000);
|
|
|
+ ZxData();
|
|
|
+ setInterval(function () { ZxData(); }, 5000);
|
|
|
+ });
|
|
|
+
|
|
|
+ function DefectDataW() {
|
|
|
+ $.get("rpt2.ashx?m=defectw", function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var defect1 = parseFloat(json["rows"][0]["缺陷数量"]);
|
|
|
+ var defect2 = parseFloat(json["rows"][1]["缺陷数量"]);
|
|
|
+ var defect3 = parseFloat(json["rows"][2]["缺陷数量"]);
|
|
|
+ var defectname1 = json["rows"][0]["缺陷位置"];
|
|
|
+ var defectname2 = json["rows"][1]["缺陷位置"];
|
|
|
+ var defectname3 = json["rows"][2]["缺陷位置"];
|
|
|
+ window.DefectW.data.datasets[0].data = [defect1, defect2, defect3];
|
|
|
+ window.DefectW.data.labels = [defectname1, defectname2, defectname3]
|
|
|
+ window.DefectW.update();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function DdfectData() {
|
|
|
+ $.get("rpt2.ashx?m=defect", function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var defect1 = parseFloat(json["rows"][0]["数量"]);
|
|
|
+ var defect2 = parseFloat(json["rows"][1]["数量"]);
|
|
|
+ var defect3 = parseFloat(json["rows"][2]["数量"]);
|
|
|
+ var defectname1 = json["rows"][0]["缺陷名称"];
|
|
|
+ var defectname2 = json["rows"][1]["缺陷名称"];
|
|
|
+ var defectname3 = json["rows"][2]["缺陷名称"];
|
|
|
+ window.DefectA.data.datasets[0].data = [defect1, defect2, defect3];
|
|
|
+ window.DefectA.data.labels = [defectname1, defectname2, defectname3]
|
|
|
+ window.DefectA.update();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function DdfectDataB() {
|
|
|
+ $.get("rpt2.ashx?m=defectb", function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var defect1 = parseFloat(json["rows"][0]["数量"]);
|
|
|
+ var defect2 = parseFloat(json["rows"][1]["数量"]);
|
|
|
+ var defect3 = parseFloat(json["rows"][2]["数量"]);
|
|
|
+ var defectname1 = json["rows"][0]["缺陷名称"];
|
|
|
+ var defectname2 = json["rows"][1]["缺陷名称"];
|
|
|
+ var defectname3 = json["rows"][2]["缺陷名称"];
|
|
|
+ window.DefectB.data.datasets[0].data = [defect1, defect2, defect3];
|
|
|
+ window.DefectB.data.labels = [defectname1, defectname2, defectname3]
|
|
|
+ window.DefectB.update();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function ZxData() {
|
|
|
+ $.get("rpt2.ashx?m=zx", function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ var BJ1 = parseFloat(json["rows"][0]["合格率"]);
|
|
|
+ var BJ2 = parseFloat(json["rows"][1]["合格率"]);
|
|
|
+ var BJ3 = parseFloat(json["rows"][2]["合格率"]);
|
|
|
+ var BJ4 = parseFloat(json["rows"][3]["合格率"]);
|
|
|
+ var BJ5 = parseFloat(json["rows"][4]["合格率"]);
|
|
|
+ var BJ6 = parseFloat(json["rows"][5]["合格率"]);
|
|
|
+ var BJ7 = parseFloat(json["rows"][6]["合格率"]);
|
|
|
+ var day1 = parseFloat(json["rows"][0]["日期"]);
|
|
|
+ var day2 = parseFloat(json["rows"][1]["日期"]);
|
|
|
+ var day3 = parseFloat(json["rows"][2]["日期"]);
|
|
|
+ var day4 = parseFloat(json["rows"][3]["日期"]);
|
|
|
+ var day5 = parseFloat(json["rows"][4]["日期"]);
|
|
|
+ var day6 = parseFloat(json["rows"][5]["日期"]);
|
|
|
+ var day7 = parseFloat(json["rows"][6]["日期"]);
|
|
|
+ var count1 = parseFloat(json["rows"][0]["本烧合格数"]);
|
|
|
+ var count2 = parseFloat(json["rows"][1]["本烧合格数"]);
|
|
|
+ var count3 = parseFloat(json["rows"][2]["本烧合格数"]);
|
|
|
+ var count4 = parseFloat(json["rows"][3]["本烧合格数"]);
|
|
|
+ var count5 = parseFloat(json["rows"][4]["本烧合格数"]);
|
|
|
+ var count6 = parseFloat(json["rows"][5]["本烧合格数"]);
|
|
|
+ var count7 = parseFloat(json["rows"][6]["本烧合格数"]);
|
|
|
+ window.DayZL.data.datasets[0].data = [BJ1, BJ2, BJ3, BJ4, BJ5, BJ6, BJ7];
|
|
|
+ window.DayZL.data.datasets[1].data = [count1, count2, count3, count4, count5, count6, count7];
|
|
|
+ window.DayZL.data.labels = [day1, day2, day3, day4, day5, day6, day7];
|
|
|
+ window.DayZL.update();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ //取服务器时间
|
|
|
+ function loadServerTime() {
|
|
|
+ $.get('../api/GetDateTime.ashx', function (data) {
|
|
|
+ var json = JSON.parse(data);
|
|
|
+ if (json["success"] == true) {
|
|
|
+ $('#当前时间').html(json["rows"]["时间"]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function timeUpdate(){
|
|
|
+
|
|
|
+ if (currentTime1 <= 0) {
|
|
|
+ loadData();
|
|
|
+ currentTime1 = refreshTime1;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ if (currentTime1 > 0) {
|
|
|
+ $('#报表加载').html('刷新:' + currentTime1 / 1000 + ' 秒');
|
|
|
+ currentTime1 = currentTime1 - 1000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function setTkCss() {
|
|
|
+ $('#tk_1').css('background-color', '#FFF500');
|
|
|
+ $('#tk_2').css('background-color', '#FFF500');
|
|
|
+ $('#tk_3').css('background-color', '#FFF500');
|
|
|
+ $('#tk_4').css('background-color', '#FFF000');
|
|
|
+ $('#tk_5').css('background-color', '#FFF000');
|
|
|
+ $('#tk_6').css('background-color', '#FFEB00');
|
|
|
+
|
|
|
+ $('#tk_7').css('background-color', '#FFEB00');
|
|
|
+ $('#tk_8').css('background-color', '#FFE600');
|
|
|
+ $('#tk_9').css('background-color', '#FFE600');
|
|
|
+ $('#tk_10').css('background-color', '#FFE100');
|
|
|
+ $('#tk_11').css('background-color', '#FFE100');
|
|
|
+ $('#tk_12').css('background-color', '#FFDC00');
|
|
|
+ $('#tk_13').css('background-color', '#FFDC00');
|
|
|
+ $('#tk_14').css('background-color', '#FFD200');
|
|
|
+ $('#tk_15').css('background-color', '#FFD200');
|
|
|
+ $('#tk_16').css('background-color', '#FFC800');
|
|
|
+ $('#tk_17').css('background-color', '#FFC800');
|
|
|
+ $('#tk_18').css('background-color', '#FFBE00');
|
|
|
+ $('#tk_19').css('background-color', '#FFBE00');
|
|
|
+ $('#tk_20').css('background-color', '#FFB400');
|
|
|
+ $('#tk_21').css('background-color', '#FFB400');
|
|
|
+ $('#tk_22').css('background-color', '#FFAA00');
|
|
|
+ $('#tk_23').css('background-color', '#FFAA00');
|
|
|
+ $('#tk_24').css('background-color', '#FFA000');
|
|
|
+ $('#tk_25').css('background-color', '#FFA000');
|
|
|
+ $('#tk_26').css('background-color', '#FF9600');
|
|
|
+ $('#tk_27').css('background-color', '#FF9600');
|
|
|
+ $('#tk_28').css('background-color', '#FF8C00');
|
|
|
+ $('#tk_29').css('background-color', '#FF8C00');
|
|
|
+ $('#tk_30').css('background-color', '#FF8200');
|
|
|
+ $('#tk_31').css('background-color', '#FF8200');
|
|
|
+
|
|
|
+ $('#tk_32').css('background-color', '#FF7800');
|
|
|
+ $('#tk_33').css('background-color', '#FF7300');
|
|
|
+ $('#tk_34').css('background-color', '#FF6E00');
|
|
|
+ $('#tk_35').css('background-color', '#FF6900');
|
|
|
+ $('#tk_36').css('background-color', '#FF6400');
|
|
|
+ $('#tk_37').css('background-color', '#FF5F00');
|
|
|
+ $('#tk_38').css('background-color', '#FF5A00');
|
|
|
+ $('#tk_39').css('background-color', '#FF5500');
|
|
|
+ $('#tk_40').css('background-color', '#FF5000');
|
|
|
+ $('#tk_41').css('background-color', '#FF4B00');
|
|
|
+ $('#tk_42').css('background-color', '#FF4600');
|
|
|
+ $('#tk_43').css('background-color', '#FF4100');
|
|
|
+ $('#tk_44').css('background-color', '#FF3C00');
|
|
|
+ $('#tk_45').css('background-color', '#FF3700');
|
|
|
+ $('#tk_46').css('background-color', '#FF3200');
|
|
|
+ $('#tk_47').css('background-color', '#FF2D00');
|
|
|
+ $('#tk_48').css('background-color', '#FF2800');
|
|
|
+ $('#tk_49').css('background-color', '#FF2000');
|
|
|
+
|
|
|
+ $('#tk_50').css('background-color', '#FF1000');
|
|
|
+
|
|
|
+ $('#tk_51').css('background-color', '#FF2000');
|
|
|
+ $('#tk_52').css('background-color', '#FF2800');
|
|
|
+ $('#tk_53').css('background-color', '#FF2D00');
|
|
|
+ $('#tk_54').css('background-color', '#FF3200');
|
|
|
+ $('#tk_55').css('background-color', '#FF3700');
|
|
|
+ $('#tk_56').css('background-color', '#FF3C00');
|
|
|
+ $('#tk_57').css('background-color', '#FF4100');
|
|
|
+ $('#tk_58').css('background-color', '#FF4600');
|
|
|
+ $('#tk_59').css('background-color', '#FF4B00');
|
|
|
+ $('#tk_60').css('background-color', '#FF5000');
|
|
|
+ $('#tk_61').css('background-color', '#FF5500');
|
|
|
+ $('#tk_62').css('background-color', '#FF5A00');
|
|
|
+ $('#tk_63').css('background-color', '#FF5F00');
|
|
|
+ $('#tk_64').css('background-color', '#FF6400');
|
|
|
+ $('#tk_65').css('background-color', '#FF6900');
|
|
|
+ $('#tk_66').css('background-color', '#FF6E00');
|
|
|
+ $('#tk_67').css('background-color', '#FF7300');
|
|
|
+ $('#tk_68').css('background-color', '#FF7800');
|
|
|
+ $('#tk_69').css('background-color', '#FF7D00');
|
|
|
+ $('#tk_70').css('background-color', '#FF8200');
|
|
|
+ $('#tk_71').css('background-color', '#FF8700');
|
|
|
+ $('#tk_72').css('background-color', '#FF8C00');
|
|
|
+ $('#tk_73').css('background-color', '#FF9100');
|
|
|
+ $('#tk_74').css('background-color', '#FF9600');
|
|
|
+ $('#tk_75').css('background-color', '#FF9B00');
|
|
|
+ $('#tk_76').css('background-color', '#FFA000');
|
|
|
+ $('#tk_77').css('background-color', '#FFA500');
|
|
|
+ $('#tk_78').css('background-color', '#FFAA00');
|
|
|
+ $('#tk_79').css('background-color', '#FFAF00');
|
|
|
+ $('#tk_80').css('background-color', '#FFB400');
|
|
|
+ $('#tk_81').css('background-color', '#FFB900');
|
|
|
+ $('#tk_82').css('background-color', '#FFBE00');
|
|
|
+ $('#tk_83').css('background-color', '#FFC300');
|
|
|
+ $('#tk_84').css('background-color', '#FFC800');
|
|
|
+ $('#tk_85').css('background-color', '#FFCD00');
|
|
|
+ $('#tk_86').css('background-color', '#FFD200');
|
|
|
+ $('#tk_87').css('background-color', '#FFD700');
|
|
|
+ $('#tk_88').css('background-color', '#FFDC00');
|
|
|
+ $('#tk_89').css('background-color', '#FFE100');
|
|
|
+ $('#tk_90').css('background-color', '#FFE600');
|
|
|
+ $('#tk_91').css('background-color', '#FFEB00');
|
|
|
+ $('#tk_92').css('background-color', '#FFF000');
|
|
|
+ $('#tk_93').css('background-color', '#FFF500');
|
|
|
+ }
|
|
|
+
|
|
|
+ function loadData(callback) {
|
|
|
+
|
|
|
+ //设置tk背景色
|
|
|
+ setTkCss();
|
|
|
+
|
|
|
+ //隧道窑
|
|
|
+ $.get('rpt2.ashx?m=tk', function (data) {
|
|
|
+ var result = JSON.parse(data);
|
|
|
+
|
|
|
+ if (result["success"] == true) {
|
|
|
+ var json = result["rows"];
|
|
|
+ tkJson = json;
|
|
|
+ //Y数据
|
|
|
+ var kno = 1;
|
|
|
+ var kno_count = 0;
|
|
|
+ for (var i = 0; i < json.length; i++) {
|
|
|
+ if (kno == json[i]["KNO"]) {
|
|
|
+ kno_count++;
|
|
|
+ if (i == json.length - 1) {
|
|
|
+ kno = json[i]["KNO"];
|
|
|
+ $("#tk_" + kno).html("");
|
|
|
+ $("#tk_" + kno).append("<span style='border-radius:10px; background-color:white;padding-left:10px;padding-right:10px;opacity:0.65;'><b>" + kno + "</b></span>");
|
|
|
+ $("#tk_" + kno).append("<br/> " + json[i]["KILNCARNUM"] + " 号");
|
|
|
+ $("#tk_" + kno).append("<br/> " + kno_count + " 件");
|
|
|
+ $("#tk_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('mm-dd', new Date(json[i]["INTIME"])) + "</span>");
|
|
|
+ $("#tk_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('HH:MM', new Date(json[i]["INTIME"])) + "</span>");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $("#tk_" + kno).html("");
|
|
|
+ $("#tk_" + kno).append("<span style='border-radius:10px; background-color:white;padding-left:10px;padding-right:10px;opacity:0.65;'><b>" + kno + "</b></span>");
|
|
|
+ $("#tk_" + kno).append("<br/> " + json[i - 1]["KILNCARNUM"] + " 号");
|
|
|
+ $("#tk_" + kno).append("<br/> " + kno_count + " 件");
|
|
|
+ $("#tk_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('mm-dd', new Date(json[i - 1]["INTIME"])) + "</span>");
|
|
|
+ $("#tk_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('HH:MM', new Date(json[i - 1]["INTIME"])) + "</span>");
|
|
|
+ kno = json[i]["KNO"];
|
|
|
+ kno_count = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ //烘干窑1
|
|
|
+ $.get('rpt2.ashx?m=hg1', function (data) {
|
|
|
+ var result = JSON.parse(data);
|
|
|
+
|
|
|
+ if (result["success"] == true) {
|
|
|
+ var json = result["rows"];
|
|
|
+ hg1Json = json;
|
|
|
+ //Y数据
|
|
|
+ var kno = 1;
|
|
|
+ var kno_count = 0;
|
|
|
+ for (var i = 0; i < json.length; i++) {
|
|
|
+ if (kno == json[i]["KNO"]) {
|
|
|
+ kno_count++;
|
|
|
+ if (i == json.length - 1) {
|
|
|
+ kno = json[i]["KNO"];
|
|
|
+ $("#hg1_" + kno).html("");
|
|
|
+ $("#hg1_" + kno).append("<span style='border-radius:10px; background-color:white;padding-left:10px;padding-right:10px;opacity:0.65;'><b>" + kno + "</b></span>");
|
|
|
+ $("#hg1_" + kno).append("<br/> " + json[i]["KILNCARNUM"] + " 号");
|
|
|
+ $("#hg1_" + kno).append("<br/> " + kno_count + " 件"); $("#hg1_" + kno).append("<br/><span style='color:black;opacity:0.7)'>" + dateFormat('mm-dd', new Date(json[i]["INTIME"])) + "</span>");
|
|
|
+ $("#hg1_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('HH:MM', new Date(json[i]["INTIME"])) + "</span>");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $("#hg1_" + kno).html("");
|
|
|
+ $("#hg1_" + kno).append("<span style='border-radius:10px; background-color:white;padding-left:10px;padding-right:10px;opacity:0.65;'><b>" + kno + "</b></span>");
|
|
|
+ $("#hg1_" + kno).append("<br/> " + json[i - 1]["KILNCARNUM"] + " 号");
|
|
|
+ $("#hg1_" + kno).append("<br/> " + kno_count + " 件"); $("#hg1_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('mm-dd', new Date(json[i - 1]["INTIME"])) + "</span>");
|
|
|
+ $("#hg1_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('HH:MM', new Date(json[i - 1]["INTIME"])) + "</span>");
|
|
|
+ kno = json[i]["KNO"];
|
|
|
+ kno_count = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //加载产窑车产品数据
|
|
|
+ loadGoods(json, 1);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ //烘干窑2
|
|
|
+ $.get('rpt2.ashx?m=hg2', function (data) {
|
|
|
+ var result = JSON.parse(data);
|
|
|
+
|
|
|
+ if (result["success"] == true) {
|
|
|
+ var json = result["rows"];
|
|
|
+ hg2Json = json;
|
|
|
+ //Y数据
|
|
|
+ var kno = 1;
|
|
|
+ var kno_count = 0;
|
|
|
+ for (var i = 0; i < json.length; i++) {
|
|
|
+ if (kno == json[i]["KNO"]) {
|
|
|
+ kno_count++;
|
|
|
+ if (i == json.length - 1) {
|
|
|
+ $("#hg2_" + kno).html("");
|
|
|
+ $("#hg2_" + kno).append("<span style='border-radius:10px; background-color:white;padding-left:10px;padding-right:10px;opacity:0.65;'><b>" + kno + "</b></span>");
|
|
|
+ $("#hg2_" + kno).append("<br/> " + json[i]["KILNCARNUM"] + " 号");
|
|
|
+ $("#hg2_" + kno).append("<br/> " + kno_count + " 件"); $("#hg2_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('mm-dd', new Date(json[i]["INTIME"])) + "</span>");
|
|
|
+ $("#hg2_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('HH:MM', new Date(json[i]["INTIME"])) + "</span>");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $("#hg2_" + kno).html("");
|
|
|
+ $("#hg2_" + kno).append("<span style='border-radius:10px; background-color:white;padding-left:10px;padding-right:10px;opacity:0.65;'><b>" + kno + "</b></span>");
|
|
|
+ $("#hg2_" + kno).append("<br/> " + json[i - 1]["KILNCARNUM"] + " 号");
|
|
|
+ $("#hg2_" + kno).append("<br/> " + kno_count + " 件"); $("#hg2_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('mm-dd', new Date(json[i - 1]["INTIME"])) + "</span>");
|
|
|
+ $("#hg2_" + kno).append("<br/><span style='color:black;opacity:0.7'>" + dateFormat('HH:MM', new Date(json[i - 1]["INTIME"])) + "</span>");
|
|
|
+ kno = json[i]["KNO"];
|
|
|
+ kno_count = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ if (typeof callback != 'undefined') callback();
|
|
|
+ }
|
|
|
+
|
|
|
+ function loadTable(id, url, callback) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ function loadGoods(json, kno) {
|
|
|
+ //xuwei add 2020-10-23 清空 产品型号
|
|
|
+ for (var i = 1; i <= 24; i++) $('#G_' + i).html('');
|
|
|
+
|
|
|
+ var kilncarPosition = 1;
|
|
|
+ for (var p = 0; p < json.length; p++) {
|
|
|
+ if (json[p]["KNO"] == kno) {
|
|
|
+ $('#GOODSTITLE').html("窑车 " + json[p]["KILNCARNUM"] + " 号 " + json[p]["INTIME"]);
|
|
|
+ var str = json[p]["GOODSCODE"] + "<br/>" + json[p]["BARCODE"];
|
|
|
+ $('#G_' + kilncarPosition).html(str);
|
|
|
+ kilncarPosition++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //日期格式化
|
|
|
+ function groutingDate(value, row, index) {
|
|
|
+ var d = new Date(value);
|
|
|
+ return d.getFullYear() + '-' + d.getMonth() + '-' + d.getDay();
|
|
|
+ }
|
|
|
+
|
|
|
+ function dateFormat(fmt, date) {
|
|
|
+ let ret;
|
|
|
+ const opt = {
|
|
|
+ "Y+": date.getFullYear().toString(), // 年
|
|
|
+ "m+": (date.getMonth() + 1).toString(), // 月
|
|
|
+ "d+": date.getDate().toString(), // 日
|
|
|
+ "H+": date.getHours().toString(), // 时
|
|
|
+ "M+": date.getMinutes().toString(), // 分
|
|
|
+ "S+": date.getSeconds().toString() // 秒
|
|
|
+ // 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
|
+ };
|
|
|
+ for (let k in opt) {
|
|
|
+ ret = new RegExp("(" + k + ")").exec(fmt);
|
|
|
+ if (ret) {
|
|
|
+ fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")))
|
|
|
+ };
|
|
|
+ };
|
|
|
+ return fmt;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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.configDayZL = {
|
|
|
+ data: {
|
|
|
+ labels: ["01", "02", "03", "04", "05", "06", "07"],
|
|
|
+ datasets: [{
|
|
|
+ type: 'line',
|
|
|
+ label: "合格率",
|
|
|
+ yAxesGroup: 'A',
|
|
|
+ yAxisID: 'A',
|
|
|
+ backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(),
|
|
|
+ borderColor: window.chartColors.red,
|
|
|
+ borderWidth: 2,
|
|
|
+ pointRadius: 15,
|
|
|
+ data: [0, 0, 0, 0, 0, 0, 0],
|
|
|
+ fill: false
|
|
|
+ }, {
|
|
|
+ label: '产量',
|
|
|
+ yAxesGroup: 'B',
|
|
|
+ yAxisID: 'B',
|
|
|
+ backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(),
|
|
|
+ borderColor: window.chartColors.blue,
|
|
|
+ borderWidth: 1,
|
|
|
+ data: [100, 100, 100, 100, 100, 100, 100],
|
|
|
+ fill: false
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ type: 'bar',
|
|
|
+ options: {
|
|
|
+ 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,
|
|
|
+ id: 'B',
|
|
|
+ name: 'B',
|
|
|
+ scalePositionLeft: true,
|
|
|
+ position: 'left',
|
|
|
+ scaleLabel: {
|
|
|
+ display: false,
|
|
|
+ labelString: 'Value'
|
|
|
+ },
|
|
|
+ ticks: {
|
|
|
+ min: 0,
|
|
|
+ stepSize: 1000,
|
|
|
+ max: 5000
|
|
|
+ }
|
|
|
+ }
|
|
|
+ , {
|
|
|
+ display: true,
|
|
|
+ id: 'A',
|
|
|
+ name: 'A',
|
|
|
+ scalePositionLeft: false,
|
|
|
+ position: 'right',
|
|
|
+ scaleLabel: {
|
|
|
+ display: false,
|
|
|
+ labelString: 'Value2'
|
|
|
+ },
|
|
|
+ ticks: {
|
|
|
+ min: 50,
|
|
|
+ stepSize: 10,
|
|
|
+ max: 100
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ };
|
|
|
+ var ctxDayZL = document.getElementById("canvasDayZL").getContext("2d");
|
|
|
+ window.DayZL = new Chart(ctxDayZL, configDayZL);
|
|
|
+ //===================================================
|
|
|
+
|
|
|
+ //成检缺陷TOP5===========================================
|
|
|
+ window.configDefectA = {
|
|
|
+ data: {
|
|
|
+ labels: ['1', '2', '3'],
|
|
|
+ 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, 0]
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ type: 'pie',
|
|
|
+ options: {
|
|
|
+ legend: {
|
|
|
+ display: true
|
|
|
+ },
|
|
|
+ title: {
|
|
|
+ display: false,
|
|
|
+ text: "甲班缺陷"
|
|
|
+ },
|
|
|
+ tooltips: {
|
|
|
+ mode: 'point',
|
|
|
+ intersect: false
|
|
|
+ },
|
|
|
+ responsive: true
|
|
|
+
|
|
|
+ }
|
|
|
+ };
|
|
|
+ var ctxDefectA = document.getElementById("canvasDefectA").getContext("2d");
|
|
|
+ window.DefectA = new Chart(ctxDefectA, configDefectA);
|
|
|
+ //===================================================
|
|
|
+ //成检缺陷位置TOP5===========================================
|
|
|
+ window.configDefectW = {
|
|
|
+ data: {
|
|
|
+ labels: ['1', '2', '3'],
|
|
|
+ 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, 0]
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ type: 'pie',
|
|
|
+ options: {
|
|
|
+ legend: {
|
|
|
+ display: true
|
|
|
+ },
|
|
|
+ title: {
|
|
|
+ display: false,
|
|
|
+ text: "甲班缺陷"
|
|
|
+ },
|
|
|
+ tooltips: {
|
|
|
+ mode: 'point',
|
|
|
+ intersect: false
|
|
|
+ },
|
|
|
+ responsive: true
|
|
|
+
|
|
|
+ }
|
|
|
+ };
|
|
|
+ var ctxDefectW = document.getElementById("canvasDefectW").getContext("2d");
|
|
|
+ window.DefectW = new Chart(ctxDefectW, configDefectW);
|
|
|
+ //===================================================
|
|
|
+
|
|
|
+
|
|
|
+ //成检缺陷TOP5===========================================
|
|
|
+ window.configDefectB = {
|
|
|
+ data: {
|
|
|
+ labels: ['缺陷1', '缺陷2', '缺陷3'],
|
|
|
+ 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, 0]
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ type: 'pie',
|
|
|
+ options: {
|
|
|
+ legend: {
|
|
|
+ display: true
|
|
|
+ },
|
|
|
+ title: {
|
|
|
+ display: false,
|
|
|
+ text: "甲班缺陷"
|
|
|
+ },
|
|
|
+ tooltips: {
|
|
|
+ mode: 'point',
|
|
|
+ intersect: false
|
|
|
+ },
|
|
|
+ responsive: true
|
|
|
+
|
|
|
+ }
|
|
|
+ };
|
|
|
+ var ctxDefectB = document.getElementById("canvasDefectB").getContext("2d");
|
|
|
+ window.DefectB = new Chart(ctxDefectB, configDefectB);
|
|
|
+ //===================================================
|
|
|
+
|
|
|
+ //甲班缺陷===========================================
|
|
|
+ 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>
|