IndexV1.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. @{
  2. ViewData["TitleController"] = "机种一览v1";
  3. ViewData["TitleAction"] = "";
  4. ViewData["TitleActionDescription"] = "机种一览v1";
  5. ViewData["Title"] = "机种一览v1";
  6. }
  7. <div id="app">
  8. <div class="col-md-12">
  9. <div class="box box-primary">
  10. <div class="box-body">
  11. <div id="homeTop" style="top: 50px; height: 80px;position: fixed; z-index: 8001; width: 1300px;background-color: #001529;">
  12. <div class="col-lg-6">
  13. <h2>
  14. {{ month }}月机种一览
  15. <small style="color:#FCC439">
  16. ( {{ title }}, 截至:{{ statisticsTime }} )
  17. </small>
  18. </h2>
  19. </div>
  20. <div class="col-lg-6" style="top: 25px;">
  21. <div class="col-lg-2">
  22. <select id="selectMark" class="form-control" v-on:change="refresh()">
  23. <option value="2F">2F</option>
  24. <option value="1F">1F</option>
  25. </select>
  26. </div>
  27. <div class="col-lg-3">
  28. <select id="selectYear" class="form-control" v-on:change="refresh()">
  29. @for (int i = 2023; i <= DateTime.Now.Year + 1; i++)
  30. {
  31. <option value=@i>@i 年</option>
  32. }
  33. </select>
  34. </div>
  35. <div class="col-lg-2">
  36. <select id="selectMonth" class="form-control" v-on:change="refresh()">
  37. @for (int i = 1; i <= 12; i++)
  38. {
  39. <option value=@i>@i 月</option>
  40. }
  41. </select>
  42. </div>
  43. <div class="col-lg-3">
  44. <button type="button" class="btn btn-default" v-on:click="lastMonthClick()">
  45. <span class="glyphicon glyphicon-chevron-left"></span>
  46. </button>
  47. <button type="button" class="btn btn-default" v-on:click="nextMonthClick()">
  48. <span class="glyphicon glyphicon-chevron-right"></span>
  49. </button>
  50. </div>
  51. <div class="col-lg-2">
  52. <a class="btn btn-default" href="http://eyz2rp3.toc.eink.com/ERS/#/Home/IndexPage">
  53. 导航首页
  54. </a>
  55. </div>
  56. </div>
  57. </div>
  58. <div id="homeTable1" style="top: 130px; position: fixed; z-index: 8000; height: 60px; width: 1300px;background-color: #001529;">
  59. <table id="table1" class="table table-hover">
  60. <thead>
  61. <tr>
  62. <th width="5%">No</th>
  63. <th width="15%">
  64. Model
  65. <br />
  66. <div class="col-lg-12">
  67. <div class="col-lg-6">
  68. <select id="selectModelPrefix" class="form-control" v-on:change="onClickFilter()">
  69. <option v-for="modelPrefix in modelPrefixs">{{ modelPrefix }}</option>
  70. </select>
  71. </div>
  72. <div class="col-lg-6">
  73. @* <select id="selectModelSize" class="form-control" v-on:change="onClickFilter()">
  74. <option v-for="modelSize in modelSizes" :value="modelSize">{{ modelSize }}</option>
  75. </select> *@
  76. <input id="selectModelSize" class="form-control" maxlength="3" v-on:input="onClickFilter()" />
  77. </div>
  78. </div>
  79. </th>
  80. <th width="10%">
  81. Line
  82. <br />
  83. <select id="selectLine" class="form-control" v-on:change="onClickFilter()">
  84. <option v-for="line in lines">{{ line }}</option>
  85. </select>
  86. </th>
  87. <th width="25%">
  88. <span class="pull-left">
  89. MPS
  90. <br />
  91. <button class="btn btn-default btn-sm" v-on:click="sort(4)">升序</button>
  92. <button class="btn btn-default btn-sm" v-on:click="sort(3)">降序</button>
  93. </span>
  94. <small class="pull-right">
  95. <span class="label label-primary badge">
  96. Planned <br />
  97. {{ totals[0] }}
  98. </span>
  99. <span class="label label-success badge">
  100. Actual <br />
  101. {{ totals[1] }}
  102. </span>
  103. <span class="label label-default badge">
  104. Remainder <br />
  105. {{ totals[2] }}
  106. </span>
  107. </small>
  108. </th>
  109. <th width="15%">
  110. MTD Dev.
  111. <br />
  112. <button class="btn btn-default btn-sm" v-on:click="sort(2)">升序</button>
  113. <button class="btn btn-default btn-sm" v-on:click="sort(1)">降序</button>
  114. </th>
  115. <th width="20%">Remarks</th>
  116. </tr>
  117. </thead>
  118. </table>
  119. </div>
  120. <div id="homeTable2" style="padding-top: 60px; width: 1300px">
  121. <table id="table1" class="table table-hover">
  122. <thead>
  123. <tr>
  124. <th width="5%">No</th>
  125. <th width="10%">Model</th>
  126. <th width="10%">Line</th>
  127. <th width="30%">
  128. <span class="pull-left">MPS</span>
  129. <small class="pull-right">
  130. <span class="label label-primary badge">
  131. Planned
  132. </span>
  133. <span class="label label-success badge">
  134. Actual
  135. </span>
  136. <span class="label label-default badge">
  137. Remainder
  138. </span>
  139. </small>
  140. </th>
  141. <th width="15%">MTD Dev.<br/>
  142. <button class="btn btn-default btn-sm">默认</button>
  143. <button class="btn btn-default btn-sm">升序</button>
  144. <button class="btn btn-default btn-sm">降序</button>
  145. </th>
  146. <th width="20%">Remarks</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr v-for="(v1, index) in v1s">
  151. <td v-on:click="onHref(v1.href)">
  152. <span>
  153. {{ index + 1 }}
  154. </span>
  155. </td>
  156. <td v-on:click="onHref(v1.href)">
  157. <span v-for="model in v1.models" >
  158. {{ model }} <br />
  159. </span>
  160. </td>
  161. <td>
  162. <span v-for="line in v1.lines"
  163. style="color:#ffc039;">
  164. {{ line.line }} line <br />
  165. </span>
  166. </td>
  167. <td>
  168. <div class="clearfix">
  169. <span class="pull-left">MPS</span>
  170. <small class="pull-right">
  171. <span class="label label-primary badge">
  172. {{ v1.planCapacity + v1.lastModuleCapacity }}
  173. </span>
  174. <span class="label label-success badge">
  175. {{ v1.capacity }}
  176. </span>
  177. <span class="label label-default badge">
  178. {{ (v1.capacity > (v1.planCapacity + v1.lastModuleCapacity) ) ? 0
  179. : (v1.capacity - v1.planCapacity - v1.lastModuleCapacity) }}
  180. </span>
  181. </small>
  182. </div>
  183. <div class="progress xs">
  184. <div class="progress-bar progress-bar-green" v-bind:style="{ width: v1.reach + '%'}"></div>
  185. </div>
  186. </td>
  187. <td v-on:click="onHref(v1.href)">
  188. <a style="color:#ffc039;" @* target="_blank" *@ @* :href=v1.href *@>
  189. {{ v1.difference }}
  190. </a>
  191. </td>
  192. <td>
  193. <textarea class="form-control"
  194. style="background-color: #001529; border: 0px; color:#ffc039;resize:vertical"
  195. rows="4" placeholder="..." disabled>{{ v1.remarks }}</textarea>
  196. </td>
  197. </tr>
  198. </tbody>
  199. <tfoot>
  200. <tr>
  201. <td width="15%" colspan="2">Total</td>
  202. <td width="15%"></td>
  203. <td width="25%"></td>
  204. <td width="15%">
  205. <span>Advance: {{ diffs[0] }}</span> <br />
  206. <span>Delay: {{ diffs[1] }}</span> <br />
  207. <span>Difference: {{ diffs[2] }}</span>
  208. </td>
  209. <td width="20%"></td>
  210. </tr>
  211. </tfoot>
  212. </table>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. @section footer{
  219. <script src="~/js/home/home-v1.js" asp-append-version="true"></script>
  220. }