|
@@ -27,21 +27,19 @@
|
|
<span v-else>{{ item.status ? props.statusList.find(i => i.value === item.status).label : '' }}</span>
|
|
<span v-else>{{ item.status ? props.statusList.find(i => i.value === item.status).label : '' }}</span>
|
|
</template>
|
|
</template>
|
|
<template v-slot:item.actions="{ item }">
|
|
<template v-slot:item.actions="{ item }">
|
|
- <div v-if="tab === 0">
|
|
|
|
- <v-btn color="primary" variant="text" @click="handlePreviewResume(item)">查看附件</v-btn>
|
|
|
|
- <v-btn color="primary" variant="text" @click="handleInterviewInvite(item)">邀请面试</v-btn>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <v-btn v-if="tab === 0" color="primary" variant="text" @click="handlePreviewResume(item)">查看附件</v-btn>
|
|
|
|
+ <v-btn v-if="tab === 0" color="primary" variant="text" @click="handleInterviewInvite(item)">邀请面试</v-btn>
|
|
<v-btn v-if="tab === 0 || tab === 1" color="primary" variant="text" @click="handleEliminate(item)">不合适</v-btn>
|
|
<v-btn v-if="tab === 0 || tab === 1" color="primary" variant="text" @click="handleEliminate(item)">不合适</v-btn>
|
|
- <div v-if="tab === 1">
|
|
|
|
- <v-btn color="primary" variant="text" @click="handleEnterByEnterprise(item)">入职</v-btn>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <v-btn v-if="tab === 1 && (item.status === '3' || item.status === '4')" color="primary" variant="text" @click="handleEnterByEnterprise(item)">入职</v-btn>
|
|
<v-btn v-if="tab === 4" color="primary" variant="text" @click="handleCancelEliminate(item)">取消不合适</v-btn>
|
|
<v-btn v-if="tab === 4" color="primary" variant="text" @click="handleCancelEliminate(item)">取消不合适</v-btn>
|
|
|
|
+ <v-btn v-if="tab === 2 && item?.job?.hire" color="primary" variant="text" @click="handleSettlement(item)">结算</v-btn>
|
|
</template>
|
|
</template>
|
|
</v-data-table>
|
|
</v-data-table>
|
|
|
|
|
|
<!-- 邀请面试 -->
|
|
<!-- 邀请面试 -->
|
|
<CtDialog :visible="showInvite" :widthType="2" titleClass="text-h6" title="面试信息" @close="handleEditClose" @submit="handleEditSubmit">
|
|
<CtDialog :visible="showInvite" :widthType="2" titleClass="text-h6" title="面试信息" @close="handleEditClose" @submit="handleEditSubmit">
|
|
<InvitePage v-if="showInvite" ref="inviteRef" :itemData="itemData"></InvitePage>
|
|
<InvitePage v-if="showInvite" ref="inviteRef" :itemData="itemData"></InvitePage>
|
|
|
|
+ <!-- <PublicPage v-if="showInvite && inviteType" ref="publicRef" :item-data="itemData"></PublicPage> -->
|
|
</CtDialog>
|
|
</CtDialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -52,9 +50,12 @@ import { ref, computed, watch } from 'vue'
|
|
import { previewFile } from '@/utils'
|
|
import { previewFile } from '@/utils'
|
|
import { personJobCvLook, joinEliminate, personEntryByEnterprise, personCvUnfitCancel } from '@/api/recruit/enterprise/personnel'
|
|
import { personJobCvLook, joinEliminate, personEntryByEnterprise, personCvUnfitCancel } from '@/api/recruit/enterprise/personnel'
|
|
import { saveInterviewInvite } from '@/api/recruit/enterprise/interview'
|
|
import { saveInterviewInvite } from '@/api/recruit/enterprise/interview'
|
|
|
|
+import { hireJobCvRelSettlement } from '@/api/recruit/public/delivery'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
|
+import { useUserStore } from '@/store/user'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import InvitePage from './invite.vue'
|
|
import InvitePage from './invite.vue'
|
|
|
|
+// import PublicPage from './public.vue'
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
const emit = defineEmits(['refresh'])
|
|
const emit = defineEmits(['refresh'])
|
|
@@ -71,7 +72,9 @@ const badgeIcon = computed(() => (item) => {
|
|
return (item.person && item.person.sex) ? (item.person.sex === '1' ? 'mdi-gender-male' : 'mdi-gender-female') : 'mdi-gender-female'
|
|
return (item.person && item.person.sex) ? (item.person.sex === '1' ? 'mdi-gender-male' : 'mdi-gender-female') : 'mdi-gender-female'
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+const userStore = useUserStore()
|
|
const inviteRef = ref()
|
|
const inviteRef = ref()
|
|
|
|
+const publicRef = ref()
|
|
const showInvite = ref(false)
|
|
const showInvite = ref(false)
|
|
const headers = ref([
|
|
const headers = ref([
|
|
{ title: '姓名', value: 'name', sortable: false },
|
|
{ title: '姓名', value: 'name', sortable: false },
|
|
@@ -151,17 +154,21 @@ const handlePreviewResume = async ({ url, id }) => {
|
|
|
|
|
|
// 邀请面试
|
|
// 邀请面试
|
|
const itemData = ref({})
|
|
const itemData = ref({})
|
|
|
|
+// const inviteType = ref(false)
|
|
const handleInterviewInvite = (item) => {
|
|
const handleInterviewInvite = (item) => {
|
|
|
|
+ // if (item?.job?.hire) inviteType.value = true
|
|
itemData.value = item
|
|
itemData.value = item
|
|
showInvite.value = true
|
|
showInvite.value = true
|
|
}
|
|
}
|
|
|
|
|
|
const handleEditClose = () => {
|
|
const handleEditClose = () => {
|
|
showInvite.value = false
|
|
showInvite.value = false
|
|
|
|
+ // inviteType.value = false
|
|
itemData.value = {}
|
|
itemData.value = {}
|
|
}
|
|
}
|
|
|
|
|
|
const handleEditSubmit = async () => {
|
|
const handleEditSubmit = async () => {
|
|
|
|
+ // if (inviteType.value) return
|
|
const { valid } = await inviteRef.value.CtFormRef.formRef.validate()
|
|
const { valid } = await inviteRef.value.CtFormRef.formRef.validate()
|
|
if (!valid) return
|
|
if (!valid) return
|
|
const query = inviteRef.value.getQuery()
|
|
const query = inviteRef.value.getQuery()
|
|
@@ -171,6 +178,18 @@ const handleEditSubmit = async () => {
|
|
handleEditClose()
|
|
handleEditClose()
|
|
emit('refresh')
|
|
emit('refresh')
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// 结算
|
|
|
|
+const handleSettlement = async (item) => {
|
|
|
|
+ if (!item.id) return
|
|
|
|
+ await hireJobCvRelSettlement(item.id)
|
|
|
|
+ Snackbar.success(t('common.operationSuccessful'))
|
|
|
|
+ emit('refresh')
|
|
|
|
+ // 更新账户信息
|
|
|
|
+ setTimeout(async () => {
|
|
|
|
+ await userStore.getEnterpriseUserAccountInfo()
|
|
|
|
+ }, 2000)
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|