|
@@ -66,20 +66,24 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
width: 110
|
|
width: 110
|
|
|
}, {
|
|
}, {
|
|
|
text: '物料编号',
|
|
text: '物料编号',
|
|
|
- dataIndex: 'pr_code',
|
|
|
|
|
- width: 150
|
|
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ dataIndex: 'pr_code'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text: '品牌',
|
|
|
|
|
+ dataIndex: 'pr_detail',
|
|
|
|
|
+ width: 200
|
|
|
}, {
|
|
}, {
|
|
|
- text: '物料名称',
|
|
|
|
|
|
|
+ text: '名称',
|
|
|
dataIndex: 'pr_detail',
|
|
dataIndex: 'pr_detail',
|
|
|
width: 200
|
|
width: 200
|
|
|
}, {
|
|
}, {
|
|
|
- text: '物料规格',
|
|
|
|
|
|
|
+ text: '型号',
|
|
|
|
|
+ dataIndex: 'pr_orispeccode',
|
|
|
|
|
+ width: 200
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text: '规格',
|
|
|
dataIndex: 'pr_spec',
|
|
dataIndex: 'pr_spec',
|
|
|
width: 150
|
|
width: 150
|
|
|
- }, {
|
|
|
|
|
- text: '单位',
|
|
|
|
|
- dataIndex: 'pr_unit',
|
|
|
|
|
- width: 110
|
|
|
|
|
}, {
|
|
}, {
|
|
|
text: '数量',
|
|
text: '数量',
|
|
|
dataIndex: 'pd_outqty',
|
|
dataIndex: 'pd_outqty',
|
|
@@ -92,6 +96,10 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
var format = '0.' + xr.join('');
|
|
var format = '0.' + xr.join('');
|
|
|
return Ext.util.Format.number(v, format);
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
}
|
|
|
|
|
+ }, {
|
|
|
|
|
+ text: '单位',
|
|
|
|
|
+ dataIndex: 'pd_unit',
|
|
|
|
|
+ width: 80
|
|
|
}, {
|
|
}, {
|
|
|
text: '含税单价(元)',
|
|
text: '含税单价(元)',
|
|
|
dataIndex: 'pd_sendprice',
|
|
dataIndex: 'pd_sendprice',
|
|
@@ -128,6 +136,7 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
exportFormat: 'Price',
|
|
exportFormat: 'Price',
|
|
|
dataIndex: 'pd_netprice',
|
|
dataIndex: 'pd_netprice',
|
|
|
xtype: 'numbercolumn',
|
|
xtype: 'numbercolumn',
|
|
|
|
|
+ width:150,
|
|
|
renderer : function(v) {
|
|
renderer : function(v) {
|
|
|
var arr = (v + '.').split('.');
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
@@ -139,6 +148,7 @@ Ext.define('saas.view.sale.report.SaleProfit', {
|
|
|
dataIndex: 'pw_costprice',
|
|
dataIndex: 'pw_costprice',
|
|
|
exportFormat: 'Price',
|
|
exportFormat: 'Price',
|
|
|
xtype: 'numbercolumn',
|
|
xtype: 'numbercolumn',
|
|
|
|
|
+ width:140,
|
|
|
renderer : function(v) {
|
|
renderer : function(v) {
|
|
|
var arr = (v + '.').split('.');
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|