Browse Source

【万利达MES】【备料单点击确认按钮事件】

wuyx 5 years ago
parent
commit
f73cd1c147
1 changed files with 11 additions and 1 deletions
  1. 11 1
      WebContent/app/controller/pm/mes/MakePrepare2.js

+ 11 - 1
WebContent/app/controller/pm/mes/MakePrepare2.js

@@ -160,7 +160,17 @@ Ext.define('erp.controller.pm.mes.MakePrepare2', {
         				}
     				}
     			}
-    		},
+    		},'#confirm' : {
+                click: function(btn) {
+                    me.onConfirm();
+                },
+                afterrender : function(btn){
+                    var statuscode = Ext.getCmp('mp_statuscode');
+                    if((statuscode && statuscode.value != 'COMMITED')){
+                        btn.setDisabled(true);
+                    }
+                }
+            }
     	});
     },onGridItemClick: function(selModel, record){//grid行选择
     	this.gridLastSelected = record;