Commit 0584c2397f7acd7bb3fa48dab90387ee53b345b9

Authored by 娄高锋
1 parent d8842205

油量电量平衡表南汇公司只能修改最近三天的数据

src/main/resources/static/pages/electricity/list/list.html
... ... @@ -281,7 +281,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
281 281 if ($("#rq").val() != "") {
282 282 var params=getParamsList();
283 283 $get('/ylb/checkDate',params,function(status){
284   - if(status=='3'){
  284 + if(status=='2'){
285 285 layer.msg('只能操作三天内数据.');
286 286 }else{
287 287 var i = layer.load(2);
... ... @@ -302,7 +302,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
302 302 if ($("#rq").val() != "") {
303 303 var params=getParamsList();
304 304 $get('/ylb/checkDate',params,function(status){
305   - if(status=='3'){
  305 + if(status=='2'){
306 306 layer.msg('只能操作三天内数据.');
307 307 }else{
308 308 var i = layer.load(2);
... ... @@ -322,7 +322,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
322 322 $("#saveButton").on('click',function(){
323 323 var params_=getParamsList();
324 324 $get('/ylb/checkDate',params_,function(status){
325   - if(status=='3'){
  325 + if(status=='2'){
326 326 layer.msg('只能操作三天内数据.');
327 327 }else{
328 328 var ylArray = [];
... ... @@ -434,7 +434,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
434 434 if ($("#rq").val() != "") {
435 435 var params=getParamsList();
436 436 $get('/ylb/checkDate',params,function(status){
437   - if(status=='3'){
  437 + if(status=='2'){
438 438 layer.msg('只能操作三天内数据.');
439 439 }else{
440 440 var i = layer.load(2);
... ... @@ -599,7 +599,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
599 599 var params=getParamsList();
600 600 var id = $(this).data('id');
601 601 $get('/ylb/checkDate',params,function(status){
602   - if(status=='3'){
  602 + if(status=='2'){
603 603 layer.msg('只能操作三天内数据.');
604 604 }else{
605 605 var jsy=$('.in_carpark_jsy[data-id='+id+']', '#dl_oil_list').val();
... ... @@ -743,7 +743,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
743 743 $('#removeButton').on('click', function () {
744 744 var params_=getParamsList();
745 745 $get('/ylb/checkDate',params_,function(status){
746   - if(status=='3'){
  746 + if(status=='2'){
747 747 layer.msg('只能操作三天内数据.');
748 748 }else{
749 749 var idArray = [];
... ...
src/main/resources/static/pages/oil/list_ph.html
... ... @@ -359,7 +359,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
359 359 if ($("#rq").val() != "") {
360 360 var params=getParamsList();
361 361 $get('/ylb/checkDate',params,function(status){
362   - if(status=='3'){
  362 + if(status=='2'){
363 363 layer.msg('只能操作三天内数据.');
364 364 }else{
365 365 var i = layer.load(2);
... ... @@ -381,7 +381,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
381 381 if ($("#rq").val() != "") {
382 382 var params=getParamsList();
383 383 $get('/ylb/checkDate',params,function(status){
384   - if(status=='3'){
  384 + if(status=='2'){
385 385 layer.msg('只能操作三天内数据.');
386 386 }else{
387 387 var i = layer.load(2);
... ... @@ -401,7 +401,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
401 401  
402 402 var params_=getParamsList();
403 403 $get('/ylb/checkDate',params_,function(status){
404   - if(status=='3'){
  404 + if(status=='2'){
405 405 layer.msg('只能操作三天内数据.');
406 406 }else{
407 407 var ylArray = [];
... ... @@ -465,7 +465,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
465 465 if ($("#rq").val() != "") {
466 466 var params_=getParamsList();
467 467 $get('/ylb/checkDate',params_,function(status){
468   - if(status=='3'){
  468 + if(status=='2'){
469 469 layer.msg('只能操作三天内数据.');
470 470 }else{
471 471 //拆分前先保存全部
... ... @@ -633,7 +633,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
633 633 if ($("#rq").val() != "") {
634 634 var params=getParamsList();
635 635 $get('/ylb/checkDate',params,function(status){
636   - if(status=='3'){
  636 + if(status=='2'){
637 637 layer.msg('只能操作三天内数据.');
638 638 }else{
639 639 var i = layer.load(2);
... ... @@ -790,7 +790,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
790 790 var params=getParamsList();
791 791 $get('/ylb/checkDate',params,function(status){
792 792 var id = $(this).data('id');
793   - if(status=='3'){
  793 + if(status=='2'){
794 794 layer.msg('只能操作三天内数据.');
795 795 }else{
796 796 var jsy=$('.in_carpark_jsy[data-id='+id+']', '#ll_oil_list').val();
... ... @@ -927,7 +927,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep
927 927 $('.removeButton').on('click', function () {
928 928 var params_=getParamsList();
929 929 $get('/ylb/checkDate',params_,function(status){
930   - if(status=='3'){
  930 + if(status=='2'){
931 931 layer.msg('只能操作三天内数据.');
932 932 }else{
933 933 var idArray = [];
... ...