|
@@ -26,13 +26,13 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
}, {
|
|
}, {
|
|
|
id: 'purchaseIn',
|
|
id: 'purchaseIn',
|
|
|
text: '采购验收单',
|
|
text: '采购验收单',
|
|
|
- addType: 'purchase-purchaseIn-formpanel',
|
|
|
|
|
- viewType: 'purchase-purchaseIn-querypanel'
|
|
|
|
|
|
|
+ addType: 'purchase-purchasein-formpanel',
|
|
|
|
|
+ viewType: 'purchase-purchasein-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'purchaseOut',
|
|
id: 'purchaseOut',
|
|
|
text: '采购验退单',
|
|
text: '采购验退单',
|
|
|
- addType: 'purchase-purchaseOut-formpanel',
|
|
|
|
|
- viewType: 'purchase-purchaseOut-querypanel'
|
|
|
|
|
|
|
+ addType: 'purchase-purchaseout-formpanel',
|
|
|
|
|
+ viewType: 'purchase-purchaseout-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'inquiry',
|
|
id: 'inquiry',
|
|
|
text: '采购询价单',
|
|
text: '采购询价单',
|
|
@@ -74,18 +74,18 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
}, {
|
|
}, {
|
|
|
id: 'saleOut',
|
|
id: 'saleOut',
|
|
|
text: '销售出货单',
|
|
text: '销售出货单',
|
|
|
- addType: 'sale-saleOut-formpanel',
|
|
|
|
|
- viewType: 'sale-saleOut-querypanel'
|
|
|
|
|
|
|
+ addType: 'sale-saleout-formpanel',
|
|
|
|
|
+ viewType: 'sale-saleout-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'saleIn',
|
|
id: 'saleIn',
|
|
|
text: '销售退货单',
|
|
text: '销售退货单',
|
|
|
- addType: 'sale-saleIn-formpanel',
|
|
|
|
|
- viewType: 'sale-saleIn-querypanel'
|
|
|
|
|
|
|
+ addType: 'sale-salein-formpanel',
|
|
|
|
|
+ viewType: 'sale-salein-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'saleToPur',
|
|
id: 'saleToPur',
|
|
|
text: '以销定购',
|
|
text: '以销定购',
|
|
|
- addType: 'sale-saleToPur-formpanel',
|
|
|
|
|
- viewType: 'sale-saleToPur-querypanel'
|
|
|
|
|
|
|
+ addType: 'sale-saletopur-formpanel',
|
|
|
|
|
+ viewType: 'sale-saletopur-querypanel'
|
|
|
}]
|
|
}]
|
|
|
}, {
|
|
}, {
|
|
|
text: '报表',
|
|
text: '报表',
|
|
@@ -105,8 +105,8 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
items: [{
|
|
items: [{
|
|
|
id: 'appropriationInOut',
|
|
id: 'appropriationInOut',
|
|
|
text: '调拨单',
|
|
text: '调拨单',
|
|
|
- addType: 'stock-appropriationInOut-formpanel',
|
|
|
|
|
- viewType: 'stock-appropriationInOut-querypanel'
|
|
|
|
|
|
|
+ addType: 'stock-appropriationinout-formpanel',
|
|
|
|
|
+ viewType: 'stock-appropriationinout-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'make',
|
|
id: 'make',
|
|
|
text: '制造单',
|
|
text: '制造单',
|
|
@@ -115,13 +115,13 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
}, {
|
|
}, {
|
|
|
id: 'otherIn',
|
|
id: 'otherIn',
|
|
|
text: '其它入库单',
|
|
text: '其它入库单',
|
|
|
- addType: 'stock-otherIn-formpanel',
|
|
|
|
|
- viewType: 'stock-otherIn-querypanel'
|
|
|
|
|
|
|
+ addType: 'stock-otherin-formpanel',
|
|
|
|
|
+ viewType: 'stock-otherin-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'otherOut',
|
|
id: 'otherOut',
|
|
|
text: '其它出库单',
|
|
text: '其它出库单',
|
|
|
- addType: 'stock-otherOut-formpanel',
|
|
|
|
|
- viewType: 'stock-otherOut-querypanel'
|
|
|
|
|
|
|
+ addType: 'stock-otherout-formpanel',
|
|
|
|
|
+ viewType: 'stock-otherout-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'inventory',
|
|
id: 'inventory',
|
|
|
text: '盘点单',
|
|
text: '盘点单',
|
|
@@ -146,13 +146,13 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
items: [{
|
|
items: [{
|
|
|
id: 'payBalance',
|
|
id: 'payBalance',
|
|
|
text: '付款单',
|
|
text: '付款单',
|
|
|
- addType: 'money-payBalance-formpanel',
|
|
|
|
|
- viewType: 'money-payBalance-querypanel'
|
|
|
|
|
|
|
+ addType: 'money-paybalance-formpanel',
|
|
|
|
|
+ viewType: 'money-paybalance-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'recBbalance',
|
|
id: 'recBbalance',
|
|
|
text: '收款单',
|
|
text: '收款单',
|
|
|
- addType: 'money-recBbalance-formpanel',
|
|
|
|
|
- viewType: 'money-recBbalance-querypanel'
|
|
|
|
|
|
|
+ addType: 'money-recbalance-formpanel',
|
|
|
|
|
+ viewType: 'money-recbalance-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'verification',
|
|
id: 'verification',
|
|
|
text: '核销单',
|
|
text: '核销单',
|
|
@@ -161,13 +161,13 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
}, {
|
|
}, {
|
|
|
id: 'othReceipts',
|
|
id: 'othReceipts',
|
|
|
text: '其它收支单',
|
|
text: '其它收支单',
|
|
|
- addType: 'money-othReceipts-formpanel',
|
|
|
|
|
- viewType: 'money-othReceipts-querypanel'
|
|
|
|
|
|
|
+ addType: 'money-othreceipts-formpanel',
|
|
|
|
|
+ viewType: 'money-othreceipts-querypanel'
|
|
|
}, {
|
|
}, {
|
|
|
id: 'fundTransfer',
|
|
id: 'fundTransfer',
|
|
|
text: '资金转存',
|
|
text: '资金转存',
|
|
|
- addType: 'money-fundTransfer-formpanel',
|
|
|
|
|
- viewType: 'money-fundTransfer-querypanel'
|
|
|
|
|
|
|
+ addType: 'money-fundtransfer-formpanel',
|
|
|
|
|
+ viewType: 'money-fundtransfer-querypanel'
|
|
|
}]
|
|
}]
|
|
|
}, {
|
|
}, {
|
|
|
text: '报表',
|
|
text: '报表',
|
|
@@ -325,7 +325,8 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
showNavMenu: function (view, record, item, index, e, eOpts) {
|
|
showNavMenu: function (view, record, item, index, e, eOpts) {
|
|
|
- var recData = record.data,
|
|
|
|
|
|
|
+ var me = this,
|
|
|
|
|
+ recData = record.data,
|
|
|
menuItems = recData.items || [],
|
|
menuItems = recData.items || [],
|
|
|
itemBox = item.getBoundingClientRect(),
|
|
itemBox = item.getBoundingClientRect(),
|
|
|
pos = [itemBox.left + itemBox.width, itemBox.top],
|
|
pos = [itemBox.left + itemBox.width, itemBox.top],
|
|
@@ -395,15 +396,15 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
Ext.Array.each(menuItemText, function (item) {
|
|
Ext.Array.each(menuItemText, function (item) {
|
|
|
item.addEventListener('click', function (e) {
|
|
item.addEventListener('click', function (e) {
|
|
|
var target = e.target,
|
|
var target = e.target,
|
|
|
- dataset = target.dataset,
|
|
|
|
|
- viewType = dataset.viewtype,
|
|
|
|
|
- type = dataset.type,
|
|
|
|
|
- text = dataset.text,
|
|
|
|
|
- id = dataset.id;
|
|
|
|
|
|
|
+ dataset = target.dataset,
|
|
|
|
|
+ viewType = dataset.viewtype,
|
|
|
|
|
+ type = dataset.type,
|
|
|
|
|
+ text = dataset.text,
|
|
|
|
|
+ id = dataset.id;
|
|
|
|
|
|
|
|
var tabTitle = text + (type == 'form' ? '' : '查询'),
|
|
var tabTitle = text + (type == 'form' ? '' : '查询'),
|
|
|
- tabId = 'maintab-' + type + '-' + id;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ tabId = 'maintab-' + type + '-' + id;
|
|
|
|
|
+
|
|
|
openTab(viewType, tabTitle, tabId);
|
|
openTab(viewType, tabTitle, tabId);
|
|
|
menu.hide();
|
|
menu.hide();
|
|
|
});
|
|
});
|
|
@@ -411,15 +412,15 @@ Ext.define('saas.view.main.Navigation', {
|
|
|
Ext.Array.each(menuItemIcon, function (item) {
|
|
Ext.Array.each(menuItemIcon, function (item) {
|
|
|
item.addEventListener('click', function (e) {
|
|
item.addEventListener('click', function (e) {
|
|
|
var target = e.target,
|
|
var target = e.target,
|
|
|
- dataset = target.dataset,
|
|
|
|
|
- viewType = dataset.viewtype,
|
|
|
|
|
- type = dataset.type,
|
|
|
|
|
- text = dataset.text,
|
|
|
|
|
- id = dataset.id;
|
|
|
|
|
|
|
+ dataset = target.dataset,
|
|
|
|
|
+ viewType = dataset.viewtype,
|
|
|
|
|
+ type = dataset.type,
|
|
|
|
|
+ text = dataset.text,
|
|
|
|
|
+ id = dataset.id;
|
|
|
|
|
|
|
|
var tabTitle = text + (type == 'form' ? '' : '查询'),
|
|
var tabTitle = text + (type == 'form' ? '' : '查询'),
|
|
|
- tabId = 'maintab-' + type + '-' + id;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ tabId = 'maintab-' + type + '-' + id;
|
|
|
|
|
+
|
|
|
openTab(viewType, tabTitle, tabId);
|
|
openTab(viewType, tabTitle, tabId);
|
|
|
menu.hide();
|
|
menu.hide();
|
|
|
});
|
|
});
|