签单条编辑页下方搜索 委托单位下拉框 优化内容

JinHanShengHang
ddlucky 5 months ago
parent a3a69a1397
commit db23486b25

@ -25,7 +25,7 @@ Ext.extend(Shipping.BillCheckOutEdit, Ext.Panel, {
this.copyfee = false;
this.Add_formname = "formMsOpSeaeIndex";
_this = this;
//parentWin = window.parent.opener;
//mainWin = getMainForm(parentWin);
@ -69,67 +69,49 @@ Ext.extend(Shipping.BillCheckOutEdit, Ext.Panel, {
//委托单位
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListController' }
});
//this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'" } });
//this.storeCustCode.loadData(mainWin.GetPubStore("INFOCLIENT_ISCONTROLLER").data.items);
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '委托单位',
fieldLabel: '委托单位', //'委托单位',
store: this.storeCustCode,
forceSelection: true,
matchFieldWidth: false, //下拉款自适应宽度
queryMode: 'remote',
matchFieldWidth: false,
minChars: 1,
queryParam: 'CODENAME',
autoSelect:true,
name: 'CUSTOMERNAME',
valueField: 'CustName',
displayField: 'CodeAndName',
//allowBlank: false,
enableKeyEvents: true,
listeners: {
scope: this,
'select': function (combo, records, eOpts) {
//if (records.length > 0) {
// var basicForm = _this.formEdit.getForm();
// var ENTERP = basicForm.findField('ENTERP').getValue();
// if (ENTERP == '' || ENTERP == null) {
// basicForm.findField('ENTERP').setValue(combo.value);
// }
// this.formHead.getForm().findField('SALECORPID').setValue(records[0].data.SALECORPID);
// this.formHead.getForm().findField('SALE').setValue(records[0].data.SALE);
// var s = " LINKID in (select gid from [info_client] where SHORTNAME='" + combo.value + "')";
// this.storeInfoClientContact.load({
// params: { condition: s },
// callback: function (r, options, success) {
// if (success) {
// if (this.storeInfoClientContact.getCount() > 0) {
// var member = this.storeInfoClientContact.getAt(0);
// this.comboxInfoClientContact.setValue(member.data.SHOWNAME);
// } else {
// this.comboxInfoClientContact.setValue('');
// }
// }
// },
// scope: this
// });
// if (records[0].data.BSSOURCE != '') {
// this.formEdit.getForm().findField('BSSOURCE').setValue(records[0].data.BSSOURCE);
// var recs = DsStoreQueryBy(this.storeSource, 'SourceName', records[0].data.BSSOURCE);
// if (recs.getCount() > 0) {
// var data = recs.getAt(0).data;
// var s = "SOURCEID='" + data.SourceID + "'";
// this.storeSourceDetail.load({ params: { condition: s } });
// } else {
// var BSSOURCEDETAIL = this.formHead.getForm().findField('BSSOURCEDETAIL');
// BSSOURCEDETAIL.setValue('');
// }
// }
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
//,
//'beforequery': function (e) {
// return FilterCombox(e,2);//在beforequery使用此方法
//}
, specialkey: function (field, e) {
//if (e.getKey() == e.ENTER) {
// e.keyCode = 9;
//}
if (e.keyCode == 9) {
if (field.value == null) {
_rec = _this.storeCustCode.getAt(0);
_this.formSearch.getForm().findField('CUSTOMERNAME').setValue(_rec.data.CustName);
}
}
}
}
});
//委托单位_联系人
this.storeInfoClientContact = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.InfoClientContactModel',

Loading…
Cancel
Save