123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- Ext.define('erp.view.sys.pr.ProductPortal',{
- extend: 'Ext.panel.Panel',
- alias: 'widget.productportal',
- animCollapse: false,
- constrainHeader: true,
- bodyBorder: false,
- border: false,
- autoShow: true,
- layout:'border',
- items:[{
- region:'west',
- xtype:'productkindtree',
- title:'物料种类',
- width:400,
- minWidth:400
- },{
- xtype:'tabpanel',
- dockedItems: [Ext.create('erp.view.sys.base.Toolbar')],
- items:[{
- title:'基础设置',
- condition:"step='PR'",
- itemColumnWidth:1,
- xtype:'modulesetportal',
- },{
- title: '物料等级',
- minWidth: 80,
- xtype:'simpleactiongrid',
- caller:'Productlevel',
- saveUrl: 'scm/product/saveProductlevel.action',
- deleteUrl: 'scm/product/deleteProductlevel.action',
- updateUrl: 'scm/product/updateProductlevel.action',
- getIdUrl: 'common/getId.action?seq=Productlevel_SEQ',
- keyField:'pl_id',
- codeField:'pl_code',
- emptyGrid:true,
- autoRender:true,
- plugins: [{
- ptype: 'cellediting',
- clicksToEdit: 2,
- pluginId: 'cellplugin'
- }],
- params:{
- caller:'Productlevel!Grid',
- condition:'1=1'
- }
- },{
- title: 'BOM等级',
- region: 'east',
- flex: 1,
- minWidth: 80,
- xtype:'simpleactiongrid',
- caller:'Bomlevel',
- saveUrl: 'pm/bom/saveBomlevel.action',
- deleteUrl: 'pm/bom/deleteBomlevel.action',
- updateUrl: 'pm/bom/updateBomlevel.action',
- getIdUrl: 'common/getId.action?seq=Bomlevel_SEQ',
- keyField:'bl_id',
- autoRender:true,
- plugins: [{
- ptype: 'cellediting',
- clicksToEdit: 2,
- pluginId: 'cellplugin'
- }],
- params:{
- caller:'Bomlevel!Grid',
- condition:'1=1'
- }
- }],
- region: 'center',
- minHeight: 120,
- minWidth:200,
- split: true
- },{
- region:'east',
- title:'物料单位',
- xtype:'combosetgrid',
- plugins:[Ext.create('Ext.grid.plugin.CellEditing', {
- clicksToMoveEditor: 1,
- autoCancel: false
- })],
- animCollapse: true,
- collapsible: true,
- width:235,
- fieldWidth:150,
- margins: '0 5 0 0',
- caller:'Product',
- field:'pr_unit',
- params:{
- caller:'SaleForecastKind!Grid',
- condition:'1=1'
- }
- }/*,{
- region: 'south',
- // collapsible: true,
- split: true,
- height: 200,
- minHeight: 120,
- layout: {
- type: 'border',
- padding: 5
- },
- defaults:{
- plugins: [{
- ptype: 'cellediting',
- clicksToEdit: 2,
- pluginId: 'cellplugin'
- }]
- },
- items: []
- }*/],
- initComponent : function(){
- this.callParent(arguments);
- }
- });
|