|  | @@ -115,7 +115,7 @@
 | 
	
		
			
				|  |  |                          </div>
 | 
	
		
			
				|  |  |                          <div style="overflow-y:auto" class="sjs-biangeng-height">
 | 
	
		
			
				|  |  |                              <table class="table table-striped table-bordered table-hover table-sm fixed_headers">
 | 
	
		
			
				|  |  | -                                <thead><tr><th width="40">序号</th><th>清单编号</th><th>名称</th><th width="50">单位</th><th width="100">单价</th><th width="100">数量</th></tr></thead>
 | 
	
		
			
				|  |  | +                                <thead><tr class="text-center"><th width="40">序号</th><th>清单编号</th><th>名称</th><th width="50">单位</th><th width="100">单价</th><th width="100">数量</th></tr></thead>
 | 
	
		
			
				|  |  |                                  <tbody id="table-list-select">
 | 
	
		
			
				|  |  |                                  </tbody>
 | 
	
		
			
				|  |  |                              </table>
 | 
	
	
		
			
				|  | @@ -129,7 +129,7 @@
 | 
	
		
			
				|  |  |                          <div style="overflow-y:auto" class="sjs-biangeng-height">
 | 
	
		
			
				|  |  |                              <table class="table table-striped table-bordered table-hover table-sm fixed_headers2">
 | 
	
		
			
				|  |  |                                  <thead>
 | 
	
		
			
				|  |  | -                                <tr><th width="100">项目节编号</th><th>细目</th><th>单位工程</th><th>分部工程</th><th>分项工程</th><th>计量单元</th><th width="70">数量</th><th width="40">选择</th></tr>
 | 
	
		
			
				|  |  | +                                <tr class="text-center"><th width="100">项目节编号</th><th>细目</th><th>单位工程</th><th>分部工程</th><th>分项工程</th><th>计量单元</th><th width="70">数量</th><th width="40">选择</th></tr>
 | 
	
		
			
				|  |  |                                  </thead>
 | 
	
		
			
				|  |  |                                  <tbody id="code-list" data-index="">
 | 
	
		
			
				|  |  |                                  </tbody>
 | 
	
	
		
			
				|  | @@ -731,13 +731,26 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |      $('.modal').on('shown.bs.modal', function () {
 | 
	
		
			
				|  |  | -        const height = $(this)[0].scrollHeight
 | 
	
		
			
				|  |  | -        const scrollBox = $(this).find('div[class="col-8 modal-height-500"]')
 | 
	
		
			
				|  |  | +        const height = $(this)[0].scrollHeight;
 | 
	
		
			
				|  |  | +        const scrollBox = $(this).find('div[class="col-8 modal-height-500"]');
 | 
	
		
			
				|  |  | +        const bdiv = (scrollBox.offset() && scrollBox.offset().top) || 0;
 | 
	
		
			
				|  |  |          // 450是modal没有滚动条时的最大高度,超过则出现滚动条,需要自动下拉到底部
 | 
	
		
			
				|  |  | -        if (scrollBox.length && scrollBox[0].scrollHeight > 450) {
 | 
	
		
			
				|  |  | -            scrollBox.scrollTop(height);
 | 
	
		
			
				|  |  | +        // if (scrollBox.length && scrollBox[0].scrollHeight > 450) {
 | 
	
		
			
				|  |  | +        //     scrollBox.scrollTop(height);
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  | +        scrollBox.scrollTop(0);
 | 
	
		
			
				|  |  | +        const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
 | 
	
		
			
				|  |  | +        const hdheight = hdiv ? hdiv.parents('.list-group-item').offset().top : null;
 | 
	
		
			
				|  |  | +        if (hdiv && scrollBox.length &&  scrollBox[0].scrollHeight > 450 && hdheight - bdiv > 450) {
 | 
	
		
			
				|  |  | +            scrollBox.scrollTop(hdheight - bdiv);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | +    function divSearch(div) {
 | 
	
		
			
				|  |  | +        if (div.length > 0) {
 | 
	
		
			
				|  |  | +            return true;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return false;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |      $('#led-warning').click(function () {
 | 
	
		
			
				|  |  |          $('#warning-ledger').modal('hide');
 | 
	
		
			
				|  |  |      });
 |