Commit ecbdbd5f authored by 38823's avatar 38823

对销项发票反冲流程添加附件上传功能

parent 897cf286
...@@ -160,25 +160,27 @@ ...@@ -160,25 +160,27 @@
function zjwfl5110_uploadAttach() { function zjwfl5110_uploadAttach() {
debugger; debugger;
var rcpt_record_id = '${/parameter/@record_id}'; var rcpt_record_id = '${/parameter/@record_id}';
//var rcpt_record_id = '${/parameter/@instance_id}'; var workflowCode ='${/model/node_info_record/record/@workflow_code}';
// new Leaf.Window({ if(workflowCode == 'ACR_INVOICE_REVERSE_WFL'){
// id: 'zj_wfl_approve_history_downloadfile_win', var instance_id = '${/parameter/@instance_id}'
// //url: $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_APPROVE_RECORD&header_id=' + rcpt_record_id, var url = $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_INSTANCE_ACR_REVERSE&header_id=' + instance_id;
// // url: $('zj_wfl_approve_upload_link_id').getUrl() + '?document_table=ZJ_WFL_APPROVE_RECORD&document_id=' + rcpt_record_id + '&showflag=N', var win = new Leaf.Window({
// url: $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_APPROVE_RECORD&header_id=' +rcpt_record_id, url: url,
// title: '附件查看', title: '附件上传',
// width: 850, id: 'zj_wfl_approve_history_downloadfile_win',
// height: 400 width: 850,
// }); height: 400
var url= $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_INSTANCE_NODE_RECIPIENT&header_id=' +rcpt_record_id; });
var win = new Leaf.Window({ }else {
url: url, var url = $('zj_wfl_approve_upload_link_id').getUrl() + '?table_name=ZJ_WFL_INSTANCE_NODE_RECIPIENT&header_id=' + rcpt_record_id;
title: '附件上传', var win = new Leaf.Window({
id: 'zj_wfl_approve_history_downloadfile_win', url: url,
width: 850, title: '附件上传',
height: 400 id: 'zj_wfl_approve_history_downloadfile_win',
}); width: 850,
height: 400
});
}
win.on('close', function() { win.on('close', function() {
zjwfl5110_approvePage_noMask(); zjwfl5110_approvePage_noMask();
}); });
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
function open_downloadfile_win_acr_reverse(instance_id) { function open_downloadfile_win_acr_reverse(instance_id) {
new Leaf.Window({ new Leaf.Window({
id: 'zj_wfl_approve_history_downloadfile_win', id: 'zj_wfl_approve_history_downloadfile_win',
url: $('prj_attach_downloadfile_link').getUrl() + '?table_name=ZJ_WFL_INSTANCE_ACR_REVERSE&header_id=' + instance_id, url: $('prj_attach_uploadfile_link').getUrl() + '?table_name=ZJ_WFL_INSTANCE_ACR_REVERSE&header_id=' + instance_id,
title: '附件查看', title: '附件查看',
width: 850, width: 850,
height: 400 height: 400
...@@ -101,11 +101,7 @@ ...@@ -101,11 +101,7 @@
} }
if(record.get('workflow_code') == 'ACR_INVOICE_REVERSE_WFL'){ if(record.get('workflow_code') == 'ACR_INVOICE_REVERSE_WFL'){
if (record.get('attach_count') > 0) {
return '<a style="color:red" href="javascript:open_downloadfile_win_acr_reverse(' + record.get('instance_id') + ')">附件查看</a>'; return '<a style="color:red" href="javascript:open_downloadfile_win_acr_reverse(' + record.get('instance_id') + ')">附件查看</a>';
}else{
return '<a href="javascript:open_downloadfile_win_acr_reverse(' + record.get('instance_id') + ')">附件查看</a>';
}
} }
if (record.get('attach_count') > 0) { if (record.get('attach_count') > 0) {
......
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