Commit 00d94005 authored by 21471731's avatar 21471731

租赁物导入调整17

parent be8157f9
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select prj_project_lease_import_pkg.get_prj_lease_count(${/parameter/@project_id}) as lease_number from dual
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -189,6 +189,8 @@ ...@@ -189,6 +189,8 @@
}, },
success: function() { success: function() {
$(ds_id).query(); $(ds_id).query();
Leaf.showMessage('提示信息', '租赁物信息发生变化,请重新进行报价');
}, },
error: function() { error: function() {
}, },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_description" rootPath="description"/> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_description" rootPath="description"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value" rootPath="residual_value"/> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value" rootPath="residual_value"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value_from" rootPath="prj_residual_value"/> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value_from" rootPath="prj_residual_value"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_lease_number" rootPath="prj_lease_count"/>
<s:server-script import="contract_print_path.js"><![CDATA[ <s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
...@@ -231,6 +231,17 @@ ...@@ -231,6 +231,17 @@
}); });
} else { } else {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
var set_number=current_red.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}';
if(lease_count!=0 && set_number!=lease_count){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
var cal_hd_price_list = record.get('cal_hd_price_list'); var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list'); var price_list = record.get('price_list');
if (cal_hd_price_list == price_list) { if (cal_hd_price_list == price_list) {
...@@ -1583,6 +1594,8 @@ ...@@ -1583,6 +1594,8 @@
if(division=='30'||division=='50'){ if(division=='30'||division=='50'){
var record=$(lease_ds_id).getCurrentRecord(); var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord(); var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}';
var total_price=records.get('total_price'); var total_price=records.get('total_price');
var lease_item_amount=record.get('lease_item_amount'); var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value'); var residual_value=record.get('residual_value');
...@@ -1593,6 +1606,9 @@ ...@@ -1593,6 +1606,9 @@
}else if(q_value!=residual_value){ }else if(q_value!=residual_value){
Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!'); Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!');
return; return;
}else if(lease_count!=0 && set_number!=lease_count){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
} }
} }
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
...@@ -1637,6 +1653,8 @@ ...@@ -1637,6 +1653,8 @@
if(division=='30'||division=='50'){ if(division=='30'||division=='50'){
var record=$(lease_ds_id).getCurrentRecord(); var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord(); var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}';
var total_price=records.get('total_price'); var total_price=records.get('total_price');
var lease_item_amount=record.get('lease_item_amount'); var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value'); var residual_value=record.get('residual_value');
...@@ -1647,6 +1665,9 @@ ...@@ -1647,6 +1665,9 @@
}else if(q_value!=residual_value){ }else if(q_value!=residual_value){
Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!'); Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!');
return; return;
}else if(lease_count!=0 && set_number!=lease_count){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
} }
} }
window['${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
......
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