|
|
@@ -89,7 +89,8 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
addXtype: 'purchase-purchase-formpanel',
|
|
|
defaultCondition:'',
|
|
|
baseVastUrl: '/api/purchase/purchase/',
|
|
|
- baseColumn: [{
|
|
|
+ baseColumn: [
|
|
|
+ {
|
|
|
text: 'id',
|
|
|
dataIndex: 'pu_id',
|
|
|
width: 100,
|
|
|
@@ -164,7 +165,8 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
xtype: 'datecolumn',
|
|
|
width: 0
|
|
|
}],
|
|
|
- relativeColumn: [{
|
|
|
+ relativeColumn: [
|
|
|
+ {
|
|
|
text: 'id',
|
|
|
dataIndex: 'pu_id',
|
|
|
width: 100,
|
|
|
@@ -198,28 +200,31 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
text: '序号',
|
|
|
dataIndex: 'pd_detno',
|
|
|
xtype: 'numbercolumn',
|
|
|
- width: 120
|
|
|
+ width: 120,
|
|
|
+ renderer : function(v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
}, {
|
|
|
text: '物料编号',
|
|
|
dataIndex: 'pd_prodcode',
|
|
|
- width: 120
|
|
|
+ width: 150
|
|
|
},{
|
|
|
text: '物料名称',
|
|
|
dataIndex: 'pr_detail',
|
|
|
- width: 120
|
|
|
+ width: 180
|
|
|
}, {
|
|
|
text: '物料规格',
|
|
|
dataIndex: 'pr_spec',
|
|
|
- width: 120
|
|
|
+ width: 180
|
|
|
}, {
|
|
|
text: '单位',
|
|
|
dataIndex: 'pr_spec',
|
|
|
- width: 120
|
|
|
+ width: 100
|
|
|
},{
|
|
|
text: '采购数量',
|
|
|
dataIndex: 'pd_qty',
|
|
|
xtype: 'numbercolumn',
|
|
|
- width: 120,
|
|
|
+ width: 100,
|
|
|
renderer : function(v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
@@ -235,18 +240,18 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
text: '单价',
|
|
|
dataIndex: 'pd_price',
|
|
|
xtype: 'numbercolumn',
|
|
|
- width: 120,
|
|
|
+ width: 100,
|
|
|
renderer : function(v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
|
|
|
+ var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
var format = '0,000.' + xr.join();
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
+ }
|
|
|
}, {
|
|
|
text: '税率',
|
|
|
dataIndex: 'pd_taxrate',
|
|
|
xtype: 'numbercolumn',
|
|
|
- width: 120,
|
|
|
+ width: 100,
|
|
|
renderer : function(v) {
|
|
|
return Ext.util.Format.number(v, '0');
|
|
|
},
|
|
|
@@ -254,18 +259,18 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
|
|
|
text: '金额',
|
|
|
dataIndex: 'pd_total',
|
|
|
xtype: 'numbercolumn',
|
|
|
- width: 120,
|
|
|
+ width: 100,
|
|
|
renderer : function(v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
|
|
|
var format = '0,000.' + xr.join();
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
+ }
|
|
|
},{
|
|
|
text: '备注',
|
|
|
dataIndex: 'pu_remark',
|
|
|
xtype: 'numbercolumn',
|
|
|
- width: 120
|
|
|
+ width: 250
|
|
|
}]
|
|
|
}
|
|
|
});
|