Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r32907 -r32908 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 32907) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 32908) @@ -1281,13 +1281,13 @@ return; } if(record.get('leaf')){ - var unPackingAmount = record.parentNode.get('unPackingAmount'); + var unPackingAmount = record.parentNode.get('maxAmount'); var sum = 0; Ext4.each(record.parentNode.childNodes, function(pNode) { sum += parseInt(pNode.get('amount')); }); - if(context.value > record.raw.maxAmount){ - showResult(record.get('tousseName') + "的数量不能大于最大装配数量"+record.raw.maxAmount , null , sstsConfig.messagePauseTimeOnPackingPage); + if(context.value > record.data.maxAmount){ + showResult(record.get('tousseName') + "的数量不能大于最大装配数量"+record.data.maxAmount , null , sstsConfig.messagePauseTimeOnPackingPage); record.set('amount',context.originalValue); return; } @@ -1297,7 +1297,7 @@ return; } }else { - var unPackingAmount = record.get('unPackingAmount'); + var unPackingAmount = record.get('maxAmount'); if(unPackingAmount < context.value){ showResult(record.get('tousseName') + ",装配数量不能大于"+unPackingAmount , null , sstsConfig.messagePauseTimeOnPackingPage); record.set('amount',unPackingAmount);