machine_particulars.ftl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. <#include "/base/list_base.ftl">
  7. <style>
  8. .my-title{font-weight: 500;padding-left: 15px;position: relative;}
  9. .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
  10. .my-list{list-style-type: none;padding: 0;margin: 0;}
  11. .my-list>li{margin: 10px 0;}
  12. article, section, time, aside {
  13. display: block;
  14. }
  15. .point-time {
  16. content: "";
  17. position: absolute;
  18. width: 13px;
  19. height: 13px;
  20. top: 12px;
  21. left: 90px;
  22. background: #1c87bf;
  23. margin-left: -4px;
  24. border-radius: 50%;
  25. box-shadow: 0 0 0 2px #fff;
  26. }
  27. .text-red {
  28. color: #f6393f;
  29. }
  30. .text-blue {
  31. color: #32a3d8;
  32. }
  33. .text-green {
  34. color: #95c91e;
  35. }
  36. .text-yellow {
  37. color: #ffb902;
  38. }
  39. .text-purple {
  40. color: #d32d93;
  41. }
  42. .point-red {
  43. background-color: #f6393f;
  44. }
  45. .point-blue {
  46. background-color: #32a3d8;
  47. }
  48. .point-green {
  49. background-color: #24c175;
  50. }
  51. .point-yellow {
  52. background-color: #ffb902;
  53. }
  54. .point-purple {
  55. background-color: #d32d93;
  56. }
  57. .content {
  58. width: 100%;
  59. margin: 0 auto;
  60. font-size: 12px !important;
  61. }
  62. .content article {
  63. position: relative;
  64. }
  65. .content article > h3 {
  66. width: 100%;
  67. height: 20px;
  68. line-height: 20px;
  69. text-align: left;
  70. text-indent: 3%;
  71. font-size: 1.4em;
  72. color: #fff;
  73. padding: 10px 0 20px;
  74. background-color: #dd6d01;
  75. }
  76. .content article section {
  77. padding: 0 0 17px;
  78. position: relative;
  79. }
  80. .content article section:before {
  81. content: "";
  82. width: 3px;
  83. top: 17px;
  84. bottom: -17px;
  85. left: 91px;
  86. background: #84c9e9;
  87. position: absolute;
  88. -webkit-transform: scaleX(.5);
  89. }
  90. .content article section.no-before:before{
  91. display: none;
  92. }
  93. .content article section:last-child:before {
  94. display: none;
  95. }
  96. .content article section time {
  97. width: 80px;
  98. display: block;
  99. position: absolute;
  100. padding: 8px 0;
  101. }
  102. .content article section time > span {
  103. display: block;
  104. text-align: center;
  105. }
  106. .content article section aside {
  107. color: #3a3a38;
  108. margin-left: 108px;
  109. height: 35px;
  110. line-height: 35px;
  111. }
  112. .content article section .brief {
  113. color: #9f9f9f;
  114. }
  115. .content .things{margin-bottom: 0;}
  116. .things>.items{margin: 0 15px;}
  117. p{margin: 0;}
  118. input[type=radio]{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  119. input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  120. .rj-a{text-decoration:none; color: #f6393f;}
  121. .rj-a:hover{text-decoration:underline;color: #f6393f;}
  122. </style>
  123. </head>
  124. <body>
  125. <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
  126. <span class="c-gray en">&gt;</span> PST管理
  127. <span class="c-gray en">&gt;</span> 产品生产详情
  128. <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>
  129. </nav>
  130. <div style="padding: 10px;">
  131. <div class="my-title">产品生产详情</div>
  132. <ul class="my-list">
  133. <li>机器条码:${ptsMachine.machineBarcode!''}</li>
  134. <li>生产状态:<#if ptsMachine.machineProcessState == 1><span class="text-blue">正常</#if>
  135. <#if ptsMachine.machineProcessState == 2><span class="text-red">异常</#if></span></li>
  136. <li style="width: 100%;height: 25px;">
  137. <div style="float: left;width: 200px;">软件版本:
  138. <span class="text-red">
  139. <a class="rj-a" style="" href="javascript:void(0);" title="点击查看软件版本" onclick="selectVersion('${produce.produceId ! ''}','${produce.produceName ! ''}')">${ptsMachineVersion.machineVersionNo ! ''}</a>
  140. </span>
  141. </div>
  142. <div style="float: left;width: 200px;">硬件版本:<span class="text-red">${ptsBom.bomVersion ! ''}</span></div>
  143. </li>
  144. <li style="width: 100%;height: 25px;">
  145. <div style="float: left;width: 200px;">所属批次:${ptsBatch.batchNo ! ''}</div>
  146. <div style="float: left;width: 200px;">所属Bom:${ptsBom.bomName ! ''}</div>
  147. </li>
  148. <li style="width: 100%;height: 25px;">
  149. <div style="float: left;width: 200px;">Bom总质量:${ptsBom.allComponentsWeight ! ''}g</div>
  150. <div style="float: left;width: 200px;">Bom总价格:${ptsBom.allComponentsCost/100 ! ''}元</div>
  151. </li>
  152. <li style="width: 100%;height: 25px;">Bom零件清单</li>
  153. <table class="table table-border table-bordered table-bg table-hover table-sort">
  154. <thead>
  155. <tr class="text-c">
  156. <th width="80">零件编号</th>
  157. <th width="">零件名称</th>
  158. <th width="">零件数量</th>
  159. <th width="">零件成本(元)</th>
  160. <th width="">零件净重(g)</th>
  161. <th width="">零件规格</th>
  162. <th width="">零件供应商</th>
  163. </tr>
  164. </thead>
  165. <tbody id="componentaAll">
  166. <#if ptsBom.ptsBomComponentsList?? && (ptsBom.ptsBomComponentsList?size > 0) >
  167. <#list ptsBom.ptsBomComponentsList as bomComponents>
  168. <#assign compont = bomComponents.ptsComponents/>
  169. <tr class="text-c">
  170. <td>
  171. ${compont.componentsNo}
  172. </td>
  173. <td>
  174. ${compont.componentsName}
  175. </td>
  176. <td>
  177. ${bomComponents.bomComponentsQuantity}
  178. </td>
  179. <td>
  180. <#if compont.componentsCost?? >${compont.componentsCost/100}</#if>
  181. </td>
  182. <td>
  183. ${compont.componentsWeight}
  184. </td>
  185. <td>
  186. ${compont.componentsSpecification}
  187. </td>
  188. <td>
  189. ${compont.supplierName! ''}
  190. </td>
  191. </tr>
  192. </#list>
  193. <#else>
  194. <tr><td colspan="7" class="td-manage text-c" >该Bom单没有零件!</td></tr>
  195. </#if>
  196. </tbody>
  197. </table>
  198. <li>
  199. <div class="content">
  200. <div style="font-size: 14px;" class="my-title">生产流程</div>
  201. <article>
  202. <#if machineLogsList?? && (machineLogsList?size > 0) >
  203. <#list machineLogsList as list>
  204. <section style="padding-bottom: 37px;">
  205. <span class="point-time point-blue"></span>
  206. <#--<time>
  207. <#if list_index == 1>生产流程:</#if>
  208. </time>-->
  209. <aside>
  210. <p class="things">
  211. ${(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>
  212. </p>
  213. <p class="things text-red">
  214. <#if list.logsErrorType??>
  215. <#if list.logsErrorType == 1>
  216. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="${path}/common/images/pts/tanhao.png" />提示:<span class="btn-see-ditails text-red">${list.logsProcessPrompt}</span>
  217. <#else>
  218. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="${path}/common/images/pts/tanhao.png" />提示:<span class="btn-see-ditails text-red">次品异常</span>
  219. </#if>
  220. </#if>
  221. </p>
  222. </aside>
  223. </section>
  224. </#list>
  225. <#else>
  226. 未找到该机器生产流程
  227. </#if>
  228. <#--<section style="padding-bottom: 37px;">
  229. <span class="point-time point-blue"></span>
  230. <time>
  231. </time>
  232. <aside>
  233. <p class="things">
  234. 2017-08-09 12:12:12 <span class="items">王老五</span><span class="items">净水机需求清洗物料</span><span class="btn-see-ditails text-red">异常</span>
  235. </p>
  236. <p class="things text-red">
  237. <img style="width: 20px;float: left;margin-top:8px;margin-right: 10px;" src="/common/images/tanhao.png" />提示:此正常流程为检查水箱是否完好
  238. </p>
  239. </aside>
  240. </section>-->
  241. <#--<section>
  242. <span class="point-time point-green"></span>
  243. <time>
  244. 销售信息:
  245. </time>
  246. <aside>
  247. <p class="things">
  248. <#if ptsMachine.machineSalesState == 2>
  249. ${(ptsMachine.machineSalesDate?string("yyyy-MM-dd"))!''}售出&lt;#&ndash;<span class="items">王老五</span><span class="items">净水机需求清洗物料</span>&ndash;&gt;
  250. <#else >
  251. 未售出
  252. </#if>
  253. </p>
  254. </aside>
  255. </section>-->
  256. </article>
  257. </div>
  258. </li>
  259. </ul>
  260. <div class="my-title">机器销售信息</div>
  261. <ul class="my-list">
  262. <li>销售状态:
  263. <#if ptsMachine.machineSalesState == 1><span class="text-blue">已售出</#if>
  264. <#if ptsMachine.machineSalesState == 2><span class="text-blue">未售出</#if>
  265. </li>
  266. <#if ptsMachine.machineSalesState == 1>
  267. <li style="width: 100%;height: 25px;">
  268. <div style="float: left;width: 200px;">销售时间:${(ptsMachine.machineSalesDate?string("yyyy-MM-dd"))!''}</div>
  269. <div style="float: left;width: 200px;">销售公司:${ptsSalesCompany.salesCompanyName ! ''}</div>
  270. </li>
  271. </#if>
  272. </ul>
  273. </div>
  274. <script>
  275. /**
  276. * 查询版本列表
  277. * @param produceId
  278. */
  279. function selectVersion(produceId,produceName){
  280. window.location.href= "${path}/admin/machineVersion/_version_list?produceId="+ produceId+"&produceName="+encodeURI(produceName);
  281. }
  282. </script>
  283. </body>
  284. </html>