|
|
@@ -21,30 +21,30 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
items: [{
|
|
|
id: 'purchase',
|
|
|
text: '采购单',
|
|
|
- formType:'purchase-purchase-formpanel',
|
|
|
- queryType: 'purchase-purchase-querypanel'
|
|
|
+ addType:'purchase-purchase-formpanel',
|
|
|
+ viewType: 'purchase-purchase-querypanel'
|
|
|
}, {
|
|
|
id: 'purchaseIn',
|
|
|
text: '采购验收单',
|
|
|
- formType:'purchase-purchaseIn-formpanel',
|
|
|
- queryType: 'purchase-purchaseIn-querypanel'
|
|
|
+ addType:'purchase-purchaseIn-formpanel',
|
|
|
+ viewType: 'purchase-purchaseIn-querypanel'
|
|
|
},{
|
|
|
id: 'purchaseOut',
|
|
|
text: '采购验退单',
|
|
|
- formType:'purchase-purchaseOut-formpanel',
|
|
|
- queryType: 'purchase-purchaseOut-querypanel'
|
|
|
+ addType:'purchase-purchaseOut-formpanel',
|
|
|
+ viewType: 'purchase-purchaseOut-querypanel'
|
|
|
},{
|
|
|
id: 'form1',
|
|
|
text: '测试-采购单明细界面',
|
|
|
- formType: 'test-order-formpanel'
|
|
|
+ addType: 'test-order-formpanel'
|
|
|
}, {
|
|
|
id: 'myform',
|
|
|
text: '测试-明细界面',
|
|
|
- formType: 'test-myform-formpanel'
|
|
|
+ addType: 'test-myform-formpanel'
|
|
|
}, {
|
|
|
id: 'myquerytest',
|
|
|
text: '测试-采购单查询界面',
|
|
|
- queryType: 'test-query-querypanel',
|
|
|
+ viewType: 'test-query-querypanel',
|
|
|
}]
|
|
|
}, {
|
|
|
text: '报表',
|
|
|
@@ -54,10 +54,112 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
text: '采购付款一览表'
|
|
|
}]
|
|
|
}]
|
|
|
- }, {
|
|
|
- text: '销售',
|
|
|
- iconCls: 'x-fa fa-shopping-cart',
|
|
|
- }],
|
|
|
+ },{
|
|
|
+ text: '资料',
|
|
|
+ iconCls: 'x-fa fa-book',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ text: '基础资料',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ text: '客户资料',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '供应商管理',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '商品管理',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '仓库管理',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '职员管理',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '账户管理',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '发货地址管理',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '新手导航',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '辅助资料',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ text: '客户类别',
|
|
|
+ viewType: 'document-kind',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '供应商类别',
|
|
|
+ viewType: 'document-kind',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '商品类别',
|
|
|
+ viewType: 'document-kind',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '支出类别',
|
|
|
+ viewType: 'document-kind',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '收入类别',
|
|
|
+ viewType: 'document-kind',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '计量单位',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '结算方式',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '辅助属性',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '客户物料编码',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '单据编码规则',
|
|
|
+ viewType: 'mainlist',
|
|
|
+ leaf: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }]
|
|
|
}),
|
|
|
tpl : new Ext.XTemplate('<ul class="x-navlist">',
|
|
|
'<tpl for=".">',
|
|
|
@@ -108,7 +210,7 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
if(!menu) {
|
|
|
var view = new Ext.DataView({
|
|
|
store : Ext.create('Ext.data.Store', {
|
|
|
- fields: ['id', 'text', 'formType', 'queryType'],
|
|
|
+ fields: ['id', 'text', 'addType', 'viewType'],
|
|
|
data: menuItems
|
|
|
}),
|
|
|
tpl: new Ext.XTemplate('<div class="x-navitem-menu">',
|
|
|
@@ -119,11 +221,11 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
'<div class="menu-content">',
|
|
|
'<tpl for="items">',
|
|
|
'<div class="menuitem">',
|
|
|
- '<div class="item-text" title="{text}" data-id="{id}" data-text="{text}" data-type="query" data-queryType="{queryType}">',
|
|
|
+ '<div class="item-text" title="{text}" data-id="{id}" data-text="{text}" data-type="query" data-viewType="{viewType}">',
|
|
|
'{text}',
|
|
|
'</div>',
|
|
|
- '<tpl if="{formType}">',
|
|
|
- '<div class="item-icon" data-id="{id}" data-text="{text}" data-type="form" data-formType="{formType}">新增</div>',
|
|
|
+ '<tpl if="{addType}">',
|
|
|
+ '<div class="item-icon" data-id="{id}" data-text="{text}" data-type="form" data-viewType="{addType}">新增</div>',
|
|
|
'</tpl>',
|
|
|
'</div>',
|
|
|
'</tpl>',
|