| | |
| | | |
| | | async function sendMessageForSign() { |
| | | try { |
| | | let params: API.SendInviteElectronSignSmsCommand = { |
| | | ids: editShotMessageForm.ids, |
| | | }; |
| | | let res = await enterpriseEmployeeServices.sendInviteElectronSignSms(params); |
| | | if (res) { |
| | | Message.successMessage('短信已发送'); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | |
| | | try { |
| | | const selectionRows = getSelectionRows(); |
| | | if (selectionRows) { |
| | | const hasUnSigned = selectionRows?.some( |
| | | (x) => x.enterpriseSignContractStatus !== EnumTaskUserSignContractStatus.Pass |
| | | ); |
| | | if (hasUnSigned) { |
| | | Message.warnMessage('勾选数据中包含未签约或已解约数据'); |
| | | return; |
| | | } |
| | | stopElectronSign(selectionRows.map((x) => x.id)); |
| | | } |
| | | } catch (error) {} |