machine_particulars.ftl 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. <style>
  7. .my-title{font-weight: 500;padding-left: 15px;position: relative;}
  8. .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
  9. .my-list{list-style-type: none;padding: 0;margin: 0;}
  10. .my-list>li{margin: 10px 0;}
  11. article, section, time, aside {
  12. display: block;
  13. }
  14. .point-time {
  15. content: "";
  16. position: absolute;
  17. width: 13px;
  18. height: 13px;
  19. top: 12px;
  20. left: 90px;
  21. background: #1c87bf;
  22. margin-left: -4px;
  23. border-radius: 50%;
  24. box-shadow: 0 0 0 2px #fff;
  25. }
  26. .text-red {
  27. color: #f6393f;
  28. }
  29. .text-blue {
  30. color: #32a3d8;
  31. }
  32. .text-green {
  33. color: #95c91e;
  34. }
  35. .text-yellow {
  36. color: #ffb902;
  37. }
  38. .text-purple {
  39. color: #d32d93;
  40. }
  41. .point-red {
  42. background-color: #f6393f;
  43. }
  44. .point-blue {
  45. background-color: #32a3d8;
  46. }
  47. .point-green {
  48. background-color: #24c175;
  49. }
  50. .point-yellow {
  51. background-color: #ffb902;
  52. }
  53. .point-purple {
  54. background-color: #d32d93;
  55. }
  56. .content {
  57. width: 100%;
  58. margin: 0 auto;
  59. }
  60. .content article {
  61. position: relative;
  62. }
  63. .content article > h3 {
  64. width: 100%;
  65. height: 20px;
  66. line-height: 20px;
  67. text-align: left;
  68. text-indent: 3%;
  69. font-size: 1.4em;
  70. color: #fff;
  71. padding: 10px 0 20px;
  72. background-color: #dd6d01;
  73. }
  74. .content article section {
  75. padding: 0 0 17px;
  76. position: relative;
  77. }
  78. .content article section:before {
  79. content: "";
  80. width: 3px;
  81. top: 17px;
  82. bottom: -17px;
  83. left: 91px;
  84. background: #84c9e9;
  85. position: absolute;
  86. -webkit-transform: scaleX(.5);
  87. }
  88. .content article section.no-before:before{
  89. display: none;
  90. }
  91. .content article section:last-child:before {
  92. display: none;
  93. }
  94. .content article section time {
  95. width: 80px;
  96. display: block;
  97. position: absolute;
  98. padding: 8px 0;
  99. }
  100. .content article section time > span {
  101. display: block;
  102. text-align: center;
  103. }
  104. .content article section aside {
  105. color: #3a3a38;
  106. margin-left: 108px;
  107. height: 35px;
  108. line-height: 35px;
  109. }
  110. .content article section .brief {
  111. color: #9f9f9f;
  112. }
  113. .things>.items{margin: 0 15px;}
  114. p{margin: 0;}
  115. </style>
  116. <#include "/base/list_base.ftl">
  117. </head>
  118. <body>
  119. <div style="padding: 10px;">
  120. <div class="my-title">产品生产详情</div>
  121. <ul class="my-list">
  122. <li>机器条码:${ptsMachine.machineBarcode!''}</li>
  123. <li>生产状态:<#if ptsMachine.machineProcessState == 1><span class="text-blue">正常</#if>
  124. <#if ptsMachine.machineProcessState == 2><span class="text-red">异常</#if></span></li>
  125. <li>
  126. <div class="content">
  127. <article>
  128. <#list machineLogsList as list>
  129. <section>
  130. <span class="point-time point-blue"></span>
  131. <time>
  132. <#if list_index == 1>生产流程:</#if>
  133. </time>
  134. <aside>
  135. <p class="things">
  136. ${(list.logsProcessTime?string("yyyy-MM-dd HH:mm:ss"))!''}<span class="items">${list.employeeName!''}</span><span class="items">${list.processName!''}</span><#if list.logsProcessStatus == 0><span class="btn-see-ditails text-red">异常</#if><#if list.logsProcessStatus == 1><span class="btn-see-ditails text-blue">正常</#if></span>
  137. </p>
  138. <#if list.logsErrorType??>
  139. <#if list.logsErrorType == 1>
  140. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/common/images/tanhao.png" />提示:<span class="btn-see-ditails text-red">${list.logsProcessPrompt}</span>
  141. <#else>
  142. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/common/images/tanhao.png" />提示:<span class="btn-see-ditails text-red">次品异常</span>
  143. </#if>
  144. </#if>
  145. </aside>
  146. </section>
  147. </#list>
  148. <#--<section style="padding-bottom: 37px;">
  149. <span class="point-time point-blue"></span>
  150. <time>
  151. </time>
  152. <aside>
  153. <p class="things">
  154. 2017-08-09 12:12:12 <span class="items">王老五</span><span class="items">净水机需求清洗物料</span><span class="btn-see-ditails text-red">异常</span>
  155. </p>
  156. <p class="things text-red">
  157. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/common/images/tanhao.png" />提示:此正常流程为检查水箱是否完好
  158. </p>
  159. </aside>
  160. </section>-->
  161. <section>
  162. <span class="point-time point-green"></span>
  163. <time>
  164. 销售信息:
  165. </time>
  166. <aside>
  167. <p class="things">
  168. <#if ptsMachine.machineSalesState == 2>
  169. ${(ptsMachine.machineSalesDate?string("yyyy-MM-dd"))!''}售出<#--<span class="items">王老五</span><span class="items">净水机需求清洗物料</span>-->
  170. <#else >
  171. 未售出
  172. </#if>
  173. </p>
  174. </aside>
  175. </section>
  176. </article>
  177. </div>
  178. </li>
  179. </ul>
  180. </div>
  181. </body>
  182. </html>