|
|
@@ -25,7 +25,15 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
name: 'pr_detail',
|
|
|
fieldLabel: '物料',
|
|
|
emptyText:'输入物料编号或名称',
|
|
|
- showDetail: true
|
|
|
+ showDetail: true,
|
|
|
+ getCondition: function(value) {
|
|
|
+ console.log('物料:'+value);
|
|
|
+ if(!value) {
|
|
|
+ return '1=1';
|
|
|
+ }else {
|
|
|
+ return ' upper(IFNULL(product.pr_detail,\' \')#IFNULL(product.pr_code,\' \')) like \'%' + value.toUpperCase() + '%\' ';
|
|
|
+ }
|
|
|
+ }
|
|
|
}, {
|
|
|
xtype: 'combobox',
|
|
|
name: 'pi_statuscode',
|
|
|
@@ -66,14 +74,21 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
name: 'pd_whname',
|
|
|
fieldLabel: '仓库',
|
|
|
emptyText:'请输入仓库编号或名称',
|
|
|
- showDetail: true
|
|
|
+ showDetail: true,
|
|
|
+ getCondition: function(value) {
|
|
|
+ if(!value) {
|
|
|
+ return '1=1';
|
|
|
+ }else {
|
|
|
+ return 'prodiodetail.pd_whname like\'%' + value + '%\'';
|
|
|
+ }
|
|
|
+ }
|
|
|
}, {
|
|
|
xtype: 'textfield',
|
|
|
name: 'pi_iocode',
|
|
|
fieldLabel: '关联验收单号',
|
|
|
emptyText: '输入单号',
|
|
|
}, {
|
|
|
- xtype: 'employeeDbfindTrigger',
|
|
|
+ xtype: 'accountDbfindTrigger',
|
|
|
name: 'creatorName',
|
|
|
fieldLabel: '录入人',
|
|
|
emptyText:'请输入人员编号或名称',
|
|
|
@@ -85,7 +100,7 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
- xtype: 'employeeDbfindTrigger',
|
|
|
+ xtype: 'accountDbfindTrigger',
|
|
|
name: 'pi_auditman',
|
|
|
fieldLabel: '审核人',
|
|
|
emptyText:'请输入人员编号或名称'
|
|
|
@@ -177,7 +192,7 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
},{
|
|
|
text: '供应商名称',
|
|
|
dataIndex: 'pi_vendname',
|
|
|
- width: 150
|
|
|
+ width: 250
|
|
|
},{
|
|
|
text: '审核状态',
|
|
|
align: 'center',
|
|
|
@@ -186,15 +201,25 @@ Ext.define('saas.view.purchase.purchaseOut.QueryPanel', {
|
|
|
},{
|
|
|
text: '序号',
|
|
|
dataIndex: 'pd_pdno',
|
|
|
- width: 80
|
|
|
+ width: 80,
|
|
|
+ renderer : function(v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
},{
|
|
|
- text: '相关单号',
|
|
|
- dataIndex: 'pd_ordercode',
|
|
|
+ text: '关联验收单号',
|
|
|
+ dataIndex: 'pi_iocode',
|
|
|
+ width: 150
|
|
|
+ },{
|
|
|
+ text: '关联验收序号号',
|
|
|
+ dataIndex: 'iodetno',
|
|
|
width: 150
|
|
|
},{
|
|
|
text: '物料编号',
|
|
|
dataIndex: 'pd_prodcode',
|
|
|
- width: 150
|
|
|
+ width: 150,
|
|
|
+ renderer : function(v) {
|
|
|
+ return Ext.util.Format.number(v, '0');
|
|
|
+ }
|
|
|
},{
|
|
|
text: '物料名称',
|
|
|
dataIndex: 'pr_detail',
|