| | |
| | | try { |
| | | const selectionRows = getSelectionRows(); |
| | | if (selectionRows) { |
| | | if ( |
| | | selectionRows.some( |
| | | (x) => |
| | | x.source === EnumEnterpriseEmployeeSource.External || |
| | | x.userSignContractStatus === EnumTaskUserSignContractStatus.Pass |
| | | ) |
| | | ) { |
| | | await Message.tipMessage('勾选人员中包含已签约完成或外部人员,确认要继续发送短信通知吗?'); |
| | | if (selectionRows.some((x) => x.source === EnumEnterpriseEmployeeSource.External)) { |
| | | Message.warnMessage('勾选人员中包含外部人员'); |
| | | return; |
| | | } else if ( |
| | | selectionRows.some((x) => x.userSignContractStatus === EnumTaskUserSignContractStatus.Pass) |
| | | ) { |
| | | await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?'); |
| | | } |
| | | handleShotMessageAdd({ |
| | | ids: selectionRows.map((x) => x.id), |