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
ecbdbd5f
Commit
ecbdbd5f
authored
Jan 08, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对销项发票反冲流程添加附件上传功能
parent
897cf286
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 @
ecbdbd5f
...
@@ -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();
});
});
...
...
src/main/webapp/modules/zjwfl/zj_wfl_approve_history.lview
View file @
ecbdbd5f
...
@@ -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_
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: '附件查看',
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) {
...
...
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