Commit d5a6f3bd9a82f331686cfa491f2175ea2318639b
1 parent
7831c5c7
bf
Showing
5 changed files
with
61 additions
and
24 deletions
bsthLineProfiles/src/main/java/com/ruoyi/project/system/line/domain/BsthTLine.java
| @@ -295,35 +295,27 @@ public class BsthTLine extends BaseEntity | @@ -295,35 +295,27 @@ public class BsthTLine extends BaseEntity | ||
| 295 | private String coldBonusType; | 295 | private String coldBonusType; |
| 296 | 296 | ||
| 297 | /** 月度营收 */ | 297 | /** 月度营收 */ |
| 298 | - @Excel(name = "月度营收") | ||
| 299 | private Long revenuesMonth; | 298 | private Long revenuesMonth; |
| 300 | 299 | ||
| 301 | /** 月度人次 */ | 300 | /** 月度人次 */ |
| 302 | - @Excel(name = "月度人次") | ||
| 303 | private Long personMonth; | 301 | private Long personMonth; |
| 304 | 302 | ||
| 305 | /** 月度里程 */ | 303 | /** 月度里程 */ |
| 306 | - @Excel(name = "月度里程") | ||
| 307 | private Long mileageMonth; | 304 | private Long mileageMonth; |
| 308 | 305 | ||
| 309 | /** 百公里人次 */ | 306 | /** 百公里人次 */ |
| 310 | - @Excel(name = "百公里人次") | ||
| 311 | private Long personMonthAvg; | 307 | private Long personMonthAvg; |
| 312 | 308 | ||
| 313 | /** 营收 */ | 309 | /** 营收 */ |
| 314 | - @Excel(name = "营收") | ||
| 315 | private Long revenues; | 310 | private Long revenues; |
| 316 | 311 | ||
| 317 | /** 人次 */ | 312 | /** 人次 */ |
| 318 | - @Excel(name = "人次") | ||
| 319 | private Long persons; | 313 | private Long persons; |
| 320 | 314 | ||
| 321 | /** 里程 */ | 315 | /** 里程 */ |
| 322 | - @Excel(name = "里程") | ||
| 323 | private Long mileages; | 316 | private Long mileages; |
| 324 | 317 | ||
| 325 | /** 百公里人次 */ | 318 | /** 百公里人次 */ |
| 326 | - @Excel(name = "百公里人次") | ||
| 327 | private Long personAvg; | 319 | private Long personAvg; |
| 328 | 320 | ||
| 329 | /** 开通日期(无) */ | 321 | /** 开通日期(无) */ |
| @@ -350,7 +342,9 @@ public class BsthTLine extends BaseEntity | @@ -350,7 +342,9 @@ public class BsthTLine extends BaseEntity | ||
| 350 | 342 | ||
| 351 | private String revenueType; | 343 | private String revenueType; |
| 352 | 344 | ||
| 345 | + private String createTimeStr; | ||
| 353 | 346 | ||
| 347 | + private String createTimeEnd; | ||
| 354 | 348 | ||
| 355 | public void setId(Long id) | 349 | public void setId(Long id) |
| 356 | { | 350 | { |
| @@ -1147,6 +1141,21 @@ public class BsthTLine extends BaseEntity | @@ -1147,6 +1141,21 @@ public class BsthTLine extends BaseEntity | ||
| 1147 | this.revenueType = revenueType; | 1141 | this.revenueType = revenueType; |
| 1148 | } | 1142 | } |
| 1149 | 1143 | ||
| 1144 | + public String getCreateTimeStr() { | ||
| 1145 | + return createTimeStr; | ||
| 1146 | + } | ||
| 1147 | + | ||
| 1148 | + public void setCreateTimeStr(String createTimeStr) { | ||
| 1149 | + this.createTimeStr = createTimeStr; | ||
| 1150 | + } | ||
| 1151 | + | ||
| 1152 | + public String getCreateTimeEnd() { | ||
| 1153 | + return createTimeEnd; | ||
| 1154 | + } | ||
| 1155 | + | ||
| 1156 | + public void setCreateTimeEnd(String createTimeEnd) { | ||
| 1157 | + this.createTimeEnd = createTimeEnd; | ||
| 1158 | + } | ||
| 1150 | 1159 | ||
| 1151 | @Override | 1160 | @Override |
| 1152 | public String toString() { | 1161 | public String toString() { |
bsthLineProfiles/src/main/resources/mybatis/mybatis/system/BsthTLineMapper.xml
| @@ -684,6 +684,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | @@ -684,6 +684,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
| 684 | <if test="examineStatus == 'true' "> and examine_status in(0,1)</if> | 684 | <if test="examineStatus == 'true' "> and examine_status in(0,1)</if> |
| 685 | <if test="examineStatus == 'false' "> and examine_status =2</if> | 685 | <if test="examineStatus == 'false' "> and examine_status =2</if> |
| 686 | <if test="examineType != null and examineType != ''"> and examine_type = #{examineType}</if> | 686 | <if test="examineType != null and examineType != ''"> and examine_type = #{examineType}</if> |
| 687 | + <if test="createTimeStr != null and createTimeStr != ''"> and create_time >= #{createTimeStr}</if> | ||
| 688 | + <if test="createTimeEnd != null and createTimeEnd != ''"> and create_time <= #{createTimeEnd}</if> | ||
| 687 | </where> | 689 | </where> |
| 688 | </select> | 690 | </select> |
| 689 | 691 |
bsthLineProfiles/src/main/resources/templates/system/lineAdd/add.html
| @@ -460,13 +460,13 @@ | @@ -460,13 +460,13 @@ | ||
| 460 | </select> | 460 | </select> |
| 461 | </div> | 461 | </div> |
| 462 | <!----------------------------------> | 462 | <!----------------------------------> |
| 463 | - <label class="col-sm-1 control-label">启用时间:</label> | 463 | + <!--<label class="col-sm-1 control-label">启用时间:</label> |
| 464 | <div class="col-sm-2"> | 464 | <div class="col-sm-2"> |
| 465 | <div class="input-group date"> | 465 | <div class="input-group date"> |
| 466 | <input name="startDate" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> | 466 | <input name="startDate" class="form-control" placeholder="yyyy-MM-dd" type="text" autocomplete="off"> |
| 467 | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | 467 | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| 468 | </div> | 468 | </div> |
| 469 | - </div> | 469 | + </div>--> |
| 470 | <!----------------------------------> | 470 | <!----------------------------------> |
| 471 | <label class="col-sm-1 control-label">备注:</label> | 471 | <label class="col-sm-1 control-label">备注:</label> |
| 472 | <div class="col-sm-2"> | 472 | <div class="col-sm-2"> |
bsthLineProfiles/src/main/resources/templates/system/lineAdd/edit.html
| @@ -479,7 +479,7 @@ | @@ -479,7 +479,7 @@ | ||
| 479 | </select> | 479 | </select> |
| 480 | </div> | 480 | </div> |
| 481 | <!----------------------------------> | 481 | <!----------------------------------> |
| 482 | - <label class="col-sm-1 control-label">启用时间:</label> | 482 | + <!--<label class="col-sm-1 control-label">启用时间:</label> |
| 483 | <div class="col-sm-2"> | 483 | <div class="col-sm-2"> |
| 484 | <div class="input-group date"> | 484 | <div class="input-group date"> |
| 485 | <input name="startDate" th:value="${#dates.format(bsthTLine.startDate, 'yyyy-MM-dd')}" | 485 | <input name="startDate" th:value="${#dates.format(bsthTLine.startDate, 'yyyy-MM-dd')}" |
| @@ -487,7 +487,7 @@ | @@ -487,7 +487,7 @@ | ||
| 487 | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | 487 | <span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
| 488 | </div> | 488 | </div> |
| 489 | 489 | ||
| 490 | - </div> | 490 | + </div>--> |
| 491 | <!----------------------------------> | 491 | <!----------------------------------> |
| 492 | <label class="col-sm-1 control-label">备注:</label> | 492 | <label class="col-sm-1 control-label">备注:</label> |
| 493 | <div class="col-sm-2"> | 493 | <div class="col-sm-2"> |
bsthLineProfiles/src/main/resources/templates/system/lineExamine/line.html
| @@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
| 3 | xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> | 3 | xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
| 4 | <head> | 4 | <head> |
| 5 | <th:block th:include="include :: header('线路档案信息')" /> | 5 | <th:block th:include="include :: header('线路档案信息')" /> |
| 6 | +<th:block th:include="include :: datetimepicker-css" /> | ||
| 6 | </head> | 7 | </head> |
| 7 | <body class="gray-bg"> | 8 | <body class="gray-bg"> |
| 8 | <div class="container-div" id="context"> | 9 | <div class="container-div" id="context"> |
| @@ -11,12 +12,31 @@ | @@ -11,12 +12,31 @@ | ||
| 11 | <form id="formId"> | 12 | <form id="formId"> |
| 12 | <div class="select-list"> | 13 | <div class="select-list"> |
| 13 | <ul> | 14 | <ul> |
| 14 | - <li><label>公司:</label> <input type="text" name="company" /> | 15 | + <div class="form-group"> |
| 16 | + <li class="col-sm-3"><label>公司:</label> <input type="text" name="company" /> | ||
| 15 | </li> | 17 | </li> |
| 16 | - <li><label>分公司:</label> <input type="text" name="fCompany" /> | 18 | + <li class="col-sm-3"><label>分公司:</label> <input type="text" name="fCompany" /> |
| 17 | </li> | 19 | </li> |
| 18 | - <li><label>线路名称:</label> <input type="text" name="lineName" /> | 20 | + <li class="col-sm-3"><label>线路名称:</label> <input type="text" name="lineName" /> |
| 19 | </li> | 21 | </li> |
| 22 | + <li class="col-sm-3"><label>申请开始:</label> | ||
| 23 | + <div class="input-group date"> | ||
| 24 | + <input name="createTimeStr" id="createTimeStr" class="form-control" placeholder="yyyy-MM-dd" type="text" | ||
| 25 | + autocomplete="off"> | ||
| 26 | + <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | ||
| 27 | + </div> | ||
| 28 | + </li> | ||
| 29 | + </div> | ||
| 30 | + <div class="form-group"> | ||
| 31 | + <li class="col-sm-3"><label>申请结束:</label> | ||
| 32 | + <div class="input-group date"> | ||
| 33 | + <input name="createTimeEnd" id="createTimeEnd" class="form-control" placeholder="yyyy-MM-dd" type="text" | ||
| 34 | + autocomplete="off"> | ||
| 35 | + <span class="input-group-addon"><i class="fa fa-calendar"></i></span> | ||
| 36 | + </div> | ||
| 37 | + </li> | ||
| 38 | + </div> | ||
| 39 | + | ||
| 20 | <li> | 40 | <li> |
| 21 | <el-button size="mini" type="primary" icon="el-icon-search" onClick="$.table.search();">搜索</el-button> | 41 | <el-button size="mini" type="primary" icon="el-icon-search" onClick="$.table.search();">搜索</el-button> |
| 22 | <el-button size="mini" icon="el-icon-refresh" onClick="$.form.reset();">重置</el-button> | 42 | <el-button size="mini" icon="el-icon-refresh" onClick="$.form.reset();">重置</el-button> |
| @@ -27,11 +47,6 @@ | @@ -27,11 +47,6 @@ | ||
| 27 | </form> | 47 | </form> |
| 28 | </div> | 48 | </div> |
| 29 | 49 | ||
| 30 | - <!--<div class="btn-group-sm" id="toolbar" role="group"> | ||
| 31 | - | ||
| 32 | - <el-button plain size="mini" type="primary" icon="el-icon-plus" onClick="add(this);" shiro:hasPermission="system:line:add">新增</el-button> | ||
| 33 | - | ||
| 34 | - </div>--> | ||
| 35 | 50 | ||
| 36 | <div class="col-sm-12 select-table table-striped"> | 51 | <div class="col-sm-12 select-table table-striped"> |
| 37 | <table id="bootstrap-table"></table> | 52 | <table id="bootstrap-table"></table> |
| @@ -39,6 +54,7 @@ | @@ -39,6 +54,7 @@ | ||
| 39 | </div> | 54 | </div> |
| 40 | </div> | 55 | </div> |
| 41 | <th:block th:include="include :: footer" /> | 56 | <th:block th:include="include :: footer" /> |
| 57 | + <th:block th:include="include :: datetimepicker-js" /> | ||
| 42 | <div class="modal fade" id="myModal" tabindex="-1" role="dialog" | 58 | <div class="modal fade" id="myModal" tabindex="-1" role="dialog" |
| 43 | aria-labelledby="myModalLabel" aria-hidden="true"> | 59 | aria-labelledby="myModalLabel" aria-hidden="true"> |
| 44 | <div class="modal-dialog"> | 60 | <div class="modal-dialog"> |
| @@ -67,10 +83,6 @@ | @@ -67,10 +83,6 @@ | ||
| 67 | 83 | ||
| 68 | <script th:inline="javascript"> | 84 | <script th:inline="javascript"> |
| 69 | 85 | ||
| 70 | - /* function add(obj){ | ||
| 71 | - if($(obj)[0].className.indexOf("disabled") == -1) | ||
| 72 | - $.operate.add(); | ||
| 73 | - }*/ | ||
| 74 | 86 | ||
| 75 | new Vue({ | 87 | new Vue({ |
| 76 | el: '#context', | 88 | el: '#context', |
| @@ -83,6 +95,10 @@ | @@ -83,6 +95,10 @@ | ||
| 83 | function queryParams(params) { | 95 | function queryParams(params) { |
| 84 | var search = $.table.queryParams(params); | 96 | var search = $.table.queryParams(params); |
| 85 | search.examineStatus ='true'; | 97 | search.examineStatus ='true'; |
| 98 | + var createTimeStr=$('#createTimeStr').val(); | ||
| 99 | + var createTimeEnd=$('#createTimeEnd').val(); | ||
| 100 | + search.createTimeStr=createTimeStr; | ||
| 101 | + search.createTimeEnd=createTimeEnd; | ||
| 86 | return search; | 102 | return search; |
| 87 | } | 103 | } |
| 88 | 104 | ||
| @@ -530,6 +546,16 @@ | @@ -530,6 +546,16 @@ | ||
| 530 | }); | 546 | }); |
| 531 | layer.full(index); | 547 | layer.full(index); |
| 532 | } | 548 | } |
| 549 | + $("input[name='createTimeStr']").datetimepicker({ | ||
| 550 | + format: "yyyy-mm-dd", | ||
| 551 | + minView: "month", | ||
| 552 | + autoclose: true | ||
| 553 | + }); | ||
| 554 | + $("input[name='createTimeEnd']").datetimepicker({ | ||
| 555 | + format: "yyyy-mm-dd", | ||
| 556 | + minView: "month", | ||
| 557 | + autoclose: true | ||
| 558 | + }); | ||
| 533 | </script> | 559 | </script> |
| 534 | <style> | 560 | <style> |
| 535 | .col_checkbox { | 561 | .col_checkbox { |