|
@@ -90,7 +90,8 @@
|
|
|
<template #default="scope">
|
|
|
<div class="operateBtn">
|
|
|
<span @click="lookClick(scope.row)">查看</span>
|
|
|
- <span @click="operateClick(scope.row)" style="margin-left: 20px">报到</span>
|
|
|
+ <span @click="checkInRegister(scope.row)" style="margin-left: 20px">报到登记</span>
|
|
|
+ <!-- <span @click="operateClick(scope.row)" style="margin-left: 20px">报到</span> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -445,6 +446,7 @@ import { filterNodeMethod } from '@/utils/tree'
|
|
|
import { useQuery } from '@tanstack/vue-query'
|
|
|
import { queryCompanyTree } from '@/service/contract'
|
|
|
import { form, familyColumns, rules } from './common'
|
|
|
+import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
|
|
|
defineOptions({ name: 'RchbkPage' })
|
|
|
|
|
@@ -530,6 +532,35 @@ const operateClick = (row: any) => {
|
|
|
form.value.userId = row.userId
|
|
|
form.value.nickname = row.nickname
|
|
|
}
|
|
|
+// 报到登记
|
|
|
+const checkInRegister = (row: any) => {
|
|
|
+ console.log('row', row)
|
|
|
+ ElMessageBox.confirm('将创建OA账号及个人档案信息,是否继续?', '报到登记', {
|
|
|
+ confirmButtonText: '是',
|
|
|
+ cancelButtonText: '否',
|
|
|
+ type: 'info'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ request
|
|
|
+ .get({ url: `/interview/report?id=${row.id}` }, '/business')
|
|
|
+ .then(() => {
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: 'OA账号创建成功'
|
|
|
+ })
|
|
|
+ queryListByPage()
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: '账号创建失败,请联系管理员或稍后再试!'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ // console.log('已取消创建')
|
|
|
+ })
|
|
|
+}
|
|
|
const formEl = ref<any>(null)
|
|
|
const submitHandle = async () => {
|
|
|
await formEl.value.validate((valid, fields) => {
|