Commit 158e5f3c135ef790ddb68ea6f1a80ea882868f9c

Authored by 廖磊
1 parent fb922cb1

核对加注量

src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
@@ -765,7 +765,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS @@ -765,7 +765,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS
765 for (int i = 0; i < ylxxbList.size(); i++) { 765 for (int i = 0; i < ylxxbList.size(); i++) {
766 Boolean fage=false; 766 Boolean fage=false;
767 Ylxxb y1=ylxxbList.get(i); 767 Ylxxb y1=ylxxbList.get(i);
768 - if(m.get(y1.getNbbm())!=null){ 768 + if(m.get(y1.getNbbm())==null){
769 Line line=BasicData.nbbm2LineMap.get(y1.getNbbm()); 769 Line line=BasicData.nbbm2LineMap.get(y1.getNbbm());
770 if(null !=line){ 770 if(null !=line){
771 if(!xlbm.equals("")){ 771 if(!xlbm.equals("")){
@@ -808,7 +808,6 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS @@ -808,7 +808,6 @@ public class YlbServiceImpl extends BaseServiceImpl&lt;Ylb,Integer&gt; implements YlbS
808 if(status){ 808 if(status){
809 t.setCzyl(0.0); 809 t.setCzyl(0.0);
810 } 810 }
811 -// double jzyl=Arith.add(t.getJzl(), t.getCzyl());  
812 t.setJzyl(Arith.add(t.getJzl(), t.getCzyl())); 811 t.setJzyl(Arith.add(t.getJzl(), t.getCzyl()));
813 t.setYh(0.0); 812 t.setYh(0.0);
814 if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){ 813 if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){
src/main/resources/static/pages/oil/list_ph.html
@@ -28,13 +28,13 @@ @@ -28,13 +28,13 @@
28 <div class="actions"> 28 <div class="actions">
29 <a class="btn btn-circle blue" href="add.html" data-pjax><i 29 <a class="btn btn-circle blue" href="add.html" data-pjax><i
30 class="fa fa-plus"></i> 添加</a> 30 class="fa fa-plus"></i> 添加</a>
31 - <button type="button" class="btn btn-circle blue" id="removeButton"> 31 + <button type="button" class="btn btn-circle blue removeButton" id="removeButton">
32 <i class="fa fa-trash-o"></i> 删除 32 <i class="fa fa-trash-o"></i> 删除
33 </button> 33 </button>
34 - <button type="button" class="btn btn-circle blue" id="sortButton"> 34 + <button type="button" class="btn btn-circle blue sortButton" id="sortButton">
35 <i class="fa fa-minus-square"></i> 拆分 35 <i class="fa fa-minus-square"></i> 拆分
36 </button> 36 </button>
37 - <button type="button" class="btn btn-circle blue" id="saveButton"> 37 + <button type="button" class="btn btn-circle blue saveButton" id="saveButton">
38 <i class="fa fa-check-circle"></i> 保存 38 <i class="fa fa-check-circle"></i> 保存
39 </button> 39 </button>
40 <!-- <button type="button" class="btn btn-circle red" disabled="disabled" id="removeButton"><i class="fa fa-trash"></i> 删除用户</button> --> 40 <!-- <button type="button" class="btn btn-circle red" disabled="disabled" id="removeButton"><i class="fa fa-trash"></i> 删除用户</button> -->
@@ -202,9 +202,22 @@ @@ -202,9 +202,22 @@
202 style="table-layout: fixed; overflow: auto; "> 202 style="table-layout: fixed; overflow: auto; ">
203 <tbody></tbody> 203 <tbody></tbody>
204 </table> 204 </table>
  205 + <div style="text-align: right;margin-right: 50px">
  206 + <a class="btn btn-circle " href="add.html" data-pjax><i
  207 + class="fa fa-plus"></i> 添加</a>
  208 + <button type="button" class="btn btn-circle removeButton" >
  209 + <i class="fa fa-trash-o"></i> 删除
  210 + </button>
  211 + <button type="button" class="btn btn-circle sortButton">
  212 + <i class="fa fa-minus-square"></i> 拆分
  213 + </button>
  214 + <button type="button" class="btn btn-circle saveButton" >
  215 + <i class="fa fa-check-circle"></i> 保存
  216 + </button>
  217 + </div>
205 </div> 218 </div>
206 219
207 - 220 +
208 <div style="text-align: right;"> 221 <div style="text-align: right;">
209 <ul id="pagination" class="pagination"></ul> 222 <ul id="pagination" class="pagination"></ul>
210 </div> 223 </div>
@@ -314,7 +327,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep @@ -314,7 +327,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep
314 //var id = 15; 327 //var id = 15;
315 //$('.in_carpark_jzyl[data-id='+id+']', '#ll_oil_list') 328 //$('.in_carpark_jzyl[data-id='+id+']', '#ll_oil_list')
316 329
317 - $("#checkYl").on('click', function () { 330 + $(".checkYl").on('click', function () {
318 //console.log("核对加注量"); 331 //console.log("核对加注量");
319 if ($("#rq").val() != "") { 332 if ($("#rq").val() != "") {
320 var params=getParamsList(); 333 var params=getParamsList();
@@ -329,7 +342,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep @@ -329,7 +342,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep
329 }) 342 })
330 343
331 //进场等于出场 344 //进场等于出场
332 - $("#outAndIn").on('click', function () { 345 + $(".outAndIn").on('click', function () {
333 // console.log("进场油量等于出场油量"); 346 // console.log("进场油量等于出场油量");
334 if ($("#rq").val() != "") { 347 if ($("#rq").val() != "") {
335 var params=getParamsList(); 348 var params=getParamsList();
@@ -344,7 +357,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep @@ -344,7 +357,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep
344 }); 357 });
345 358
346 //保存 359 //保存
347 - $("#saveButton").on('click',function(){ 360 + $(".saveButton").on('click',function(){
348 var ylArray = []; 361 var ylArray = [];
349 $('input.icheck').each(function(){ 362 $('input.icheck').each(function(){
350 var map = {}; 363 var map = {};
@@ -400,7 +413,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep @@ -400,7 +413,7 @@ onkeyup=&quot;this.value=this.value.replace(/[^(\d||/.)]/g,&#39;&#39;).replace(&#39;.&#39;,&#39;$#$&#39;).rep
400 }); 413 });
401 }) 414 })
402 //拆分 415 //拆分
403 - $("#sortButton").on('click', function () { 416 + $(".sortButton").on('click', function () {
404 if ($("#rq").val() != "") { 417 if ($("#rq").val() != "") {
405 //拆分前先保存全部 418 //拆分前先保存全部
406 var ylArray = []; 419 var ylArray = [];