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

JinHanShengHang
ddlucky 5 months ago
parent a3a69a1397
commit db23486b25

@ -25,7 +25,7 @@ Ext.extend(Shipping.BillCheckOutEdit, Ext.Panel, {
this.copyfee = false; this.copyfee = false;
this.Add_formname = "formMsOpSeaeIndex"; this.Add_formname = "formMsOpSeaeIndex";
_this = this;
//parentWin = window.parent.opener; //parentWin = window.parent.opener;
//mainWin = getMainForm(parentWin); //mainWin = getMainForm(parentWin);
@ -69,67 +69,49 @@ Ext.extend(Shipping.BillCheckOutEdit, Ext.Panel, {
//委托单位 //委托单位
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', { this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel', model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' } proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListController' }
}); });
//this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'" } }); //this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'" } });
//this.storeCustCode.loadData(mainWin.GetPubStore("INFOCLIENT_ISCONTROLLER").data.items); //this.storeCustCode.loadData(mainWin.GetPubStore("INFOCLIENT_ISCONTROLLER").data.items);
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', { this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '委托单位', fieldLabel: '委托单位', //'委托单位',
store: this.storeCustCode, store: this.storeCustCode,
forceSelection: true,
matchFieldWidth: false, //下拉款自适应宽度
queryMode: 'remote', queryMode: 'remote',
matchFieldWidth: false,
minChars: 1, minChars: 1,
queryParam: 'CODENAME', queryParam: 'CODENAME',
autoSelect:true,
name: 'CUSTOMERNAME', name: 'CUSTOMERNAME',
valueField: 'CustName', valueField: 'CustName',
displayField: 'CodeAndName', displayField: 'CodeAndName',
//allowBlank: false, enableKeyEvents: true,
listeners: { listeners: {
scope: this, keyup: function (field, e) {
'select': function (combo, records, eOpts) { if (e.getKey() == e.ENTER) {
//if (records.length > 0) { _this.onRefreshClick();
// var basicForm = _this.formEdit.getForm(); }
// var ENTERP = basicForm.findField('ENTERP').getValue(); }
// if (ENTERP == '' || ENTERP == null) { //,
// basicForm.findField('ENTERP').setValue(combo.value); //'beforequery': function (e) {
// } // return FilterCombox(e,2);//在beforequery使用此方法
// 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('');
// }
// }
//} //}
, 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', { this.storeInfoClientContact = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.InfoClientContactModel', model: 'DsShipping.ux.InfoClientContactModel',

Loading…
Cancel
Save