Commit ecbdbd5f authored by 38823's avatar 38823

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

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