信呼OA版本v2.3.8
This commit is contained in:
19
webmain/flow/input/inputjs/mode_customer.js
Normal file
19
webmain/flow/input/inputjs/mode_customer.js
Normal file
@@ -0,0 +1,19 @@
|
||||
//初始函数
|
||||
function initbodys(){
|
||||
|
||||
c.onselectdata['sheng'] = function(d){
|
||||
if(!d.shengname)return;
|
||||
if(form('sheng'))form('sheng').value = d.shengname;
|
||||
if(form('shi'))form('shi').value = d.cityname;
|
||||
}
|
||||
}
|
||||
|
||||
//地图选择
|
||||
c.onselectmap=function(sna,res){
|
||||
var info = res.addressinfo;
|
||||
if(form('sheng'))form('sheng').value = info.province;
|
||||
if(form('shi'))form('shi').value = info.city;
|
||||
var dz = info.town;
|
||||
dz+=(info.streetNumber)?info.streetNumber:info.street;
|
||||
form(sna).value=dz;
|
||||
}
|
||||
Reference in New Issue
Block a user