Commit 3988468c by wangzhihui

招聘管理

1 parent ac6dae42
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-10-21 20:35:24
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-10-22 21:28:27
* @FilePath: \dj-car-life-system\src\api\recruitment.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// 招聘管理
import request from "./request"
// 招聘需求分页查询
export function getRecruitmentList(data) {
data.method = `dj.staff.api.recruitment.demand.page`
return request(data)
}
// 新增招聘需求
export function addRecruitment(data) {
data.method = `dj.staff.api.recruitment.demand.add`
return request(data)
}
// 招聘需求详情
export function getRecruitmentDetail(data) {
data.method = `dj.staff.api.recruitment.demand.detail`
return request(data)
}
// 处理招聘需求
export function handleRecruitment(data) {
data.method = `dj.staff.api.recruitment.demand.process`
return request(data)
}
// 招聘需求状态更新(确认、驳回、完成)
export function updateRecruitmentStatus(data) {
data.method = `dj.staff.api.recruitment.demand.status.update`
return request(data)
}
// 招聘需求汇总
export function getRecruitmentSummary(data) {
data.method = `dj.staff.api.recruitment.demand.summary`
return request(data)
}
// 新增字典项
export function addDict(data) {
data.method = `dj.staff.api.dict.add`
return request(data)
}
// 删除字典项
export function deleteDict(data) {
data.method = `dj.staff.api.dict.delete`
return request(data)
}
// 分页查询字典项列表
export function getDictList(data) {
data.pageSize = 99999
data.currentPage = 1
data.method = `dj.staff.api.dict.page`
return request(data)
}
// 修改字典项
export function updateDict(data) {
data.method = `dj.staff.api.dict.update`
return request(data)
}
...@@ -25,6 +25,8 @@ const request = ( ...@@ -25,6 +25,8 @@ const request = (
apiName = "dj" apiName = "dj"
} else if (params.method.includes("dj.api.script")) { } else if (params.method.includes("dj.api.script")) {
apiName = "script" apiName = "script"
} else if (params.method.includes("dj.api.staff")) {
apiName = "staff"
} else if (params.method.includes("dj.smartcarlife.stock")) { } else if (params.method.includes("dj.smartcarlife.stock")) {
apiName = "dj.smartcarlife" apiName = "dj.smartcarlife"
} else { } else {
...@@ -47,7 +49,8 @@ const request = ( ...@@ -47,7 +49,8 @@ const request = (
"glsx.accounts.biz.common.pictureUpload": "common", "glsx.accounts.biz.common.pictureUpload": "common",
clue: "axios5", clue: "axios5",
"dj.businessSchool": "axios6", "dj.businessSchool": "axios6",
script: "axios7" script: "axios7",
staff: "axios8"
} }
const baseApiName = mappingName[apiName] const baseApiName = mappingName[apiName]
// console.log(baseApiName, "baseApiName") // console.log(baseApiName, "baseApiName")
...@@ -81,7 +84,8 @@ const request = ( ...@@ -81,7 +84,8 @@ const request = (
glsx: "md5", glsx: "md5",
"glsx.accounts.biz.common.pictureUpload": "md5", "glsx.accounts.biz.common.pictureUpload": "md5",
clue: "sha1", clue: "sha1",
script: "sha1" script: "sha1",
staff: "sha1"
} }
// console.log(signWay[apiName], "baseApiName") // console.log(signWay[apiName], "baseApiName")
const secret = baseConfig[baseApiName].secret const secret = baseConfig[baseApiName].secret
......
...@@ -1631,3 +1631,18 @@ export const inviteStatusOpt = [ ...@@ -1631,3 +1631,18 @@ export const inviteStatusOpt = [
{ confId: 3, confValue: "已完成" }, { confId: 3, confValue: "已完成" },
{ confId: 4, confValue: "已驳回" } { confId: 4, confValue: "已驳回" }
] ]
export const inviteStatusOptMap = {
1: "#FDB757",
2: "#FDB757",
3: "#2CCA74",
4: "#EB4E4E"
}
export const interviewResultOpt = [
{ confId: "1", confValue: "通过" },
{ confId: "0", confValue: "未通过" }
]
export const processResultOpt = [
{ confId: "1", confValue: "人员不匹配" },
{ confId: "2", confValue: "已完成面试" }
]
<!-- <!--
* @Author: 王志慧 wangzh@didihu.com.cn * @Author: 王志慧 wangzh@didihu.com.cn
* @Date: 2024-06-12 15:21:09 * @Date: 2024-06-12 15:21:09
* @LastEditors: 王志慧 wangzh@didihu.com.cn * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2024-08-19 15:10:19 * @LastEditTime: 2025-10-22 22:21:08
* @FilePath: \dj-car-life-system\src\components\d2-table-header\index.vue * @FilePath: \dj-car-life-system\src\components\d2-table-header\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
......
<!-- 通用表单弹窗组件 --> <!-- 通用表单弹窗组件 -->
<template> <template>
<div class="glsk-form-dialog"> <div class="glsk-form-dialog">
<d2-dialog :title="dialogConfig.title" :is-visible="selectVisible" :width="dialogWidth" :btn-ok-label="dialogConfig.okText" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <d2-dialog
<glsx-combi-form class="edit-form-container" ref="editFormRef" :label-width="labelWidth" :default-width="defaultWidth" :is-block="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules"> :title="dialogConfig.title"
:is-visible="selectVisible"
:width="dialogWidth"
:btn-ok-label="dialogConfig.okText"
@closeDialog="handleClose"
@confirmDialog="handleConfirm"
>
<glsx-combi-form
class="edit-form-container"
ref="editFormRef"
:label-width="labelWidth"
:default-width="defaultWidth"
:is-block="isBlock"
:form-ref="editChildRef"
:form-obj="editData"
:form-data="editFormData"
:form-rules="formRules"
@handleAddBrandSupplyConfirm="handleAddSpecialSelectConfirm"
@handleEditBrandSupplyConfirm="handleEditSpecialSelectConfirm"
>
<template v-for="name in slotArr" #[name]>
<slot :name="name"></slot>
</template>
</glsx-combi-form> </glsx-combi-form>
</d2-dialog> </d2-dialog>
</div> </div>
</template> </template>
<script> <script>
import { deepClone } from '@/common/util' import { deepClone } from "@/common/util"
export default { export default {
name: 'GlskFormDialog', name: "GlskFormDialog",
data() { data() {
return { return {
isBlock: true, isBlock: true,
editChildRef: 'editChildRef' editChildRef: "editChildRef"
} }
}, },
props: { props: {
slotArr: {
type: Array,
default: () => ["resumeUrlHtml"]
},
dialogWidth: { dialogWidth: {
type: String, type: String,
default: '700px' default: "700px"
}, },
labelWidth: { labelWidth: {
type: String, type: String,
default: '100px' default: "100px"
}, },
defaultWidth: { defaultWidth: {
type: String, type: String,
default: '314px' default: "314px"
}, },
dialogConfig: { dialogConfig: {
type: Object, type: Object,
default: () => { default: () => {
return { return {
title: '提示', title: "提示",
okText: '确定' okText: "确定"
} }
} }
}, },
...@@ -64,29 +90,52 @@ export default { ...@@ -64,29 +90,52 @@ export default {
}, },
mounted() { mounted() {
this.getOptionsList('editFormData', false) this.getOptionsList("editFormData", false)
}, },
methods: { methods: {
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find((k) => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle) var index = this[formName].findIndex((k) => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) this.$set(
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} else { } else {
this[formName].forEach((item, index) => { this[formName].forEach((item, index) => {
if (['select', 'radio'].includes(item.type) && this.baseData[item.optionsName].length) { if (
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) ["select", "radio"].includes(item.type) &&
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this.baseData[item.optionsName].length
) {
this.$set(
this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} }
...@@ -96,12 +145,18 @@ export default { ...@@ -96,12 +145,18 @@ export default {
handleConfirm() { handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
this.$emit('handleConfirm', this.editData) this.$emit("handleConfirm", this.editData)
} }
}) })
}, },
handleAddSpecialSelectConfirm(data) {
this.$emit("handleAddSpecialSelectConfirm", data)
},
handleEditSpecialSelectConfirm(data){
this.$emit("handleEditSpecialSelectConfirm", data)
},
handleClose() { handleClose() {
this.$emit('handleClose') this.$emit("handleClose")
} }
} }
} }
......
...@@ -1122,7 +1122,7 @@ export const routerName = { ...@@ -1122,7 +1122,7 @@ export const routerName = {
{ {
authId: "9122303", authId: "9122303",
parentId: "91223", parentId: "91223",
label: "查看招聘需求", label: "查看",
handle: "handleDetail", handle: "handleDetail",
addRoutePath: [ addRoutePath: [
{ {
...@@ -1152,7 +1152,7 @@ export const routerName = { ...@@ -1152,7 +1152,7 @@ export const routerName = {
addRoutePath: [ addRoutePath: [
{ {
authId: "912230601", authId: "912230601",
name: "处理招聘需求", name: "处理",
parentId: "91223" parentId: "91223"
} }
] ]
...@@ -1160,13 +1160,13 @@ export const routerName = { ...@@ -1160,13 +1160,13 @@ export const routerName = {
] ]
}, },
912230101: { 912230101: {
path: "/", path: "/addRecruitment",
name: "", name: "addRecruitment",
meta: { meta: {
title: "新增招聘需求", title: "新增招聘需求",
authId: "9122301", authId: "9122301",
parentId: "91223", parentId: "91223",
activePath: "/addRecruitment" activePath: "/recruitmentManagement"
}, },
component: _import("residentManage/recruitmentManagement/addRecruitment") component: _import("residentManage/recruitmentManagement/addRecruitment")
}, },
...@@ -1185,7 +1185,7 @@ export const routerName = { ...@@ -1185,7 +1185,7 @@ export const routerName = {
}, },
912230301: { 912230301: {
path: "/lookRecruitment", path: "/lookRecruitment",
name: "disposeRecruitment", name: "lookRecruitment",
meta: { meta: {
title: "查看招聘需求", title: "查看招聘需求",
authId: "9122306", authId: "9122306",
......
<!-- 新增招聘管理 -->
<template>
<div class="addRecruitment-wrap">
<div class="addRecruitment-title">新增招聘管理</div>
<div class="addRecruitment-content">
<glsx-combi-form
class="edit-form-container"
ref="editFormRef"
:label-width="labelWidth"
:default-width="defaultWidth"
defaultWidth="530px"
:is-block="isBlock"
:form-ref="editChildRef"
:form-obj="addForm"
:form-data="editFormData"
:form-rules="formRules"
>
</glsx-combi-form>
</div>
<div class="footer">
<el-button
size="small"
:loading="btnLoding"
class="save-btn"
@click="handleSave"
>
提交
</el-button>
<el-button class="cancel-btn" size="small" @click="handleCancel"
>关闭</el-button
>
</div>
</div>
</template>
<script>
import { getInviteMerchant } from "@api/invitation"
import { addRecruitment } from "@api/recruitment"
import { Util, deepClone } from "@/common/util"
export default {
name: "addRecruitment",
data() {
return {
btnLoding: false,
addForm: {
merchantName: "",
merchantId: "",
regionOperationName: "",
regionOperationId: "", //区域运营
businessType: "", //业务类型
recruitmentQuantity: "", //招聘数量
recruitmentType: "", //招聘类型
requirementDescription: ""
},
labelWidth: "150px",
defaultWidth: "530px",
editChildRef: "editChildRef",
isBlock: true,
editFormData: [
{
label: "门店名称",
name: "merchantId",
type: "select",
isClear: true,
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "merchantList"
},
{
label: "区域运营",
name: "regionOperationId",
type: "select",
isClear: true,
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName"
},
{
label: "业务类型",
name: "businessType",
type: "select",
isClear: true,
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName"
},
{
label: "招聘数量",
name: "recruitmentQuantity",
type: "input",
isClear: true
},
{
label: "招聘类型",
name: "recruitmentType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue"
},
{
label: "需求描述",
name: "requirementDescription",
type: "input",
inputType: "textarea",
showLimit: true,
isClear: true,
maxlength: 200,
rows: 4
}
],
formRules: {
merchantId: [
{ required: true, message: "请选择门店名称", trigger: "change" }
],
regionOperationId: [
{ required: true, message: "请选择区域运营", trigger: "change" }
],
businessType: [
{ required: true, message: "请选择业务类型", trigger: "change" }
],
recruitmentType: [
{ required: true, message: "请选择招聘类型", trigger: "change" }
],
recruitmentQuantity: [
{ required: true, message: "请输入招聘数量", trigger: "blur" },
{
validator: (rule, value, callback) => {
console.log(value)
// 校验是否为整数
if (!/^\d+$/.test(value)) {
callback(new Error("招聘数量必须为整数"))
} else if (value <= 0 || value > 100) {
callback(new Error("招聘数量必须为1-100之间的整数"))
} else {
callback()
}
},
trigger: "blur"
}
]
},
baseData: {
merchantList: []
}
}
},
created() {
this.getInviteMerchant()
},
methods: {
getInviteMerchant() {
getInviteMerchant({ currentPage: 1, pageSize: 99999 }).then((res) => {
this.baseData.merchantList = res.list
this.getOptionsList(this, "editFormData", false, "merchantId")
})
},
handleSave() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
this.$confirm("请确认是否要执行当前操作?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
let params = {
merchantId: this.addForm.merchantId,
regionOperationId: this.addForm.regionOperationId,
businessType: this.addForm.businessType,
recruitmentQuantity: this.addForm.recruitmentQuantity,
recruitmentType: this.addForm.recruitmentType,
requirementDescription: this.addForm.requirementDescription
}
this.btnLoding = true
addRecruitment(params).then((res) => {})
})
}
})
},
handleCancel() {
this.$router.push("/recruitmentManagement")
},
getOptionsList(that, formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = that[formName].find((k) => k.name == refreshSigle)
var index = that[formName].findIndex((k) => k.name == refreshSigle)
that.$set(
that[formName][index],
"optionList",
deepClone(that.baseData[item.optionsName])
)
if (
hasAll &&
that.baseData[item.optionsName].length &&
that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {}
temp[that[formName][index].optionId] = ""
temp[that[formName][index].optionLabel] = "全部"
that[formName][index].optionList.unshift(temp)
}
} else {
that[formName].forEach((item, index) => {
if (
item.type === "select" &&
that.baseData[item.optionsName]?.length
) {
that.$set(
that[formName][index],
"optionList",
that.$common.utils.deepClone(that.baseData[item.optionsName])
)
if (
hasAll &&
that.baseData[item.optionsName].length &&
that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {}
temp[that[formName][index].optionId] = ""
temp[that[formName][index].optionLabel] = "全部"
that[formName][index].optionList.unshift(temp)
}
}
})
}
}
}
}
</script>
<style lang="scss" scoped>
.addRecruitment-wrap {
min-height: 680px;
background: #ffffff;
margin: 0 20px 20px;
border-radius: 6px;
.addRecruitment-title {
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #e5e5e5;
box-sizing: border-box;
height: 50px;
font-size: 16px;
font-weight: bold;
color: #333333;
}
.addRecruitment-content {
padding: 20px;
}
.footer {
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
line-height: 22px;
border-radius: 4px;
border: 1px solid #2a58ad;
background: #2a58ad;
color: #ffffff;
font-size: 14px;
height: 32px;
box-sizing: border-box;
}
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
height: 32px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
}
::v-deep .el-input__count {
right: 12px;
bottom: 1px;
font-size: 12px;
color: #999999;
}
}
</style>
...@@ -181,88 +181,44 @@ export default { ...@@ -181,88 +181,44 @@ export default {
infoData: [ infoData: [
{ {
title: "门店名称", title: "门店名称",
key: "licensePlate" key: "merchantName"
}, },
{ {
title: "车架号", title: "近一月新车销售",
key: "近一月新车销售" key: "salesVolume"
}, },
{ {
title: "业务类型", title: "业务类型",
key: "carTypeName", key: "businessTypeName"
formatter: (cellValue) => {
let carSeriesName = cellValue.carSeriesName
? cellValue.carSeriesName
: "",
carTypeName = cellValue.carTypeName
? cellValue.carTypeName
: ""
return carSeriesName + " " + carTypeName
}
}, },
{ {
title: "招聘类型", title: "招聘类型",
key: "registrationDate" key: "recruitmentTypeName"
}, },
{ {
title: "招聘数量", title: "招聘数量",
key: "registrationCityName", key: "recruitmentTypeName"
formatter: (cellValue) => {
if (
!cellValue.registrationCityName &&
!cellValue.registrationProvinceName
)
return "-"
return cellValue.registrationProvinceName ==
cellValue.registrationCityName
? cellValue.registrationProvinceName
: cellValue.registrationProvinceName +
cellValue.registrationCityName
}
}, },
{ {
title: "区域运营", title: "区域运营",
key: "mileageStr" key: "regionOperationName"
}, },
{ {
title: "需求描述:", title: "需求描述:",
key: "carTypeName", key: "requirementDescription",
col: 24 col: 24
}, },
{ {
title: "创建人", title: "创建人",
key: "ownerType", key: "createdBy"
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt",
row,
"ownerType"
)
return statusItem ? statusItem.confValue : "-"
}
}, },
{ {
title: "申请时间", title: "申请时间",
key: "sunroof", key: "createdDate"
formatter: (row) => {
let sunRoofMap = {
1: "无天窗",
2: "普通天窗",
3: "全景天窗"
}
return sunRoofMap[row.sunroof]
}
} }
] ]
} }
], ]
baseData: {
usageTypeOpt: deepClone(usageTypeOpt),
ownerTypeOpt: deepClone(ownerTypeOpt),
evaluationStatusOpt: deepClone(evaluationStatusOpt),
evaluationStatusOptMap: deepClone(evaluationStatusOptMap)
}
} }
}, },
methods: { methods: {
......
import { getRecruitmentDetail } from "@/api/usedCarManagement"
import baseInfo from "./baseInfo.vue"
import recruitInfo from "./recruitInfo.vue"
import entryInfo from "./entryInfo.vue"
export const recruitMixin = {
components: {
baseInfo,
recruitInfo,
entryInfo
},
data() {
return {
loading: false,
detailInfo: {
id: 0,
merchantName: "xxxxx汽车销售服务有限公司",
merchantId: "string",
regionOperationId: "string",
regionOperationName: "李四",
businessType: "string",
businessTypeName: "延保",
recruitmentQuantity: 0,
recruitmentType: "string",
recruitmentTypeName: "新店人员储备",
requirementDescription:
"分享时机,在不同的时机分析用户是否有分享的意愿,提供给他们合适的分享内容,能让分享的效果更好。尤其是刚上线的产品,很难通过产品的内部体系来实现快速的用户增长,所以会更加依赖于分享来达到广泛的传播,获取目标用户。所以监听用户的截图操作,提示用户进行分享,既缩短了以前分享截图的操作路径,避免了在之前长路径中的行为流失(比如截图完成后忘记分享或觉得麻烦放弃分享等等),也让用户觉得更加贴心。--200个字显示样式",
recruiterName: "string",
recruiterPhone: "string",
recallReason: "string",
status: 0, // 0-待处理 1-已完成 ,
confirmFlag: "string",
createdBy: "王志慧",
createdDate: "2025-10-21T07:51:43.326Z",
updatedBy: "string",
updatedDate: "2025-10-21T07:51:43.327Z",
deletedFlag: "string",
salesVolume: 20,
resumes: [
{
id: 0,
demandId: 0,
status: 0,
personName: "王志慧",
phoneNumber: "18925261040",
resumeUrl:
"https://report-best-news-test.oss-cn-shenzhen.aliyuncs.com/SAAS+V4.51.1-话术萃取-4月中版本需求说明书(宋慧) _20250331170648-1743412043421-20250331050724.pdf",
fileName:
"SAAS+V4.51.1-话术萃取-4月中版本需求说明书(宋慧) _20250331170648.pdf",
processResult: "",
interviewTime: "2025-10-21T07:51:43.327Z",
interviewResult: "string",
description: "string",
processorName: "string",
processTime: "2025-10-21T07:51:43.327Z",
createdBy: "王志慧",
createdDate: "2025-10-21 7:51:43",
updatedBy: "string",
updatedDate: "2025-10-21T07:51:43.327Z"
},
{
id: 1,
demandId: 0,
status: 1,
personName: "王志慧",
phoneNumber: "18925261040",
resumeUrl:
"https://report-best-news-test.oss-cn-shenzhen.aliyuncs.com/SAAS+V4.51.1-话术萃取-4月中版本需求说明书(宋慧) _20250331170648-1743412043421-20250331050724.pdf",
fileName:
"SAAS+V4.51.1-话术萃取-4月中版本需求说明书(宋慧) _20250331170648.pdf",
processResult: "",
interviewTime: "2025-10-21T07:51:43.327Z",
interviewResult: "string",
description: "string",
processorName: "string",
processTime: "2025-10-21T07:51:43.327Z",
createdBy: "string",
createdDate: "2025-10-21 7:51:43",
updatedBy: "string",
updatedDate: "2025-10-21T07:51:43.327Z"
}
],
onboardingPlans: [
{
id: 1,
demandId: 0,
personName: "王志慧",
phoneNumber: "18925261040",
onboardingDate: "2025-10-21T07:51:43.327Z",
personalityType: "",
personalityName: "积极较高较高较高较高",
abilityPerformanceType: "",
abilityPerformanceName: "积极较高较高较高较高",
educationLevelType: "",
educationLevelName: "积极较高较高较高较高",
appearanceType: "",
appearanceName: "积极较高较高较高较高",
positionMatchDegreeType: "",
positionMatchDegreeName: "积极较高较高较高较高",
createdBy: "王志慧",
createdDate: "2025-10-21T07:51:43.327Z",
updatedBy: "string",
updatedDate: "2025-10-21T07:51:43.327Z",
deletedFlag: "string"
}
],
logs: [
{
id: 0,
demandId: 0,
operationType: "string",
createdBy: "string",
createdDate: "2025-10-21T07:51:43.327Z",
updatedBy: "string",
updatedDate: "2025-10-21T07:51:43.327Z",
deletedFlag: "string"
}
]
},
id: this.$route.query.id
}
},
created() {
// this.loading = true
this.getRecruitmentDetail()
},
methods: {
handleCancel() {
this.$router.push("/recruitmentManagement")
},
getRecruitmentDetail() {
getRecruitmentDetail({
evalOrderNo: this.evalOrderNo
}).then((res) => {
console.log("res", res)
this.detailInfo = res
this.loading = false
})
}
}
}
<!--处理招聘需求 -->
<template>
<div class="look-recruitment" v-loading="loading">
<div class="layout">
<baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo
:resumes="detailInfo.resumes"
@handleAddConfirm="handleAddConfirm"
@handleWorking="handleWorking"
></recruitInfo>
<entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
ref="entryInfo"
@handleEntryConfirm="handleEntryConfirm"
></entryInfo>
</div>
<div class="footer">
<el-button
size="small"
:loading="btnLoding"
class="save-btn"
@click="handleSave"
>
提交
</el-button>
<el-button class="cancel-btn" size="small" @click="handleCancel"
>关闭</el-button
>
</div>
</div>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin"
export default {
mixins: [recruitMixin],
data() {
return {
loading: false,
btnLoding: false
}
},
methods: {
handleSave() {
this.btnLoding = true
// this.$router.push("/recruitmentManagement")
},
//转入职
handleWorking(data) {
this.$refs.entryInfo.handleEntry?.()
this.$refs.entryInfo.isEntryForm = deepClone(data)
},
//转入职确认
handleEntryConfirm(data) {
this.detailInfo.onboardingPlans.unshift(data)
},
handleAddConfirm(data, isAdd = true, index) {
console.log(data, isAdd, index)
/*isAdd:true:新增
*isAdd:false:修改
*data:有值时为修改、新增、处理;没值为删除
*index:处理、修改、删除的索引
*/
if (isAdd) {
this.detailInfo.resumes.unshift(data)
} else {
if (data) {
this.detailInfo.resumes[index] = data
} else {
this.detailInfo.resumes.splice(index, 1)
}
}
}
}
}
</script>
<style lang="scss" scoped>
.look-recruitment {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
min-width: 1240px;
height: 800px;
overflow: scroll;
.footer {
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
line-height: 22px;
border-radius: 4px;
border: 1px solid #2a58ad;
background: #2a58ad;
color: #ffffff;
font-size: 14px;
height: 32px;
box-sizing: border-box;
}
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
height: 32px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
}
.layout {
height: calc(100% - 130px);
overflow-y: scroll;
}
}
</style>
<!-- 查看招聘需求 --> <!-- 查看招聘需求 -->
<template> <template>
<div class="look-recruitment"> <div class="look-recruitment" v-loading="loading">
<div class="layout">
<baseInfo :detailInfo="detailInfo"></baseInfo> <baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo :detailInfo="detailInfo"></recruitInfo> <recruitInfo :resumes="detailInfo.resumes"></recruitInfo>
<entryInfo :onboardingPlans="detailInfo.onboardingPlans"></entryInfo>
</div>
<div class="footer">
<el-button class="cancel-btn" size="small" @click="handleCancel"
>关闭</el-button
>
</div>
</div> </div>
</template> </template>
<script> <script>
import baseInfo from "./components/baseInfo.vue" import { recruitMixin } from "./components/recruitMixin"
import recruitInfo from "./components/recruitInfo.vue"
export default { export default {
components: { mixins: [recruitMixin],
baseInfo,
recruitInfo
},
data() { data() {
return { return {
loading: false,
detailInfo: {} detailInfo: {}
} }
},
mounted() {
// this.loading = true
},
methods: {
handleCancel() {
this.$router.push("/recruitmentManagement")
}
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.look-recruitment { .look-recruitment {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
min-width: 1240px;
height: 800px;
overflow: scroll;
.footer {
display: flex;
align-items: center;
justify-content: center;
margin-top: 20px;
.save-btn {
// width: 60px;
padding: 5px 14px;
line-height: 22px;
border-radius: 4px;
border: 1px solid #2a58ad;
background: #2a58ad;
color: #ffffff;
font-size: 14px;
height: 32px;
box-sizing: border-box;
}
.cancel-btn {
color: #666666;
font-size: 14px;
width: 56px;
height: 32px;
padding: 5px 14px;
border-radius: 4px;
background: #e8e8e8;
line-height: 22px;
box-sizing: border-box;
}
}
.layout {
height: calc(100% - 65px);
overflow-y: scroll;
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!