Index: ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js =================================================================== diff -u -r18177 -r18178 --- ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js (.../qualitymonitoringInstanceForm.js) (revision 18177) +++ ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js (.../qualitymonitoringInstanceForm.js) (revision 18178) @@ -566,8 +566,16 @@ hideExtractCheckMaterial(); } // 新建质量监测单,数量默认为1 - top.Ext.getCmp('tousseAmount').setValue(1); - top.Ext.getCmp('materialAmount').setValue(1); + var tAmount = top.Ext.getCmp('tousseAmount').getValue(); + var mAmount = top.Ext.getCmp('materialAmount').getValue(); + if(isUndefinedOrNullOrEmpty(tAmount) || tAmount <= 0){ + // 没有值,设置默认值为1 + top.Ext.getCmp('tousseAmount').setValue(1); + } + if(isUndefinedOrNullOrEmpty(mAmount) || mAmount <= 0){ + // 没有值,设置默认值为1 + top.Ext.getCmp('materialAmount').setValue(1); + } resetRecycleAndRepackingValue(); } }, @@ -1086,6 +1094,7 @@ if(tousseBarcode != null && tousseBarcode != ''){ nameAndBarcode += "(" + tousseBarcode + ")"; } + top.Ext.getCmp('tempBarcode'+tousseItemCount+"_"+1).setValue(tousseBarcode); top.Ext.getCmp('tempBarcode'+tousseItemCount+"_"+3).setValue(nameAndBarcode); top.Ext.getCmp('tempBarcode'+tousseItemCount+"_"+5).setValue(tousseInstanceId); top.Ext.getCmp('tempBarcode'+tousseItemCount+"_"+6).setValue(tAmount);