Commit 91f21d2e authored by 邓乾隆's avatar 邓乾隆

合同起租明细页面保存追加同步校验调整

parent 6a35911a
......@@ -782,7 +782,7 @@
var secondary_lease = record.get('secondary_lease') ;
var contract_id = record.get('contract_id');
var contract_status = record.get('contract_status');
console.log(contract_record);
var contract_status_result = '';
//校验合同状态
if(!Leaf.isEmpty(contract_status)){
Leaf.request({
......@@ -791,16 +791,18 @@
contract_id: contract_id
},
scope: this,
sync: true,
success: function (res) {
if(contract_status != res.result.record.contract_status){
$L.showErrorMessage('提示', '合同状态已发生改变,需要重新刷新页面!');
return false;
}
contract_status_result = res.result.record.contract_status;
},
failure: function () {
return false;
},
});
if (contract_status != contract_status_result) {
$L.showErrorMessage('提示', '合同状态已发生改变,需要重新刷新页面!');
return false;
}
}
if(!Leaf.isEmpty(secondary_lease) && secondary_lease!='YES') {
......
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