Commit eced9fb3 by wangzhihui

招聘管理

1 parent a45e6302
...@@ -1583,3 +1583,10 @@ export const oaFlowPaymentStatusOpt = [ ...@@ -1583,3 +1583,10 @@ export const oaFlowPaymentStatusOpt = [
{ confId: "1", confValue: "支付中", color: "#FDB757" }, { confId: "1", confValue: "支付中", color: "#FDB757" },
{ confId: "4", confValue: "支付取消", color: "#8C8C8C" } { confId: "4", confValue: "支付取消", color: "#8C8C8C" }
] ]
export const inviteStatusOpt = [
{ confId: 1, confValue: "待人事确认" },
{ confId: 2, confValue: "招聘中" },
{ confId: 3, confValue: "已完成" },
{ confId: 4, confValue: "已驳回" }
]
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2025-06-19 16:57:57
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-07-01 16:36:04
* @FilePath: \dj-car-life-system\src\router\modules\912_residentManage.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/*
* @Description:
* @Author: huyue
* @Date: 2024-04-01 15:03:31
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2025-07-01 16:34:27
*/
const _import = require("@/libs/util.import." + process.env.NODE_ENV) const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = { export const routerName = {
912: { 912: {
...@@ -1091,5 +1076,114 @@ export const routerName = { ...@@ -1091,5 +1076,114 @@ export const routerName = {
cache: false cache: false
}, },
component: _import("residentManage/recordLabelManagement/index") component: _import("residentManage/recordLabelManagement/index")
},
91223: {
path: "/recruitmentManagement",
name: "recruitmentManagement",
meta: {
title: "招聘管理",
authId: "91223",
parentId: "912",
cache: false
},
component: _import("residentManage/recruitmentManagement/index"),
auth: [
{
authId: "9122301",
parentId: "91223",
label: "新增招聘需求",
handle: "handleAdd",
category: "Button",
type: "primary",
addRoutePath: [
{
authId: "912230101",
name: "新增招聘需求",
parentId: "91223"
}
]
},
{
authId: "9122302",
parentId: "91223",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9122303",
parentId: "91223",
label: "查看招聘需求",
handle: "handleDetail",
addRoutePath: [
{
authId: "912230301",
name: "查看招聘需求",
parentId: "91223"
}
]
},
{
authId: "9122304",
parentId: "91223",
label: "确认",
handle: "handleConfirm"
},
{
authId: "9122305",
parentId: "91223",
label: "驳回",
handle: "handleReject"
},
{
authId: "9122306",
parentId: "91223",
label: "处理",
handle: "handleDispose",
addRoutePath: [
{
authId: "912230601",
name: "处理招聘需求",
parentId: "91223"
}
]
}
]
},
912230101: {
path: "/",
name: "",
meta: {
title: "新增招聘需求",
authId: "9122301",
parentId: "91223",
activePath: "/addRecruitment"
},
component: _import("residentManage/recruitmentManagement/addRecruitment")
},
912230601: {
path: "/disposeRecruitment",
name: "disposeRecruitment",
meta: {
title: "处理招聘需求",
authId: "9122306",
parentId: "91223",
activePath: "/recruitmentManagement"
},
component: _import(
"residentManage/recruitmentManagement/disposeRecruitment"
)
},
912230301: {
path: "/lookRecruitment",
name: "disposeRecruitment",
meta: {
title: "查看招聘需求",
authId: "9122306",
parentId: "91223",
activePath: "/recruitmentManagement"
},
component: _import("residentManage/recruitmentManagement/lookRecruitment")
} }
} }
<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>
</template>
<script>
import {
evaluationStatusOpt,
evaluationStatusOptMap,
ownerTypeOpt,
usageTypeOpt
} from "@/common/constants.js"
import { deepClone } from "@/common/util"
export 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: {},
configData: [
{
title: "基础信息",
infoData: [
{
title: "门店名称",
key: "licensePlate"
},
{
title: "车架号",
key: "近一月新车销售"
},
{
title: "业务类型",
key: "carTypeName",
formatter: (cellValue) => {
let carSeriesName = cellValue.carSeriesName
? cellValue.carSeriesName
: "",
carTypeName = cellValue.carTypeName
? cellValue.carTypeName
: ""
return carSeriesName + " " + carTypeName
}
},
{
title: "招聘类型",
key: "registrationDate"
},
{
title: "招聘数量",
key: "registrationCityName",
formatter: (cellValue) => {
if (
!cellValue.registrationCityName &&
!cellValue.registrationProvinceName
)
return "-"
return cellValue.registrationProvinceName ==
cellValue.registrationCityName
? cellValue.registrationProvinceName
: cellValue.registrationProvinceName +
cellValue.registrationCityName
}
},
{
title: "区域运营",
key: "mileageStr"
},
{
title: "需求描述:",
key: "carTypeName",
col: 24
},
{
title: "创建人",
key: "ownerType",
formatter: (row) => {
const statusItem = this.getStatusItem(
this.baseData,
"ownerTypeOpt",
row,
"ownerType"
)
return statusItem ? statusItem.confValue : "-"
}
},
{
title: "申请时间",
key: "sunroof",
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: {
getStatusItem(baseData, optKey, row, rowKey) {
if (!baseData || !baseData[optKey] || !row) return null
return baseData[optKey].find(
(item) => item.confId == row[rowKey] // 使用严格相等
)
}
},
props: {
detailInfo: {
type: Object,
default: () => {}
}
}
}
</script>
<style scoped lang="scss">
@import "./detail.scss";
</style>
.info-wrapper {
background-color: #fff;
margin: 0 20px;
.item {
margin-bottom: 20px;
.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;
}
.form_div {
color: #333333;
padding: 20px;
font-size: 14px;
.edit-sub-block {
.el-form-item {
width: 100%;
margin-bottom: 0px;
}
::v-deep .el-form-item__label {
color: #666666;
font-size: 14px;
line-height: 20px;
}
.itemDiv {
display: flex;
.halfItem {
width: 50%;
}
}
.detail-txt {
display: inline-block;
width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-col {
margin-bottom: 20px;
}
::v-deep .el-form-item__content {
width: calc(100% - 150px);
word-break: break-all;
line-height: 20px;
}
::v-deep el-form-item--medium .el-form-item__label {
line-height: 20px;
}
}
.unit {
margin-left: 8px;
flex-shrink: 0;
line-height: 32px;
}
.edit-sub-block-two {
.el-form-item {
margin-bottom: 0px;
}
}
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.photo-box {
display: flex;
align-items: center;
::v-deep .photo-activity {
width: 100%;
height: 100%;
object-fit: contain;
position: static !important;
border-radius: 4px;
}
::v-deep .video-poster {
position: absolute;
width: 104px;
height: 104px;
object-fit: fill;
top: 0;
right: 0;
left: 0;
bottom: 0;
border-radius: 4px;
}
::v-deep .mask {
border-radius: 4px;
}
::v-deep .pic-box {
margin-right: 16px;
.video-poster {
width: 90px;
height: 90px;
}
}
}
}
}
}
<template>
<div class="recruit-info">
<div class="header">
<div class="title">招聘信息</div>
<el-button type="primary" plain icon="el-icon-plus">新增简历</el-button>
</div>
<div class="content">
<div class="recruit-item">
<img class="profile" src="@/assets/profile.png" alt="" />
<div class="info">
<div class="name">张三<span class="look">查看简历</span></div>
<div class="flex">
<div class="item">
<span class="label">手机号:</span>
<span class="value">13893047470</span>
</div>
<div class="item">
<span class="label">投递时间:</span>
<span class="value">2024-11-04</span>
</div>
</div>
</div>
<div class="btns"></div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "recruitInfo",
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.recruit-info {
margin: 20px;
background: #ffffff;
.header {
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #e5e5e5;
box-sizing: border-box;
height: 50px;
.title {
font-size: 16px;
font-weight: bold;
color: #333333;
}
}
.content {
padding: 20px;
box-sizing: border-box;
.recruit-item {
padding: 12px 20px;
background: rgb(245, 247, 250);
border-radius: 8px;
display: flex;
align-items: center;
.profile {
width: 56px;
height: 56px;
margin-right: 16px;
border-radius: 8px;
}
.info {
.name {
color: #333333;
font-size: 15px;
font-weight: 600;
margin-bottom: 8.5px;
display: flex;
align-items: center;
.look {
color: #2a58ad;
font-size: 14px;
font-weight: normal;
margin-left: 8px;
}
}
.flex {
display: flex;
align-items: center;
.item {
color: #333333;
font-size: 14px;
margin-right: 48px;
}
}
}
}
}
}
</style>
<!-- 查看招聘需求 -->
<template>
<div class="look-recruitment">
<baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo :detailInfo="detailInfo"></recruitInfo>
</div>
</template>
<script>
import baseInfo from "./components/baseInfo.vue"
import recruitInfo from "./components/recruitInfo.vue"
export default {
components: {
baseInfo,
recruitInfo
},
data() {
return {
detailInfo: {}
}
}
}
</script>
<style lang="scss" scoped>
.look-recruitment {
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!