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
a913c671
Commit
a913c671
authored
Oct 14, 2019
by
stone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/payment_feature' into develop
parents
05d9f8f2
6ec786c2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
75 deletions
+50
-75
CSH_PAYMENT_REQ_LN.SQL
src/main/database/Table/Alter/CSH_PAYMENT_REQ_LN.SQL
+2
-0
csh_payment_req_ln_query.lwm
...p/WEB-INF/classes/csh/CSH501/csh_payment_req_ln_query.lwm
+3
-27
csh_payment_req_ln_query_after_save.lwm
...lasses/csh/CSH501/csh_payment_req_ln_query_after_save.lwm
+20
-23
csh_payment_req.lview
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
+25
-20
csh_payment_req_selected.lview
.../webapp/modules/csh/CSH501/csh_payment_req_selected.lview
+0
-5
No files found.
src/main/database/Table/Alter/CSH_PAYMENT_REQ_LN.SQL
0 → 100644
View file @
a913c671
alter
table
csh_payment_req_ln
add
(
vender_bank_account_id
number
);
comment
on
column
csh_payment_req_ln
.
vender_bank_account_id
is
'厂商银行账户id'
;
\ No newline at end of file
src/main/webapp/WEB-INF/classes/csh/CSH501/csh_payment_req_ln_query.lwm
View file @
a913c671
...
...
@@ -11,9 +11,7 @@
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT v.contract_id,
v.vender_name,
v.vender_bank_account_id,
v.vender_bank_account_number,
v.vender_id,
v.other_payment2,
'NEW' approval_status,
v.invoice_uploaded_flag,
...
...
@@ -271,34 +269,12 @@
i.price,
i.factory_price,
--获得厂商的相关信息
(select bp_name
from hls_bp_master hbm
where hbm.bp_id =
(select hli.vender_id
from hls_lease_item hli
where hli.lease_item_id =
(select lease_item_id
from con_contract_lease_item c
where c.contract_id = t.contract_id))) vender_name,
(select bp_name
from hls_bp_master hbm
where hbm.bp_id =
(select hli.vender_id
from hls_lease_item hli
where hli.lease_item_id =
(select lease_item_id
from con_contract_lease_item c
where c.contract_id = t.contract_id))) vender_bank_account_id,
(select hbba.bank_account_num
from hls_bp_master_bank_account hbba
where hbba.bp_id =
(select hli.vender_id
from hls_lease_item hli
where hli.lease_item_id =
(select lease_item_id
from con_contract_lease_item c
where c.contract_id = t.contract_id)))vender_bank_account_number,
where c.contract_id = t.contract_id)) vender_id,
--首付款抵充金
(select nvl(hd.other_payment2,0)
from hls_fin_calculator_hd hd
...
...
src/main/webapp/WEB-INF/classes/csh/CSH501/csh_payment_req_ln_query_after_save.lwm
View file @
a913c671
...
...
@@ -5,8 +5,7 @@
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
xmlns:f=
"leaf.database.features"
alias=
"t1"
baseTable=
"CSH_PAYMENT_REQ_LN"
needAccessControl=
"false"
>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
...
...
@@ -14,6 +13,7 @@
from (select c.contract_number,
c.contract_name,
hbm.bp_name,
cpr.bp_bank_account_id,
(select times
from con_contract_cashflow ccc
where ccc.cashflow_id = cpr.ref_doc_line_id) times,
...
...
@@ -25,18 +25,18 @@
where hci.cf_item = ccc.cf_item
and hci.cf_type = ccc.cf_type
and ccc.cashflow_id = cpr.ref_doc_line_id) CF_DESCRIPTION,
--bp_id 存的是哪个字段
(select bp_name
from hls_bp_master hbm
where hbm.bp_id = c
.bp_id_agent_level1
) BP_ID_AGENT_N,
where hbm.bp_id = c
pr.bp_id
) BP_ID_AGENT_N,
(select hbm.bank_account_n
ame
(select hbm.bank_account_n
um
from hls_bp_master_bank_account hbm
where hbm.b
p_id = c.bp_id_agent_level1) BP_BANK_ACCOUNT_ID
,
where hbm.b
ank_account_id = cpr.bp_bank_account_id) BP_BANK_ACCOUNT_NUM
,
(select hbm.bank_account_n
um
(select hbm.bank_account_n
ame
from hls_bp_master_bank_account hbm
where hbm.b
p_id = c.bp_id_agent_level1) BP_BANK_ACCOUNT_NUM
,
where hbm.b
ank_account_id = cpr.bp_bank_account_id) BP_BANK_ACCOUNT_NAME
,
--应付我司金额
cpr.amount_agent,
...
...
@@ -51,20 +51,10 @@
and ccli.contract_id = c.contract_id)) vender_name,
(select hbm.bank_account_name
from hls_bp_master_bank_account hbm
where hbm.bp_id =
(select ccli.vender_id
from con_contract_lease_item ccli,
hls_lease_item hli
where ccli.lease_item_id = hli.lease_item_id
and ccli.contract_id = c.contract_id)) VENDER_BANK_ACCOUNT_ID,
where hbm.bank_account_id = cpr.vender_bank_account_id) VENDER_BANK_ACCOUNT_ID,
(select hbm.bank_account_num
from hls_bp_master_bank_account hbm
where hbm.bp_id =
(select ccli.vender_id
from con_contract_lease_item ccli,
hls_lease_item hli
where ccli.lease_item_id = hli.lease_item_id
and ccli.contract_id = c.contract_id)) VENDER_BANK_ACCOUNT_number,
where hbm.bank_account_id = cpr.vender_bank_account_id) VENDER_BANK_ACCOUNT_number,
cpr.amount,
--首付款抵充金额
(select nvl(hd.other_payment2, 0)
...
...
@@ -90,9 +80,16 @@
from csh_payment_req_ln cpr, con_contract c, hls_bp_master hbm
where cpr.ref_doc_category = 'CONTRACT'
and c.contract_id = cpr.ref_doc_id
and hbm.bp_id = c.bp_id_tenant
)
v
and hbm.bp_id = c.bp_id_tenant
)
v
#WHERE_CLAUSE#
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter
enforceOperations=
"query"
expression=
"v.payment_req_id =${@payment_req_id}"
/>
</bm:data-filters>
<!-- <bm:query-fields>
<bm:query-field name="payment_req_id" queryOperator="="/>
</bm:query-fields>-->
</bm:model>
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
View file @
a913c671
...
...
@@ -74,7 +74,10 @@
<a:link
id=
"${/parameter/@layout_code}csh511_csh_payment_req_hd_query"
model=
"csh.CSH511.csh_payment_req_hd"
modelaction=
"query"
/>
<script
type=
"text/javascript"
>
<![CDATA[
jQuery.noConflict();
Leaf.onReady(function(){
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
console.log($(lnds_id));
})
Ext.ux.Lightbox.register('a[ref=img]', true);
if ('${/parameter/@payment_req_id}') {
...
...
@@ -83,7 +86,7 @@
var dirty_flag = 'N';
window['${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
//如果更新数据,将付款日期先置为空
var dirty_flag = 'Y';
var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var lnds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_ln');
...
...
@@ -696,9 +699,10 @@
total_amount_vender=
plus(total_amount_vender,amount_vender);
}
if(!check_due_amount_flag){
//取消提示
/*
if(!check_due_amount_flag){
$L.showInfoMessage("提示",'应付金额应等于应付我司金额,委托付款金额和首付款抵充金额之和!');
}
}
*/
//给头表赋值
$(ds_id).getAt(0).set('amount_agent_total',total_amount_agent);
$(ds_id).getAt(0).set('amount_vender_total',total_amount_vender);
...
...
@@ -713,8 +717,8 @@
//确认保存
var
hd_record =
$(ds_id).getCurrentRecord();
var
payment_req_id =
hd_record.get('payment_req_id');
console.log(
$(ds_id));
console.log(
$(ds_line_id));
//
console.log(
$(ds_id));
//
console.log(
$(ds_line_id));
if
(payment_req_id)
{
Leaf.request({
...
...
@@ -793,17 +797,17 @@
};
window['${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
var
hdds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'csh_payment_req_hd');
if
(!record.get('contract_number'))
{
record.set('contract_number',
'${/parameter/@contract_number}');
}
if
(!record.get('first_contract_day'))
{
record.set('first_contract_day',
'${/parameter/@first_contract_day}');
}
//record.set('contract_number',
'${/parameter/@contract_number}');
record.set('contract_name',
'${/parameter/@contract_name}');
record.set('division',
'${/parameter/@division}');
record.set('division_n',
'${/parameter/@division_n}');
//
if
(!record.get('contract_number'))
{
//
record.set('contract_number',
'${/parameter/@contract_number}');
//
}
//
//
if
(!record.get('first_contract_day'))
{
//
record.set('first_contract_day',
'${/parameter/@first_contract_day}');
//
}
//
//
record.set('contract_number',
'${/parameter/@contract_number}');
//
record.set('contract_name',
'${/parameter/@contract_name}');
//
record.set('division',
'${/parameter/@division}');
//
record.set('division_n',
'${/parameter/@division_n}');
if
(
hdds_id =
=
ds.id
&&
record.isNew)
{
...
...
@@ -909,13 +913,14 @@
//获得相应的行信息
var
lnds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'csh_payment_req_ln');
$(lnds_id).setQueryUrl('${/request/@context_path}/autocrud/csh.CSH501.csh_payment_req_ln_query_after_save/query
?
payment_req_id=
' + payment_req_id
);
$(lnds_id).setQueryUrl('${/request/@context_path}/autocrud/csh.CSH501.csh_payment_req_ln_query_after_save/query
'
);
var
contract_id =
'${/parameter/@contract_id}'
;
if
(payment_req_id)
{
$(hdds_id).setQueryParameter('payment_req_id',
payment_req_id);
$(hdds_id).query();
$(lnds_id).setQueryParameter('payment_req_id',
payment_req_id);
$(lnds_id).query();
}
else
{
...
...
@@ -1115,9 +1120,9 @@
var hdds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var hd_record = $(hdds_id).getCurrentRecord();
qpara['payment_req_id'] = hd_record.get('payment_req_id');
if (hd_record.get('bp_id_vender_n')) {
/*
if (hd_record.get('bp_id_vender_n')) {
qpara['bp_id_vender_n'] = hd_record.get('bp_id_vender_n');
}
}
*/
};
...
...
src/main/webapp/modules/csh/CSH501/csh_payment_req_selected.lview
View file @
a913c671
...
...
@@ -20,10 +20,6 @@
<div/>
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.request(function(){
console.log('${/session}');
})
var cashflow_id = '';
function csh501_payment_return() {
...
...
@@ -77,7 +73,6 @@
param['contract_id']
=
record.get('contract_id');
Leaf.Masker.mask(Ext.getBody(),
'${l:HLS.SAVING}');
console.log(param);
Leaf.request({
url:
$('csh_payment_req_cashflow_id_link').getUrl(),
para:
param,
...
...
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