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
e7500d20
Commit
e7500d20
authored
Nov 25, 2019
by
stone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://hel.hand-china.com/hlcm/leaf-hlcm
into develop
parents
d89e0c7b
1dbc1551
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
ap_invoice_confirm.lview
src/main/webapp/modules/acp/ACP523/ap_invoice_confirm.lview
+23
-19
No files found.
src/main/webapp/modules/acp/ACP523/ap_invoice_confirm.lview
View file @
e7500d20
...
...
@@ -6,34 +6,38 @@
modelaction=
"update"
/>
<a:link
id=
"ap_invoice_confirm_link"
model=
"acp.ACP523.ap_invoice_confirm"
modelaction=
"update"
/>
<script>
<![CDATA[
//确认按钮
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'acp_invoice_ln');
var records = $(ds_id).getSelected();
if (records.length == 0) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.SELECT_RECORD}');
return;
}
var record = records[0];
var imported_by = record.get('imported_by');
if(imported_by == '${/session/@user_id}'){
Leaf.showMessage('${l:PROMPT}', '导入人与确认人相同!');
return false;
}
Leaf.request({
url: $('ap_invoice_confirm_link').getUrl(),
para: {
contract_id: record.get('contract_id'),
invoice_line_id: record.get('invoice_line_id')
},
scope: this,
success: function (res) {
if (res.result.record) {
var datas = res.result.record.overdue_amount;
$jq("#con-overdue-week").append(formatCurrency(datas));
} else {
$jq("#con-overdue-week").append('¥3400.00');
}
success: function () {
Leaf.SideBar.show({
msg: '确认成功',
duration: 2000
});
$(ds_id).query();
}
})
};
//超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
//
var link_function = '';
var invoice_line_id = record.get('invoice_line_id');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
return '<a href="javascript:attachment_window_open(\'' + invoice_line_id + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">
' + '上传' + '
</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