statisticsDetail.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  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="workingStatisticsDetailCtrl">
  13. <div class="service_head">
  14. <div class="deck_head_L ac">
  15. <span>{{stateParams.userName}}-{{stateParams.msg}}</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 class="btn btn_reset fl" ng-click="goBack()">返回</div>
  58. </div>
  59. </form>
  60. </div>
  61. <!-- 上下班统计 -->
  62. <div class="deck_cont_body">
  63. <div class="deck_cont_body_TB1" ng-if="isArrays(zhtj_list)&&zhtj_list.length>0">
  64. <div class="TB">
  65. <div class="TB_cont">
  66. <table class="jry_table jry_table_head" cellspacing="0" cellpadding="16"
  67. style="font-weight:normal !important;table-layout:fixed">
  68. <thead>
  69. <tr>
  70. <th style="width:10%">
  71. 序号
  72. </th>
  73. <th style="width:10%" tooltip='日期' tooltip-placement="top">
  74. 日期
  75. </th>
  76. <th style="width:10%" tooltip='姓名' tooltip-placement="top">
  77. 姓名
  78. </th>
  79. <th style="width:10%" tooltip='公司' tooltip-placement="top">
  80. 公司
  81. </th>
  82. <th style="width:10%" tooltip='上班打卡时间' tooltip-placement="top">
  83. 上班打卡时间
  84. </th>
  85. <th style="width:10%" tooltip='上班打卡地址' tooltip-placement="top">
  86. 上班打卡地址
  87. </th>
  88. <th style="width:10%" tooltip='是否迟到' tooltip-placement="top">
  89. 是否迟到
  90. </th>
  91. <th style="width:10%" tooltip='下班打卡时间' tooltip-placement="top">
  92. 下班打卡时间
  93. </th>
  94. <th style="width:10%" tooltip='下班打卡地址' tooltip-placement="top">
  95. 下班打卡地址
  96. </th>
  97. <th style="width:10%" tooltip='是否早退' tooltip-placement="top">
  98. 是否早退
  99. </th>
  100. </tr>
  101. </thead>
  102. </table>
  103. <div class="jry_table_wrap" ng-nicescroll>
  104. <table class="jry_table jry_table_body" cellspacing="0" cellpadding="16"
  105. style="font-weight:normal !important;margin-bottom: 16px;table-layout:fixed">
  106. <tbody class="tbody-hover service_form-hover">
  107. <tr ng-repeat="rowData in zhtj_list">
  108. <td style="width:10%">
  109. {{$index+1}}
  110. </td>
  111. <td style="width:10%">
  112. {{rowData[0] | date:"yyyy-MM-dd HH:mm:ss"}}
  113. </td>
  114. <td style="width:10%">
  115. {{rowData[1]}}
  116. </td>
  117. <td style="width:10%">
  118. {{rowData[2]}}
  119. </td>
  120. <td style="width:10%">
  121. {{rowData[3] | date:"yyyy-MM-dd HH:mm:ss"}}
  122. </td>
  123. <td style="width:10%">
  124. {{rowData[4]}}
  125. </td>
  126. <td style="width:10%">
  127. {{(rowData[5] == 1 && rowData[3]) ? '是' : '否'}}
  128. </td>
  129. <td style="width:10%">
  130. {{rowData[6] | date:"yyyy-MM-dd HH:mm:ss"}}
  131. </td>
  132. <td style="width:10%">
  133. {{rowData[7]}}
  134. </td>
  135. <td style="width:10%">
  136. {{(rowData[8] == 1 && rowData[6]) ? '是' : '否'}}
  137. </td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="noData" ng-if="isArrays(zhtj_list)&&zhtj_list.length==0">查询无记录</div>
  146. <div class="noData" ng-if="!isArrays(zhtj_list)"><img src="/assets/images/loading.gif" alt=""></div>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <style>
  153. p {
  154. margin-bottom: 0;
  155. }
  156. em,
  157. i,
  158. strong {
  159. font-style: normal;
  160. }
  161. .searchBtnBox {
  162. padding-top: 30px;
  163. }
  164. .deck_body {
  165. height: 100%;
  166. background: #f9f9f9;
  167. padding: 16px;
  168. }
  169. .service_head {
  170. height: 50px;
  171. width: 100%
  172. }
  173. .service_head .deck_head_L {
  174. float: left;
  175. width: 100%;
  176. height: 100%;
  177. text-align: center;
  178. border-top: 5px solid #EAEAEA;
  179. color: #717171;
  180. font-size: 14px;
  181. line-height: 45px;
  182. cursor: pointer;
  183. }
  184. .service_head .deck_head_R {
  185. float: left;
  186. width: 50%;
  187. height: 100%;
  188. text-align: center;
  189. border-top: 5px solid #EAEAEA;
  190. color: #717171;
  191. font-size: 14px;
  192. line-height: 45px;
  193. cursor: pointer;
  194. }
  195. .ac {
  196. background: #E6EEF4;
  197. color: #353535 !important;
  198. border-top: 5px solid #79A3C4 !important;
  199. }
  200. .deck_cont {
  201. width: 100%;
  202. height: 100%;
  203. padding: 16px;
  204. background: #fff;
  205. border-width: 0px 1px 1px 1px;
  206. border-width: 0px 1px 1px 1px;
  207. border-color: #EAEAEA;
  208. border-style: solid;
  209. }
  210. .deck_cont_head {
  211. border-bottom: 1px solid #EAEAEA;
  212. padding: 16px 10px 16px 10px;
  213. zoom: 1;
  214. }
  215. .deck_cont_head::after {
  216. content: "";
  217. display: block;
  218. height: 0;
  219. clear: both;
  220. visibility: hidden;
  221. }
  222. .P-0 {
  223. padding-left: 0px;
  224. padding-right: 0px;
  225. }
  226. .P-T-15 {
  227. padding-top: 16px;
  228. }
  229. .form-control.smallline {
  230. width: 120px;
  231. height: 34px;
  232. padding-left: 8px;
  233. padding-right: 8px;
  234. color: #999;
  235. font-size: 12px;
  236. }
  237. .deck_cont_body_TB1 {
  238. padding-top: 16px;
  239. }
  240. .deck_cont_body_TB2 {
  241. padding-top: 16px;
  242. }
  243. .TB_head {
  244. width: 100%;
  245. height: 54px
  246. }
  247. .TB_head_L {
  248. float: left;
  249. height: 100%;
  250. border-left: 8px solid #005395;
  251. padding: 0px 16px;
  252. }
  253. .TB_head_R {
  254. float: left;
  255. height: 100%;
  256. border-left: 8px solid #49A9EE;
  257. padding: 0px 16px;
  258. }
  259. .TB_ITEM {
  260. float: left;
  261. margin-right: 16px;
  262. text-align: center;
  263. }
  264. .MR_15 {
  265. margin-right: 16px;
  266. }
  267. .TB_ITEM p {
  268. font-size: 12px;
  269. color: #666
  270. }
  271. .TB_ITEM span {
  272. font-size: 24px;
  273. color: #333;
  274. line-height: 1.2;
  275. }
  276. .TB_LDZH{
  277. text-align: center;
  278. }
  279. .TB_LDZH p {
  280. font-size: 14px;
  281. color: #666
  282. }
  283. .TB_LDZH span {
  284. font-size: 32px;
  285. color: #333;
  286. line-height: 1.2;
  287. }
  288. .TB_ZHL {
  289. height: 100%;
  290. padding-top: 22px;
  291. }
  292. .TB_ZHL p {
  293. font-size: 12px;
  294. color: #7B7B7B
  295. }
  296. .TB_ZHL span {
  297. font-weight: 600;
  298. font-size: 22px;
  299. }
  300. .TB_cont {
  301. height: 350px;
  302. width: 100%;
  303. /* overflow-x: hidden; */
  304. /* overflow-y: auto; */
  305. }
  306. .TB_cont #ldzh {
  307. height: 100%;
  308. }
  309. .TB_cont #sjfx {
  310. height: 100%;
  311. }
  312. .TB_cont #sjqs {
  313. height: 100%;
  314. }
  315. .TB_cont #sjpd {
  316. height: 100%;
  317. }
  318. .TB_head_R1 {
  319. border-color: #005395;
  320. }
  321. .TB_LB {
  322. height: 100%;
  323. width: 100%;
  324. border: 1px solid #EAEAEA;
  325. }
  326. .TB_LB_head {
  327. height: 50px;
  328. background: #FAFAFA;
  329. border-bottom: 1px solid #EAEAEA;
  330. color: #333;
  331. font-size: 14px;
  332. }
  333. .TB_LB_body {
  334. height: 40px;
  335. border-bottom: 1px solid #EAEAEA;
  336. color: #7B7B7B;
  337. }
  338. .TB_LB_item {
  339. height: 100%;
  340. float: left;
  341. text-align: center;
  342. line-height: 40px;
  343. border-right: 1px solid #EAEAEA;
  344. }
  345. .TB_LB_head .TB_LB_item {
  346. line-height: 50px;
  347. font-weight: 600;
  348. }
  349. .btn-default {
  350. height: 30px;
  351. }
  352. .form-line {
  353. height: 34px;
  354. line-height: 34px;
  355. padding-left: 8px;
  356. padding-right: 8px;
  357. color: #979797;
  358. }
  359. .form-dataIcon {
  360. color: #ddd;
  361. font-size: 16px;
  362. position: absolute;
  363. right: 8px;
  364. top: 50%;
  365. transform: translateY(-50%);
  366. }
  367. .selectDate {
  368. width: 270px;
  369. }
  370. .selectDate .selectDate-hd {
  371. margin-bottom: 8px;
  372. }
  373. .selectDate .lastDate {
  374. color: #ddd;
  375. }
  376. .selectDate .lastDate span {
  377. margin-left: 4px;
  378. margin-right: 4px;
  379. color: #005395;
  380. font-size: 12px;
  381. cursor: pointer;
  382. }
  383. .selectDate .lastDate span.active {
  384. border-bottom: 1px solid #005395;
  385. }
  386. .selectDate .lastDate span:last-child {
  387. margin-right: 0;
  388. }
  389. .searchBtnBox .btn {
  390. width: 60px;
  391. height: 34px;
  392. line-height: 26px;
  393. margin: 0 0 0 8px;
  394. }
  395. .btn_search {
  396. background-color: #005395;
  397. }
  398. .btn_reset {
  399. background-color: #fff;
  400. border: 1px solid #ddd;
  401. }
  402. .btn_reset:hover {
  403. border: 1px solid #999;
  404. color: #666;
  405. }
  406. .btn_export {
  407. padding: 3px 16px;
  408. background-color: #e6eef4;
  409. border: 1px #005395 solid;
  410. color: #005395;
  411. }
  412. .btn_export:hover {
  413. color: #79a3c4;
  414. border-color: #79a3c4;
  415. }
  416. .TB_ITEMS {
  417. margin-left: 24px;
  418. margin-top: 10px;
  419. }
  420. /* table */
  421. .jry_table_wrap {
  422. margin-top: -1px;
  423. height: 310px;
  424. overflow-x: hidden;
  425. overflow-y: auto;
  426. }
  427. .jry_table {
  428. border: 1px solid #ddd;
  429. text-align: center;
  430. width: 100%;
  431. position: relative;
  432. }
  433. .jry_table_head {
  434. margin-top: 16px;
  435. background-color: #f9f9f9;
  436. }
  437. .jry_table_head th {
  438. cursor: pointer;
  439. }
  440. .jry_table_body .tbody-hover {
  441. width: 100%;
  442. }
  443. .jry_table_body .tbody-hover.service_form-hover td.cursor {
  444. cursor: pointer;
  445. }
  446. .jry_table_body .tbody-hover.service_form-hover td.cursor:hover {
  447. text-decoration: underline;
  448. }
  449. .jry_table th,
  450. .jry_table td {
  451. word-wrap: break-word;
  452. padding: 6px 8px;
  453. border: 1px solid #ddd;
  454. }
  455. .jry_table th {
  456. text-align: center;
  457. font-size: 13px;
  458. }
  459. .jry_table th strong {
  460. position: relative;
  461. }
  462. .sort-wrap {
  463. position: absolute;
  464. right: -12px;
  465. top: 50%;
  466. transform: translateY(-50%);
  467. width: 12px;
  468. display: flex;
  469. flex-direction: column;
  470. justify-content: center;
  471. line-height: normal;
  472. }
  473. .sortItem {
  474. font-size: 12px;
  475. color: #ddd;
  476. height: 12px;
  477. cursor: pointer;
  478. position: absolute;
  479. }
  480. .sortItem.active {
  481. color: #999;
  482. }
  483. .sortItem.icon-xiangshang {
  484. bottom: -2px;
  485. }
  486. .sortItem.icon-xiangxia {
  487. top: -2px;
  488. }
  489. /* 查询无记录 */
  490. .noData{
  491. font-size: 16px;
  492. text-align: center;
  493. font-weight: bold;
  494. margin-top: 16px;
  495. width: 100%;
  496. min-height: 420px;
  497. }
  498. .form-control.smallline {
  499. background-color: #fff;
  500. }
  501. </style>