statistics.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. <section id="page-title">
  2. <div class="row">
  3. <div class="col-sm-8">
  4. <h1 class="mainTitle">上下班统计
  5. <i tooltip='上下班统计,查看相关数据。' tooltip-placement="right"
  6. class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"></i>
  7. </h1>
  8. </div>
  9. </div>
  10. </section>
  11. <div class="col-md-12 col-sm-12">
  12. <div class="row deck_body" ng-controller="workingStatisticsCtrl">
  13. <div class="service_head">
  14. <div class="deck_head_L ac">
  15. <span>上下班统计</span>
  16. </div>
  17. </div>
  18. <div class="deck_cont">
  19. <!-- 筛选条件 -->
  20. <div class="deck_cont_head">
  21. <form class="col-xs-12 col-sm-12 form-inline P-0 clearfix">
  22. <!-- 选择日期 -->
  23. <div class="selectDate P-0 fl">
  24. <div class="selectDate-hd clearfix">
  25. <p class="fl">选择日期:</p>
  26. <div class="lastDate fr"><span ng-class="{active:searchstate=='week'}"
  27. ng-click="chooseDate('week')">上一周</span>|<span
  28. ng-class="{active:searchstate=='month'}"
  29. ng-click="chooseDate('month')">上一月</span>
  30. <!-- |<span
  31. ng-class="{active:searchstate=='year'}"
  32. ng-click="chooseDate('year')">上一年</span>|<span
  33. ng-class="{active:searchstate=='today'}" ng-click="chooseDate('today')">今天</span> -->
  34. </div>
  35. </div>
  36. <div class="clearfix">
  37. <div class="form-group fl">
  38. <input placeholder="开始日期" type="text" ng-readonly="true" class="form-control smallline"
  39. datepicker-popuptime="yyyy-MM-dd" ng-model="starttimesModel" max-date="endtimesModel"
  40. is-open="startOpened" ng-init="startOpened = false" ng-click="startOpen($event)" />
  41. <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
  42. </div>
  43. <span class="form-line fl">一</span>
  44. <div class="form-group fl">
  45. <input placeholder="结束日期" type="text" ng-readonly="true" class="form-control smallline"
  46. datepicker-popuptime="yyyy-MM-dd" ng-model="endtimesModel" min-date="starttimesModel"
  47. max-date="nowtimes" is-open="endOpened" ng-init="endOpened = false"
  48. ng-click="endOpen($event)" />
  49. <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
  50. </div>
  51. </div>
  52. </div>
  53. <!-- 搜索重置 -->
  54. <div class="col-xs-3 col-sm-3 pull-right P-0 searchBtnBox">
  55. <div class="btn btn_search fl" ng-click="mdxquery(name, type)">搜索</div>
  56. <div class="btn btn_reset fl" ng-click="reload(true)">重置</div>
  57. </div>
  58. </form>
  59. </div>
  60. <!-- 上下班统计 -->
  61. <div class="deck_cont_body">
  62. <div class="deck_cont_body_TB1" ng-if="isArrays(zhtj_list)&&zhtj_list.length>0">
  63. <div class="TB">
  64. <div class="TB_cont">
  65. <table class="jry_table jry_table_head" cellspacing="0" cellpadding="16"
  66. style="font-weight:normal !important;table-layout:fixed">
  67. <thead>
  68. <tr>
  69. <th style="width:5%">
  70. 序号
  71. </th>
  72. <th style="width:19%" tooltip='姓名' tooltip-placement="top">
  73. 姓名
  74. </th>
  75. <th style="width:19%" tooltip='上班打了卡,或者下班打了卡' tooltip-placement="top">
  76. 打卡天数
  77. </th>
  78. <th style="width:19%" tooltip='必须打卡过,并且迟到了' tooltip-placement="top">
  79. 迟到次数
  80. </th>
  81. <th style="width:19%" tooltip='必须打卡过,并且早退了' tooltip-placement="top">
  82. 早退次数
  83. </th>
  84. <th style="width:19%" tooltip='必须上午打卡过了,并且下班未打卡' tooltip-placement="top">
  85. 未打卡下班次数
  86. </th>
  87. </tr>
  88. </thead>
  89. </table>
  90. <div class="jry_table_wrap" ng-nicescroll>
  91. <table class="jry_table jry_table_body" cellspacing="0" cellpadding="16"
  92. style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
  93. <tbody class="tbody-hover service_form-hover">
  94. <tr ng-repeat="rowData in zhtj_list">
  95. <td style="width:5%">
  96. {{$index+1}}
  97. </td>
  98. <td style="width:19%">
  99. {{rowData[1]}}
  100. </td>
  101. <td class="cursor" style="width:19%" ng-click="goToDetail(rowData, '打卡天数', 'punch')">
  102. {{rowData[2]}}
  103. </td>
  104. <td class="cursor" style="width:19%" ng-click="goToDetail(rowData, '迟到次数', 'late')">
  105. {{rowData[3]}}
  106. </td>
  107. <td class="cursor" style="width:19%" ng-click="goToDetail(rowData, '早退次数', 'early')">
  108. {{rowData[4]}}
  109. </td>
  110. <td class="cursor" style="width:19%" ng-click="goToDetail(rowData, '未打卡下班次数', 'workEarly')">
  111. {{rowData[5]}}
  112. </td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="noData" ng-if="isArrays(zhtj_list)&&zhtj_list.length==0">查询无记录</div>
  121. <div class="noData" ng-if="!isArrays(zhtj_list)"><img src="/assets/images/loading.gif" alt=""></div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <style>
  128. p {
  129. margin-bottom: 0;
  130. }
  131. em,
  132. i,
  133. strong {
  134. font-style: normal;
  135. }
  136. .searchBtnBox {
  137. padding-top: 30px;
  138. }
  139. .deck_body {
  140. height: 100%;
  141. background: #f9f9f9;
  142. padding: 16px;
  143. }
  144. .service_head {
  145. height: 50px;
  146. width: 100%
  147. }
  148. .service_head .deck_head_L {
  149. float: left;
  150. width: 100%;
  151. height: 100%;
  152. text-align: center;
  153. border-top: 5px solid #EAEAEA;
  154. color: #717171;
  155. font-size: 14px;
  156. line-height: 45px;
  157. cursor: pointer;
  158. }
  159. .service_head .deck_head_R {
  160. float: left;
  161. width: 50%;
  162. height: 100%;
  163. text-align: center;
  164. border-top: 5px solid #EAEAEA;
  165. color: #717171;
  166. font-size: 14px;
  167. line-height: 45px;
  168. cursor: pointer;
  169. }
  170. .ac {
  171. background: #E6EEF4;
  172. color: #353535 !important;
  173. border-top: 5px solid #79A3C4 !important;
  174. }
  175. .deck_cont {
  176. width: 100%;
  177. height: 100%;
  178. padding: 16px;
  179. background: #fff;
  180. border-width: 0px 1px 1px 1px;
  181. border-width: 0px 1px 1px 1px;
  182. border-color: #EAEAEA;
  183. border-style: solid;
  184. }
  185. .deck_cont_head {
  186. border-bottom: 1px solid #EAEAEA;
  187. padding: 16px 10px 16px 10px;
  188. zoom: 1;
  189. }
  190. .deck_cont_head::after {
  191. content: "";
  192. display: block;
  193. height: 0;
  194. clear: both;
  195. visibility: hidden;
  196. }
  197. .P-0 {
  198. padding-left: 0px;
  199. padding-right: 0px;
  200. }
  201. .P-T-15 {
  202. padding-top: 16px;
  203. }
  204. .form-control.smallline {
  205. width: 120px;
  206. height: 34px;
  207. padding-left: 8px;
  208. padding-right: 8px;
  209. color: #999;
  210. font-size: 12px;
  211. }
  212. .deck_cont_body_TB1 {
  213. padding-top: 16px;
  214. }
  215. .deck_cont_body_TB2 {
  216. padding-top: 16px;
  217. }
  218. .TB_head {
  219. width: 100%;
  220. height: 54px
  221. }
  222. .TB_head_L {
  223. float: left;
  224. height: 100%;
  225. border-left: 8px solid #005395;
  226. padding: 0px 16px;
  227. }
  228. .TB_head_R {
  229. float: left;
  230. height: 100%;
  231. border-left: 8px solid #49A9EE;
  232. padding: 0px 16px;
  233. }
  234. .TB_ITEM {
  235. float: left;
  236. margin-right: 16px;
  237. text-align: center;
  238. }
  239. .MR_15 {
  240. margin-right: 16px;
  241. }
  242. .TB_ITEM p {
  243. font-size: 12px;
  244. color: #666
  245. }
  246. .TB_ITEM span {
  247. font-size: 24px;
  248. color: #333;
  249. line-height: 1.2;
  250. }
  251. .TB_LDZH{
  252. text-align: center;
  253. }
  254. .TB_LDZH p {
  255. font-size: 14px;
  256. color: #666
  257. }
  258. .TB_LDZH span {
  259. font-size: 32px;
  260. color: #333;
  261. line-height: 1.2;
  262. }
  263. .TB_ZHL {
  264. height: 100%;
  265. padding-top: 22px;
  266. }
  267. .TB_ZHL p {
  268. font-size: 12px;
  269. color: #7B7B7B
  270. }
  271. .TB_ZHL span {
  272. font-weight: 600;
  273. font-size: 22px;
  274. }
  275. .TB_cont {
  276. height: 350px;
  277. width: 100%;
  278. /* overflow-x: hidden; */
  279. /* overflow-y: auto; */
  280. }
  281. .TB_cont #ldzh {
  282. height: 100%;
  283. }
  284. .TB_cont #sjfx {
  285. height: 100%;
  286. }
  287. .TB_cont #sjqs {
  288. height: 100%;
  289. }
  290. .TB_cont #sjpd {
  291. height: 100%;
  292. }
  293. .TB_head_R1 {
  294. border-color: #005395;
  295. }
  296. .TB_LB {
  297. height: 100%;
  298. width: 100%;
  299. border: 1px solid #EAEAEA;
  300. }
  301. .TB_LB_head {
  302. height: 50px;
  303. background: #FAFAFA;
  304. border-bottom: 1px solid #EAEAEA;
  305. color: #333;
  306. font-size: 14px;
  307. }
  308. .TB_LB_body {
  309. height: 40px;
  310. border-bottom: 1px solid #EAEAEA;
  311. color: #7B7B7B;
  312. }
  313. .TB_LB_item {
  314. height: 100%;
  315. float: left;
  316. text-align: center;
  317. line-height: 40px;
  318. border-right: 1px solid #EAEAEA;
  319. }
  320. .TB_LB_head .TB_LB_item {
  321. line-height: 50px;
  322. font-weight: 600;
  323. }
  324. .btn-default {
  325. height: 30px;
  326. }
  327. .form-line {
  328. height: 34px;
  329. line-height: 34px;
  330. padding-left: 8px;
  331. padding-right: 8px;
  332. color: #979797;
  333. }
  334. .form-dataIcon {
  335. color: #ddd;
  336. font-size: 16px;
  337. position: absolute;
  338. right: 8px;
  339. top: 50%;
  340. transform: translateY(-50%);
  341. }
  342. .selectDate {
  343. width: 270px;
  344. }
  345. .selectDate .selectDate-hd {
  346. margin-bottom: 8px;
  347. }
  348. .selectDate .lastDate {
  349. color: #ddd;
  350. }
  351. .selectDate .lastDate span {
  352. margin-left: 4px;
  353. margin-right: 4px;
  354. color: #005395;
  355. font-size: 12px;
  356. cursor: pointer;
  357. }
  358. .selectDate .lastDate span.active {
  359. border-bottom: 1px solid #005395;
  360. }
  361. .selectDate .lastDate span:last-child {
  362. margin-right: 0;
  363. }
  364. .searchBtnBox .btn {
  365. width: 60px;
  366. height: 34px;
  367. line-height: 26px;
  368. margin: 0 0 0 8px;
  369. }
  370. .btn_search {
  371. background-color: #005395;
  372. }
  373. .btn_reset {
  374. background-color: #fff;
  375. border: 1px solid #ddd;
  376. }
  377. .btn_reset:hover {
  378. border: 1px solid #999;
  379. color: #666;
  380. }
  381. .btn_export {
  382. padding: 3px 16px;
  383. background-color: #e6eef4;
  384. border: 1px #005395 solid;
  385. color: #005395;
  386. }
  387. .btn_export:hover {
  388. color: #79a3c4;
  389. border-color: #79a3c4;
  390. }
  391. .TB_ITEMS {
  392. margin-left: 24px;
  393. margin-top: 10px;
  394. }
  395. /* table */
  396. .jry_table_wrap {
  397. margin-top: -1px;
  398. height: 310px;
  399. overflow-x: hidden;
  400. overflow-y: auto;
  401. }
  402. .jry_table {
  403. border: 1px solid #ddd;
  404. text-align: center;
  405. width: 100%;
  406. position: relative;
  407. }
  408. .jry_table_head {
  409. margin-top: 16px;
  410. background-color: #f9f9f9;
  411. }
  412. .jry_table_head th {
  413. cursor: pointer;
  414. }
  415. .jry_table_body .tbody-hover {
  416. width: 100%;
  417. }
  418. .jry_table_body .tbody-hover.service_form-hover td.cursor {
  419. cursor: pointer;
  420. }
  421. .jry_table_body .tbody-hover.service_form-hover td.cursor:hover {
  422. text-decoration: underline;
  423. }
  424. .jry_table th,
  425. .jry_table td {
  426. word-wrap: break-word;
  427. padding: 6px 8px;
  428. border: 1px solid #ddd;
  429. }
  430. .jry_table th {
  431. text-align: center;
  432. font-size: 13px;
  433. }
  434. .jry_table th strong {
  435. position: relative;
  436. }
  437. .sort-wrap {
  438. position: absolute;
  439. right: -12px;
  440. top: 50%;
  441. transform: translateY(-50%);
  442. width: 12px;
  443. display: flex;
  444. flex-direction: column;
  445. justify-content: center;
  446. line-height: normal;
  447. }
  448. .sortItem {
  449. font-size: 12px;
  450. color: #ddd;
  451. height: 12px;
  452. cursor: pointer;
  453. position: absolute;
  454. }
  455. .sortItem.active {
  456. color: #999;
  457. }
  458. .sortItem.icon-xiangshang {
  459. bottom: -2px;
  460. }
  461. .sortItem.icon-xiangxia {
  462. top: -2px;
  463. }
  464. /* 查询无记录 */
  465. .noData{
  466. font-size: 16px;
  467. text-align: center;
  468. font-weight: bold;
  469. margin-top: 16px;
  470. width: 100%;
  471. min-height: 420px;
  472. }
  473. .form-control.smallline {
  474. background-color: #fff;
  475. }
  476. </style>