You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

93 lines
2.7 KiB

<script type="text/javascript">
var _wf_bdl_code = $.getURLParam('_bdl_code');//bdl_code
var _personList_wf = [];
$(function(){
//$('.workflow-area').parent().css('display','none');
if(_wf_bdl_code){
var dataParam = {
_SRVNAME : 'service.bdl.run',
_SRVMETHOD: 'getParticipantByBDLCodeSimple',
_DATA: $.json2str({
su:$.getSessionUser()
,bdl_code: _wf_bdl_code
})
};
$.wait_open();
//初始化数据
$.cuajax({
url: 'wdk?action=wdk.pub&method=call_service&ajaxparam=' + new Date().getTime(),
method: 'post',
timeout: WDK_Timeout,
data: dataParam,
success: function(result) {
//返回值字符串转json
var isOk = false;
var jres = $.str2json(result);
if (jres && jres.result) { //操作成功
_personList_wf = jres.result;
if(_personList_wf.length>0){
$.combobox({
id:'wf_users'
,data:_personList_wf
,idField:'person_uuid'
,textField:'person_name'
,required:true
});
isOk = true;
$.combobox_setValue({id:'wf_users',value:_personList_wf[0].person_uuid});
}
}
if(isOk == false){
$('.workflow-area').parent().css('display','none');
}
$.wait_close();
},
error: function(result) {
$.wait_close();
alert('网络错误!result=' + result);
}
});
}
});
$.extend({
getTodoSubmit:function(wf_committype,commment){
var selectedUserId = '';
try{
selectedUserId = $.combobox_getValue({id:'wf_users'});
}catch(e){
}
var selecedDeptId = '';
if(selectedUserId){
for(var i=0;i<_personList_wf.length;i++){
var row = _personList_wf[i];
if(row.person_uuid == selectedUserId){
selecedDeptId = row.depart_uuid;
break;
}
}
}
var TODO_SUBMIT = {
opertype:wf_committype
,opercomment:commment
};
if(selectedUserId && selecedDeptId && 'submit' == wf_committype){
//操作类型是提交才需要配置办理人
TODO_SUBMIT.targetactors = selectedUserId+',user,'+selecedDeptId
}
return TODO_SUBMIT;
}
});
</script>
<style type="text/css" >
</style>
<div class="workflow-area">
<div class="row workflow-user">
<div class="formgroup col-12" style="margin-bottom:6px;">
<label>下一环节处理人</label>
<div>
<input type="text" name="wf_users" id="wf_users" ></input>
</div>
</div>
</div>
</div>