|
|
@@ -112,16 +112,23 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
dataIndex: 'pi_date',
|
|
|
xtype:'datecolumn',
|
|
|
width: 110
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '客户名称',
|
|
|
dataIndex: 'pi_custname',
|
|
|
- width: 250
|
|
|
- },{
|
|
|
- text: '关联出货单号',
|
|
|
- dataIndex: 'pi_iocode',
|
|
|
- width: 150
|
|
|
- },{
|
|
|
- text: '总金额',
|
|
|
+ width: 200
|
|
|
+ }, {
|
|
|
+ text: '金额(元)',
|
|
|
+ dataIndex: 'pi_nettotal',
|
|
|
+ xtype:'numbercolumn',
|
|
|
+ width: 110,
|
|
|
+ renderer : function(v) {
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '价税合计(元)',
|
|
|
dataIndex: 'pi_total',
|
|
|
xtype:'numbercolumn',
|
|
|
width: 110,
|
|
|
@@ -132,39 +139,23 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
}, {
|
|
|
- text: '单据状态',
|
|
|
+ text: '审核状态',
|
|
|
align: 'center',
|
|
|
dataIndex: 'pi_status',
|
|
|
- width: 90
|
|
|
- },{
|
|
|
+ width: 80
|
|
|
+ }, {
|
|
|
text: '收款状态',
|
|
|
align: 'center',
|
|
|
dataIndex: 'pi_prstatus',
|
|
|
- width: 90
|
|
|
- },{
|
|
|
- text: '业务员',
|
|
|
- dataIndex: 'sa_seller',
|
|
|
- width: 90,
|
|
|
- hidden :true
|
|
|
+ width: 80
|
|
|
+ }, {
|
|
|
+ text: '关联出货单',
|
|
|
+ dataIndex: 'pi_iocode',
|
|
|
+ width: 150
|
|
|
}, {
|
|
|
text: '备注',
|
|
|
dataIndex: 'pi_remark',
|
|
|
width: 250
|
|
|
- },{
|
|
|
- text: '未含税金额',
|
|
|
- dataIndex: 'pi_nettotal',
|
|
|
- xtype:'numbercolumn',
|
|
|
- width: 0,
|
|
|
- renderer : function(v) {
|
|
|
- var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
|
|
|
- var format = '0.' + xr.join('');
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- }
|
|
|
- },{
|
|
|
- text: '单据类型',
|
|
|
- dataIndex: 'pi_class',
|
|
|
- hidden :true
|
|
|
}],
|
|
|
relativeColumn: [{
|
|
|
text: 'id',
|
|
|
@@ -172,7 +163,7 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
hidden:true,
|
|
|
xtype: 'numbercolumn'
|
|
|
}, {
|
|
|
- text: '出货单号',
|
|
|
+ text: '退货单号',
|
|
|
dataIndex: 'pi_inoutno',
|
|
|
width: 150
|
|
|
}, {
|
|
|
@@ -183,30 +174,12 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
},{
|
|
|
text: '客户名称',
|
|
|
dataIndex: 'pi_custname',
|
|
|
- width: 250
|
|
|
+ width: 200
|
|
|
}, {
|
|
|
- text: '单据状态',
|
|
|
+ text: '审核状态',
|
|
|
align: 'center',
|
|
|
dataIndex: 'pi_status',
|
|
|
- width: 90
|
|
|
- }, {
|
|
|
- text: '明细序号',
|
|
|
- dataIndex: 'pd_detno',
|
|
|
- xtype: 'numbercolumn',
|
|
|
- width: 100
|
|
|
- }, {
|
|
|
- text: '关联销售单号',
|
|
|
- dataIndex: 'pd_ordercode',
|
|
|
- width: 150
|
|
|
- }, {
|
|
|
- text: '订单序号',
|
|
|
- dataIndex: 'pd_orderdetno',
|
|
|
- xtype:'numbercolumn',
|
|
|
- width: 100,
|
|
|
- renderer : function(v) {
|
|
|
- var format = '0'
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- }
|
|
|
+ width: 80
|
|
|
}, {
|
|
|
text: '物料编号',
|
|
|
dataIndex: 'pd_prodcode',
|
|
|
@@ -214,11 +187,11 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
},{
|
|
|
text: '品牌',
|
|
|
dataIndex: 'pr_brand',
|
|
|
- width: 150
|
|
|
+ width: 100
|
|
|
},{
|
|
|
- text: '名称',
|
|
|
+ text: '物料名称',
|
|
|
dataIndex: 'pr_detail',
|
|
|
- width: 200
|
|
|
+ width: 150
|
|
|
},{
|
|
|
text: '型号',
|
|
|
dataIndex: 'pr_orispeccode',
|
|
|
@@ -226,7 +199,7 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
},{
|
|
|
text: '规格',
|
|
|
dataIndex: 'pr_spec',
|
|
|
- width: 150
|
|
|
+ width: 200
|
|
|
},{
|
|
|
text: '退货数量',
|
|
|
dataIndex: 'pd_inqty',
|
|
|
@@ -241,12 +214,23 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
}, {
|
|
|
text: '单位',
|
|
|
dataIndex: 'pr_unit',
|
|
|
- width: 80
|
|
|
+ width: 65
|
|
|
}, {
|
|
|
- text: '出货单价(元)',
|
|
|
+ text: '单价(元)',
|
|
|
+ dataIndex: 'pd_netprice',
|
|
|
+ xtype:'numbercolumn',
|
|
|
+ width: 110,
|
|
|
+ renderer : function(v) {
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
|
+ var format = '0.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '含税单价(元)',
|
|
|
dataIndex: 'pd_sendprice',
|
|
|
xtype:'numbercolumn',
|
|
|
- width: 140,
|
|
|
+ width: 110,
|
|
|
renderer : function(v) {
|
|
|
var arr = (v + '.').split('.');
|
|
|
var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
|
@@ -254,8 +238,8 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
}, {
|
|
|
- text: '金额',
|
|
|
- dataIndex: 'pd_total',
|
|
|
+ text: '金额(元)',
|
|
|
+ dataIndex: 'pd_nettotal',
|
|
|
xtype:'numbercolumn',
|
|
|
width: 110,
|
|
|
renderer : function(v) {
|
|
|
@@ -265,24 +249,32 @@ Ext.define('saas.view.sale.saleIn.QueryPanel', {
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
}, {
|
|
|
- text: '税率',
|
|
|
- dataIndex: 'pd_taxrate',
|
|
|
+ text: '税额(元)',
|
|
|
+ dataIndex: 'pd_taxamount',
|
|
|
xtype:'numbercolumn',
|
|
|
- width: 80,
|
|
|
- renderer : function(v) {
|
|
|
- return Ext.util.Format.number(v, '0');
|
|
|
+ width: 110,
|
|
|
+ renderer : function(v,g,r) {
|
|
|
+ v = (r.data["pd_ordertotal"]||0.0) - (r.data["pd_nettotal"]||0.0);
|
|
|
+ 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: 'pd_price',
|
|
|
+ text: '价税合计(元)',
|
|
|
+ dataIndex: 'pd_ordertotal',
|
|
|
xtype:'numbercolumn',
|
|
|
- width: 140,
|
|
|
+ width: 110,
|
|
|
renderer : function(v) {
|
|
|
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 > 3 ? 3 : arr[1].length)).fill('0');
|
|
|
var format = '0.' + xr.join('');
|
|
|
return Ext.util.Format.number(v, format);
|
|
|
}
|
|
|
+ }, {
|
|
|
+ text: '关联出货单号',
|
|
|
+ dataIndex: 'pd_iocode',
|
|
|
+ width: 150
|
|
|
}, {
|
|
|
text: '备注',
|
|
|
dataIndex: 'pd_remark',
|