| | |
| | | { |
| | | data: { |
| | | enCode: 'signBtn', |
| | | name: '签约', |
| | | name: '企业签约', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleSign(role), |
| | |
| | | !( |
| | | row.userSignContractStatus === EnumTaskUserSignContractStatus.Pass && |
| | | row.enterpriseSignContractStatus === EnumTaskUserSignContractStatus.Wait |
| | | ), |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'signBtn', |
| | | name: '邀请签约', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleSign(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.GetEnterpriseEmployeesQueryResultItem) => |
| | | !( |
| | | row.userSignContractStatus === EnumTaskUserSignContractStatus.Wait || |
| | | row.userSignContractStatus === EnumTaskUserSignContractStatus.Refuse |
| | | ), |
| | | }, |
| | | }, |
| | |
| | | |
| | | async function handleSendShotMessage() { |
| | | try { |
| | | Message.warnMessage('功能开发中'); |
| | | // const selectionRows = getSelectionRows(); |
| | | // if (selectionRows) { |
| | | // if (selectionRows.some((x) => x.status === 10)) { |
| | | // await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?'); |
| | | // } |
| | | // handleShotMessageAdd({ |
| | | // ids: selectionRows.map((x) => x.id), |
| | | // name: '人员签约通道短信', |
| | | // }); |
| | | // } |
| | | const selectionRows = getSelectionRows(); |
| | | if (selectionRows) { |
| | | if ( |
| | | selectionRows.some((x) => x.userSignContractStatus === EnumTaskUserSignContractStatus.Pass) |
| | | ) { |
| | | await Message.tipMessage('勾选人员中包含已签约完成人员,确认要继续发送短信通知吗?'); |
| | | } |
| | | handleShotMessageAdd({ |
| | | ids: selectionRows.map((x) => x.id), |
| | | name: '人员签约通道短信', |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | |
| | | |
| | | async function handleUnSign(row: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | try { |
| | | Message.warnMessage('功能开发中'); |
| | | // await Message.tipMessage('确定解约用户?'); |
| | | await Message.tipMessage('确定解约用户?'); |
| | | } catch (error) {} |
| | | } |
| | | |