试试
function(){ var a=_g().getWidgetByName('p_type').getValue();
if(a=='1'){return this.toFixed(0);}
else if(a=='2'){return this.toFixed(1);}
else if(a=='3'){return this.toFixed(2);}}
=====================
function(){
var a=FR.remoteEvaluate("$p_type");
var b="";
if(a=='1'){b= this.toFixed(0);}
else if(a=='2'){b= this.toFixed(1);}
else if(a=='3'){b= this.toFixed(2);}
return b+"万";
}