Commit 26cd29c3 authored by 21471731's avatar 21471731

租赁物导入调整19

parent 5865ce8f
......@@ -84,6 +84,11 @@
if (list_ds) {
$(list_ds).query();
}
}else if(param['function_code']=='PRJ501INC'){
if (list_ds) {
$(list_ds).query();
}
Leaf.showMessage('提示信息', '租赁物信息发生变化,请重新进行报价');
}
else{
if (list_ds) {
......
......@@ -64,6 +64,13 @@
<script type="text/javascript"><![CDATA[
// alert('${/parameter/@division}')
//add by zhuxianfei
Leaf.onReady(function() {
if(division!='30' && division!='50'){
var gridId= 'PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id';
$(gridId).hideColumn('machine_number_n');
}
});
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url;
......@@ -1075,10 +1082,6 @@
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if(lease_item_ds_id == ds.id &&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
//隐藏超链接
if(division!='30' && division!='50'){
$(gridId).hideColumn('machine_number_n');
}
if(division=='70'){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
......
......@@ -189,8 +189,6 @@
},
success: function() {
$(ds_id).query();
Leaf.showMessage('提示信息', '租赁物信息发生变化,请重新进行报价');
},
error: function() {
},
......
......@@ -1599,6 +1599,7 @@
var total_price=records.get('total_price');
var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value');
debugger;
var q_value='${/model/residual_value/record/@residual_value}';
if(total_price!=lease_item_amount &&total_price!=null){
Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
......@@ -1659,6 +1660,7 @@
var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value');
var q_value='${/model/residual_value/record/@residual_value}';
debugger;
if(total_price!=lease_item_amount &&total_price!=null){
Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return;
......
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