信呼OA版本v2.3.8

This commit is contained in:
雨中磐石
2022-08-14 16:47:40 +08:00
parent 4640677d27
commit e3fcd913e3
1405 changed files with 133635 additions and 73 deletions

View File

@@ -0,0 +1,36 @@
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;
if(form('type'))form('type').value=a.type;
form('htnum').value=a.num;
form('dt').value=a.signdt;
},'get,json');
}