Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
1b7a9d21
Commit
1b7a9d21
authored
Jan 08, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对销项发票反冲流程添加附件上传功能
parent
e25ccd8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
zj_wfl_approve.lview
src/main/webapp/modules/zjwfl/ZJWFL5110/zj_wfl_approve.lview
+21
-19
zj_wfl_approve_history.lview
src/main/webapp/modules/zjwfl/zj_wfl_approve_history.lview
+1
-5
No files found.
src/main/webapp/modules/zjwfl/ZJWFL5110/zj_wfl_approve.lview
View file @
1b7a9d21
...
...
@@ -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();
});
...
...
src/main/webapp/modules/zjwfl/zj_wfl_approve_history.lview
View file @
1b7a9d21
...
...
@@ -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_
down
loadfile_link').getUrl() + '?table_name=ZJ_WFL_INSTANCE_ACR_REVERSE&header_id=' + instance_id,
url: $('prj_attach_
up
loadfile_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) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment