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
21e37b0a
Commit
21e37b0a
authored
May 10, 2021
by
李贺贺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租金计算器保存与计算按钮校验修改
parent
e4b91448
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
74 deletions
+74
-74
hls_fin_calculator_n.lview
...ain/webapp/modules/hls/HLS500N/hls_fin_calculator_n.lview
+2
-2
hls_fin_calculator_update_n.lview
...app/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
+72
-72
No files found.
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_n.lview
View file @
21e37b0a
...
...
@@ -94,11 +94,11 @@
// Leaf.Masker.unmask(body);
// return false;
// }
if(H1>
51){
/*
if(H1>
51){
Leaf.showMessage('${l:PROMPT}', '还款期数应小于51期');
Leaf.Masker.unmask(body);
return false;
}
}
*/
var all_records = $('temp_hd_attribute_ds').getAll();
var headRecord = $('hls_fin_cal_save_hd_ds').getAt(0);
...
...
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
View file @
21e37b0a
...
...
@@ -1524,11 +1524,11 @@
//
Leaf.showMessage('${l:PROMPT}',
'系统暂时不支持还款期数小于2期的租金计划');
//
return
false;
//
}
if
(H1
>
51) {
Leaf.showMessage('${l:PROMPT}', '还款期数应小于51期');
unlock_calc_current_window();
return false;
}
//
if
(H1
>
51) {
//
Leaf.showMessage('${l:PROMPT}', '还款期数应小于51期');
//
unlock_calc_current_window();
//
return false;
//
}
if (H54
< 0
)
{
Leaf.showMessage('${l:PROMPT}',
'利率最低值不能低于4.75');
unlock_calc_current_window();
...
...
@@ -1553,7 +1553,7 @@
unlock_calc_current_window();
return;
}
//if
('${/parameter/@document_category}'
==
'PROJECT'
&&
'${/parameter/@business_type}'
==
'LEASE
')
{
if
('${/parameter/@document_category}'
==
'PROJECT'||'${/parameter/@document_category}'
==
'CONTRACT
')
{
Leaf.request({
url:
$('prj_check_prj_record_link_id').getUrl(),
para:
{
...
...
@@ -1719,47 +1719,47 @@
});
//
}
else
{
//
var
temp_head_records =
$('hls_fin_calculator_hd_ds').getAll();
//
for
(var
i =
0;
i
<
temp_head_records.length;
i++)
{
//
if
(!$('temp_hd_attribute_ds').find('column_code',
temp_head_records[i].get('column_code')))
{
//
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
//
}
//
var
H16;
//
if
(temp_head_records[i].get('column_code')
==
'H16')
{
//
H16 =
temp_head_records[i].get('column_value');
//
}
//
if
(temp_head_records[i].get('column_code')
==
'H109')
{
//
temp_head_records[i].set('column_value',
H16);
//
//
temp_head_records[i].set('column_value_c',0);
//
}
//
}
//
var
all_records =
$('temp_hd_attribute_ds').getAll();
//
var
headRecord =
$('hls_fin_cal_save_hd_ds').getAt(0);
//
headRecord.isNew =
false;
//
headRecord.dirty =
true;
//
create_record_column(all_records,
headRecord);
//
//
function
hls_fin_cal_save_hd_submitsuccess_new(ds,
res)
{
//
if
(typeof
(nextStep)
==
'function')
{
//
nextStep(source_procedure);
//
}
else
{
//
function
on_ln_formula_load(ds)
{
//
Leaf.SideBar.enable =
true;
//
success_sidebar_show();
//
unlock_calc_current_window();
//
$('ln_formula_ds').un('load',
on_ln_formula_load);
//
}
//
//
$('ln_formula_ds').on('load',
on_ln_formula_load);
//
$('ln_formula_ds').query();
//
}
//
}
//
//
$('hls_fin_cal_save_hd_ds').on('submitsuccess',
hls_fin_cal_save_hd_submitsuccess_new);
//
Leaf.SideBar.enable =
false;
//
$('hls_fin_cal_save_hd_ds').submit();
//
}
}
else
{
var
temp_head_records =
$('hls_fin_calculator_hd_ds').getAll();
for
(var
i =
0;
i
<
temp_head_records.length;
i++)
{
if
(!$('temp_hd_attribute_ds').find('column_code',
temp_head_records[i].get('column_code')))
{
$('temp_hd_attribute_ds').create(temp_head_records[i].data);
}
var
H16;
if
(temp_head_records[i].get('column_code')
==
'H16')
{
H16 =
temp_head_records[i].get('column_value');
}
if
(temp_head_records[i].get('column_code')
==
'H109')
{
temp_head_records[i].set('column_value',
H16);
//
temp_head_records[i].set('column_value_c',0);
}
}
var
all_records =
$('temp_hd_attribute_ds').getAll();
var
headRecord =
$('hls_fin_cal_save_hd_ds').getAt(0);
headRecord.isNew =
false;
headRecord.dirty =
true;
create_record_column(all_records,
headRecord);
function
hls_fin_cal_save_hd_submitsuccess_new(ds,
res)
{
if
(typeof
(nextStep)
==
'function')
{
nextStep(source_procedure);
}
else
{
function
on_ln_formula_load(ds)
{
Leaf.SideBar.enable =
true;
success_sidebar_show();
unlock_calc_current_window();
$('ln_formula_ds').un('load',
on_ln_formula_load);
}
$('ln_formula_ds').on('load',
on_ln_formula_load);
$('ln_formula_ds').query();
}
}
$('hls_fin_cal_save_hd_ds').on('submitsuccess',
hls_fin_cal_save_hd_submitsuccess_new);
Leaf.SideBar.enable =
false;
$('hls_fin_cal_save_hd_ds').submit();
}
}
...
...
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