diff --git a/DSWeb/Areas/Account/Viewsjs/Chfee_recvapplication/ChRecvapplicationBLEdit.js b/DSWeb/Areas/Account/Viewsjs/Chfee_recvapplication/ChRecvapplicationBLEdit.js index 908b0759..eeaf2dfb 100644 --- a/DSWeb/Areas/Account/Viewsjs/Chfee_recvapplication/ChRecvapplicationBLEdit.js +++ b/DSWeb/Areas/Account/Viewsjs/Chfee_recvapplication/ChRecvapplicationBLEdit.js @@ -2834,6 +2834,8 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, { }, this); this.editRecord.commit(); + + this.onClearClick(); } else { Ext.MessageBox.alert('请求出现错误,请重试', response.responseText); } @@ -3206,6 +3208,14 @@ Ext.extend(Shipping.MsChRecvapplicationBLEdit, Ext.Panel, { this.storeBodyAddList.load({ params: { start: 0, limit: this.PageSize, sort: '', condition: sql} }); }, + //用于在费用列表生成收费申请后 清空下方的业务明细和费用明细 + onClearClick: function (button, event) { + if (this.bsnosql) { + this.storeBodyAddList.removeAll(); + this.storeAddFeeList.removeAll(); + } + }, + onDsQuery: function (button, event) { var sql = this.sqlcontext; this.PageSize = this.Pagenum.getValue(); diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/Comm/DsComm.js b/DSWeb/Areas/MvcShipping/Viewsjs/Comm/DsComm.js index 4de26df9..f727d512 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/Comm/DsComm.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/Comm/DsComm.js @@ -252,6 +252,32 @@ function FilterCombox(e, limit = 1) { } } +//写在combox的按键事件中 形如: +// specialkey: function (combo, e) { +// //将回车13转义成tab9 +// GetComboxFirstValueOnTableClick(combo, e); +// } +//用于在点击回车或table键,跳转至下一输入框时,在combox当中取目前第一条选项作为值 +function GetComboxFirstValueOnTableClick(combo, e) { + //var combo = e.combo; + if (e.getKey() == e.ENTER) { + e.keyCode = 9; + } + if (e.keyCode == 9) { + //将combo + //alert(field.value); + if (combo.value == null) { + _name = combo.store.data.keys[0]; + combo.setValue(_name); + } else { + if (combo.value.replace(/\s*/g, "") == "") { + _name = combo.store.data.keys[0]; + combo.setValue(_name); + } + } + } +} + //获取目前表最大的Serialno function DsGetCurSerialNo(store,serialno) { var result = serialno;