Commit ad9f8210 authored by gzj34291's avatar gzj34291

卡家机号校验

parent a563c93e
...@@ -772,16 +772,18 @@ ...@@ -772,16 +772,18 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var division = lease_item_record.get('division'); var division = lease_item_record.get('division');
var machine_number_num = 0; var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){ var secondary_lease = record.get('secondary_lease') ;
if(!Leaf.isEmpty(secondary_lease) && secondary_lease!='YES') {
if (division == '92' && !Leaf.isEmpty(machine_number)) {
Leaf.request({ Leaf.request({
url: $('check_machine_number_id').getUrl(), url: $('check_machine_number_id').getUrl(),
para: { para: {
machine_number: machine_number, machine_number: machine_number,
project_id : project_id project_id: project_id
}, },
scope: this, scope: this,
success: function (res) { success: function (res) {
machine_number_num= res.result.record.v_count; machine_number_num = res.result.record.v_count;
}, },
failure: function () { failure: function () {
return false; return false;
...@@ -791,15 +793,16 @@ ...@@ -791,15 +793,16 @@
}); });
} }
if (machine_number_num>0 && count == 0){ if (machine_number_num > 0 && count == 0) {
count = count+1; count = count + 1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!'); $L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false; return false;
}else if(machine_number_num> 0 && count != 0){ } else if (machine_number_num > 0 && count != 0) {
count = 0; count = 0;
return false; return false;
} }
} }
}
]]></script> ]]></script>
......
...@@ -420,6 +420,8 @@ ...@@ -420,6 +420,8 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number_num = 0; var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease');
if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES'){
if(division == '92' && !Leaf.isEmpty(machine_number)){ if(division == '92' && !Leaf.isEmpty(machine_number)){
Leaf.request({ Leaf.request({
url: $('check_machine_number_id').getUrl(), url: $('check_machine_number_id').getUrl(),
...@@ -447,6 +449,8 @@ ...@@ -447,6 +449,8 @@
count = 0; count = 0;
return false; return false;
} }
}
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord(); var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
......
...@@ -1120,6 +1120,13 @@ ...@@ -1120,6 +1120,13 @@
record.getField('bank_account_id_n').setRequired(false); record.getField('bank_account_id_n').setRequired(false);
} }
if ('${/parameter/@function_usage}' != 'QUERY') {
if (division == '92') {
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
if (division=='91') { //若为神钢建机 if (division=='91') { //若为神钢建机
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var current_record = $(ds_id).getCurrentRecord(); var current_record = $(ds_id).getCurrentRecord();
...@@ -1879,6 +1886,8 @@ ...@@ -1879,6 +1886,8 @@
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number_num = 0; var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease');
if(!Leaf.isEmpty(secondary_lease) && secondary_lease!='YES'){
if(division == '92' && !Leaf.isEmpty(machine_number)){ if(division == '92' && !Leaf.isEmpty(machine_number)){
Leaf.request({ Leaf.request({
url: $('check_machine_number_id').getUrl(), url: $('check_machine_number_id').getUrl(),
...@@ -1908,6 +1917,8 @@ ...@@ -1908,6 +1917,8 @@
count = 0; count = 0;
return false; return false;
} }
}
return true; return true;
}; };
......
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