智星融

hcm


分别输入姓和名,自动拼接成姓名脚本

姓:其中first_name是名的key "change": "=function(_scope,_model){debugger;SCOPE.data.name=_model+(SCOPE.data.first_name?SCOPE.data.first_name:'');dataService.callHcmOpenApi('dynamic.script.for.wf.api',{plugin:'to_pinyin',param:{'word':_model}}).then(function(result){SCOPE.data.phonetic_al=result;SCOPE.data.py_code_name=result+(SCOPE.data.py_code?SCOPE.data.py_code:'');});}"

名:其中family_name是名的key "change": "=function(_scope,_model){debugger;SCOPE.data.name=(SCOPE.data.family_name?SCOPE.data.family_name:'')+_model;dataService.callHcmOpenApi('dynamic.script.for.wf.api',{plugin:'to_pinyin',param:{'word':_model}}).then(function(result){SCOPE.data.py_code=result;SCOPE.data.py_code_name=(SCOPE.data.phonetic_al?SCOPE.data.phonetic_al:'')+result;});}"

页面列表

ITEM_HTML