|
@@ -1767,8 +1767,8 @@ $(document).ready(function() {
|
|
|
toastr.error('请选择一个合同节点');
|
|
|
return;
|
|
|
}
|
|
|
- if (node.uid !== user_id) {
|
|
|
- toastr.error('只能修改自己的合同' + contractConst.typeName[contract_type]);
|
|
|
+ if (!(node.uid === user_id && permission_add_pay)) {
|
|
|
+ toastr.error('没有权限添加合同' + contractConst.typeName[contract_type]);
|
|
|
return;
|
|
|
}
|
|
|
if (node.settle_code) {
|