Commit 36c5420d4874d31b284fa8d5d57bf520b1685535

Authored by 娄高锋
1 parent 06490394

LGF 报表

src/main/resources/static/pages/forms/statement/correctStatis.html
... ... @@ -26,16 +26,16 @@
26 26 <div class="portlet light porttlet-fit bordered">
27 27 <div class="portlet-title">
28 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 31 <select class="form-control" name="company" id="company" style="width: 140px;"></select>
32 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 35 <select class="form-control" name="subCompany" id="subCompany" style="width: 140px;"></select>
36 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 39 <select class="form-control" name="line" id="line" style="width: 140px;"></select>
40 40 </div>
41 41 <div style="margin-top: 10px"></div>
... ... @@ -158,6 +158,11 @@
158 158 for(var i = 0; i < obj.length; i++){
159 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 166 $('#company').html(options);
162 167 updateCompany();
163 168 });
... ...