Index.cshtml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. @{
  2. ViewData["TitleController"] = "OEE";
  3. ViewData["TitleAction"] = "";
  4. ViewData["TitleActionDescription"] = "机台OEE详情";
  5. ViewData["Title"] = "OEE Machine";
  6. }
  7. @section header {
  8. <link rel="stylesheet" href="~/lib/zTree.v3/css/zTreeStyle/zTreeStyle.min.css">
  9. <link rel="stylesheet" href="~/lib/adminlte/bower/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" />
  10. <style>
  11. table {
  12. border-right: 1px solid WhiteSmoke;
  13. border-bottom: 1px solid WhiteSmoke;
  14. text-align: center;
  15. }
  16. table th {
  17. border-left: 1px solid WhiteSmoke;
  18. border-top: 1px solid WhiteSmoke;
  19. text-align: center;
  20. }
  21. table td {
  22. border-left: 1px solid WhiteSmoke;
  23. border-top: 1px solid WhiteSmoke;
  24. }
  25. </style>
  26. }
  27. <div id="app" class="col-md-12">
  28. <div class="box box-primary">
  29. <div class="box-body">
  30. <div class="col-md-2">
  31. <div class="over">
  32. <ul id="productionLineTree" class="ztree"></ul>
  33. </div>
  34. </div>
  35. <div class="col-md-10">
  36. <div id="form1" class="col-md-12">
  37. <div class="input-group input-daterange" style="width:400px;float:left;padding:0px">
  38. <div class="input-group-addon">起止日期</div>
  39. <input id="date1" type="text" class="form-control date" value="@DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")">
  40. <div class="input-group-addon">-</div>
  41. <input id="date2" type="text" class="form-control date" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")">
  42. </div>
  43. <div id="devicechoose" class="input-group input-daterange" style="width:300px;float:left;padding-left:15px">
  44. <div class="input-group-addon">设备选择</div>
  45. <input id="mutiSelect" class="form-control" v-on:click="showMenu()">
  46. </div>
  47. <div id="methodchoose" class="input-group input-daterange" style="width:200px;float:left;padding-left:15px">
  48. <div class="input-group-addon">By</div>
  49. <select id="selectMonth" class="form-control" v-on:change="selected()">
  50. <option value="1">Day</option>
  51. <option value="2">Week</option>
  52. <option value="3">Month</option>
  53. </select>
  54. </div>
  55. <div id="menuContent" style="position:absolute; display:none; z-index:10">
  56. <ul id="treeDemo" class="ztree" style="margin-top:0; width:180px; height: 200px;"></ul>
  57. </div>
  58. <div class="col-md-1" style="padding-left:15px">
  59. <div class="btn-group">
  60. <button type="button" class="btn btn-block btn-default"
  61. v-on:click="getOEES()">
  62. <i class="fa fa-search"></i> 查询
  63. </button>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="col-md-12" style="padding-top: 20px;">
  68. <div class="box-body">
  69. <p class="text-center">
  70. <strong>稼动曲线</strong>
  71. </p>
  72. <div id="container1"
  73. style="height: 500px;">
  74. </div>
  75. <div id="container2"
  76. class="col-md-6"
  77. style="height: 500px;">
  78. </div>
  79. <div id="tbdata" class="col-md-12" style="padding-top: 10px;">
  80. <p class="text-center">
  81. {{ outputInfo }}
  82. </p>
  83. <table id="data" height="500px" style="margin-left: 4px">
  84. <thead>
  85. <tr>
  86. <th style="width: 10%">时段</th>
  87. <th style="width: 10%">机种</th>
  88. <th style="width: 10%">运行时间</th>
  89. <th style="width: 10%">报警时间</th>
  90. <th style="width: 10%">待料时间</th>
  91. <th style="width: 10%">换料时间</th>
  92. <th style="width: 10%">产能</th>
  93. <th style="width: 10%">TT</th>
  94. <th style="width: 10%">报警次数</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. <tr v-for="(output, index) in outputs">
  99. <td>{{ output.period }}</td>
  100. <td>{{ output.moduleType }}</td>
  101. <td>{{ Math.round(output.autoRunTime/60*10)/10 }}</td>
  102. <td>{{ Math.round(output.alarmTime/60*10)/10 }}</td>
  103. <td>{{ Math.round(output.idleTime/60*10)/10 }}</td>
  104. <td>{{ Math.round(output.loadMATTime/60*10)/10 }}</td>
  105. <td>{{ output.outPut }}</td>
  106. <td>{{ output.tt }}</td>
  107. <td>{{ output.alarmSum }}</td>
  108. </tr>
  109. </tbody>
  110. </table>
  111. </div>
  112. </div>
  113. </div>
  114. @* <div class="col-md-6" style="padding-top: 10px;">
  115. <p class="text-center">
  116. 日期:{{ outputInfo }}
  117. </p>
  118. <table id="data" height="300px" style="margin-left: 4px">
  119. <thead>
  120. <tr>
  121. <th style="width: 10%">时段</th>
  122. <th style="width: 10%">机种</th>
  123. <th style="width: 10%">运行时间</th>
  124. <th style="width: 10%">报警时间</th>
  125. <th style="width: 10%">待料时间</th>
  126. <th style="width: 10%">换料时间</th>
  127. <th style="width: 10%">产能</th>
  128. <th style="width: 10%">TT</th>
  129. <th style="width: 10%">报警次数</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr v-for="(output, index) in outputs">
  134. <td>{{ output.period }}</td>
  135. <td>{{ output.moduleType }}</td>
  136. <td>{{ Math.round(output.autoRunTime/60*10)/10 }}</td>
  137. <td>{{ Math.round(output.alarmTime/60*10)/10 }}</td>
  138. <td>{{ Math.round(output.idleTime/60*10)/10 }}</td>
  139. <td>{{ Math.round(output.loadMATTime/60*10)/10 }}</td>
  140. <td>{{ output.outPut }}</td>
  141. <td>{{ output.tt }}</td>
  142. <td>{{ output.alarmSum }}</td>
  143. </tr>
  144. </tbody>
  145. </table>
  146. </div> *@
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. @section footer {
  152. <script src="/lib/zTree.v3/js/jquery.ztree.core.min.js"></script>
  153. <script src="~/lib/xlsx/xlsx.full.min.js"></script>
  154. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
  155. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-cn.js"></script>
  156. <script src="~/lib/echarts/echarts.min.js"></script>
  157. <script src="~/js/report-form/report-form-v1.js"></script>
  158. <script src="~/lib/ztree.v3/js/jquery.ztree.excheck.min.js"></script>
  159. <script src="~/lib/moment.js/moment-with-locales.min.js"></script>
  160. }