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
6f72ca51
Commit
6f72ca51
authored
Jan 29, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产管理费报表调整
parent
b6cce2f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
23 deletions
+94
-23
con_asset_fee_detail_asset_grid_queryfields.js
...youtconfig/con_asset_fee_detail_asset_grid_queryfields.js
+8
-0
con_asset_fee.lview
src/main/webapp/modules/cont/CON1370/con_asset_fee.lview
+15
-23
con_asset_fee_detail.lview
...in/webapp/modules/cont/CON1370/con_asset_fee_detail.lview
+71
-0
No files found.
src/main/webapp/WEB-INF/server-script/layoutconfig/con_asset_fee_detail_asset_grid_queryfields.js
0 → 100644
View file @
6f72ca51
var
add_datafilters
=
[
{
name
:
'contract_id'
,
expression
:
"(t1.contract_id=${/parameter/@contract_id})"
}
];
add_datafilter
();
\ No newline at end of file
src/main/webapp/modules/cont/CON1370/con_asset_fee.lview
View file @
6f72ca51
...
...
@@ -11,7 +11,6 @@
</a:init-procedure>
<a:view>
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"csh_downloadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<a:link
id=
"${/parameter/@layout_code}asset_fee_detail_link"
url=
"${/request/@context_path}/modules/cont/CON1370/con_asset_fee_detail.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
...
...
@@ -21,36 +20,29 @@
var param = {};
param['function_code'] = 'CON1370N';
param['function_usage'] = 'QUERY';
param['contract_id'] = record.get('contract_id')
param['contract_id'] = record.get('contract_id')
;
param['maintain_type'] = 'QUERY';
param['url_title'] = '明细';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}asset_fee_detail_link',ds_id);
}
//上传附件
function upload_csh_file(id,record_id) {
function open_asset_detail(record_id, ds_id) {
debugger;
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if(record_id == "undefined"){
var url = $('csh_downloadFile_id').getUrl();
}else {
url = $('csh_downloadFile_id').getUrl() + '?table_name=CSH_PAYMENT_REQ_ASSET_HD&header_id=' + record_id;
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'csh_attachment_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function () {
//record.ds.query();
});
var record = $(ds_id).findById(record_id);
var param = {};
param['function_code'] = 'CON1370N';
param['function_usage'] = 'QUERY';
param['contract_id'] = record.get('contract_id');
param['winid'] = 'open_asset_check_id';
param['maintain_type'] = 'QUERY';
param['url_title'] = '明细';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}asset_fee_detail_link',ds_id);
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
debugger;
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if(name == 'have_payment'){
...
...
@@ -58,8 +50,8 @@
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.ds.id + '\')">
' + value + '
</a>
';
}
if(name == 'asset_file'){
link_function = '
upload_csh_file
';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.
get('payment_req_id')
+ '\')"
>
' + '附件' + '
</a>
';
link_function = '
open_asset_detail
';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.
ds.id
+ '\')"
>
' + '附件' + '
</a>
';
}
};
]]>
</script>
...
...
src/main/webapp/modules/cont/CON1370/con_asset_fee_detail.lview
View file @
6f72ca51
...
...
@@ -10,7 +10,78 @@
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link
id=
"csh_downloadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.onReady(function() {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_write_off');
$(ds_id).setQueryParameter('contract_id','${/parameter/@contract_id}');
$(ds_id).query();
if('${/parameter/@winid}' == 'open_asset_check_id'){
var gridId= 'CON_ASSET_FEE_DETAIL_ASSET_GRID_csh_write_off_layout_grid_id';
$(gridId).hideColumn('write_off_type_desc');
$(gridId).hideColumn('write_off_date');
$(gridId).hideColumn('write_off_amount');
$(gridId).hideColumn('payment_date');
$(gridId).hideColumn('payment_amount');
$(gridId).hideColumn('creade_by');
}
});
//附件
function upload_csh_file(id,record_id) {
debugger;
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if(record_id == "undefined"){
var url = $('csh_downloadFile_id').getUrl();
}else {
url = $('csh_downloadFile_id').getUrl() + '?table_name=CSH_PAYMENT_REQ_ASSET_HD&header_id=' + record_id;
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'csh_attachment_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function () {
//record.ds.query();
});
}
//发票附件
function upload_invoice_file(id,record_id) {
debugger;
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
if(record_id == "undefined"){
var url = $('csh_downloadFile_id').getUrl();
}else {
url = $('csh_downloadFile_id').getUrl() + '?table_name=HL_REQ_PAYMENT_ACP&header_id=' + record_id;
}
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'invoice_attachment_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function () {
//record.ds.query();
});
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if(name == 'attachment'){
link_function = 'upload_csh_file';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.get('payment_req_id') + '\')">
' + '附件'+ '
</a>
';
}
if(name == 'invoice_link'){
link_function = 'upload_invoice_file';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.get('payment_req_id') + '\')"
>
' + '发票附件' + '
</a>
';
}
};
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
...
...
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