|
|
@@ -10,9 +10,9 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
queryFormItems: [{
|
|
|
xtype: 'textfield',
|
|
|
name: 'pi_inoutno',
|
|
|
- emptyText:'请输入单号或供应商',
|
|
|
- getCondition: function(value) {
|
|
|
- return ' (pi_inoutno like\'%' + value + '%\' or pi_vendcode like \'%'+value+'%\' or pi_vendname like \'%'+value+'%\') ';
|
|
|
+ emptyText: '请输入单号或供应商',
|
|
|
+ getCondition: function (value) {
|
|
|
+ return ' (pi_inoutno like\'%' + value + '%\' or pi_vendcode like \'%' + value + '%\' or pi_vendname like \'%' + value + '%\') ';
|
|
|
}
|
|
|
}, {
|
|
|
xtype: 'condatefield',
|
|
|
@@ -24,12 +24,12 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
xtype: 'productDbfindTrigger',
|
|
|
name: 'pr_detail',
|
|
|
fieldLabel: '物料',
|
|
|
- emptyText:'输入物料编号或名称',
|
|
|
+ emptyText: '输入物料编号或名称',
|
|
|
showDetail: true,
|
|
|
- getCondition: function(value) {
|
|
|
- if(!value) {
|
|
|
+ getCondition: function (value) {
|
|
|
+ if (!value) {
|
|
|
return '1=1';
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return ' pr_detail = \'' + value + '\' ';
|
|
|
}
|
|
|
}
|
|
|
@@ -38,8 +38,8 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
name: 'pi_statuscode',
|
|
|
fieldLabel: '单据状态',
|
|
|
allowBlank: true,
|
|
|
- emptyText :'全部',
|
|
|
- editable:false,
|
|
|
+ emptyText: '全部',
|
|
|
+ editable: false,
|
|
|
queryMode: 'local',
|
|
|
displayField: 'pi_status',
|
|
|
valueField: 'pi_statuscode',
|
|
|
@@ -51,10 +51,10 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
["UNAUDITED", "未审核"]
|
|
|
]
|
|
|
}),
|
|
|
- getCondition: function(value) {
|
|
|
- if(value == 'ALL') {
|
|
|
+ getCondition: function (value) {
|
|
|
+ if (value == 'ALL') {
|
|
|
return '1=1';
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return 'pi_statuscode=\'' + value + '\'';
|
|
|
}
|
|
|
}
|
|
|
@@ -62,7 +62,7 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
xtype: 'multicombo',
|
|
|
name: 'pi_prstatuscode',
|
|
|
fieldLabel: '付款状态',
|
|
|
- emptyText :'全部',
|
|
|
+ emptyText: '全部',
|
|
|
datas: [
|
|
|
["PAYNONE", "未付款"],
|
|
|
["PAYPART", "部分付款"],
|
|
|
@@ -72,12 +72,12 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
xtype: 'warehouseDbfindTrigger',
|
|
|
name: 'pd_whname',
|
|
|
fieldLabel: '仓库',
|
|
|
- emptyText:'请输入仓库编号或名称',
|
|
|
+ emptyText: '请输入仓库编号或名称',
|
|
|
showDetail: true,
|
|
|
- getCondition: function(value) {
|
|
|
- if(!value) {
|
|
|
+ getCondition: function (value) {
|
|
|
+ if (!value) {
|
|
|
return '1=1';
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return 'prodiodetail.pd_whname like\'%' + value + '%\'';
|
|
|
}
|
|
|
}
|
|
|
@@ -90,11 +90,11 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
xtype: 'accountDbfindTrigger',
|
|
|
name: 'creatorName',
|
|
|
fieldLabel: '录入人',
|
|
|
- emptyText:'请输入账户名称或姓名',
|
|
|
- getCondition: function(value) {
|
|
|
- if(!value) {
|
|
|
+ emptyText: '请输入账户名称或姓名',
|
|
|
+ getCondition: function (value) {
|
|
|
+ if (!value) {
|
|
|
return '1=1';
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
return 'prodinout.creatorName like\'%' + value + '%\'';
|
|
|
}
|
|
|
}
|
|
|
@@ -102,52 +102,54 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
xtype: 'accountDbfindTrigger',
|
|
|
name: 'pi_auditman',
|
|
|
fieldLabel: '审核人',
|
|
|
- emptyText:'请输入账户名称或姓名'
|
|
|
+ emptyText: '请输入账户名称或姓名'
|
|
|
}],
|
|
|
queryGridConfig: {
|
|
|
- idField:'id',
|
|
|
- codeField:'pi_inoutno',
|
|
|
- addTitle:'采购验退单',
|
|
|
- addXtype:'purchase-purchaseout-formpanel',
|
|
|
- defaultCondition:' pi_class = \'采购验退单\'',
|
|
|
- baseVastUrl:'/api/purchase/prodinout/',
|
|
|
- caller:'PurchaseOut',
|
|
|
+ idField: 'id',
|
|
|
+ codeField: 'pi_inoutno',
|
|
|
+ addTitle: '采购验退单',
|
|
|
+ addXtype: 'purchase-purchaseout-formpanel',
|
|
|
+ defaultCondition: ' pi_class = \'采购验退单\'',
|
|
|
+ baseVastUrl: '/api/purchase/prodinout/',
|
|
|
+ caller: 'PurchaseOut',
|
|
|
baseColumn: [{
|
|
|
text: 'id',
|
|
|
dataIndex: 'id',
|
|
|
- hidden:true,
|
|
|
+ hidden: true,
|
|
|
xtype: 'numbercolumn'
|
|
|
}, {
|
|
|
text: '验退单号',
|
|
|
dataIndex: 'pi_inoutno',
|
|
|
width: 150
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '单据类型',
|
|
|
dataIndex: 'pi_class',
|
|
|
width: 0
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '单据日期',
|
|
|
dataIndex: 'pi_date',
|
|
|
- xtype:'datecolumn',
|
|
|
+ xtype: 'datecolumn',
|
|
|
width: 110
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '供应商名称',
|
|
|
dataIndex: 'pi_vendname',
|
|
|
width: 150
|
|
|
}, {
|
|
|
text: '金额(元)',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
dataIndex: 'pi_nettotal',
|
|
|
width: 110
|
|
|
}, {
|
|
|
text: '价税合计(元)',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
dataIndex: 'pi_total',
|
|
|
width: 110
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '审核状态',
|
|
|
align: 'center',
|
|
|
dataIndex: 'pi_status',
|
|
|
width: 80
|
|
|
- },{
|
|
|
+ }, {
|
|
|
text: '付款状态',
|
|
|
align: 'center',
|
|
|
dataIndex: 'pi_prstatus',
|
|
|
@@ -161,133 +163,132 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
dataIndex: 'pi_remark',
|
|
|
width: 250
|
|
|
}],
|
|
|
- relativeColumn: [
|
|
|
- {
|
|
|
- text: 'id',
|
|
|
- dataIndex: 'pu_id',
|
|
|
- xtype: 'numbercolumn',
|
|
|
- hidden:true
|
|
|
- }, {
|
|
|
- text: '验退单号',
|
|
|
- dataIndex: 'pi_inoutno',
|
|
|
- width: 150
|
|
|
- }, {
|
|
|
- text: '单据日期',
|
|
|
- dataIndex: 'pi_date',
|
|
|
- xtype:'datecolumn',
|
|
|
- width: 110
|
|
|
- },{
|
|
|
- text: '供应商名称',
|
|
|
- dataIndex: 'pi_vendname',
|
|
|
- width: 200
|
|
|
- },{
|
|
|
- text: '审核状态',
|
|
|
- align: 'center',
|
|
|
- dataIndex: 'pi_status',
|
|
|
- width: 80
|
|
|
- }, {
|
|
|
- text: '物料编号',
|
|
|
- dataIndex: 'pd_prodcode',
|
|
|
- width: 150
|
|
|
- }, {
|
|
|
- text: '品牌',
|
|
|
- dataIndex: 'pr_brand',
|
|
|
- width: 100
|
|
|
- },{
|
|
|
- text: '物料名称',
|
|
|
- dataIndex: 'pr_detail',
|
|
|
- width: 150
|
|
|
- },{
|
|
|
- text: '型号',
|
|
|
- dataIndex: 'pr_orispeccode',
|
|
|
- width: 200
|
|
|
- },{
|
|
|
- text: '规格',
|
|
|
- dataIndex: 'pr_spec',
|
|
|
- width: 200
|
|
|
- },{
|
|
|
- text: '仓库',
|
|
|
- dataIndex: 'pd_whname',
|
|
|
- width: 80
|
|
|
- },{
|
|
|
- text: '验退数量',
|
|
|
- dataIndex: 'pd_outqty',
|
|
|
- xtype:'numbercolumn',
|
|
|
- width: 110,
|
|
|
- renderer : function(v) {
|
|
|
- var arr = (v + '.').split('.');
|
|
|
- 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: 'pr_unit',
|
|
|
- width: 65
|
|
|
- }, {
|
|
|
- text: '单价(元)',
|
|
|
- dataIndex: 'pd_netprice',
|
|
|
- xtype:'numbercolumn',
|
|
|
- renderer : function(v) {
|
|
|
- var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
|
- var format = '0,000.' + xr.join('');
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
- width: 110
|
|
|
- }, {
|
|
|
- text: '含税单价(元)',
|
|
|
- dataIndex: 'pd_netprice',
|
|
|
- xtype:'numbercolumn',
|
|
|
- renderer : function(v) {
|
|
|
- var arr = (v + '.').split('.');
|
|
|
- var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
|
- var format = '0,000.' + xr.join('');
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
- width: 110
|
|
|
- }, {
|
|
|
- text: '金额(元)',
|
|
|
- dataIndex: 'pd_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,000.' + xr.join('');
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
- }, {
|
|
|
- text: '税额(元)',
|
|
|
- dataIndex: 'pd_taxamount',
|
|
|
- xtype:'numbercolumn',
|
|
|
- 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_ordertotal',
|
|
|
- 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,000.' + xr.join('');
|
|
|
- return Ext.util.Format.number(v, format);
|
|
|
- },
|
|
|
- }, {
|
|
|
- text: '关联验收单号',
|
|
|
- dataIndex: 'pi_iocode',
|
|
|
- width: 150
|
|
|
- }, {
|
|
|
- text: '备注',
|
|
|
- dataIndex: 'iodetno',
|
|
|
- width: 250
|
|
|
- }]
|
|
|
+ relativeColumn: [{
|
|
|
+ text: 'id',
|
|
|
+ dataIndex: 'pu_id',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ hidden: true
|
|
|
+ }, {
|
|
|
+ text: '验退单号',
|
|
|
+ dataIndex: 'pi_inoutno',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '单据日期',
|
|
|
+ dataIndex: 'pi_date',
|
|
|
+ xtype: 'datecolumn',
|
|
|
+ width: 110
|
|
|
+ }, {
|
|
|
+ text: '供应商名称',
|
|
|
+ dataIndex: 'pi_vendname',
|
|
|
+ width: 200
|
|
|
+ }, {
|
|
|
+ text: '审核状态',
|
|
|
+ align: 'center',
|
|
|
+ dataIndex: 'pi_status',
|
|
|
+ width: 80
|
|
|
+ }, {
|
|
|
+ text: '物料编号',
|
|
|
+ dataIndex: 'pd_prodcode',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '品牌',
|
|
|
+ dataIndex: 'pr_brand',
|
|
|
+ width: 100
|
|
|
+ }, {
|
|
|
+ text: '物料名称',
|
|
|
+ dataIndex: 'pr_detail',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '型号',
|
|
|
+ dataIndex: 'pr_orispeccode',
|
|
|
+ width: 200
|
|
|
+ }, {
|
|
|
+ text: '规格',
|
|
|
+ dataIndex: 'pr_spec',
|
|
|
+ width: 200
|
|
|
+ }, {
|
|
|
+ text: '仓库',
|
|
|
+ dataIndex: 'pd_whname',
|
|
|
+ width: 80
|
|
|
+ }, {
|
|
|
+ text: '验退数量',
|
|
|
+ dataIndex: 'pd_outqty',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ width: 110,
|
|
|
+ renderer: function (v) {
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ 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: 'pr_unit',
|
|
|
+ width: 65
|
|
|
+ }, {
|
|
|
+ text: '单价(元)',
|
|
|
+ dataIndex: 'pd_netprice',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer: function (v) {
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
|
+ var format = '0,000.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ },
|
|
|
+ width: 110
|
|
|
+ }, {
|
|
|
+ text: '含税单价(元)',
|
|
|
+ dataIndex: 'pd_netprice',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ renderer: function (v) {
|
|
|
+ var arr = (v + '.').split('.');
|
|
|
+ var xr = (new Array(arr[1].length > 4 ? 4 : arr[1].length)).fill('0');
|
|
|
+ var format = '0,000.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ },
|
|
|
+ width: 110
|
|
|
+ }, {
|
|
|
+ text: '金额(元)',
|
|
|
+ dataIndex: 'pd_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,000.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ },
|
|
|
+ }, {
|
|
|
+ text: '税额(元)',
|
|
|
+ dataIndex: 'pd_taxamount',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ 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_ordertotal',
|
|
|
+ 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,000.' + xr.join('');
|
|
|
+ return Ext.util.Format.number(v, format);
|
|
|
+ },
|
|
|
+ }, {
|
|
|
+ text: '关联验收单号',
|
|
|
+ dataIndex: 'pi_iocode',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '备注',
|
|
|
+ dataIndex: 'iodetno',
|
|
|
+ width: 250
|
|
|
+ }]
|
|
|
}
|
|
|
});
|