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
0e7a62cb
Commit
0e7a62cb
authored
May 23, 2024
by
邓乾隆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财报及征信授权书校验添加
parent
43c18994
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
13 deletions
+84
-13
con505_contract_content.lwm
...p/WEB-INF/classes/cont/CON505/con505_contract_content.lwm
+7
-0
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+77
-13
No files found.
src/main/webapp/WEB-INF/classes/cont/CON505/con505_contract_content.lwm
View file @
0e7a62cb
...
@@ -26,5 +26,12 @@
...
@@ -26,5 +26,12 @@
end;
end;
]]>
</bm:update-sql>
]]>
</bm:update-sql>
</bm:operation>
</bm:operation>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select con_contract_workflow_pkg.get_rsc_upload_flag(p_contract_id =>
${@contract_id}) as is_rsc_upload_flag
from dual
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:operations>
</bm:model>
</bm:model>
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
0e7a62cb
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
<a:link
id=
"prj2000_pur_order_deteail_link_id"
url=
"${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"
></a:link>
<a:link
id=
"prj2000_pur_order_deteail_link_id"
url=
"${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"
></a:link>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer_tool.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer_tool.js"
/>
<a:link
id=
"con_get_rsc_upload"
model=
"cont.CON505.con505_contract_content"
modelaction=
"query"
/>
<script
type=
"text/javascript"
>
<![CDATA[
<script
type=
"text/javascript"
>
<![CDATA[
function lock_current_window() {
function lock_current_window() {
...
@@ -89,11 +90,33 @@
...
@@ -89,11 +90,33 @@
});
});
};
};
//查看财报
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function () {
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var record = $(bp_ds_id).getAt(0)
new Leaf.Window({
id: 'rsc303_fin_statement_query',
url: $('rsc303_fin_statement_link').getUrl(),
title: '查看财报',
fullScreen: true,
params: {
bp_id: record.get('bp_id_tenant')
}
});
}
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
debugger;
if('${/parameter/@cond_para2}'=='N' || '${/parameter/@cond_para2}'==''){
if('${/parameter/@cond_para2}'=='N' || '${/parameter/@cond_para2}'==''){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds_id == ds.id && ds_id) {
if (ds_id == ds.id && ds_id) {
//自然人不展示财报按钮
if((record.get('bp_class') == 'NP' &&
document.getElementById('${/parameter/@layout_code}_user_button9')
|| record.get('contract_status') == 'INCEPT')){
document.getElementById('${/parameter/@layout_code}_user_button9').style.display = 'none';
}
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
// record.set('submit_date',null);
// record.set('submit_date',null);
// record.set('guarantee_letter_f','N');
// record.set('guarantee_letter_f','N');
...
@@ -657,26 +680,67 @@
...
@@ -657,26 +680,67 @@
//
Leaf.showMessage('${l:PROMPT}',
'北京卡家业务需要保证金入账后才能起租');
//
Leaf.showMessage('${l:PROMPT}',
'北京卡家业务需要保证金入账后才能起租');
//
return;
//
return;
//
}
//
}
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
//为法人且不为95时,财报是否上传提示
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var
is_rsc_flag =
''
;
if
(record.get('division')
!=
'95'
&&
record.get('bp_class')
==
'ORG'){
Leaf.request({
Leaf.request({
url:
$('con_
approval_link_i
d').getUrl(),
url:
$('con_
get_rsc_uploa
d').getUrl(),
para:
{
para:
{
contract_id:
contract_id
contract_id:
contract_id
},
},
scope:
this,
scope:
this,
success:
function
()
{
sync:
true,
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
success:
function
(res)
{
$('${/parameter/@winid}').close();
is_rsc_flag =
res.result.record.is_rsc_upload_flag;
},
failure:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
}
});
});
});
}
if
(
is_rsc_flag =
=
'N'){
Leaf.showConfirm('${HLS.PROMPT}',
'当前承租人未上传财报,是否提交工作流?',
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('con_approval_link_id').getUrl(),
para:
{
contract_id:
contract_id
},
scope:
this,
success:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}else{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('con_approval_link_id').getUrl(),
para:
{
contract_id:
contract_id
},
scope:
this,
sync:
true,
success:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
},
failure:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
});
}
}
}
...
...
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