edi代码设置的往来单位下拉框,改成本地过滤

DS7_XiangRongDa
dengyu 3 months ago
parent 33cc475483
commit 454ee93240

@ -135,22 +135,41 @@ Ext.extend(Shipping.MsCodeCtnEdiIndex, Ext.Panel, {
this.storeCustomerNameRef = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListRm' }
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
});
this.storeCustomerNameRef.load({ params: { condition: ""} });
this.storeCustomerNameRef.load({ params: { condition: "" } });
this.comboxCustomerNameRef = Ext.create('DsExt.ux.RefTableCombox', {
store: this.storeCustomerNameRef,
forceSelection: true,
matchFieldWidth: false, //下拉款自适应宽度
queryMode: 'remote',
minChars: 1,
queryParam: 'CODENAME',
autoSelect: true,
name: 'CUSTOMERNAME',
queryMode: 'local',
name: 'CustomerName',
valueField: 'CustName',
displayField: 'CodeAndName'
displayField: 'CodeAndName',
listeners: {
beforequery: function (e) {
return FilterCombox(e);
}
}
});
//this.storeCustomerNameRef = Ext.create('DsExt.ux.RefTableStore', {
// model: 'DsShipping.ux.CustomRefModel',
// proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListRm' }
//});
//this.storeCustomerNameRef.load({ params: { condition: ""} });
//this.comboxCustomerNameRef = Ext.create('DsExt.ux.RefTableCombox', {
// store: this.storeCustomerNameRef,
// forceSelection: true,
// matchFieldWidth: false, //下拉款自适应宽度
// queryMode: 'remote',
// minChars: 1,
// queryParam: 'CODENAME',
// autoSelect: true,
// name: 'CUSTOMERNAME',
// valueField: 'CustName',
// displayField: 'CodeAndName'
//});
this.gridListCustCellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
});

Loading…
Cancel
Save