Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js =================================================================== diff -u -r17366 -r17375 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 17366) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 17375) @@ -730,6 +730,9 @@ top.Ext.getCmp('isInvoice').enable(); //启用“是否发货”下拉框,并默认赋值为“是” top.Ext.getCmp('autoOutStockForPacking').enable(); //启用“自动扣包内材料”下拉框 + //设置价格为可编辑 + top.Ext.getCmp('price').el.dom.setAttribute("readOnly",false); + var tousseType = record.data.value; if(tousseType == '敷料包'){ //敷料包 top.Ext.getCmp('isRecycling').disable(); //禁用“是否回收”下拉框,并默认赋值为“否” @@ -748,6 +751,8 @@ top.Ext.getCmp('isInvoice').disable(); //禁用“是否发货”下拉框,并默认赋值为“是” top.Ext.getCmp('isInvoice').setValue('是'); + //设置价格为只读,不可编辑 + top.Ext.getCmp('price').el.dom.setAttribute("readOnly",true); top.Ext.getCmp('price').setValue(recountDisinfectionGoodsPrice()); }else if(tousseType == '外部代理灭菌'){ //外部代理灭菌 top.Ext.getCmp('autoOutStockForPacking').disable(); //禁用“自动扣包内材料”下拉框,并默认赋值为“否” @@ -2178,7 +2183,8 @@ top.Ext.getCmp('isRecycling').disable(); //禁用“是否回收”下拉框 }else if(tousseType == '消毒物品'){ //消毒物品 top.Ext.getCmp('isInvoice').disable(); //禁用“是否发货”下拉框 - + //设置价格为只读,不可编辑 + top.Ext.getCmp('price').el.dom.setAttribute("readOnly",true); }else if(tousseType == '外部代理灭菌'){ //外部代理灭菌 top.Ext.getCmp('isApplyEntireTousse').disable(); //禁用“是否整包申请”下拉框 top.Ext.getCmp('autoOutStockForPacking').disable(); //禁用“自动扣包内材料”下拉框