Commit 67f62810 authored by 邓乾隆's avatar 邓乾隆

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

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