1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /**
- * 自制品供需平衡
- */
- Ext.define('make.view.sale.selfmakebalance.QueryPanel', {
- extend: 'Ext.form.Panel',
- xtype: 'sale-selfmakebalance-querypanel',
- controller: 'sale-selfmakebalance-querypanel',
- frame: true,
- layout: 'fit',
- cls: 'core-base-basepanel',
- searchField: [{
- xtype: "textfield",
- name: "keyWords",
- width: 250,
- emptyText: '请输入物料编号、名称、型号或厂家/品牌'
- }],
- caller: 'selfMakeBalance',
- _title: '自制品供需平衡',
- initComponent: function () {
- var me = this;
- Ext.apply(me, {
- dockedItems: [{
- frame: false,
- xtype: 'toolbar',
- dock: 'top',
- layout: 'column',
- style: {
- margin: '0 0 12px 0',
- padding: '10px 0 14px 8px',
- },
- items: Ext.Array.merge(me.searchField, [{
- xtype: 'button',
- text: '查询',
- handler: function () {
- me.onQuery();
- }
- }])
- }],
- items: [{ xtype: 'sale-selfmakebalance-gridpanel' }]
- });
- me.callParent(arguments);
- },
- onQuery: function () {
- var me = this,
- grid = me.down('sale-selfmakebalance-gridpanel');
- grid.store.load();
- }
-
- });
|