Commit b423df57 authored by 18083's avatar 18083

签约首页排除变更合同及签约前变更新增校验

parent 9a0b1904
...@@ -6,7 +6,7 @@ var add_datafilters = [ ...@@ -6,7 +6,7 @@ var add_datafilters = [
}, },
{ {
name:'contract_status', name:'contract_status',
expression:"t1.contract_status not in ('CLOSED','CANCEL')" expression:"t1.contract_status not in ('CLOSED','CANCEL','PENDING')"
}, },
{ {
name: 'sign_contract_status', name: 'sign_contract_status',
......
...@@ -128,6 +128,15 @@ ...@@ -128,6 +128,15 @@
// Leaf.showErrorMessage('${l:PROMPT}', '当前合同暂不能进行此项变更!'); // Leaf.showErrorMessage('${l:PROMPT}', '当前合同暂不能进行此项变更!');
// return; // return;
//} //}
if (record.get('business_type') == 'LEASEBACK' && record.get('bp_class') == 'NP' && record.get('division') != 70 && record.get('division') != 92&& ccr_document_type == 'CCR_BEFORE_SIGN') {
Leaf.showMessage('${l:PROMPT}', '此类业务尚未开放电子签约功能,不能发起签约前变更');
return;
}
if (record.get('division') == 91 && record.get('business_type') == 'LEASEBACK' && ccr_document_type == 'CCR_BEFORE_SIGN') {
Leaf.showMessage('${l:PROMPT}', '此类业务尚未开放电子签约功能,不能发起签约前变更');
return;
}
Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () { Leaf.showConfirm('特别注意', '<span style="color: #ff0000; ">该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!</span>', function () {
var contract = record.get('contract_id'); var contract = record.get('contract_id');
......
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