machine_particulars.ftl 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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. font-size: 12px !important;
  60. }
  61. .content article {
  62. position: relative;
  63. }
  64. .content article > h3 {
  65. width: 100%;
  66. height: 20px;
  67. line-height: 20px;
  68. text-align: left;
  69. text-indent: 3%;
  70. font-size: 1.4em;
  71. color: #fff;
  72. padding: 10px 0 20px;
  73. background-color: #dd6d01;
  74. }
  75. .content article section {
  76. padding: 0 0 17px;
  77. position: relative;
  78. }
  79. .content article section:before {
  80. content: "";
  81. width: 3px;
  82. top: 17px;
  83. bottom: -17px;
  84. left: 91px;
  85. background: #84c9e9;
  86. position: absolute;
  87. -webkit-transform: scaleX(.5);
  88. }
  89. .content article section.no-before:before{
  90. display: none;
  91. }
  92. .content article section:last-child:before {
  93. display: none;
  94. }
  95. .content article section time {
  96. width: 80px;
  97. display: block;
  98. position: absolute;
  99. padding: 8px 0;
  100. }
  101. .content article section time > span {
  102. display: block;
  103. text-align: center;
  104. }
  105. .content article section aside {
  106. color: #3a3a38;
  107. margin-left: 108px;
  108. height: 35px;
  109. line-height: 35px;
  110. }
  111. .content article section .brief {
  112. color: #9f9f9f;
  113. }
  114. .content .things{margin-bottom: 0;}
  115. .things>.items{margin: 0 15px;}
  116. p{margin: 0;}
  117. input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  118. input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/rst/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  119. </style>
  120. <#include "/base/list_base.ftl">
  121. </head>
  122. <body>
  123. <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
  124. <span class="c-gray en">&gt;</span> PST管理
  125. <span class="c-gray en">&gt;</span> 产品生产详情
  126. <a class="btn radius r" style="line-height:1.6em;margin-top:3px;background: #32a3d8;color: #fff;border:1px solid #32a3d8;" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
  127. </nav>
  128. <div style="padding: 10px;">
  129. <div class="my-title">产品生产详情</div>
  130. <ul class="my-list">
  131. <li>机器条码:${ptsMachine.machineBarcode!''}</li>
  132. <li>生产状态:<#if ptsMachine.machineProcessState == 1><span class="text-blue">正常</#if>
  133. <#if ptsMachine.machineProcessState == 2><span class="text-red">异常</#if></span></li>
  134. <li>
  135. <div class="content">
  136. <article>
  137. <#list machineLogsList as list>
  138. <section style="padding-bottom: 37px;">
  139. <span class="point-time point-blue"></span>
  140. <time>
  141. <#if list_index == 1>生产流程:</#if>
  142. </time>
  143. <aside>
  144. <p class="things">
  145. ${(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>
  146. </p>
  147. <p class="things text-red">
  148. <#if list.logsErrorType??>
  149. <#if list.logsErrorType == 1>
  150. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/rst/common/images/pts/tanhao.png" />提示:<span class="btn-see-ditails text-red">${list.logsProcessPrompt}</span>
  151. <#else>
  152. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/rst/common/images/pts/tanhao.png" />提示:<span class="btn-see-ditails text-red">次品异常</span>
  153. </#if>
  154. </#if>
  155. </p>
  156. </aside>
  157. </section>
  158. </#list>
  159. <#--<section style="padding-bottom: 37px;">
  160. <span class="point-time point-blue"></span>
  161. <time>
  162. </time>
  163. <aside>
  164. <p class="things">
  165. 2017-08-09 12:12:12 <span class="items">王老五</span><span class="items">净水机需求清洗物料</span><span class="btn-see-ditails text-red">异常</span>
  166. </p>
  167. <p class="things text-red">
  168. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/common/images/tanhao.png" />提示:此正常流程为检查水箱是否完好
  169. </p>
  170. </aside>
  171. </section>-->
  172. <section>
  173. <span class="point-time point-green"></span>
  174. <time>
  175. 销售信息:
  176. </time>
  177. <aside>
  178. <p class="things">
  179. <#if ptsMachine.machineSalesState == 2>
  180. ${(ptsMachine.machineSalesDate?string("yyyy-MM-dd"))!''}售出<#--<span class="items">王老五</span><span class="items">净水机需求清洗物料</span>-->
  181. <#else >
  182. 未售出
  183. </#if>
  184. </p>
  185. </aside>
  186. </section>
  187. </article>
  188. </div>
  189. </li>
  190. </ul>
  191. </div>
  192. </body>
  193. </html>