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
62666b28
Commit
62666b28
authored
Jan 03, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款凭证开发完善
parent
4dd5a7b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
8 deletions
+65
-8
payment_voucher_wfl_payment_je_result_queryfields.js
...nfig/payment_voucher_wfl_payment_je_result_queryfields.js
+8
-0
inv_payment_detail.lview
src/main/webapp/modules/inv/INV100/inv_payment_detail.lview
+11
-0
inv_payment_wfl.lview
src/main/webapp/modules/inv/INV100/inv_payment_wfl.lview
+17
-5
inv_payment_wfl_detail.lview
...in/webapp/modules/inv/INV100/inv_payment_wfl_detail.lview
+29
-3
No files found.
src/main/webapp/WEB-INF/server-script/layoutconfig/payment_voucher_wfl_payment_je_result_queryfields.js
0 → 100644
View file @
62666b28
var
add_datafilters
=
[
{
name
:
'payment_batch_id'
,
expression
:
"(t1.payment_batch_id=${/parameter/@payment_batch_id})"
}
];
add_datafilter
();
\ No newline at end of file
src/main/webapp/modules/inv/INV100/inv_payment_detail.lview
View file @
62666b28
...
...
@@ -12,6 +12,17 @@
<a:view>
<a:link
id=
"save_detail_link"
model=
"inv.inv100.payment_detail_save"
modelaction=
"update"
/>
<script
type=
"text/javascript"
>
<![CDATA[
$L.onReady(function(){
debugger;
if("${/parameter/@function_usage}"=='QUERY'){
if(document.getElementById('${/parameter/@layout_code}_user_button1')){
document.getElementById("${/parameter/@layout_code}_user_button1").style.display = "none";
}
if(document.getElementById('${/parameter/@layout_code}_exit')){
document.getElementById("${/parameter/@layout_code}_exit").style.display = "none";
}
}
});
//自定义保存
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
debugger;
...
...
src/main/webapp/modules/inv/INV100/inv_payment_wfl.lview
View file @
62666b28
...
...
@@ -24,8 +24,13 @@
param['payment_journal_id'] = record.get('payment_journal_id');
param['journal_header_id'] = record.get('journal_header_id');
param['function_code'] = 'INV110';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
if(record.get('wfl_status')=='NEW' || record.get('wfl_status')=='REJECT'){
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
}else {
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY';
}
param['url_title'] = '付款凭证审批明细';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}journal_detail_link',ds_id);
}
...
...
@@ -42,14 +47,21 @@
//提交审批
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl
s_journal_header
');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl
_cm_payment_journal
');
var records = $(ds_id).getSelected();
var ParaData = [];
if(records.length ==0){
$L.showMessage("提示",'请至少选择一条数据!');
return;
}
for(var i=0; i
<records.length
;i++){
if(records[i]
.data.wfl_status =
=
'APPROVING'
||
records[i]
.data.wfl_status =
=
'APPROVED'){
$L.showMessage("提示",'请选择新建或者审批拒绝的单据!');
return;;
}
records[i].set('_status','execute');
ParaData.push(records[i].data);
}
console.log(ParaData);
Leaf.showConfirm('${l:PROMPT}',
'确认提交付款凭证工作流?',
function
()
{
Leaf.request({
url:
$('payment_wfl_link_id').getUrl(),
...
...
@@ -59,7 +71,7 @@
msg:
'提交成功',
duration:
2000
});
ds_id
.query();
$(ds_id)
.query();
},
scope:
this
});
...
...
src/main/webapp/modules/inv/INV100/inv_payment_wfl_detail.lview
View file @
62666b28
...
...
@@ -10,13 +10,39 @@
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"${/parameter/@layout_code}journal_detail_link"
url=
"${/request/@context_path}/modules/inv/INV100/inv_payment_detail.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.onReady(function() {
debugger
;
// var result_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_journal_detail
');
// result_ds.setQueryParameter('payment_bat')
var result_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl_cm_payment_journal')
;
$(result_ds).setQueryParameter('payment_batch_id','${/parameter/@payment_batch_id}
');
$(result_ds).query();
});
function open_journal_detail(record_id, ds_id) {
debugger;
var record = $(ds_id).findById(record_id);
var param = {};
param['payment_journal_id'] = record.get('payment_journal_id');
param['journal_header_id'] = record.get('journal_header_id');
param['function_code'] = 'INV110';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY';
param['url_title'] = '付款凭证审批明细';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, '${/parameter/@layout_code}journal_detail_link',ds_id);
}
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if(name == 'journal_num'){
link_function = 'open_journal_detail';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + record.ds.id + '\')">
' + value + '
</a>
';
}
};
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
...
...
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