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
d013037c
Commit
d013037c
authored
Nov 06, 2019
by
Darming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[refactor] 核销改动
parent
d632a0d2
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
141 additions
and
94 deletions
+141
-94
csh_data_confirm.lwm
...n/webapp/WEB-INF/classes/csh/CSH531N/csh_data_confirm.lwm
+9
-1
csh_transaction_receipt_confirm.lview
.../modules/csh/CSH509/csh_transaction_receipt_confirm.lview
+1
-1
csh_transaction_receipt_maintain.lview
...modules/csh/CSH510/csh_transaction_receipt_maintain.lview
+1
-1
csh_bank_transfer_processing.lview
...pp/modules/csh/CSH531N/csh_bank_transfer_processing.lview
+51
-36
csh_write_off_interface.lview
.../webapp/modules/csh/CSH531N/csh_write_off_interface.lview
+79
-55
No files found.
src/main/webapp/WEB-INF/classes/csh/CSH531N/csh_data_confirm.lwm
View file @
d013037c
...
...
@@ -16,7 +16,15 @@
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
begin
update CSH_TRANSACTION set confirmed_flag = 'WF_APPROVING' where transaction_id = ${@transaction_id};
if ${@flag} = 'SUBMIT' then
update CSH_TRANSACTION
set confirmed_flag = 'WF_APPROVING'
where transaction_id = ${@transaction_id};
elsif ${@flag} = 'RETURN' then
update CSH_TRANSACTION
set confirmed_flag = 'WF_REJECTED'
where transaction_id = ${@transaction_id};
end if;
end;
]]>
</bm:update-sql>
</bm:operation>
...
...
src/main/webapp/modules/csh/CSH509/csh_transaction_receipt_confirm.lview
View file @
d013037c
...
...
@@ -877,7 +877,7 @@
<a:column
name=
"user_desc"
prompt=
"HLS.DOCUMENT_CREATED_BY"
align=
"center"
/>
<!-- <a:column name="debt_confirmed_by_desc" prompt="CSH510.CSH_TRANSACTION.DEPT_CONFIRMER"-->
<!-- align="center"/>-->
<a:column
name=
"acc_confirmed_by_desc"
prompt=
"确认人"
<a:column
name=
"acc_confirmed_by_desc"
prompt=
"
收款
确认人"
align=
"center"
/>
</a:columns>
</a:grid>
...
...
src/main/webapp/modules/csh/CSH510/csh_transaction_receipt_maintain.lview
View file @
d013037c
...
...
@@ -761,7 +761,7 @@
</a:column>
<a:column
name=
"user_desc"
prompt=
"HLS.DOCUMENT_CREATED_BY"
align=
"center"
/>
<!-- <a:column name="debt_confirmed_by_desc" prompt="CSH510.CSH_TRANSACTION.DEPT_CONFIRMER" align="center"/>-->
<a:column
name=
"acc_confirmed_by_desc"
prompt=
"确认人"
align=
"center"
/>
<a:column
name=
"acc_confirmed_by_desc"
prompt=
"
收款
确认人"
align=
"center"
/>
</a:columns>
<a:editors>
<a:numberField
id=
"number_editor"
allowDecimals=
"true"
decimalPrecision=
"2"
editable=
"false"
/>
...
...
src/main/webapp/modules/csh/CSH531N/csh_bank_transfer_processing.lview
View file @
d013037c
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/csh/CSH531N/csh_write_off_interface.lview
View file @
d013037c
...
...
@@ -33,39 +33,26 @@
if ('${/parameter/@advanceDisplayFlag}' == 'Y') {
document.getElementById('write_off_advance').style.display = 'block';
}
if ('${/parameter/@readOnly}' == 'Y') {
$('csh_grid_add_bt').setVisible(false);
$('csh_grid_delete_bt').setVisible(false);
// $('csh_grid_deposit_add_bt').setVisible(false);
// $('csh_grid_deposit_delete_bt').setVisible(false);
// $('csh_grid_advanced_add_bt').setVisible(false);
// $('csh_grid_advanced_delete_bt').setVisible(false);
$('csh_write_off_grid').hideColumn('left_amount');
$('csh_write_off_grid').hideColumn('left_principal');
$('csh_write_off_grid').hideColumn('left_interest');
$('csh_write_off_grid').hideColumn('unreceived_amount');
if ('${/parameter/@interfaceQueryFlag}' == 'N') {
$('csh_write_off_interface_ds').setQueryUrl('${/request/@context_path}/autocrud/csh.CSH531N.csh_write_off/query?transaction_id=${/parameter/@transaction_id}');
$('csh_write_off_interface_ds').query();
}else{
if ('${/parameter/@approval_flag}' == 'Y') {
$('csh531n_write_off_btn_id').setVisible(true);
} else {
$('csh531n_write_off_submit_btn_id').setVisible(true);
}
}
} else {
if ('${/parameter/@interfaceQueryFlag}' == 'N') {
if ('${/parameter/@approval_flag}' == 'Y') {
$('csh531n_write_off_btn_id').setVisible(true);
$('csh531n_write_off_return_btn_id').setVisible(true);
}
} else {
// $('csh511_save_all_id').setVisible(true);
$('csh531n_write_off_submit_btn_id').setVisible(true);
}
}
$('csh511_save_all_id').setVisible(true);
}
}
...
...
@@ -363,11 +350,70 @@
}
}
function
csh531n_write_off_return()
{
$('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord();
$('csh531n_write_off_return_btn_id').disable();
Leaf.Masker.mask(Ext.getBody());
Leaf.request({
url:
$('csh531n_submit_link_id').getUrl(),
para:
{
transaction_id:
record.get('transaction_id'),
flag:
'RETURN'
},
success:
function
()
{
Leaf.SideBar.show({
msg:
'操作成功',
duration:
2000
});
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_return_btn_id').enable();
$('${/parameter/@winid}').close();
},
error:
function
()
{
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_return_btn_id').enable();
},
failure:
function
()
{
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_return_btn_id').enable();
},
scope:
this
});
}
function
csh531_submitsuccess(ds)
{
ds.query();
$('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord();
Leaf.Masker.mask(Ext.getBody());
Leaf.request({
url:
$('csh531n_submit_link_id').getUrl(),
para:
{
transaction_id:
record.get('transaction_id'),
flag:
'SUBMIT'
},
success:
function
()
{
//
Leaf.SideBar.show({
//
msg:
'操作成功',
//
duration:
2000
//
});
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_submit_btn_id').enable();
$('${/parameter/@winid}').close();
},
error:
function
()
{
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_submit_btn_id').enable();
},
failure:
function
()
{
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_submit_btn_id').enable();
},
scope:
this
});
//
ds.query();
}
function
csh531_submitfailed(ds)
{
}
function
compareDate(start,
end)
{
...
...
@@ -431,10 +477,11 @@
function csh511_save_all() {
if (checkAmount()) {
$('csh_write_off_interface_ds').submit();
$('csh_transaction_deposit_ds').submit();
$('csh_transaction_advanced_ds').submit();
$('csh_write_off_interface_ds').submit();
}
$('csh531n_write_off_submit_btn_id').enable();
}
function checkAmount(type) {
...
...
@@ -526,17 +573,16 @@
var interfaceRs = $('csh_write_off_interface_ds').getAll();
var depositRs = $('csh_transaction_deposit_ds').getAll();
var advancedRs = $('csh_transaction_advanced_ds').getAll();
debugger;
var allRs = [...interfaceRs, ...depositRs, ...advancedRs];
var sum = 0;
for (var i = 0; i
< allRs.length
;
i++)
{
if
(allRs[i].dirty)
{
Leaf.showInfoMessage("提示",
"存在未保存数据,请先保存再进行提交操作!");
return;
}
//
if
(allRs[i].dirty)
{
//
Leaf.showInfoMessage("提示",
"存在未保存数据,请先保存再进行提交操作!");
//
return;
//
}
sum
+=
allRs[i].get('write_off_amount')
||
0;
}
...
...
@@ -546,33 +592,8 @@
}
Leaf.showConfirm('提示',
'确认提交复核吗',
function
()
{
var
record =
$('csh_transaction_receipt_write_off_detail_ds').getCurrentRecord();
$('csh531n_write_off_submit_btn_id').disable();
Leaf.Masker.mask(Ext.getBody());
Leaf.request({
url:
$('csh531n_submit_link_id').getUrl(),
para:
{
transaction_id:
record.get('transaction_id')
},
success:
function
()
{
Leaf.SideBar.show({
msg:
'操作成功',
duration:
2000
});
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_submit_btn_id').enable();
$('${/parameter/@winid}').close();
},
error:
function
()
{
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_submit_btn_id').enable();
},
failure:
function
()
{
Leaf.Masker.unmask(Ext.getBody());
$('csh531n_write_off_submit_btn_id').enable();
},
scope:
this
});
csh511_save_all();
});
}
...
...
@@ -724,10 +745,13 @@
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:gridButton
id=
"csh511_save_all_id"
click=
"csh511_save_all"
style=
"margin-left:20px;display:none"
text=
"暂存"
/>
<a:screenTitle/>
<!-- <a:gridButton id="csh511_save_all_id" click="csh511_save_all" style="margin-left:20px;display:none"-->
<!-- text="暂存"/>-->
<a:gridButton
id=
"csh531n_write_off_btn_id"
click=
"csh531n_write_off"
style=
"margin-left:10px;display:none"
text=
"确认核销"
/>
<a:gridButton
id=
"csh531n_write_off_return_btn_id"
click=
"csh531n_write_off_return"
style=
"margin-left:10px;display:none"
text=
"核销退回"
/>
<a:gridButton
id=
"csh531n_write_off_submit_btn_id"
click=
"csh531n_write_off_submit"
style=
"margin-left:10px;display:none"
text=
"提交复核"
/>
</a:screenTopToolbar>
...
...
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