Index: ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js =================================================================== diff -u -r17438 -r17445 --- ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js (.../directPacking.js) (revision 17438) +++ ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js (.../directPacking.js) (revision 17445) @@ -86,6 +86,9 @@ name : 'tousseType', mapping : 'tousseType' }, { + name : 'allowModifyPackageType', + mapping : 'allowModifyPackageType' + },{ name : 'isThereIdentificationCard', mapping : 'isThereIdentificationCard' }]), @@ -1030,6 +1033,11 @@ loadMaterials(record.data.id); loadTousseInfo(record.data.id); directPackingTousseDefinitionId = record.data.id; + if(record.data.allowModifyPackageType != '是'){ + Ext.getCmp('packageType').disable(); + }else{ + Ext.getCmp('packageType').enable(); + } } } }] @@ -1080,15 +1088,15 @@ columnWidth : .33, layout : 'form', cls:'edit-5char-labelwidth', - hidden : sstsConfig.printLabelWhenReviewing, + hidden : sstsConfig.hideSterileDate, items : [{ xtype : 'datefieldWithMin', fieldLabel : '灭菌日期', id : 'disinfectionDate', name : 'disinfectionDate', // value : new Date, readOnly : true, - allowBlank : sstsConfig.printLabelWhenReviewing, + allowBlank : sstsConfig.hideSterileDate, format : 'Y-m-d', anchor : '100%', listeners : { @@ -1165,7 +1173,7 @@ return bool; } }*/ - + Ext.getCmp('packageType').enable(); formObj.form.submit({ url : WWWROOT + '/disinfectSystem/packingAction!packingWithoutTask.do', method : 'POST',