Commit c924f11e authored by gzj34291's avatar gzj34291

卡家机号校验

parent ad9f8210
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -380,32 +380,35 @@ ...@@ -380,32 +380,35 @@
var project_id = project_record.get('project_id'); var project_id = project_record.get('project_id');
var machine_number = lease_item_record.get('machine_number_70'); var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0; var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){ var secondary_lease = project_record.get('secondary_lease');
Leaf.request({ if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES') {
url: $('check_machine_number_id').getUrl(), if (division == '92' && !Leaf.isEmpty(machine_number)) {
para: { Leaf.request({
machine_number: machine_number, url: $('check_machine_number_id').getUrl(),
project_id : project_id para: {
}, machine_number: machine_number,
scope: this, project_id: project_id
success: function (res) { },
machine_number_num= res.result.record.v_count; scope: this,
}, success: function (res) {
failure: function () { machine_number_num = res.result.record.v_count;
return false; },
}, failure: function () {
scope: this, return false;
sync: true },
}); scope: this,
sync: true
});
} }
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;
}
} }
if(!bp_rate_flag){ if(!bp_rate_flag){
return false; return false;
...@@ -981,6 +984,12 @@ ...@@ -981,6 +984,12 @@
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);
}
}
//深圳美鹏和hcs显示分公司,其他隐藏 //深圳美鹏和hcs显示分公司,其他隐藏
var bp_code = '${/model/user_agent_description/record/@bp_code}'; var bp_code = '${/model/user_agent_description/record/@bp_code}';
if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') { if (!Ext.isEmpty(bp_code) && bp_code !== 'D00010001' && bp_code !== 'D00000009') {
......
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