Index.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 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" 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" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")">
  42. </div>
  43. <div class="col-md-1">
  44. <div class="btn-group">
  45. <button type="button" class="btn btn-block btn-default"
  46. v-on:click="getOEES()">
  47. <i class="fa fa-search"></i> 查询
  48. </button>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col-md-12" style="padding-top: 20px;">
  53. <div class="box-body">
  54. <p class="text-center">
  55. <strong>稼动曲线</strong>
  56. </p>
  57. <div id="container1"
  58. style="height: 400px;">
  59. </div>
  60. @* <div id="container2" style="height: 280px">
  61. </div> *@
  62. </div>
  63. </div>
  64. <div class="col-md-6" style="padding-top: 10px;">
  65. <p class="text-center">
  66. 日期:{{ outputInfo }}
  67. </p>
  68. <table id="data" height="300px" style="margin-left: 4px">
  69. <thead>
  70. <tr>
  71. <th style="width: 10%">时段</th>
  72. <th style="width: 10%">机种</th>
  73. <th style="width: 10%">运行时间</th>
  74. <th style="width: 10%">报警时间</th>
  75. <th style="width: 10%">待料时间</th>
  76. <th style="width: 10%">产能</th>
  77. <th style="width: 10%">TT</th>
  78. <th style="width: 10%">报警次数</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. <tr v-for="(output, index) in outputs">
  83. <td>{{ output.period }}</td>
  84. <td>{{ output.moduleType }}</td>
  85. <td>{{ output.autoRunTime / 60 }}</td>
  86. <td>{{ output.alarmTime / 60 }}</td>
  87. <td>{{ output.idleTime / 60 }}</td>
  88. <td>{{ output.outPut }}</td>
  89. <td>{{ output.tt }}</td>
  90. <td>{{ output.alarmSum }}</td>
  91. </tr>
  92. </tbody>
  93. </table>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. @section footer {
  100. <script src="/lib/zTree.v3/js/jquery.ztree.core.min.js"></script>
  101. <script src="~/lib/xlsx/xlsx.full.min.js"></script>
  102. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
  103. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-cn.js"></script>
  104. <script src="~/lib/echarts/echarts.min.js"></script>
  105. <script src="~/js/report-form/report-form-v1.js"></script>
  106. }