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
1dbc1551
Commit
1dbc1551
authored
Nov 25, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]进项发票确认修改
parent
f395d41b
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 @
1dbc1551
...
@@ -6,34 +6,38 @@
...
@@ -6,34 +6,38 @@
modelaction=
"update"
/>
modelaction=
"update"
/>
<a:link
id=
"ap_invoice_confirm_link"
model=
"acp.ACP523.ap_invoice_confirm"
modelaction=
"update"
/>
<a:link
id=
"ap_invoice_confirm_link"
model=
"acp.ACP523.ap_invoice_confirm"
modelaction=
"update"
/>
<script>
<![CDATA[
<script>
<![CDATA[
//确认按钮
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
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({
Leaf.request({
url: $('ap_invoice_confirm_link').getUrl(),
url: $('ap_invoice_confirm_link').getUrl(),
para: {
contract_id: record.get('contract_id'),
invoice_line_id: record.get('invoice_line_id')
},
scope: this,
scope: this,
success: function (res) {
success: function () {
if (res.result.record) {
Leaf.SideBar.show({
var datas = res.result.record.overdue_amount;
msg: '确认成功',
$jq("#con-overdue-week").append(formatCurrency(datas));
duration: 2000
} else {
});
$jq("#con-overdue-week").append('¥3400.00');
$(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>
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
</a:view>
</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