信呼OA版本v2.3.8
This commit is contained in:
36
webmain/flow/input/inputjs/mode_custfina.js
Normal file
36
webmain/flow/input/inputjs/mode_custfina.js
Normal 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');
|
||||
}
|
||||
Reference in New Issue
Block a user