Commit 56a87036 authored by stone's avatar stone

Merge branch 'develop' of https://hel.hand-china.com/hlcm/leaf-hlcm into develop

parents eda945ec 9edb91d9
...@@ -4,20 +4,33 @@ ...@@ -4,20 +4,33 @@
<a:view> <a:view>
<a:link id="hn9040_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" <a:link id="hn9040_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/> modelaction="update"/>
<a:link id="ap_invoice_import_detail_link"
url="${/request/@context_path}/modules/acp/ACP522/ap_invoice_import_detail.lview"/>
<script><![CDATA[ <script><![CDATA[
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
};
function ap_invoice_import_detail(){
var param = {};
param['function_code'] = 'ACP522I';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
param['url_title'] = '进项发票导入';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'ap_invoice_import_detail_link');
} }
//超链接渲染 //超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
//
var link_function = ''; var link_function = '';
var invoice_line_id = record.get('invoice_line_id'); var invoice_line_id = record.get('invoice_line_id');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record; window['${/parameter/@bp_seq}${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') { if (name == 'attachment') {
return '<a href="javascript:attachment_window_open(\'' + invoice_line_id + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">' + '上传' + '</a>'; return '<a href="javascript:attachment_window_open(\'' + invoice_line_id + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">' + '上传' + '</a>';
} }
if(name == 'contract_number'){
return '<a href="javascript:ap_invoice_import_detail(\'' + invoice_line_id + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">' + value + '</a>';
}
}; };
]]></script> ]]></script>
......
...@@ -4,9 +4,25 @@ ...@@ -4,9 +4,25 @@
<a:view> <a:view>
<a:link id="hn9040_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" <a:link id="hn9040_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/> 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 () {
Leaf.request({
url: $('ap_invoice_confirm_link').getUrl(),
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');
}
} }
})
};
//超链接渲染 //超链接渲染
window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record, bp_seq) {
......
...@@ -109,7 +109,6 @@ ...@@ -109,7 +109,6 @@
winNoMask(); winNoMask();
return; return;
} }
debugger
var datas = ds.getJsonData(true); var datas = ds.getJsonData(true);
for (var i = 0; i < datas.length; i++) { for (var i = 0; i < datas.length; i++) {
datas[i].final_bill_flag = final_bill_flag; datas[i].final_bill_flag = final_bill_flag;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
Leaf.request({ Leaf.request({
url: $("bmLink_acr_invoice_claim_confirm").getUrl(), url: $("bmLink_acr_invoice_claim_confirm").getUrl(),
para: { para: {
invoice_hd_id:invoice_hd_id, invoice_hd_id:invoice_hd_id
}, },
success:function(){ success:function(){
Leaf.SideBar.show({ Leaf.SideBar.show({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment