Index: ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js =================================================================== diff -u -r41307 -r41308 --- ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js (.../qualitymonitoringInstanceForm.js) (revision 41307) +++ ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/qualitymonitoringInstanceForm.js (.../qualitymonitoringInstanceForm.js) (revision 41308) @@ -606,6 +606,8 @@ } else { textareaValue = '请补充"不合格器械包数"、"不合格器械数"的实际数量后再保存。' } + var actualWidth = document.body.clientWidth; + actualWidth = actualWidth > 500 ? 550 : actualWidth; var formPanel = new Ext.FormPanel({ frame: true, labelSeparator: ':', @@ -614,22 +616,23 @@ bodyStyle: 'padding:5px 15px 0px 5px;', labelWidth: 90, layout: 'form', - width: 500, + width: actualWidth - 50, height: 200, items: [{ xtype: 'fieldset', layout: 'column', title: '基础信息', - width: 500, + width: actualWidth - 50, height: 200, items: [{ layout: 'form', labelWidth: 10, columnWidth: 1, - height: 28, + height: 40, items: [{ - xtype: 'textfield', + xtype: 'textarea', allowBlank: true, + height: 40, anchor: '99%', readOnly: true, labelSeparator: '', @@ -649,7 +652,7 @@ fieldLabel: "不合格器械包数", allowBlank: true, disabled: scope == '材料', - anchor: '80%' + anchor: '95%' }] }, { layout: 'form', @@ -664,7 +667,7 @@ fieldLabel: "不合格器械数", allowBlank: true, disabled: scope == '器械包', - anchor: '80%' + anchor: '95%' }] }, { layout: 'form', @@ -716,7 +719,7 @@ id: 'confirmRecordMaterialAmountWin', layout: 'fit', title: '不合格物品数量确认', - width: 550, + width: actualWidth, height: 300, border: false, modal: true, @@ -801,6 +804,10 @@ var actualWidth = document.body.clientWidth; var actualHeight = document.body.clientHeight; + var actualWidth = document.body.clientWidth; + actualWidth = actualWidth > 500 ? 700 : actualWidth; + actualHeight = actualWidth > 500 ? 400 : actualHeight; + var tousseBagsForNameValue = '' var formPanel = new Ext.FormPanel({ frame: true,