|
|
@@ -59,35 +59,36 @@ Ext.define('saas.view.stock.report.DataList', {
|
|
|
text: "物料规格",
|
|
|
dataIndex: "rc_prodSpec",
|
|
|
width: 200,
|
|
|
- }, {
|
|
|
- text: "单位",
|
|
|
- dataIndex: "rc_prodUnit",
|
|
|
- width: 150,
|
|
|
- }, {
|
|
|
+ }, {
|
|
|
text: "仓库编号",
|
|
|
dataIndex: "rc_whCode",
|
|
|
width: 200,
|
|
|
+ hidden:true
|
|
|
}, {
|
|
|
text: "仓库名称",
|
|
|
dataIndex: "rc_whName",
|
|
|
- width: 200,
|
|
|
+ width: 110,
|
|
|
}, {
|
|
|
text: "数量",
|
|
|
xtype: 'numbercolumn',
|
|
|
dataIndex: "rc_number",
|
|
|
- width: 150,
|
|
|
+ width: 120,
|
|
|
renderer: function (v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
var format = '0.' + xr.join();
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
+ },{
|
|
|
+ text: "单位",
|
|
|
+ dataIndex: "rc_prodUnit",
|
|
|
+ width: 80
|
|
|
}, {
|
|
|
text: "单价",
|
|
|
xtype: 'numbercolumn',
|
|
|
align: 'end',
|
|
|
dataIndex: "rc_price",
|
|
|
- width: 150,
|
|
|
+ width: 120,
|
|
|
renderer: function (v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
|
|
|
@@ -98,7 +99,7 @@ Ext.define('saas.view.stock.report.DataList', {
|
|
|
text: "金额",
|
|
|
xtype: 'numbercolumn',
|
|
|
dataIndex: "rc_amount",
|
|
|
- width: 150,
|
|
|
+ width: 120,
|
|
|
renderer: function (v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
|
|
|
@@ -127,26 +128,26 @@ Ext.define('saas.view.stock.report.DataList', {
|
|
|
text: "物料规格",
|
|
|
dataIndex: "rc_prodSpec",
|
|
|
width: 200,
|
|
|
- }, {
|
|
|
- text: "单位",
|
|
|
- dataIndex: "rc_prodUnit",
|
|
|
- width: 150,
|
|
|
}, {
|
|
|
text: "数量",
|
|
|
xtype: 'numbercolumn',
|
|
|
dataIndex: "rc_number",
|
|
|
- width: 150,
|
|
|
+ width: 120,
|
|
|
renderer: function (v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
var format = '0.' + xr.join();
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
+ },{
|
|
|
+ text: "单位",
|
|
|
+ dataIndex: "rc_prodUnit",
|
|
|
+ width: 80,
|
|
|
}, {
|
|
|
text: "金额",
|
|
|
xtype: 'numbercolumn',
|
|
|
dataIndex: "rc_amount",
|
|
|
- width: 150,
|
|
|
+ width: 120,
|
|
|
renderer: function (v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
|
|
|
@@ -162,5 +163,5 @@ Ext.define('saas.view.stock.report.DataList', {
|
|
|
}
|
|
|
}, {
|
|
|
flex: 1
|
|
|
- }],
|
|
|
+ }]
|
|
|
})
|