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
7fa9fc14
Commit
7fa9fc14
authored
Nov 12, 2019
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 修改罚息减免bug
parent
817dd0ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
INITIALIZE_SYS_FUNCTION_DYNAMIC.sql
src/main/database/Init/INITIALIZE_SYS_FUNCTION_DYNAMIC.sql
+1
-1
contract_penalty_reduction_create.lview
...ules/cont/CON1020/contract_penalty_reduction_create.lview
+20
-3
contract_penalty_reduction_maintain.lview
...es/cont/CON1020/contract_penalty_reduction_maintain.lview
+8
-0
No files found.
src/main/database/Init/INITIALIZE_SYS_FUNCTION_DYNAMIC.sql
View file @
7fa9fc14
...
...
@@ -142,6 +142,6 @@ INSERT INTO sys_function_dynamic
creation_date
,
created_by
,
last_update_date
,
last_updated_by
)
last_updated_by
)
VALUES
(
'HLS36105'
,
'商业伙伴授信维护'
,
1
,
SYSDATE
,
-
1
,
SYSDATE
,
-
1
);
\ No newline at end of file
src/main/webapp/modules/cont/CON1020/contract_penalty_reduction_create.lview
View file @
7fa9fc14
...
...
@@ -67,6 +67,13 @@
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id1 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_case_record');
var reduce_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_penalty_reduce');
if($(reduce_ds_id).data.length
<1
){
$L.showInfoMessage('提示','请维护罚息减免信息!')
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
}
if(!$(ds_id1).validate()){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
...
...
@@ -124,6 +131,7 @@
function
getXml()
{
var
req_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract_case_record');
var
reduce_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract_penalty_reduce');
var
req_record =
$(req_ds_id).getAt(0);
var
record_id =
req_record.data.record_id
if
(!record_id)
{
...
...
@@ -132,10 +140,19 @@
return;
}
//检验必须字段
var
records=
$(reduce_ds_id).data;
for(var
i=
0;i<records.length;i++){
//如果没有进行测算,
if(
records[i].get('calc_flag')!='Y'){
Leaf.showMessage('${l:HLS.PROMPT}',
'所有数据测算后才能提交!');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
}
}
/*小额不用审批直接通过*/
//将小额审批改为工作工作流审批
//所有的单据都默认为小额审批
//判断所有的单据是否已经进行测算过
Leaf.request({
url:
$('con_contract_penalty_reduction_link').getUrl(),
para:
{
...
...
src/main/webapp/modules/cont/CON1020/contract_penalty_reduction_maintain.lview
View file @
7fa9fc14
...
...
@@ -20,6 +20,8 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id1 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_penalty_reduce');
var record1 = $(ds_id1).getCurrentRecord();
Leaf.request({
url: '${/request/@context_path}/autocrud/cont.CON1020.con_contract_penalty_info_save/execute',
para: {
...
...
@@ -129,6 +131,12 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id1 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_penalty_reduce');
var record1 = $(ds_id1).getCurrentRecord();
if( record1.get('reduce_amount_total')<0){
$L.showInfoMessage('提示','罚息减免总金额不能小于0');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return;
}
Leaf.request({
url: '${/request/@context_path}/autocrud/cont.CON1020.con_contract_penalty_info_save/execute',
para: {
...
...
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