Index.cshtml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @{
  2. ViewData["TitleController"] = "机种一览";
  3. ViewData["TitleAction"] = "";
  4. ViewData["TitleActionDescription"] = "机种一览";
  5. ViewData["Title"] = "机种一览";
  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="12%">Model</th>
  64. <th width="10%">Line</th>
  65. <th width="30%">
  66. <span class="pull-left">
  67. MPS
  68. </span>
  69. <small class="pull-right">
  70. <span class="label label-primary badge">
  71. Planned <br/>
  72. {{ totals[0] }}
  73. </span>
  74. <span class="label label-success badge">
  75. Actual <br />
  76. {{ totals[1] }}
  77. </span>
  78. <span class="label label-default badge">
  79. Remainder <br />
  80. {{ totals[2] }}
  81. </span>
  82. </small>
  83. </th>
  84. <th width="10%">MTD Dev.</th>
  85. <th width="20%">Remarks</th>
  86. </tr>
  87. </thead>
  88. </table>
  89. </div>
  90. <div id="homeTable2" style="padding-top: 60px; width: 1300px">
  91. <table id="table1" class="table table-hover">
  92. <thead>
  93. <tr>
  94. <th width="5%">No</th>
  95. <th width="12%">Model</th>
  96. <th width="10%">Line</th>
  97. <th width="30%">
  98. <span class="pull-left">MPS</span>
  99. <small class="pull-right">
  100. <span class="label label-primary badge">
  101. Planned
  102. </span>
  103. <span class="label label-success badge">
  104. Actual
  105. </span>
  106. <span class="label label-default badge">
  107. Remainder
  108. </span>
  109. </small>
  110. </th>
  111. <th width="10%">MTD Dev.</th>
  112. <th width="20%">Remarks</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr v-for="(monthModuleTypeDto, index) in monthModuleTypeDtos">
  117. <td>{{ index + 1 }}</td>
  118. <td>{{ monthModuleTypeDto.moduleType }}</td>
  119. <td>
  120. @*<span v-for="line in monthModuleTypeDto.lines" class="label"
  121. style="color:#ffc039; margin-left:2px" v-on:click="jump(line.id, line.floor, line.line)">
  122. {{ line.line }} line <br />
  123. </span>*@
  124. <span v-for="line in monthModuleTypeDto.lines"
  125. style="color:#ffc039;">
  126. {{ line.line }} line <br />
  127. </span>
  128. </td>
  129. <td>
  130. <div class="clearfix">
  131. <span class="pull-left">MPS</span>
  132. <small class="pull-right">
  133. <span class="label label-primary badge">
  134. {{ monthModuleTypeDto.planCapacity + monthModuleTypeDto.lastModuleCapacity }}
  135. </span>
  136. <span class="label label-success badge">
  137. {{ monthModuleTypeDto.capacity }}
  138. </span>
  139. <span class="label label-default badge">
  140. {{ (monthModuleTypeDto.capacity > (monthModuleTypeDto.planCapacity + monthModuleTypeDto.lastModuleCapacity) ) ? 0
  141. : (monthModuleTypeDto.capacity - monthModuleTypeDto.planCapacity - monthModuleTypeDto.lastModuleCapacity) }}
  142. </span>
  143. </small>
  144. </div>
  145. <div class="progress xs">
  146. <div class="progress-bar progress-bar-green" v-bind:style="{ width: monthModuleTypeDto.reach + '%'}"></div>
  147. </div>
  148. </td>
  149. <td>
  150. <a style="color:#ffc039;" @* target="_blank" :href=monthModuleTypeDto.href *@ >
  151. {{ monthModuleTypeDto.difference }}
  152. </a>
  153. </td>
  154. <td>
  155. <textarea :id="'textarea'+index" class="form-control"
  156. style="background-color: #001529; border: 0px; color:#ffc039;resize:vertical"
  157. rows="4" placeholder="...">{{ monthModuleTypeDto.remark }}</textarea>
  158. <div style="text-align:left; padding-top: 5px; padding-left: 2px;">
  159. @* <a class="btn btn-sm btn-default" v-on:click="updateRemark('textarea'+index)"> <i class="fa fa-edit"> 编辑</i></a> *@
  160. <a class="btn btn-sm btn-default" v-on:click="updateRemark('textarea'+index, monthModuleTypeDto.id, monthModuleTypeDto.year, monthModuleTypeDto.month)">
  161. <i class="fa fa-save"> 保存</i></a>
  162. </div>
  163. </td>
  164. </tr>
  165. </tbody>
  166. </table>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. @section footer{
  173. <script src="~/js/home/home.js" asp-append-version="true"></script>
  174. }