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
ce331a75
Commit
ce331a75
authored
Dec 29, 2023
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销项发票工作流反冲附件上传下载优化
parent
ad552c2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
17 deletions
+34
-17
zj_wfl_approve_history.lview
src/main/webapp/modules/zjwfl/zj_wfl_approve_history.lview
+34
-17
No files found.
src/main/webapp/modules/zjwfl/zj_wfl_approve_history.lview
View file @
ce331a75
...
@@ -53,6 +53,16 @@
...
@@ -53,6 +53,16 @@
});
});
}
}
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,
title: '附件查看',
width: 850,
height: 400
});
}
function open_uploadfile_win(rcpt_record_id) {
function open_uploadfile_win(rcpt_record_id) {
new Leaf.Window({
new Leaf.Window({
id: 'zj_wfl_approve_history_downloadfile_win',
id: 'zj_wfl_approve_history_downloadfile_win',
...
@@ -72,31 +82,38 @@
...
@@ -72,31 +82,38 @@
height: 400
height: 400
});
});
}
}
function attachement_renderer(value, record, name) {
if (record.get('rcpt_record_id')) {
if(record.get('workflow_code') == 'DCFL_CSH_PAYMENT_REQ' &&
record.get('instance_status') == '10' &&
record.get('node_sequence_num') == '10'){
if(record.get('role_code') == '0014' && record.get('attach_count') == 0){
function attachement_renderer(value, record, name) {
return '<a href="javascript:open_uploadonlyfile_win(' + record.get('rcpt_record_id') + ')">
附件查看
</a>
';
if (record.get('rcpt_record_id')) {
}else if(record.get('role_code') == '0014'
&&
record.get('attach_count') >0){
if(record.get('workflow_code') == 'DCFL_CSH_PAYMENT_REQ' &&
return '
<a
style=
"color:red"
href=
"javascript:open_uploadonlyfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
record.get('instance_status') == '10' &&
}else if((record.get('role_code') == 'HAND'||record.get('role_code') =='0017')
&&
record.get('attach_count') == 0) {
record.get('node_sequence_num') == '10'){
return '
<a
href=
"javascript:open_uploadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}else if((record.get('role_code') == 'HAND'||record.get('role_code') =='0017')
&&
record.get('attach_count') > 0){
return '
<a
style=
"color:red"
href=
"javascript:open_uploadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}
if(record.get('role_code') == '0014' && record.get('attach_count') == 0){
return '<a href="javascript:open_uploadonlyfile_win(' + record.get('rcpt_record_id') + ')">
附件查看
</a>
';
}else if(record.get('role_code') == '0014'
&&
record.get('attach_count') >0){
return '
<a
style=
"color:red"
href=
"javascript:open_uploadonlyfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}else if((record.get('role_code') == 'HAND'||record.get('role_code') =='0017')
&&
record.get('attach_count') == 0) {
return '
<a
href=
"javascript:open_uploadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}else if((record.get('role_code') == 'HAND'||record.get('role_code') =='0017')
&&
record.get('attach_count') > 0){
return '
<a
style=
"color:red"
href=
"javascript:open_uploadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}
}
}
if(record.get('workflow_code') == 'ACR_INVOICE_REVERSE_WFL'){
if (record.get('attach_count') > 0) {
if (record.get('attach_count') > 0) {
return '
<a
style=
"color:red"
href=
"javascript:open_downloadfile_win(' + record.get('rcpt_record_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>
';
}
}
return '
<a
href=
"javascript:open_downloadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}
}
if (record.get('attach_count') > 0) {
return '
<a
style=
"color:red"
href=
"javascript:open_downloadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}
return '
<a
href=
"javascript:open_downloadfile_win(' + record.get('rcpt_record_id') + ')"
>
附件查看
</a>
';
}
}
}
function prj_atm_renderer(value, record, name) {
function prj_atm_renderer(value, record, name) {
if (record.get('rcpt_record_id')) {
if (record.get('rcpt_record_id')) {
...
...
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