소스 검색

【系统BUG】+【反馈:2024090138】+【委外加工单分拆效率优化&&委外单删除效率优化】

wuyx 1 주 전
부모
커밋
809bd4fd72
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      WebContent/app/controller/pm/make/MakePlan.js

+ 11 - 0
WebContent/app/controller/pm/make/MakePlan.js

@@ -399,12 +399,19 @@ Ext.define('erp.controller.pm.make.MakePlan', {
     onGridItemClick: function(selModel, record){
     	//打开小窗口 编辑  分拆工单
     	var me = this,ma_code=record.data.ma_code;
+		var win = Ext.getCmp('win');
+		if(win) {
+			win.destroy();
+		}
     	Ext.create('Ext.window.Window',{
     		width:850,
     		height:'80%',
     		iconCls:'x-grid-icon-partition',
     		title:'<h1>工单拆分</h1>',
     		id:'win',
+			modal:true,
+			closable: false,
+			closeAction:'destroy',
     		items:[{
     			xtype:'form',
     			layout:'column',
@@ -537,11 +544,15 @@ Ext.define('erp.controller.pm.make.MakePlan', {
     					showError('分拆数量不能大于未完工数!') ;  
     					return;
     				   }else{
+						   me.FormUtil.setLoading(true);
+						   btn.setDisabled(true);
     					   Ext.Ajax.request({
     					   	  url : basePath +'pm/make/splitMake.action',
     					   	  params : params,
     					   	  method : 'post',
     					   	  callback : function(options,success,response){
+								  me.FormUtil.setLoading(false);
+								  btn.setDisabled(false);
     					   		var localJson = new Ext.decode(response.responseText);
     					   		if(localJson.success){
     			    				saveSuccess(function(){