carList-detail.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: Liumouren
  4. Date: 2022/7/7
  5. Time: 18:43
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  9. <%@include file="/context/mytags.jsp"%>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>作业计划完成情况统计查看页面</title>
  14. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  15. </head>
  16. <body style="width:calc(100% - 20px);">
  17. <div class="workInfoBox">
  18. <div class="info"><span>作业人员:</span>${workInfo[0].username}</div>
  19. <c:if test="${!empty workInfo[0].usernames}"><div class="info"><span>随车人员:</span>${workInfo[0].usernames}</div></c:if>
  20. <c:if test="${queryType == 'car'}"><div class="info"><span>作业车辆:</span>${workInfo[0].plate}</div></c:if>
  21. <div class="info"><span>作业路线:</span>${workInfo[0].arrangeName}</div>
  22. <div class="info"><span>作业日期:</span>${workInfo[0].scheduleDate}</div>
  23. <div class="info"><span>作业时间:</span>${workInfo[0].workTime}</div>
  24. <table>
  25. <th>序号</th>
  26. <th>作业区域名称</th>
  27. <th>作业完成状态</th>
  28. <th>当日作业次数</th>
  29. <th>作业完成时间</th>
  30. <c:forEach items="${workInfo}" var="item" varStatus="itemStatus">
  31. <tr>
  32. <td>${itemStatus.index + 1}</td>
  33. <td>${item.place_name}</td>
  34. <td style="color: ${!empty item.workState ? (item.workState == '已完成' ? '#67C23A' : '#F56C6C') : '#F56C6C'};font-weight: bold;">${!empty item.workState ? item.workState : '未完成'}</td>
  35. <td>${item.workNumberToDay}</td>
  36. <td class="timesBox">
  37. <c:if test="${empty item.workTimes}">未知</c:if>
  38. <c:if test="${!empty item.workTimes}">
  39. <c:forEach items="${item.workTimes}" var="workTimeItem" varStatus="timeStatus">
  40. <div class="timeBox"><div class="timesIndex">${timeStatus.index + 1}</div><div class="timesTitle">${workTimeItem}</div></div>
  41. </c:forEach>
  42. </c:if>
  43. </td>
  44. </tr>
  45. </c:forEach>
  46. </table>
  47. </div>
  48. </body>
  49. <script type="text/javascript">
  50. </script>
  51. <style>
  52. .workInfoBox{
  53. width: 100%;
  54. height: 100%;
  55. }
  56. *{
  57. font-size: 16px;
  58. color: #303133;
  59. }
  60. table{
  61. margin-top: 1rem;
  62. width: calc(100% - 20px);
  63. border-collapse: collapse;
  64. text-align: center;
  65. }
  66. table *{
  67. border: 1px solid #303133;
  68. }
  69. th,span{
  70. font-size: 16px;
  71. font-weight: bold;
  72. color: #303133;
  73. }
  74. span{
  75. color: #409EFF;
  76. padding-right: 0.5rem;
  77. }
  78. th{
  79. background-color: #C0C4CC64;
  80. line-height: 25px;
  81. padding: 0.5rem;
  82. }
  83. tr:nth-child(even){
  84. background-color: #409EFF16;
  85. }
  86. tr:hover{
  87. cursor: pointer;
  88. background-color: #30313316;
  89. }
  90. .workInfoBox *:not(.info){
  91. user-select: none;
  92. -webkit-user-select: none;
  93. -ms-user-select: none;
  94. -moz-user-select: none;
  95. }
  96. .workInfoBox tr td:nth-child(2){
  97. user-select: text;
  98. -webkit-user-select: text;
  99. -ms-user-select: text;
  100. -moz-user-select: text;
  101. }
  102. td{
  103. color: #303133;
  104. line-height: 20px;
  105. padding: 0.5rem 0.3rem;
  106. }
  107. .info{
  108. font-size: 16px;
  109. color: #606266;
  110. margin-top: 0.5rem;
  111. }
  112. /* 时间组件*/
  113. .timesBox{
  114. width: 210px;
  115. }
  116. .timeBox{
  117. margin: 3px;
  118. display: flex;
  119. width: fit-content;
  120. padding: 3px 5px;
  121. background-color: #c8ffad;
  122. border-radius: 3px;
  123. flex-wrap: nowrap;
  124. align-content: center;
  125. justify-content: center;
  126. align-items: center;
  127. border: none;
  128. box-shadow: 0 0 2px 1px #30313364;
  129. background-image: linear-gradient(0deg, #67C23A, transparent);
  130. }
  131. .timesIndex{
  132. color: #FFFFFF;
  133. font-weight: bold;
  134. border-radius: 2rem;
  135. display: flex;
  136. align-content: center;
  137. justify-content: center;
  138. align-items: center;
  139. border: none;
  140. padding: 0 5px;
  141. }
  142. .timeBox:nth-child(3n+1) .timesIndex{
  143. background-color: #409EFF64;
  144. }
  145. .timeBox:nth-child(3n+2) .timesIndex{
  146. background-color: #E6A23C64;
  147. }
  148. .timeBox:nth-child(3n) .timesIndex{
  149. background-color: #F56C6C64;
  150. }
  151. .timesTitle{
  152. margin-left: 5px;
  153. padding: 2px 5px;
  154. background-color: #FFFFFF;
  155. border-radius: 3px;
  156. border: none;
  157. box-shadow: 0 0 2px 1px #30313364 inset;
  158. }
  159. </style>