123456789101112131415161718192021222324252627282930313233343536 |
- function initbodys(){
- $(form('custid')).change(function(){
- var val = this.value,txt='';
- if(val!=''){
- txt = this.options[this.selectedIndex].text;
- }
- form('custname').value=txt;
- form('htid').value = '';
- });
-
- c.onselectdata['custname']=function(){
- form('htid').value = '';
- }
-
- $(form('htid')).change(function(){
- var val = this.value,txt='';
- salechange(val);
- });
-
- var defe = js.request('def_htid');
- if(defe && defe<0)salechange(defe);
- }
- function salechange(v){
- if(v==''){
- form('custid').value='';
- return;
- }
- js.ajax(geturlact('ractchange'),{ractid:v},function(a){
- form('custid').value=a.custid;
- form('custname').value=a.custname;
- form('money').value=a.money;
- form('type').value=a.type;
- form('htnum').value=a.num;
- form('dt').value=a.signdt;
- },'get,json');
- }
|