Ext.define('make.view.make.intellpurc.ConditionForm', { extend: 'Ext.form.Panel', xtype: 'make-intellpurc-conditionform', initComponent: function () { var me = this; Ext.apply(me, { bodyPadding: '8 12 8 12', layout: 'column', items: [{ xtype: 'radiogroup', name: 'mergeSetting', fieldLabel: '合并采购设置', simpleValue: true, columnWidth: 0.5, items: [ { boxLabel: '不合并', inputValue: '1', checked: true }, { boxLabel: '全部合并', inputValue: '2' }, { boxLabel: '按天数合并', inputValue: '3' } ], listeners: { change: function (r, newValue, oldValue) { if (newValue == '3') { this.ownerCt.down('[name="mergeNum"]').setHidden(false); } else { this.ownerCt.down('[name="mergeNum"]').setHidden(true); } } } }, { xtype: 'textfield', name: 'mergeNum', columnWidth: 0.2, fieldLabel: '合并天数', hidden: true }, { xtype: 'displayfield', columnWidth: 0.3 }, { xtype: 'checkbox', boxLabel: '安全库存纳入需求', name: 'saleStore', inputValue: '1', checked: true, columnWidth: 0.25 }, { xtype: 'checkbox', boxLabel: '最小包装采购', name: 'minPacking', inputValue: '1', checked: true, columnWidth: 0.25 }] }) me.callParent(arguments); }, });