Index: ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js =================================================================== diff -u -r27705 -r27718 --- ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js (.../qualitymonitoringInstanceForm.js) (revision 27705) +++ ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js (.../qualitymonitoringInstanceForm.js) (revision 27718) @@ -27,7 +27,8 @@ var widthSetTousse;//控制样式 var addExtractClick;//抽检器械后面添加按钮的显示与隐藏 var addTousseClick;//器械包条码后面添加按钮的显示与隐藏 -var positionlabelWFlag = false; //控制样式 +var positionlabelWFlag = false; //控制样式 +var labelWidthLeft = 135; function cancelQualityMonitoring() { closeQMWindow(); } @@ -1095,8 +1096,13 @@ var labelW = 91; var positionlabelW = 116; if(widthSet == true){ - columnW = 0.36; - labelW = 117; + columnW = 0.36; + if(recycleQM == true){ + labelW = 129; + }else{ + labelW = 124; + } + }else if(isLoad == true){ positionlabelW = 92; } @@ -1714,15 +1720,15 @@ var columnW = 0.4; var labelW = 90; if(widthSetTousse == true){ - columnW = 0.44; - labelW = 116; + columnW = 0.44; + labelW = 123; }else if(widthSetTousse == false ){ if(addTousseClick == true){ columnW = 0.4; labelW = 90; }else{ - columnW = 0.44; - labelW = 116; + columnW = 0.44; + labelW = 123; } }else if(isLoad == true){ columnW = 0.4; @@ -1837,12 +1843,13 @@ id : 'tousseInfoFieldSet'+tousseAndMaterialWrapperCount+'_TP', xtype:"fieldset", labelAlign :'left', - title:"器械包信息"+tousseAndMaterialWrapperCount, + title:"器械包信息", autoHeight:true, items:[{ layout : 'column', columnWidth : .5, - labelWidth : 90, + labelWidth : 90, + width:820, id:'setLayout'+tousseAndMaterialWrapperCount+'_TP' }] }); @@ -1855,8 +1862,11 @@ setLayoutVal = 'setLayout'+tousseAndMaterialWrapperCount+'_TP'; setLayoutList = tosseAndMaterialWrapper1; tosseAndMaterialVal = 'tosseAndMaterial'+tousseAndMaterialWrapperCount+'_TP'; - Ext.getCmp(setLayoutVal).add(setLayoutList); - addTousseItems(tosseAndMaterialVal,addTousseClick,items1,items2,items3,items10,items4,items5,items6,items7,items8,items9); + Ext.getCmp(setLayoutVal).add(setLayoutList); + Ext.getCmp('setLayout'+tousseAndMaterialWrapperCount+'_TP').doLayout(); + addTousseItems(tosseAndMaterialVal,addTousseClick,items1,items2,items3,items10,items4,items5,items6,items7,items8,items9); + Ext.getCmp('tousseInfoFieldSet'+tousseAndMaterialWrapperCount+'_TP').doLayout(); + Ext.getCmp('addQualityMonitoringForm').doLayout(); } } @@ -1958,7 +1968,7 @@ return { layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ xtype : 'combo', @@ -2064,7 +2074,8 @@ items:[{ layout : 'column', columnWidth : .5, - labelWidth : 90, + labelWidth : 90, + width:820, id:'setLayout'+tousseAndMaterialWrapperCount+'_TMP' }] }); @@ -2078,14 +2089,15 @@ var setLayoutVal = 'setLayout'+tousseAndMaterialWrapperCount+'_TMP'; var setLayoutList = tosseAndMaterialWrapper; var tosseAndMaterialId = 'tosseAndMaterial'+tousseAndMaterialWrapperCount+'_TMP'; - Ext.getCmp('addQualityMonitoringForm').doLayout(); - Ext.getCmp(setLayoutVal).add(setLayoutList); + + Ext.getCmp(setLayoutVal).add(setLayoutList); + Ext.getCmp('setLayout'+tousseAndMaterialWrapperCount+'_TMP').doLayout(); addExtractCheckTousse("","","","","","","",true,true,"",tosseAndMaterialId,""); addTousseClick = false; addExtractCheckMaterial("","",1,"","",true,true,"",tosseAndMaterialId,"","",""); + addExtractClick = false; + Ext.getCmp('addQualityMonitoringForm').doLayout(); - addExtractClick = false; - }else if(result.data.scope == "无"){ addExtractCheckMaterial(); } @@ -2213,7 +2225,7 @@ return { layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ layout: 'column', @@ -2310,7 +2322,7 @@ id : 'qualityMonitoringWin', layout : 'fit', title : '质量监测信息', - width : 730, + width : 900, modal : true, autoHeight : true, border : false, @@ -3456,7 +3468,8 @@ */ function getFormPanelContent(id){ initStore(); - if(recycleQM == true){ + if(recycleQM == true){ + disableShowImageButton = true; } var varibaleContent1; @@ -3512,7 +3525,7 @@ { layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ xtype : 'datefieldWithMin', @@ -3529,7 +3542,7 @@ }, { layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ xtype : 'textfield', @@ -3543,7 +3556,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ xtype : 'textfield', @@ -3564,7 +3577,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ xtype : 'textfield', @@ -3578,7 +3591,7 @@ name:'insertBasket', layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [{ xtype : 'textfield', @@ -3610,7 +3623,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, items : [{ xtype : 'textfield', name : 'containerName', @@ -3625,7 +3638,7 @@ name:'rinseBasketsBarcodeWrapper', layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, hidden:true, items : [{ @@ -3665,7 +3678,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, items : [{ xtype : 'textfield', @@ -3683,7 +3696,7 @@ columnWidth : .5, hidden:true, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, items : [{ xtype : 'textfield', name : 'cleaningMachinePosition', @@ -3698,7 +3711,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, items : [{ xtype : 'textfield', @@ -3714,7 +3727,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, items : [{ xtype : 'textfield', @@ -3730,7 +3743,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, items : [{ xtype : 'textfield', @@ -3746,7 +3759,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, items : [{ xtype : 'textfield', @@ -3762,7 +3775,7 @@ layout : 'form', columnWidth : .5, height:setH, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, items : [{ xtype : 'textfield', @@ -3775,7 +3788,7 @@ } ,{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"idCardAndTousseBarcodeWrapper", @@ -3798,7 +3811,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"tousseNameBasicsWrapper", @@ -3812,7 +3825,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"recyclePersonWrapper", @@ -3826,7 +3839,7 @@ } ,{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"recycleDepartmentsWrapper", @@ -3840,7 +3853,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"operationRoomWrapper", @@ -3854,7 +3867,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"nurseWrapper", @@ -3868,7 +3881,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"recycleTimeWrapper", @@ -3887,7 +3900,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"tousseBarcodeWrapper", @@ -3911,7 +3924,7 @@ } ,{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"sterilizationNameWrapper", @@ -3925,7 +3938,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"sterilizationProgramNameWrapper", @@ -3939,7 +3952,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"heatWrapper", @@ -3953,7 +3966,7 @@ },{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"sterilizationStartTimeWrapper", @@ -3967,7 +3980,7 @@ } ,{ layout : 'form', columnWidth : .5, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, hidden:true, height:setH, id:"sterilizationEndTimeWrapper", @@ -3981,7 +3994,7 @@ },{ layout : 'form', columnWidth : 1, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, items : [ { xtype : 'textarea', name : 'remark', @@ -3994,13 +4007,13 @@ },{ layout : 'column', columnWidth : 1, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, height:setH, items : [ { layout : 'form', columnWidth : 0.8, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, items : [ { xtype : 'textfield', @@ -4014,7 +4027,7 @@ { layout : 'form', columnWidth : 0.08, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, items : [ { xtype:'button', text : '上传', @@ -4031,7 +4044,7 @@ { layout : 'form', columnWidth : 0.12, - labelWidth : 90, + labelWidth : recycleQM ? 182 : labelWidthLeft, items : [ { xtype:'button', text : '预览',