Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationForm.js =================================================================== diff -u -r29881 -r29917 --- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationForm.js (.../goodsApplicationForm.js) (revision 29881) +++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationForm.js (.../goodsApplicationForm.js) (revision 29917) @@ -1564,15 +1564,29 @@ },{ xtype : 'goods-combo' },{ - text:"加急数量:", - hidden: !sstsConfig.enableUrgentFunction + text:"申请数量:" },{ - xtype : 'urgent-amount' + xtype : 'numberfield', + id : 'count1', + name : 'count1', + style : 'text-align: left', + width : 60, + maxValue: 9999, + minValue: 1, + allowNegative : false, + allowDecimals : false, + listeners : { + specialkey : function(field, ee) { + if (ee.getKey() == Ext.EventObject.ENTER && !checkAdd()) { + addRecyclingApplicationItem(type); + } + } + } },{ - text:"加急级别:", + text:"加急数量:", hidden: !sstsConfig.enableUrgentFunction },{ - xtype : 'urgent-level' + xtype : 'urgent-amount' }] }); } else { @@ -1581,96 +1595,38 @@ },{ xtype : 'goods-combo' },{ - text:"加急数量:", - hidden: !sstsConfig.enableUrgentFunction + text:"申请数量:" },{ - xtype : 'urgent-amount' + xtype : 'numberfield', + id : 'count1', + name : 'count1', + style : 'text-align: left', + width : 60, + maxValue: 9999, + minValue: 1, + allowNegative : false, + allowDecimals : false, + listeners : { + specialkey : function(field, ee) { + if (ee.getKey() == Ext.EventObject.ENTER && !checkAdd()) { + addRecyclingApplicationItem(type); + } + } + } },{ - text:"加急级别:", + text:"加急数量:", hidden: !sstsConfig.enableUrgentFunction },{ - xtype : 'urgent-level' + xtype : 'urgent-amount' }); } var selectValues = []; diposableTreeGridTbar.push({ - text:"数量:" - },{ - xtype : 'numberfield', - id : 'count1', - name : 'count1', - style : 'text-align: left', - width : 60, - maxValue: 9999, - minValue: 1, - allowNegative : false, - allowDecimals : false, - listeners : { - specialkey : function(field, ee) { - if (ee.getKey() == Ext.EventObject.ENTER && !checkAdd()) { - addRecyclingApplicationItem(type); - } - } - } - } ,/*{ - text:"加急数量:", - hidden: !sstsConfig.enableUrgentFunction - },{ - xtype : 'numberfield', - id : 'urgentAmount', - name : 'urgentAmount', - style : 'text-align: left', - hidden: !sstsConfig.enableUrgentFunction, - width :50, - maxValue: 9999, - minValue: 1, - allowNegative : false, - allowDecimals : false, - listeners : { - specialkey : function(field, ee) { - if (ee.getKey() == Ext.EventObject.ENTER) { - if(Ext.isEmpty(field.getValue())||field.getValue()<=0){ - showResult("加急数量必须大于0"); - field.focus(); - return false; - } - addRecyclingApplicationItem(); - } - }, - blur:function(thiz, e, eOpts){ - if(thiz.getValue() != null){//设置加急级别默认值 - var urgentLevelData = top.Ext4.getCmp('urgentLevel').getStore().data.items; - for(var i = 0;i