Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/customTousseForm.js =================================================================== diff -u -r29061 -r29104 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/customTousseForm.js (.../customTousseForm.js) (revision 29061) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/customTousseForm.js (.../customTousseForm.js) (revision 29104) @@ -733,6 +733,7 @@ top.Ext.getCmp('settleAccountsDepartCoding').setValue(InvoicePlan.settleAccountsDepartCoding); top.Ext.getCmp('remark').setValue(InvoicePlan.remark); top.Ext.getCmp('urgency').setValue(InvoicePlan.urgency); + var disabledArr = []; for(var i = 0; i < InvoicePlan.applicationItems.length; i++){ var idDisabled = true; var tousseItem = InvoicePlan.applicationItems[i]; @@ -746,8 +747,9 @@ var m = materials[j]; createChildNode(parentNode, m.materialId, m.materialName, m.includeImplant, m.materialAmount, m.type); } + disabledArr[i] = idDisabled; } - if(InvoicePlan.recyclingStatus != '待回收') { + if(disabledArr.indexOf(true) >= 0) { top.Ext.getCmp('saveBtn').disable(); } }, @@ -917,6 +919,7 @@ top.Ext.getCmp('existTousseDefinitionId').setValue(''); var includeImplantStr; if(tousseDefinition != null){ + node.attributes.isRecycling = tousseDefinition.isRecycling; top.Ext.getCmp('existTousseDefinitionId').setValue(tousseDefinition.id); for(var i = 0 ;i < tousseDefinition.materialInstances.length;i++){ var materialDefinition = tousseDefinition.materialInstances[i].materialDefinition;