Commit 4c34b3be authored by 111's avatar 111

营业内勤新增签约合同批量审批

parent c58b71fd
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query defaultWhereClause="t1.user_id=${/session/@user_id}" fetchAll="true" model="csh.CSH509.query_roles_info" rootPath="position_code"/>
<a:model-query model="zjwfl.ZJWFL5110.zj_wfl_to_do_list_count" rootpath="to_do_list_count"/> <a:model-query model="zjwfl.ZJWFL5110.zj_wfl_to_do_list_count" rootpath="to_do_list_count"/>
<a:model-query model="zjwfl.ZJWFL5110.zj_wfl_to_do_title_count" rootPath="to_do_list_count_rp"/> <a:model-query model="zjwfl.ZJWFL5110.zj_wfl_to_do_title_count" rootPath="to_do_list_count_rp"/>
<a:model-query model="zjwfl.ZJWFL5110.zj_wfl_to_do_list_others_count" rootpath="other_list_count"/> <a:model-query model="zjwfl.ZJWFL5110.zj_wfl_to_do_list_others_count" rootpath="other_list_count"/>
...@@ -136,12 +137,16 @@ ...@@ -136,12 +137,16 @@
} }
} }
function batch_approved() { function batch_approved() {
var position_code = '${/model/position_code/record/@position_code}';
var records = $('zjwfl5110_toDoDs').getAll(); var records = $('zjwfl5110_toDoDs').getAll();
var comment_test = $('comment_text_cmp').value; var comment_test = $('comment_text_cmp').value;
var params = []; var params = [];
for(var i=0;i<records.length;i++){ for(var i=0;i<records.length;i++){
if (records[i].get('checked') =='Y'&&records[i].get('record_id')){ if (records[i].get('checked') =='Y'&&records[i].get('record_id')){
if(position_code == '007' && records[i].get('workflow_code')!='CONTRACT_SIGN_WFL'){
Leaf.showMessage('提示','仅合同签约工作流可批量审批!');
return ;
}
params.push({ params.push({
'node_id':records[i].get('node_id'), 'node_id':records[i].get('node_id'),
'comment_text_out':comment_test, 'comment_text_out':comment_test,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment