Commit 07be721b by wangzhihui

招聘管理

1 parent 242740bd
/*
* @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"
......@@ -37,11 +29,17 @@ export function updateRecruitmentStatus(data) {
}
// 招聘需求汇总
export function getRecruitmentSummary(data) {
export function getRecruitmentSummary(data = {}) {
data.method = `dj.staff.api.recruitment.demand.summary`
return request(data)
}
// 门店(d+系统中的全部门店+园区店商户)列表查询
export function getDemandMerchant(data) {
data.method = `dj.staff.api.recruitment.demand.merchant.page`
return request(data)
}
// 新增字典项
export function addDict(data) {
data.method = `dj.staff.api.dict.add`
......
......@@ -25,7 +25,7 @@ const request = (
apiName = "dj"
} else if (params.method.includes("dj.api.script")) {
apiName = "script"
} else if (params.method.includes("dj.api.staff")) {
} else if (params.method.includes("dj.staff.api")) {
apiName = "staff"
} else if (params.method.includes("dj.smartcarlife.stock")) {
apiName = "dj.smartcarlife"
......@@ -50,7 +50,7 @@ const request = (
clue: "axios5",
"dj.businessSchool": "axios6",
script: "axios7",
staff: "axios8"
staff: "axios9"
}
const baseApiName = mappingName[apiName]
// console.log(baseApiName, "baseApiName")
......
......@@ -1626,17 +1626,17 @@ export const oaFlowPaymentStatusOpt = [
]
export const inviteStatusOpt = [
{ confId: 1, confValue: "待人事确认" },
{ confId: 2, confValue: "招聘中" },
{ confId: 3, confValue: "已完成" },
{ confId: 4, confValue: "已驳回" }
{ confId: 0, confValue: "待人事确认" },
{ confId: 1, confValue: "招聘中" },
{ confId: 2, confValue: "已完成" },
{ confId: 3, confValue: "已驳回" }
]
export const inviteStatusOptMap = {
0: "#FDB757",
1: "#FDB757",
2: "#FDB757",
3: "#2CCA74",
4: "#EB4E4E"
2: "#2CCA74",
3: "#EB4E4E"
}
export const interviewResultOpt = [
{ confId: "1", confValue: "通过" },
......
......@@ -19,8 +19,8 @@
:form-obj="editData"
:form-data="editFormData"
:form-rules="formRules"
@handleAddBrandSupplyConfirm="handleAddSpecialSelectConfirm"
@handleEditBrandSupplyConfirm="handleEditSpecialSelectConfirm"
@handleAddSelectTypeConfirm="handleAddSelectTypeConfirm"
@handleEditSelectTypeConfirm="handleEditSelectTypeConfirm"
>
<template v-for="name in slotArr" #[name]>
<slot :name="name"></slot>
......@@ -143,17 +143,18 @@ export default {
}
},
handleConfirm() {
console.log(this.editFormData)
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
this.$emit("handleConfirm", this.editData)
}
})
},
handleAddSpecialSelectConfirm(data) {
this.$emit("handleAddSpecialSelectConfirm", data)
handleAddSelectTypeConfirm(data) {
this.$emit("handleAddSelectTypeConfirm", data)
},
handleEditSpecialSelectConfirm(data){
this.$emit("handleEditSpecialSelectConfirm", data)
handleEditSelectTypeConfirm(data) {
this.$emit("handleEditSelectTypeConfirm", data)
},
handleClose() {
this.$emit("handleClose")
......
......@@ -1145,6 +1145,12 @@ export const routerName = {
handle: "handleReject"
},
{
authId: "9122307",
parentId: "91223",
label: "完成",
handle: "handleComplete"
},
{
authId: "9122306",
parentId: "91223",
label: "处理",
......
......@@ -33,23 +33,28 @@
</div>
</template>
<script>
import { getInviteMerchant } from "@api/invitation"
import { addRecruitment } from "@api/recruitment"
import {
addRecruitment,
getDemandMerchant,
getDictList
} from "@api/recruitment"
import { Util, deepClone } from "@/common/util"
import { merchantStaffByRoleList } from "@api/index"
export default {
name: "addRecruitment",
data() {
return {
btnLoding: false,
addForm: {
merchantName: "",
merchantId: "",
regionOperationName: "",
regionOperationId: "", //区域运营
businessType: "", //业务类型
businessTypeName: "",
recruitmentQuantity: "", //招聘数量
recruitmentType: "", //招聘类型
recruitmentTypeName: "",
requirementDescription: ""
},
labelWidth: "150px",
......@@ -65,7 +70,15 @@ export default {
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName",
optionsName: "merchantList"
optionsName: "merchantList",
changeAttr: (value, targetItem) => {
this.addForm.merchantName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
},
{
label: "区域运营",
......@@ -73,8 +86,17 @@ export default {
type: "select",
isClear: true,
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName"
optionId: "uuid",
optionLabel: "staffName",
optionsName: "supervisionOptionsListOpt",
changeAttr: (value, targetItem) => {
this.addForm.regionOperationName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
},
{
label: "业务类型",
......@@ -82,8 +104,17 @@ export default {
type: "select",
isClear: true,
optionList: [],
optionId: "merchantId",
optionLabel: "merchantName"
optionId: "itemValue",
optionLabel: "itemName",
optionsName: "bussinessTypeOpt",
changeAttr: (value, targetItem) => {
this.addForm.businessTypeName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
},
{
label: "招聘数量",
......@@ -97,12 +128,22 @@ export default {
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue"
optionId: "itemValue",
optionLabel: "itemName",
optionsName: "recruitmentTypeOpt",
changeAttr: (value, targetItem) => {
this.addForm.recruitmentTypeName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
},
{
label: "需求描述",
name: "requirementDescription",
placeholder: "请简单描述用人要求等信息",
type: "input",
inputType: "textarea",
showLimit: true,
......@@ -131,7 +172,7 @@ export default {
console.log(value)
// 校验是否为整数
if (!/^\d+$/.test(value)) {
callback(new Error("招聘数量必须为整数"))
callback(new Error("招聘数量必须为正整数"))
} else if (value <= 0 || value > 100) {
callback(new Error("招聘数量必须为1-100之间的整数"))
} else {
......@@ -143,24 +184,59 @@ export default {
]
},
baseData: {
merchantList: []
merchantList: [],
bussinessTypeOpt: [],
recruitmentTypeOpt: [],
supervisionOptionsListOpt: []
}
}
},
created() {
this.getInviteMerchant()
this.fetchOnboardingPlans()
},
methods: {
getInviteMerchant() {
getInviteMerchant({ currentPage: 1, pageSize: 99999 }).then((res) => {
this.baseData.merchantList = res.list
this.getOptionsList(this, "editFormData", false, "merchantId")
filterAttribute(optionsName, optionId, optionLabel, value) {
console.log(optionsName, optionId, optionLabel, value)
let item = this.baseData[optionsName].find((item) => {
return item[optionId] == value
})
console.log(item)
return item ? item[optionLabel] : ""
},
async fetchOnboardingPlans() {
try {
// 并行请求4个不同类型的数据
const [
recruitmentTypeOpt,
bussinessTypeOpt,
merchantListOpt,
supervisionOptionsListOpt
] = await Promise.all([
getDictList({
businessCode: "recruitment",
typeCode: "recruitment_type"
}),
getDictList({
businessCode: "recruitment",
typeCode: "business_type"
}),
getDemandMerchant({ currentPage: 1, pageSize: 99999 }),
merchantStaffByRoleList({ roleName: "区域运营" })
])
// 处理返回的数据
this.baseData.recruitmentTypeOpt = recruitmentTypeOpt.list
this.baseData.bussinessTypeOpt = bussinessTypeOpt.list
this.baseData.merchantList = merchantListOpt.list
this.baseData.supervisionOptionsListOpt = supervisionOptionsListOpt
this.getOptionsList(this, "editFormData", false)
} catch (error) {
console.error(error)
}
},
handleSave() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
this.$confirm("请确认是否要执行当前操作?", "提示", {
this.$confirm("确定是否提交招聘需求?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
......@@ -171,10 +247,19 @@ export default {
businessType: this.addForm.businessType,
recruitmentQuantity: this.addForm.recruitmentQuantity,
recruitmentType: this.addForm.recruitmentType,
requirementDescription: this.addForm.requirementDescription
requirementDescription: this.addForm.requirementDescription,
merchantName: this.addForm.merchantName,
regionOperationName: this.addForm.regionOperationName,
businessTypeName: this.addForm.businessTypeName,
recruitmentTypeName: this.addForm.recruitmentTypeName
}
this.btnLoding = true
addRecruitment(params).then((res) => {})
addRecruitment(params).then((res) => {
if (res) {
this.$message.success("新增成功")
this.handleCancel()
}
})
})
}
})
......@@ -212,7 +297,7 @@ export default {
that.$set(
that[formName][index],
"optionList",
that.$common.utils.deepClone(that.baseData[item.optionsName])
deepClone(that.baseData[item.optionsName])
)
if (
hasAll &&
......
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-10-17 21:05:36
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-10-30 14:13:41
* @FilePath: \dj-car-life-system\src\views\residentManage\recruitmentManagement\components\baseInfo.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="info-wrapper">
<div class="item" v-for="(item, index) in configData" :key="index">
<div class="title">{{ item.title }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length">
<el-form
:ref="item.childRef"
class="edit-sub-block"
label-width="150px"
:inline="true"
:model="detailInfo"
:rules="rules"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.infoData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'" :prop="item.key">
<template v-if="item.type == 'imgList'">
<div
class="photo-box"
v-if="
detailInfo[item.key] && detailInfo[item.key].length
"
>
<glsx-preview
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:videoImg="true"
:picOptions="{ ...picOptions, type: item.otherType }"
limit="1"
></glsx-preview>
</div>
<template v-else> - </template>
</template>
<template v-else-if="item.isEdit">
<template v-if="item.type == 'input'">
<el-input
v-model="detailInfo[item.key]"
:placeholder="`请输入${item.label}`"
:maxlength="item.maxLength || ''"
size="small"
class="edit-form-item"
></el-input>
</template>
<template v-else-if="item.type == 'date'">
<el-date-picker
v-model="detailInfo[item.key]"
type="date"
:placeholder="item.label"
size="small"
class="edit-form-item"
:picker-options="item.pickerOptions"
>
</el-date-picker>
</template>
<template v-else-if="item.type == 'textarea'">
<el-input
type="textarea"
:rows="3"
placeholder="请输入"
v-model="detailInfo[item.key]"
:maxlength="item.maxLength"
class="edit-form-item"
>
</el-input>
</template>
<template v-else-if="item.type == 'select'">
<el-select
v-model="detailInfo[item.key]"
:placeholder="`请选择${item.label}`"
size="small"
class="edit-form-item"
>
<el-option
v-for="item in item.options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</template>
<template v-else>
<div class="flex">
<div
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
<template v-if="item.suffixText">
<div class="unit">
{{ item.suffixText }}
</div>
</template>
</div>
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
<template v-if="item.subTitle">
<div v-for="signIndex in item.sign" :key="signIndex">
<div class="subtitle">{{ item.subTitle }}{{ signIndex }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.subData && item.subData.length">
<el-form
class="edit-sub-block"
label-width="150px"
:inline="true"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.subData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
</div>
<div class="baseInfo">
<detailComp :configData="configData" :detailInfo="detailInfo"></detailComp>
</div>
</template>
<script>
import {
evaluationStatusOpt,
evaluationStatusOptMap,
ownerTypeOpt,
usageTypeOpt
} from "@/common/constants.js"
import { deepClone } from "@/common/util"
import detailComp from "./detailComp.vue"
export default {
components: {
detailComp
},
data() {
return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
picOptions: {
width: "90px",
height: "90px",
isClose: false
},
rules: {},
configData: [
{
title: "基础信息",
......@@ -204,17 +50,17 @@ export default {
key: "regionOperationName"
},
{
title: "需求描述:",
key: "requirementDescription",
col: 24
},
{
title: "创建人",
key: "createdBy"
},
{
title: "申请时间",
key: "createdDate"
},
{
title: "需求描述",
key: "requirementDescription",
col: 24
}
]
}
......@@ -238,7 +84,3 @@ export default {
}
}
</script>
<style scoped lang="scss">
@import "./detail.scss";
</style>
<template>
<div class="info-wrapper">
<div class="item" v-for="(item, index) in configData" :key="index">
<div class="title" v-if="item.title">{{ item.title }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.infoData && item.infoData.length">
<el-form
:ref="item.childRef"
class="edit-sub-block"
label-width="150px"
:inline="true"
:model="detailInfo"
:rules="rules"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.infoData">
<template v-if="item.isHidden ? !item.isHidden : true">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'" :prop="item.key">
<template v-if="item.type == 'imgList'">
<div
class="photo-box"
v-if="
detailInfo[item.key] && detailInfo[item.key].length
"
>
<glsx-preview
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:videoImg="true"
:picOptions="{
...picOptions,
type: item.otherType
}"
limit="1"
></glsx-preview>
</div>
<template v-else> - </template>
</template>
<template v-else-if="item.isEdit">
<template v-if="item.type == 'input'">
<el-input
v-model="detailInfo[item.key]"
:placeholder="`请输入${item.label}`"
:maxlength="item.maxLength || ''"
size="small"
class="edit-form-item"
></el-input>
</template>
<template v-else-if="item.type == 'date'">
<el-date-picker
v-model="detailInfo[item.key]"
type="date"
:placeholder="item.label"
size="small"
class="edit-form-item"
:picker-options="item.pickerOptions"
>
</el-date-picker>
</template>
<template v-else-if="item.type == 'textarea'">
<el-input
type="textarea"
:rows="3"
placeholder="请输入"
v-model="detailInfo[item.key]"
:maxlength="item.maxLength"
class="edit-form-item"
>
</el-input>
</template>
<template v-else-if="item.type == 'select'">
<el-select
v-model="detailInfo[item.key]"
:placeholder="`请选择${item.label}`"
size="small"
class="edit-form-item"
>
<el-option
v-for="item in item.options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</template>
</template>
<template v-else>
<div class="flex">
<div
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
<template v-if="item.suffixText">
<div class="unit">
{{ item.suffixText }}
</div>
</template>
</div>
</template>
</el-form-item></el-col
>
</template>
</template>
</el-row>
</el-form>
</div>
</div>
<template v-if="item.subTitle">
<div v-for="signIndex in item.sign" :key="signIndex">
<div class="subtitle">{{ item.subTitle }}{{ signIndex }}</div>
<div class="detail-content">
<div class="form_div" v-if="item.subData && item.subData.length">
<el-form
class="edit-sub-block"
label-width="150px"
:inline="true"
>
<el-row :gutter="20">
<template v-for="(item, key) in item.subData">
<el-col :span="item.col ? item.col : 12" :key="key">
<el-form-item :label="item.title + ':'">
<div
v-if="item.className && item.className(detailInfo)"
:style="{
background: item.className(detailInfo)
}"
:class="'dot'"
></div>
<template>
{{
item.formatter
? item.formatter(detailInfo) || "-"
: detailInfo[item.key]
? detailInfo[item.key]
: "-"
}}
</template>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
</div>
</div>
</template>
</div>
</div>
</template>
<script>
export default {
props: {
configData: {
type: Array,
default: () => []
},
detailInfo: {
type: Object,
default: () => {}
}
},
data() {
return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
picOptions: {
width: "90px",
height: "90px",
isClose: false
},
rules: {}
}
}
}
</script>
<style scoped lang="scss">
@import "./detail.scss";
</style>
<!-- 操作记录 -->
<template>
<div class="oparete-wrap">
<div class="title">操作记录</div>
<div class="content">
<div class="item" v-for="(item, index) in logs" :key="index">
<div class="item-type">{{ operationType[item.operationType] }}</div>
<div class="item-operate">操作人:{{ item.createdBy }}</div>
<div class="item-time">操作时间:{{ item.createdDate }}</div>
</div>
</div>
</div>
</template>
<script>
export default {
props: {
logs: {
type: Array,
default: () => []
}
},
data() {
return {
// 1-创建 2-人事确认 3-驳回 4-新增简历 5-编辑简历 6-新增入职 7-完成 ,
operationType: {
1: "创建",
2: "人事确认",
3: "驳回",
4: "新增简历",
5: "编辑简历",
6: "新增入职",
7: "完成"
}
}
}
}
</script>
<style lang="scss" scoped>
.oparete-wrap {
background: #ffffff;
margin: 20px 20px 0;
.title {
color: #333333;
font-size: 16px;
font-weight: bold;
padding: 13.5px 20px;
border-bottom: 1px solid #e5e5e5;
line-height: 23px;
box-sizing: border-box;
}
.content {
padding: 20px;
}
.item {
display: flex;
align-items: center;
margin-bottom: 20px;
.item-type {
color: #333333;
font-size: 14px;
font-weight: 600;
width: 60px;
margin-right: 40px;
}
.item-operate {
width: 200px;
color: #333333;
font-size: 14px;
margin-right: 40px;
}
.item-time {
color: #333333;
font-size: 14px;
}
}
}
</style>
......@@ -3,55 +3,74 @@
<div class="recruit-info">
<div class="header">
<div class="title">招聘信息</div>
<el-button type="primary" plain icon="el-icon-plus" @click="handleAdd"
<el-button
type="primary"
plain
icon="el-icon-plus"
@click="handleAdd"
v-if="isBtn"
>新增简历</el-button
>
</div>
<div class="content">
<div class="recruit-item" v-for="(item, index) in resumes" :key="index">
<img class="profile" src="@/assets/profile.png" alt="" />
<div class="info">
<div class="name">
{{ item.personName
}}<span class="look" @click="handleResume(item)">查看简历</span>
</div>
<div class="flex">
<div class="item">
<span class="label">手机号:</span>
<span class="value">{{ item.phoneNumber }}</span>
<template v-if="resumes.length">
<div class="recruit-item" v-for="(item, index) in resumes" :key="index">
<img class="profile" src="@/assets/profile.png" alt="" />
<div class="info">
<div class="name">
{{ item.personName
}}<span class="look" @click="handleResume(item)">查看简历</span>
</div>
<div class="item">
<span class="label">投递时间:</span>
<span class="value">{{ item.createdDate || "-" }}</span>
<div class="flex">
<div class="item">
<span class="label">手机号:</span>
<span class="value">{{ item.phoneNumber }}</span>
</div>
<div class="item">
<span class="label">投递时间:</span>
<span class="value">{{ item.createdDate || "-" }}</span>
</div>
</div>
</div>
<div class="btns">
<template v-if="isBtn">
<template v-if="item.status == 0">
<el-button type="text" @click="handleEdit(item, index)"
>编辑</el-button
>
<el-button type="text" @click="handleResolve(item, index)"
>处理</el-button
>
<el-button type="text" @click="handleDelete(index)"
>删除</el-button
>
</template>
<template v-if="item.status == 1">
<el-button type="text" @click="handleWorking(item)"
>转入职</el-button
>
<el-button type="text" @click="handleLook(item)"
>查看结果</el-button
>
</template>
</template>
<template v-else>
<el-button type="text" @click="handleLook(item)"
>查看结果</el-button
>
</template>
</div>
</div>
<div class="btns">
<template v-if="item.status == null">
<el-button type="text" @click="handleDelete(index)">删除</el-button>
</template>
<template v-if="item.status == 0">
<el-button type="text" @click="handleEdit(item, index)"
>编辑</el-button
>
<el-button type="text" @click="handleResolve(item, index)"
>处理</el-button
>
<el-button type="text" @click="handleDelete(index)">删除</el-button>
</template>
<template v-if="item.status == 1">
<el-button type="text" @click="handleWorking(item)"
>转入职</el-button
>
<el-button type="text" @click="handleLook(item)"
>查看结果</el-button
>
</template>
</div>
</template>
<div class="emptyCom" v-show="!resumes.length">
<img :src="emptyImgUrl" class="emptyImg" alt="" />
<span class="tips">暂无招聘信息</span>
</div>
</div>
<!-- 新增简历 -->
<glsk-form-dialog
ref="addResumeDialog"
v-if="isAddVisible"
:selectVisible="isAddVisible"
:dialogConfig="isAddDialogConfig"
......@@ -77,34 +96,7 @@
:on-change="(file, fileList) => handleFileChange(file, 'resumeUrl')"
:on-exceed="hanldeOnExceed"
>
<div class="upload-txt">+ 上传文件</div>
<!-- <template v-if="uploadFileList && uploadFileList.length > 0">
<div
class="file-wrap"
v-for="(item, index) in uploadFileList"
:key="index"
>
<div class="file-box" @click="toOpenPDF(item.url)">
<div class="info" v-if="item.name">
<img class="logo" :src="require('@/assets/pdf.png')" alt="" />
<span class="name">{{ item.name }}</span>
</div>
<div
class="process"
:style="{
width: item.url ? '432px' : (compress * 432) / 100 + 'px'
}"
></div>
</div>
<img
v-if="item.url"
class="del-btn"
:src="require('@/assets/icon-delete.png')"
alt=""
@click="delFile(index)"
/>
</div>
</template> -->
<div class="upload-txt">+添加附件</div>
<div slot="tip" class="el-upload__tip">
注:请上传1份简历文件,支持pdf格式,最大不超过10M
</div>
......@@ -148,10 +140,16 @@ export default {
resumes: {
type: Array,
default: () => []
},
isBtn: {
type: Boolean,
default: false
}
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
emptyImgUrl: require("@/assets/resume-empty.png"),
detailVisible: false,
isResolveVisible: false,
isAddVisible: false,
......@@ -160,6 +158,7 @@ export default {
resumesData: [],
paramsObj: {},
recordInfo: {},
isAdd: true,
isAddDialogConfig: {
title: "新增简历",
okText: "确定"
......@@ -204,7 +203,8 @@ export default {
personName: "",
phoneNumber: "",
resumeUrl: "",
status: null
status: 0,
resumeFileName: ""
},
isResolveForm: {
processResult: "",
......@@ -219,6 +219,7 @@ export default {
name: "personName",
type: "input",
maxlength: "20",
placeholder: "请输入",
isClear: true
},
{
......@@ -226,6 +227,7 @@ export default {
name: "phoneNumber",
type: "input",
maxlength: "11",
placeholder: "请输入",
isClear: true
},
{
......@@ -345,8 +347,14 @@ export default {
}
]
const success = (res) => {
this.isAddForm.resumeFileName = fileInfo.name
this.isAddForm[targetItem] = res.aliyunAddress // 文件地址
this.uploadFileList[0].url = res.aliyunAddress
//清除校验
const childRef = this.$refs.addResumeDialog
childRef.$refs.editFormRef.$refs[childRef.editChildRef].clearValidate(
"resumeUrl"
)
}
const fail = (err) => {
this.clearItem(targetItem)
......@@ -363,41 +371,61 @@ export default {
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType)
},
isAddDialogVisible() {
this.isAddForm = {}
this.uploadFileList = []
this.isAddVisible = !this.isAddVisible
},
isResolveDialogVisible() {
this.isResolveForm = {}
this.isResolveVisible = !this.isResolveVisible
},
getCurrentDate() {
const time = new Date()
const y = time.getFullYear()
const m = time.getMonth() + 1
const d = time.getDate()
return y + "-" + m + "-" + d
},
//新增简历确认
handleAddConfirm(data) {
let isAdd = data.id || data.id === 0 ? false : true
this.$emit("handleAddConfirm", data, isAdd, this.index)
console.log("data", data)
data.status = 0 //状态未处理
data.createdDate = this.getCurrentDate()
this.$emit("handleAddConfirm", data, this.isAdd, this.index)
this.isAddDialogVisible()
},
//简历处理确认
handleResolveConfirm(data) {
console.log(data)
console.log(this.userInfo.detail)
data.status = 1 //状态改成已处理
data.processTime = Util.dateFormate(new Date(), "YYYY-MM-DD HH:mm") //处理时间
data.interviewTime
? (data.interviewTime = Util.dateFormate(
data.interviewTime,
"YYYY-MM-DD"
))
: ""
data.processorName = this.userInfo.detail.userName
this.$emit("handleAddConfirm", data, false, this.index)
this.isResolveDialogVisible()
},
//新增简历
handleAdd() {
this.isAdd = true
this.isAddDialogConfig.title = "新增简历"
this.isAddVisible = !this.isAddVisible
},
handleEdit(data, index) {
this.isAdd = false
this.index = index
this.isAddDialogConfig.title = "编辑简历"
this.isAddVisible = !this.isAddVisible
this.uploadFileList = [{ url: data.resumeUrl, name: data.fileName }]
this.uploadFileList = [{ url: data.resumeUrl, name: data.resumeFileName }]
this.isAddForm = deepClone(data)
},
updataResolveFormData(val) {
// 处理结果=「已完成面试」
// 1-人员不匹配 2-已完成面试 ,
if (val == 1) {
this.isResolveFormData[
this.findFormAttrId("isResolveFormData", "interviewTime")
......@@ -423,7 +451,6 @@ export default {
},
//删除简历
handleDelete(index) {
console.log("handleDelete")
this.$emit("handleAddConfirm", null, false, index)
},
//转入职
......@@ -563,6 +590,22 @@ export default {
right: 60px;
}
}
.emptyCom {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
.emptyImg {
width: 66px;
height: 46px;
}
.tips {
color: #666666;
font-size: 12px;
margin-top: 20px;
}
}
}
.upload-txt {
width: 110px;
......@@ -576,6 +619,10 @@ export default {
line-height: 32px;
text-align: center;
}
.el-upload__tip {
color: #999999;
font-size: 14px;
}
.file-wrap {
display: flex;
align-items: center;
......
import { getRecruitmentDetail } from "@/api/usedCarManagement"
import { getRecruitmentDetail } from "@/api/recruitment"
import baseInfo from "./baseInfo.vue"
import recruitInfo from "./recruitInfo.vue"
import entryInfo from "./entryInfo.vue"
import OperateList from "./operate.vue"
export const recruitMixin = {
components: {
baseInfo,
recruitInfo,
entryInfo
entryInfo,
OperateList
},
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,
......@@ -121,7 +31,6 @@ export const recruitMixin = {
}
},
created() {
// this.loading = true
this.getRecruitmentDetail()
},
methods: {
......@@ -129,8 +38,9 @@ export const recruitMixin = {
this.$router.push("/recruitmentManagement")
},
getRecruitmentDetail() {
this.loading = true
getRecruitmentDetail({
evalOrderNo: this.evalOrderNo
id: this.id
}).then((res) => {
console.log("res", res)
this.detailInfo = res
......
......@@ -7,11 +7,13 @@
:resumes="detailInfo.resumes"
@handleAddConfirm="handleAddConfirm"
@handleWorking="handleWorking"
:isBtn="isBtn"
></recruitInfo>
<entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
ref="entryInfo"
@handleEntryConfirm="handleEntryConfirm"
:isBtn="isBtn"
></entryInfo>
</div>
<div class="footer">
......@@ -32,18 +34,31 @@
<script>
import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin"
import { handleRecruitment } from "@/api/recruitment"
export default {
mixins: [recruitMixin],
data() {
return {
loading: false,
btnLoding: false
btnLoding: false,
isBtn: true
}
},
methods: {
handleSave() {
this.btnLoding = true
// this.$router.push("/recruitmentManagement")
let params = {
id: this.id,
resumes: this.detailInfo.resumes,
onboardingPlans: this.detailInfo.onboardingPlans
}
handleRecruitment(params).then((res) => {
if (res) {
this.btnLoding = false
this.$router.push("/recruitmentManagement")
this.$message.success("提交成功")
}
})
},
//转入职
handleWorking(data) {
......@@ -114,7 +129,7 @@ export default {
}
}
.layout {
height: calc(100% - 130px);
height: calc(100% - 58px);
overflow-y: scroll;
}
}
......
......@@ -3,8 +3,15 @@
<div class="look-recruitment" v-loading="loading">
<div class="layout">
<baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo :resumes="detailInfo.resumes"></recruitInfo>
<entryInfo :onboardingPlans="detailInfo.onboardingPlans"></entryInfo>
<recruitInfo :resumes="detailInfo.resumes" :isBtn="isBtn"></recruitInfo>
<entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
:isBtn="isBtn"
></entryInfo>
<operate-list
:logs="detailInfo.logs"
v-if="detailInfo.logs && detailInfo.logs.length > 0"
></operate-list>
</div>
<div class="footer">
<el-button class="cancel-btn" size="small" @click="handleCancel"
......@@ -20,7 +27,8 @@ export default {
data() {
return {
loading: false,
detailInfo: {}
detailInfo: {},
isBtn: false
}
},
mounted() {
......
<template>
<d2-dialog
title="预警设置"
:is-visible="warningVisible"
class="warningDailog"
width="750px"
width="1040px"
btn-ok-label="确定"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm"
>
<p class="title">延保</p>
<glsx-combi-form
class="yanbao"
label-width="150px"
default-width="400px"
default-width="310px"
:form-obj="warningForm"
:form-data="warningFormData"
></glsx-combi-form>
<p class="title">权益</p>
<glsx-combi-form
label-width="150px"
default-width="400px"
default-width="310px"
:form-obj="warningForm"
:form-data="warningFormData2"
></glsx-combi-form>
<div class="explain">
说明:设置业务兜底指标,按每月进行实时监测,一旦低于设置的指标+3%时,系统自动进行预警。
说明:设置业务兜底指标,按每月进行实时监测,一旦低于设置的目标值,系统自动进行预警
</div>
</d2-dialog>
</template>
<script>
<script>
import { limitPrice } from "@/common/format"
import {
saveOrUpdateWarningConfig,
......@@ -45,18 +44,29 @@ export default {
ewConRate: "", //延保转化率
ewAxbConRate: "", //延保安心包转化率
ewLtConRate: "", //延保轮胎转化率
riConRate: "" //权益转化率
riConRate: "", //权益转化率
ewPenetrationRate: "", //延保渗透率
ewAxbPenetrationRate: "", //安心包渗透率
ewLtPenetrationRate: "", //轮胎渗透率
batteryPenetrationRate: "", //电池渗透率
batteryConversionRate: "" //电池转化率
},
oldVal: {
ewConRate: "", //延保转化率
ewAxbConRate: "", //延保安心包转化率
ewLtConRate: "", //延保轮胎转化率
riConRate: "" //权益转化率
riConRate: "", //权益转化率
ewPenetrationRate: "", //延保渗透率
ewAxbPenetrationRate: "", //安心包渗透率
ewLtPenetrationRate: "", //轮胎渗透率
batteryPenetrationRate: "", //电池渗透率
batteryConversionRate: "" //电池转化率
},
warningFormData: [
{
label: "转化率",
name: "ewConRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
......@@ -66,8 +76,24 @@ export default {
}
},
{
label: "渗透率",
name: "ewPenetrationRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: () => {
this.handleInput(
this.warningForm.ewPenetrationRate,
"ewPenetrationRate"
)
}
}
},
{
label: "安心包转化率",
name: "ewAxbConRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
......@@ -77,8 +103,24 @@ export default {
}
},
{
label: "安心包渗透率",
name: "ewAxbPenetrationRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: () => {
this.handleInput(
this.warningForm.ewAxbPenetrationRate,
"ewAxbPenetrationRate"
)
}
}
},
{
label: "轮胎转化率",
name: "ewLtConRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
......@@ -86,12 +128,58 @@ export default {
this.handleInput(this.warningForm.ewLtConRate, "ewLtConRate")
}
}
},
{
label: "轮胎渗透率",
name: "ewLtPenetrationRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: (e) => {
this.handleInput(
this.warningForm.ewLtPenetrationRate,
"ewLtPenetrationRate"
)
}
}
},
{
label: "电池转化率",
name: "batteryConversionRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: (e) => {
this.handleInput(
this.warningForm.batteryConversionRate,
"batteryConversionRate"
)
}
}
},
{
label: "电池渗透率",
name: "batteryPenetrationRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: (e) => {
this.handleInput(
this.warningForm.batteryPenetrationRate,
"batteryPenetrationRate"
)
}
}
}
],
warningFormData2: [
{
label: "转化率",
name: "riConRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
......@@ -139,7 +227,12 @@ export default {
ewConRate: "", //延保转化率
ewAxbConRate: "", //延保安心包转化率
ewLtConRate: "", //延保轮胎转化率
riConRate: ""
riConRate: "",
ewPenetrationRate: "", //延保渗透率
ewAxbPenetrationRate: "",
ewLtPenetrationRate: "",
batteryPenetrationRate: "",
batteryConversionRate: ""
}
}
},
......@@ -165,7 +258,12 @@ export default {
ewConRate: this.warningForm.ewConRate,
ewAxbConRate: this.warningForm.ewAxbConRate,
ewLtConRate: this.warningForm.ewLtConRate,
riConRate: this.warningForm.riConRate
riConRate: this.warningForm.riConRate,
batteryConversionRate: this.warningForm.batteryConversionRate,
batteryPenetrationRate: this.warningForm.batteryPenetrationRate,
ewPenetrationRate: this.warningForm.ewPenetrationRate,
ewAxbPenetrationRate: this.warningForm.ewAxbPenetrationRate,
ewLtPenetrationRate: this.warningForm.ewLtPenetrationRate
}
const res = await saveOrUpdateWarningConfig(params)
if (res) {
......@@ -197,5 +295,12 @@ export default {
color: #999ea8;
font-size: 14px;
}
.yanbao {
::v-deep .glsx-combi-form-block {
display: flex;
align-items: center;
flex-wrap: wrap;
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -146,7 +146,8 @@ export default {
},
searchFormSearch: {},
searchForm: {
sceneLabelCode: ""
sceneLabelCode: "",
businessType: ""
},
showFormData: [
{
......@@ -161,6 +162,16 @@ export default {
optionsName: "sceneLabelList"
},
{
label: "业务场景",
name: "businessType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "businessTypeOpt"
},
{
label: "品牌",
name: "sonBrandId",
type: "select",
......
......@@ -164,7 +164,8 @@ export default {
},
searchFormSearch: {},
searchForm: {
sceneLabelCode: ""
sceneLabelCode: "",
businessType: ""
},
showFormData: [
{
......@@ -179,6 +180,16 @@ export default {
optionsName: "sceneLabelList"
},
{
label: "业务场景",
name: "businessType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "businessTypeOpt"
},
{
label: "品牌",
name: "sonBrandId",
type: "select",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!