|
@@ -14,19 +14,25 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
//筛选:客户、物料、时间
|
|
//筛选:客户、物料、时间
|
|
|
QueryWidth:0.2,
|
|
QueryWidth:0.2,
|
|
|
searchItems: [{
|
|
searchItems: [{
|
|
|
- xtype: 'customerDbfindTrigger',
|
|
|
|
|
|
|
+ xtype: 'textfield',
|
|
|
name: 'sa_custname',
|
|
name: 'sa_custname',
|
|
|
- fieldLabel: '客户',
|
|
|
|
|
- columnWidth: 0.2
|
|
|
|
|
|
|
+ emptyText:'请输入客户编号或名称',
|
|
|
|
|
+ columnWidth: 0.2,
|
|
|
|
|
+ getCondition: function(value) {
|
|
|
|
|
+ return ' (sa_custname like\'%' + value + '%\' or sa_custcode like \'%'+value+'%\' ) ';
|
|
|
|
|
+ }
|
|
|
}, {
|
|
}, {
|
|
|
- xtype: 'productDbfindTrigger',
|
|
|
|
|
|
|
+ xtype: 'textfield',
|
|
|
name: 'pr_detail',
|
|
name: 'pr_detail',
|
|
|
- fieldLabel: '物料',
|
|
|
|
|
- columnWidth: 0.2
|
|
|
|
|
|
|
+ emptyText:'请输入物料编号或品牌',
|
|
|
|
|
+ columnWidth: 0.2,
|
|
|
|
|
+ getCondition: function(value) {
|
|
|
|
|
+ return ' (pr_code like\'%' + value + '%\' or pr_brand like \'%'+value+'%\' ) ';
|
|
|
|
|
+ }
|
|
|
}, {
|
|
}, {
|
|
|
xtype: 'condatefield',
|
|
xtype: 'condatefield',
|
|
|
name: 'pi_date',
|
|
name: 'pi_date',
|
|
|
- fieldLabel: '时间',
|
|
|
|
|
|
|
+ fieldLabel: '日期',
|
|
|
columnWidth: 0.4
|
|
columnWidth: 0.4
|
|
|
}],
|
|
}],
|
|
|
reportModel: 'saas.model.report.SaleProfit',
|
|
reportModel: 'saas.model.report.SaleProfit',
|
|
@@ -83,7 +89,7 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
xtype: 'numbercolumn',
|
|
xtype: 'numbercolumn',
|
|
|
width: 110,
|
|
width: 110,
|
|
|
renderer : function(v) {
|
|
renderer : function(v) {
|
|
|
- return saas.util.BaseUtil.numberFormat(v, 3, true);
|
|
|
|
|
|
|
+ return saas.util.BaseUtil.numberFormat(v, 3, false);
|
|
|
}
|
|
}
|
|
|
}, {
|
|
}, {
|
|
|
text: '单位',
|
|
text: '单位',
|
|
@@ -141,6 +147,11 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
width:120,
|
|
width:120,
|
|
|
renderer : function(v) {
|
|
renderer : function(v) {
|
|
|
return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ summaryType: 'sum',
|
|
|
|
|
+ summaryLabel: '价税合计',
|
|
|
|
|
+ summaryRenderer: function(v) {
|
|
|
|
|
+ return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
}
|
|
}
|
|
|
}, {
|
|
}, {
|
|
|
text: '成本单价(元)',
|
|
text: '成本单价(元)',
|
|
@@ -166,6 +177,11 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
xtype: 'numbercolumn',
|
|
xtype: 'numbercolumn',
|
|
|
renderer: function(v) {
|
|
renderer: function(v) {
|
|
|
return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
|
|
+ },
|
|
|
|
|
+ summaryType: 'sum',
|
|
|
|
|
+ summaryLabel: '毛利润',
|
|
|
|
|
+ summaryRenderer: function(v) {
|
|
|
|
|
+ return saas.util.BaseUtil.numberFormat(v, 2, true);
|
|
|
}
|
|
}
|
|
|
}, {
|
|
}, {
|
|
|
text: '毛利率(%)',
|
|
text: '毛利率(%)',
|