Browse Source

【漳州万利达MES】【2020010067】【车间生产计划维护界面调整补充】

caosy 6 years ago
parent
commit
5ff165c64e
1 changed files with 12 additions and 4 deletions
  1. 12 4
      WebContent/app/controller/pm/make/MakePlan!Add.js

+ 12 - 4
WebContent/app/controller/pm/make/MakePlan!Add.js

@@ -240,8 +240,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
 						    					    detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
 						    						detailgrid.store.data.items[j].set('mpd_planqty',c);
 						    						detailgrid.store.data.items[j].set('mpd_linecode',linecode);
-													detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
-    						    					a++;
+													if(a<9)
+														detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
+													else
+														detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
 						    						if(a>24){
     						    						a=a-24;
     						    					}
@@ -254,7 +256,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
     					    					detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
     					    					detailgrid.store.data.items[j].set('mpd_planqty',c);
     					    					detailgrid.store.data.items[j].set('mpd_linecode',linecode);
-										     	detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
+											if(a<9)
+												detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
+											else
+												detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
     					    					a++;
     					    					if(a>24){
 						    						a=a-24;
@@ -265,7 +270,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
     					    					detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
     					    					detailgrid.store.data.items[j].set('mpd_planqty',c);
     					    					detailgrid.store.data.items[j].set('mpd_linecode',linecode);
-										    	detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
+											if(a<9)
+												detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
+											else
+												detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
 											    length++;
     						    			    a++;
     						    			    if(a>24){