Commit 36c5420d4874d31b284fa8d5d57bf520b1685535
1 parent
06490394
LGF 报表
Showing
1 changed file
with
11 additions
and
6 deletions
src/main/resources/static/pages/forms/statement/correctStatis.html
| @@ -26,16 +26,16 @@ | @@ -26,16 +26,16 @@ | ||
| 26 | <div class="portlet light porttlet-fit bordered"> | 26 | <div class="portlet light porttlet-fit bordered"> |
| 27 | <div class="portlet-title"> | 27 | <div class="portlet-title"> |
| 28 | <form id="history" class="form-inline" action=""> | 28 | <form id="history" class="form-inline" action=""> |
| 29 | - <div style="display: inline-block;"> | ||
| 30 | - <span class="item-label" style="width: 80px; margin-left: 33px">公司: </span> | 29 | + <div style="display: inline-block; margin-left: 33px;" id="company1"> |
| 30 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 31 | <select class="form-control" name="company" id="company" style="width: 140px;"></select> | 31 | <select class="form-control" name="company" id="company" style="width: 140px;"></select> |
| 32 | </div> | 32 | </div> |
| 33 | - <div style="display: inline-block;"> | ||
| 34 | - <span class="item-label" style="width: 80px; margin-left: 24px">分公司: </span> | 33 | + <div style="display: inline-block; margin-left: 24px;" id="subCompany1"> |
| 34 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 35 | <select class="form-control" name="subCompany" id="subCompany" style="width: 140px;"></select> | 35 | <select class="form-control" name="subCompany" id="subCompany" style="width: 140px;"></select> |
| 36 | </div> | 36 | </div> |
| 37 | - <div style="display: inline-block;"> | ||
| 38 | - <span class="item-label" style="width: 80px; margin-left: 24px">线路: </span> | 37 | + <div style="display: inline-block; margin-left: 24px;"> |
| 38 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 39 | <select class="form-control" name="line" id="line" style="width: 140px;"></select> | 39 | <select class="form-control" name="line" id="line" style="width: 140px;"></select> |
| 40 | </div> | 40 | </div> |
| 41 | <div style="margin-top: 10px"></div> | 41 | <div style="margin-top: 10px"></div> |
| @@ -158,6 +158,11 @@ | @@ -158,6 +158,11 @@ | ||
| 158 | for(var i = 0; i < obj.length; i++){ | 158 | for(var i = 0; i < obj.length; i++){ |
| 159 | options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | 159 | options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; |
| 160 | } | 160 | } |
| 161 | + if(obj.length == 1){ | ||
| 162 | + $('#company1').hide(); | ||
| 163 | + if(obj[0].children.length == 1) | ||
| 164 | + $('#subCompany1').hide(); | ||
| 165 | + } | ||
| 161 | $('#company').html(options); | 166 | $('#company').html(options); |
| 162 | updateCompany(); | 167 | updateCompany(); |
| 163 | }); | 168 | }); |