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" import request from "./request"
...@@ -37,11 +29,17 @@ export function updateRecruitmentStatus(data) { ...@@ -37,11 +29,17 @@ export function updateRecruitmentStatus(data) {
} }
// 招聘需求汇总 // 招聘需求汇总
export function getRecruitmentSummary(data) { export function getRecruitmentSummary(data = {}) {
data.method = `dj.staff.api.recruitment.demand.summary` data.method = `dj.staff.api.recruitment.demand.summary`
return request(data) return request(data)
} }
// 门店(d+系统中的全部门店+园区店商户)列表查询
export function getDemandMerchant(data) {
data.method = `dj.staff.api.recruitment.demand.merchant.page`
return request(data)
}
// 新增字典项 // 新增字典项
export function addDict(data) { export function addDict(data) {
data.method = `dj.staff.api.dict.add` data.method = `dj.staff.api.dict.add`
......
...@@ -25,7 +25,7 @@ const request = ( ...@@ -25,7 +25,7 @@ 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")) { } else if (params.method.includes("dj.staff.api")) {
apiName = "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"
...@@ -50,7 +50,7 @@ const request = ( ...@@ -50,7 +50,7 @@ const request = (
clue: "axios5", clue: "axios5",
"dj.businessSchool": "axios6", "dj.businessSchool": "axios6",
script: "axios7", script: "axios7",
staff: "axios8" staff: "axios9"
} }
const baseApiName = mappingName[apiName] const baseApiName = mappingName[apiName]
// console.log(baseApiName, "baseApiName") // console.log(baseApiName, "baseApiName")
......
...@@ -1626,17 +1626,17 @@ export const oaFlowPaymentStatusOpt = [ ...@@ -1626,17 +1626,17 @@ export const oaFlowPaymentStatusOpt = [
] ]
export const inviteStatusOpt = [ export const inviteStatusOpt = [
{ confId: 1, confValue: "待人事确认" }, { confId: 0, confValue: "待人事确认" },
{ confId: 2, confValue: "招聘中" }, { confId: 1, confValue: "招聘中" },
{ confId: 3, confValue: "已完成" }, { confId: 2, confValue: "已完成" },
{ confId: 4, confValue: "已驳回" } { confId: 3, confValue: "已驳回" }
] ]
export const inviteStatusOptMap = { export const inviteStatusOptMap = {
0: "#FDB757",
1: "#FDB757", 1: "#FDB757",
2: "#FDB757", 2: "#2CCA74",
3: "#2CCA74", 3: "#EB4E4E"
4: "#EB4E4E"
} }
export const interviewResultOpt = [ export const interviewResultOpt = [
{ confId: "1", confValue: "通过" }, { confId: "1", confValue: "通过" },
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
:form-obj="editData" :form-obj="editData"
:form-data="editFormData" :form-data="editFormData"
:form-rules="formRules" :form-rules="formRules"
@handleAddBrandSupplyConfirm="handleAddSpecialSelectConfirm" @handleAddSelectTypeConfirm="handleAddSelectTypeConfirm"
@handleEditBrandSupplyConfirm="handleEditSpecialSelectConfirm" @handleEditSelectTypeConfirm="handleEditSelectTypeConfirm"
> >
<template v-for="name in slotArr" #[name]> <template v-for="name in slotArr" #[name]>
<slot :name="name"></slot> <slot :name="name"></slot>
...@@ -143,17 +143,18 @@ export default { ...@@ -143,17 +143,18 @@ export default {
} }
}, },
handleConfirm() { handleConfirm() {
console.log(this.editFormData)
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) { handleAddSelectTypeConfirm(data) {
this.$emit("handleAddSpecialSelectConfirm", data) this.$emit("handleAddSelectTypeConfirm", data)
}, },
handleEditSpecialSelectConfirm(data){ handleEditSelectTypeConfirm(data) {
this.$emit("handleEditSpecialSelectConfirm", data) this.$emit("handleEditSelectTypeConfirm", data)
}, },
handleClose() { handleClose() {
this.$emit("handleClose") this.$emit("handleClose")
......
...@@ -1145,6 +1145,12 @@ export const routerName = { ...@@ -1145,6 +1145,12 @@ export const routerName = {
handle: "handleReject" handle: "handleReject"
}, },
{ {
authId: "9122307",
parentId: "91223",
label: "完成",
handle: "handleComplete"
},
{
authId: "9122306", authId: "9122306",
parentId: "91223", parentId: "91223",
label: "处理", label: "处理",
......
...@@ -33,23 +33,28 @@ ...@@ -33,23 +33,28 @@
</div> </div>
</template> </template>
<script> <script>
import { getInviteMerchant } from "@api/invitation" import {
import { addRecruitment } from "@api/recruitment" addRecruitment,
getDemandMerchant,
getDictList
} from "@api/recruitment"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { merchantStaffByRoleList } from "@api/index"
export default { export default {
name: "addRecruitment", name: "addRecruitment",
data() { data() {
return { return {
btnLoding: false, btnLoding: false,
addForm: { addForm: {
merchantName: "", merchantName: "",
merchantId: "", merchantId: "",
regionOperationName: "", regionOperationName: "",
regionOperationId: "", //区域运营 regionOperationId: "", //区域运营
businessType: "", //业务类型 businessType: "", //业务类型
businessTypeName: "",
recruitmentQuantity: "", //招聘数量 recruitmentQuantity: "", //招聘数量
recruitmentType: "", //招聘类型 recruitmentType: "", //招聘类型
recruitmentTypeName: "",
requirementDescription: "" requirementDescription: ""
}, },
labelWidth: "150px", labelWidth: "150px",
...@@ -65,7 +70,15 @@ export default { ...@@ -65,7 +70,15 @@ export default {
optionList: [], optionList: [],
optionId: "merchantId", optionId: "merchantId",
optionLabel: "merchantName", optionLabel: "merchantName",
optionsName: "merchantList" optionsName: "merchantList",
changeAttr: (value, targetItem) => {
this.addForm.merchantName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
}, },
{ {
label: "区域运营", label: "区域运营",
...@@ -73,8 +86,17 @@ export default { ...@@ -73,8 +86,17 @@ export default {
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "merchantId", optionId: "uuid",
optionLabel: "merchantName" optionLabel: "staffName",
optionsName: "supervisionOptionsListOpt",
changeAttr: (value, targetItem) => {
this.addForm.regionOperationName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
}, },
{ {
label: "业务类型", label: "业务类型",
...@@ -82,8 +104,17 @@ export default { ...@@ -82,8 +104,17 @@ export default {
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "merchantId", optionId: "itemValue",
optionLabel: "merchantName" optionLabel: "itemName",
optionsName: "bussinessTypeOpt",
changeAttr: (value, targetItem) => {
this.addForm.businessTypeName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
}, },
{ {
label: "招聘数量", label: "招聘数量",
...@@ -97,12 +128,22 @@ export default { ...@@ -97,12 +128,22 @@ export default {
type: "select", type: "select",
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "itemValue",
optionLabel: "confValue" optionLabel: "itemName",
optionsName: "recruitmentTypeOpt",
changeAttr: (value, targetItem) => {
this.addForm.recruitmentTypeName = this.filterAttribute(
targetItem.optionsName,
targetItem.optionId,
targetItem.optionLabel,
value
)
}
}, },
{ {
label: "需求描述", label: "需求描述",
name: "requirementDescription", name: "requirementDescription",
placeholder: "请简单描述用人要求等信息",
type: "input", type: "input",
inputType: "textarea", inputType: "textarea",
showLimit: true, showLimit: true,
...@@ -131,7 +172,7 @@ export default { ...@@ -131,7 +172,7 @@ export default {
console.log(value) console.log(value)
// 校验是否为整数 // 校验是否为整数
if (!/^\d+$/.test(value)) { if (!/^\d+$/.test(value)) {
callback(new Error("招聘数量必须为整数")) callback(new Error("招聘数量必须为正整数"))
} else if (value <= 0 || value > 100) { } else if (value <= 0 || value > 100) {
callback(new Error("招聘数量必须为1-100之间的整数")) callback(new Error("招聘数量必须为1-100之间的整数"))
} else { } else {
...@@ -143,24 +184,59 @@ export default { ...@@ -143,24 +184,59 @@ export default {
] ]
}, },
baseData: { baseData: {
merchantList: [] merchantList: [],
bussinessTypeOpt: [],
recruitmentTypeOpt: [],
supervisionOptionsListOpt: []
} }
} }
}, },
created() { created() {
this.getInviteMerchant() this.fetchOnboardingPlans()
}, },
methods: { methods: {
getInviteMerchant() { filterAttribute(optionsName, optionId, optionLabel, value) {
getInviteMerchant({ currentPage: 1, pageSize: 99999 }).then((res) => { console.log(optionsName, optionId, optionLabel, value)
this.baseData.merchantList = res.list let item = this.baseData[optionsName].find((item) => {
this.getOptionsList(this, "editFormData", false, "merchantId") 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() { handleSave() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
this.$confirm("请确认是否要执行当前操作?", "提示", { this.$confirm("确定是否提交招聘需求?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
...@@ -171,10 +247,19 @@ export default { ...@@ -171,10 +247,19 @@ export default {
businessType: this.addForm.businessType, businessType: this.addForm.businessType,
recruitmentQuantity: this.addForm.recruitmentQuantity, recruitmentQuantity: this.addForm.recruitmentQuantity,
recruitmentType: this.addForm.recruitmentType, 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 this.btnLoding = true
addRecruitment(params).then((res) => {}) addRecruitment(params).then((res) => {
if (res) {
this.$message.success("新增成功")
this.handleCancel()
}
})
}) })
} }
}) })
...@@ -212,7 +297,7 @@ export default { ...@@ -212,7 +297,7 @@ export default {
that.$set( that.$set(
that[formName][index], that[formName][index],
"optionList", "optionList",
that.$common.utils.deepClone(that.baseData[item.optionsName]) deepClone(that.baseData[item.optionsName])
) )
if ( if (
hasAll && 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> <template>
<div class="info-wrapper"> <div class="baseInfo">
<div class="item" v-for="(item, index) in configData" :key="index"> <detailComp :configData="configData" :detailInfo="detailInfo"></detailComp>
<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> </div>
</template> </template>
<script> <script>
import { import detailComp from "./detailComp.vue"
evaluationStatusOpt,
evaluationStatusOptMap,
ownerTypeOpt,
usageTypeOpt
} from "@/common/constants.js"
import { deepClone } from "@/common/util"
export default { export default {
components: {
detailComp
},
data() { data() {
return { 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: [ configData: [
{ {
title: "基础信息", title: "基础信息",
...@@ -204,17 +50,17 @@ export default { ...@@ -204,17 +50,17 @@ export default {
key: "regionOperationName" key: "regionOperationName"
}, },
{ {
title: "需求描述:",
key: "requirementDescription",
col: 24
},
{
title: "创建人", title: "创建人",
key: "createdBy" key: "createdBy"
}, },
{ {
title: "申请时间", title: "申请时间",
key: "createdDate" key: "createdDate"
},
{
title: "需求描述",
key: "requirementDescription",
col: 24
} }
] ]
} }
...@@ -238,7 +84,3 @@ export default { ...@@ -238,7 +84,3 @@ export default {
} }
} }
</script> </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,11 +3,17 @@ ...@@ -3,11 +3,17 @@
<div class="recruit-info"> <div class="recruit-info">
<div class="header"> <div class="header">
<div class="title">招聘信息</div> <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 >新增简历</el-button
> >
</div> </div>
<div class="content"> <div class="content">
<template v-if="resumes.length">
<div class="recruit-item" v-for="(item, index) in resumes" :key="index"> <div class="recruit-item" v-for="(item, index) in resumes" :key="index">
<img class="profile" src="@/assets/profile.png" alt="" /> <img class="profile" src="@/assets/profile.png" alt="" />
<div class="info"> <div class="info">
...@@ -27,9 +33,7 @@ ...@@ -27,9 +33,7 @@
</div> </div>
</div> </div>
<div class="btns"> <div class="btns">
<template v-if="item.status == null"> <template v-if="isBtn">
<el-button type="text" @click="handleDelete(index)">删除</el-button>
</template>
<template v-if="item.status == 0"> <template v-if="item.status == 0">
<el-button type="text" @click="handleEdit(item, index)" <el-button type="text" @click="handleEdit(item, index)"
>编辑</el-button >编辑</el-button
...@@ -37,7 +41,9 @@ ...@@ -37,7 +41,9 @@
<el-button type="text" @click="handleResolve(item, index)" <el-button type="text" @click="handleResolve(item, index)"
>处理</el-button >处理</el-button
> >
<el-button type="text" @click="handleDelete(index)">删除</el-button> <el-button type="text" @click="handleDelete(index)"
>删除</el-button
>
</template> </template>
<template v-if="item.status == 1"> <template v-if="item.status == 1">
<el-button type="text" @click="handleWorking(item)" <el-button type="text" @click="handleWorking(item)"
...@@ -47,11 +53,24 @@ ...@@ -47,11 +53,24 @@
>查看结果</el-button >查看结果</el-button
> >
</template> </template>
</template>
<template v-else>
<el-button type="text" @click="handleLook(item)"
>查看结果</el-button
>
</template>
</div> </div>
</div> </div>
</template>
<div class="emptyCom" v-show="!resumes.length">
<img :src="emptyImgUrl" class="emptyImg" alt="" />
<span class="tips">暂无招聘信息</span>
</div>
</div> </div>
<!-- 新增简历 --> <!-- 新增简历 -->
<glsk-form-dialog <glsk-form-dialog
ref="addResumeDialog"
v-if="isAddVisible" v-if="isAddVisible"
:selectVisible="isAddVisible" :selectVisible="isAddVisible"
:dialogConfig="isAddDialogConfig" :dialogConfig="isAddDialogConfig"
...@@ -77,34 +96,7 @@ ...@@ -77,34 +96,7 @@
:on-change="(file, fileList) => handleFileChange(file, 'resumeUrl')" :on-change="(file, fileList) => handleFileChange(file, 'resumeUrl')"
:on-exceed="hanldeOnExceed" :on-exceed="hanldeOnExceed"
> >
<div class="upload-txt">+ 上传文件</div> <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 slot="tip" class="el-upload__tip"> <div slot="tip" class="el-upload__tip">
注:请上传1份简历文件,支持pdf格式,最大不超过10M 注:请上传1份简历文件,支持pdf格式,最大不超过10M
</div> </div>
...@@ -148,10 +140,16 @@ export default { ...@@ -148,10 +140,16 @@ export default {
resumes: { resumes: {
type: Array, type: Array,
default: () => [] default: () => []
},
isBtn: {
type: Boolean,
default: false
} }
}, },
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info,
emptyImgUrl: require("@/assets/resume-empty.png"),
detailVisible: false, detailVisible: false,
isResolveVisible: false, isResolveVisible: false,
isAddVisible: false, isAddVisible: false,
...@@ -160,6 +158,7 @@ export default { ...@@ -160,6 +158,7 @@ export default {
resumesData: [], resumesData: [],
paramsObj: {}, paramsObj: {},
recordInfo: {}, recordInfo: {},
isAdd: true,
isAddDialogConfig: { isAddDialogConfig: {
title: "新增简历", title: "新增简历",
okText: "确定" okText: "确定"
...@@ -204,7 +203,8 @@ export default { ...@@ -204,7 +203,8 @@ export default {
personName: "", personName: "",
phoneNumber: "", phoneNumber: "",
resumeUrl: "", resumeUrl: "",
status: null status: 0,
resumeFileName: ""
}, },
isResolveForm: { isResolveForm: {
processResult: "", processResult: "",
...@@ -219,6 +219,7 @@ export default { ...@@ -219,6 +219,7 @@ export default {
name: "personName", name: "personName",
type: "input", type: "input",
maxlength: "20", maxlength: "20",
placeholder: "请输入",
isClear: true isClear: true
}, },
{ {
...@@ -226,6 +227,7 @@ export default { ...@@ -226,6 +227,7 @@ export default {
name: "phoneNumber", name: "phoneNumber",
type: "input", type: "input",
maxlength: "11", maxlength: "11",
placeholder: "请输入",
isClear: true isClear: true
}, },
{ {
...@@ -345,8 +347,14 @@ export default { ...@@ -345,8 +347,14 @@ export default {
} }
] ]
const success = (res) => { const success = (res) => {
this.isAddForm.resumeFileName = fileInfo.name
this.isAddForm[targetItem] = res.aliyunAddress // 文件地址 this.isAddForm[targetItem] = res.aliyunAddress // 文件地址
this.uploadFileList[0].url = res.aliyunAddress this.uploadFileList[0].url = res.aliyunAddress
//清除校验
const childRef = this.$refs.addResumeDialog
childRef.$refs.editFormRef.$refs[childRef.editChildRef].clearValidate(
"resumeUrl"
)
} }
const fail = (err) => { const fail = (err) => {
this.clearItem(targetItem) this.clearItem(targetItem)
...@@ -363,41 +371,61 @@ export default { ...@@ -363,41 +371,61 @@ export default {
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType) this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType)
}, },
isAddDialogVisible() { isAddDialogVisible() {
this.isAddForm = {}
this.uploadFileList = []
this.isAddVisible = !this.isAddVisible this.isAddVisible = !this.isAddVisible
}, },
isResolveDialogVisible() { isResolveDialogVisible() {
this.isResolveForm = {}
this.isResolveVisible = !this.isResolveVisible 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) { handleAddConfirm(data) {
let isAdd = data.id || data.id === 0 ? false : true console.log("data", data)
this.$emit("handleAddConfirm", data, isAdd, this.index) data.status = 0 //状态未处理
data.createdDate = this.getCurrentDate()
this.$emit("handleAddConfirm", data, this.isAdd, this.index)
this.isAddDialogVisible() this.isAddDialogVisible()
}, },
//简历处理确认 //简历处理确认
handleResolveConfirm(data) { 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
? (data.interviewTime = Util.dateFormate( ? (data.interviewTime = Util.dateFormate(
data.interviewTime, data.interviewTime,
"YYYY-MM-DD" "YYYY-MM-DD"
)) ))
: "" : ""
data.processorName = this.userInfo.detail.userName
this.$emit("handleAddConfirm", data, false, this.index) this.$emit("handleAddConfirm", data, false, this.index)
this.isResolveDialogVisible() this.isResolveDialogVisible()
}, },
//新增简历 //新增简历
handleAdd() { handleAdd() {
this.isAdd = true
this.isAddDialogConfig.title = "新增简历"
this.isAddVisible = !this.isAddVisible this.isAddVisible = !this.isAddVisible
}, },
handleEdit(data, index) { handleEdit(data, index) {
this.isAdd = false
this.index = index this.index = index
this.isAddDialogConfig.title = "编辑简历"
this.isAddVisible = !this.isAddVisible this.isAddVisible = !this.isAddVisible
this.uploadFileList = [{ url: data.resumeUrl, name: data.fileName }] this.uploadFileList = [{ url: data.resumeUrl, name: data.resumeFileName }]
this.isAddForm = deepClone(data) this.isAddForm = deepClone(data)
}, },
updataResolveFormData(val) { updataResolveFormData(val) {
// 处理结果=「已完成面试」 // 1-人员不匹配 2-已完成面试 ,
if (val == 1) { if (val == 1) {
this.isResolveFormData[ this.isResolveFormData[
this.findFormAttrId("isResolveFormData", "interviewTime") this.findFormAttrId("isResolveFormData", "interviewTime")
...@@ -423,7 +451,6 @@ export default { ...@@ -423,7 +451,6 @@ export default {
}, },
//删除简历 //删除简历
handleDelete(index) { handleDelete(index) {
console.log("handleDelete")
this.$emit("handleAddConfirm", null, false, index) this.$emit("handleAddConfirm", null, false, index)
}, },
//转入职 //转入职
...@@ -563,6 +590,22 @@ export default { ...@@ -563,6 +590,22 @@ export default {
right: 60px; 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 { .upload-txt {
width: 110px; width: 110px;
...@@ -576,6 +619,10 @@ export default { ...@@ -576,6 +619,10 @@ export default {
line-height: 32px; line-height: 32px;
text-align: center; text-align: center;
} }
.el-upload__tip {
color: #999999;
font-size: 14px;
}
.file-wrap { .file-wrap {
display: flex; display: flex;
align-items: center; align-items: center;
......
import { getRecruitmentDetail } from "@/api/usedCarManagement" import { getRecruitmentDetail } from "@/api/recruitment"
import baseInfo from "./baseInfo.vue" import baseInfo from "./baseInfo.vue"
import recruitInfo from "./recruitInfo.vue" import recruitInfo from "./recruitInfo.vue"
import entryInfo from "./entryInfo.vue" import entryInfo from "./entryInfo.vue"
import OperateList from "./operate.vue"
export const recruitMixin = { export const recruitMixin = {
components: { components: {
baseInfo, baseInfo,
recruitInfo, recruitInfo,
entryInfo entryInfo,
OperateList
}, },
data() { data() {
return { return {
loading: false, loading: false,
detailInfo: { 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: [ logs: [
{ {
id: 0, id: 0,
...@@ -121,7 +31,6 @@ export const recruitMixin = { ...@@ -121,7 +31,6 @@ export const recruitMixin = {
} }
}, },
created() { created() {
// this.loading = true
this.getRecruitmentDetail() this.getRecruitmentDetail()
}, },
methods: { methods: {
...@@ -129,8 +38,9 @@ export const recruitMixin = { ...@@ -129,8 +38,9 @@ export const recruitMixin = {
this.$router.push("/recruitmentManagement") this.$router.push("/recruitmentManagement")
}, },
getRecruitmentDetail() { getRecruitmentDetail() {
this.loading = true
getRecruitmentDetail({ getRecruitmentDetail({
evalOrderNo: this.evalOrderNo id: this.id
}).then((res) => { }).then((res) => {
console.log("res", res) console.log("res", res)
this.detailInfo = res this.detailInfo = res
......
...@@ -7,11 +7,13 @@ ...@@ -7,11 +7,13 @@
:resumes="detailInfo.resumes" :resumes="detailInfo.resumes"
@handleAddConfirm="handleAddConfirm" @handleAddConfirm="handleAddConfirm"
@handleWorking="handleWorking" @handleWorking="handleWorking"
:isBtn="isBtn"
></recruitInfo> ></recruitInfo>
<entryInfo <entryInfo
:onboardingPlans="detailInfo.onboardingPlans" :onboardingPlans="detailInfo.onboardingPlans"
ref="entryInfo" ref="entryInfo"
@handleEntryConfirm="handleEntryConfirm" @handleEntryConfirm="handleEntryConfirm"
:isBtn="isBtn"
></entryInfo> ></entryInfo>
</div> </div>
<div class="footer"> <div class="footer">
...@@ -32,18 +34,31 @@ ...@@ -32,18 +34,31 @@
<script> <script>
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin" import { recruitMixin } from "./components/recruitMixin"
import { handleRecruitment } from "@/api/recruitment"
export default { export default {
mixins: [recruitMixin], mixins: [recruitMixin],
data() { data() {
return { return {
loading: false, loading: false,
btnLoding: false btnLoding: false,
isBtn: true
} }
}, },
methods: { methods: {
handleSave() { handleSave() {
this.btnLoding = true 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) { handleWorking(data) {
...@@ -114,7 +129,7 @@ export default { ...@@ -114,7 +129,7 @@ export default {
} }
} }
.layout { .layout {
height: calc(100% - 130px); height: calc(100% - 58px);
overflow-y: scroll; overflow-y: scroll;
} }
} }
......
...@@ -3,8 +3,15 @@ ...@@ -3,8 +3,15 @@
<div class="look-recruitment" v-loading="loading"> <div class="look-recruitment" v-loading="loading">
<div class="layout"> <div class="layout">
<baseInfo :detailInfo="detailInfo"></baseInfo> <baseInfo :detailInfo="detailInfo"></baseInfo>
<recruitInfo :resumes="detailInfo.resumes"></recruitInfo> <recruitInfo :resumes="detailInfo.resumes" :isBtn="isBtn"></recruitInfo>
<entryInfo :onboardingPlans="detailInfo.onboardingPlans"></entryInfo> <entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
:isBtn="isBtn"
></entryInfo>
<operate-list
:logs="detailInfo.logs"
v-if="detailInfo.logs && detailInfo.logs.length > 0"
></operate-list>
</div> </div>
<div class="footer"> <div class="footer">
<el-button class="cancel-btn" size="small" @click="handleCancel" <el-button class="cancel-btn" size="small" @click="handleCancel"
...@@ -20,7 +27,8 @@ export default { ...@@ -20,7 +27,8 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
detailInfo: {} detailInfo: {},
isBtn: false
} }
}, },
mounted() { mounted() {
......
<template> <template>
<d2-dialog <d2-dialog
title="预警设置" title="预警设置"
:is-visible="warningVisible" :is-visible="warningVisible"
class="warningDailog" class="warningDailog"
width="750px" width="1040px"
btn-ok-label="确定" btn-ok-label="确定"
@closeDialog="handleClose" @closeDialog="handleClose"
@confirmDialog="handleAddConfirm" @confirmDialog="handleAddConfirm"
> >
<p class="title">延保</p> <p class="title">延保</p>
<glsx-combi-form <glsx-combi-form
class="yanbao"
label-width="150px" label-width="150px"
default-width="400px" default-width="310px"
:form-obj="warningForm" :form-obj="warningForm"
:form-data="warningFormData" :form-data="warningFormData"
></glsx-combi-form> ></glsx-combi-form>
<p class="title">权益</p> <p class="title">权益</p>
<glsx-combi-form <glsx-combi-form
label-width="150px" label-width="150px"
default-width="400px" default-width="310px"
:form-obj="warningForm" :form-obj="warningForm"
:form-data="warningFormData2" :form-data="warningFormData2"
></glsx-combi-form> ></glsx-combi-form>
<div class="explain"> <div class="explain">
说明:设置业务兜底指标,按每月进行实时监测,一旦低于设置的指标+3%时,系统自动进行预警。 说明:设置业务兜底指标,按每月进行实时监测,一旦低于设置的目标值,系统自动进行预警
</div> </div>
</d2-dialog> </d2-dialog>
</template> </template>
<script> <script>
import { limitPrice } from "@/common/format" import { limitPrice } from "@/common/format"
import { import {
saveOrUpdateWarningConfig, saveOrUpdateWarningConfig,
...@@ -45,18 +44,29 @@ export default { ...@@ -45,18 +44,29 @@ export default {
ewConRate: "", //延保转化率 ewConRate: "", //延保转化率
ewAxbConRate: "", //延保安心包转化率 ewAxbConRate: "", //延保安心包转化率
ewLtConRate: "", //延保轮胎转化率 ewLtConRate: "", //延保轮胎转化率
riConRate: "" //权益转化率 riConRate: "", //权益转化率
ewPenetrationRate: "", //延保渗透率
ewAxbPenetrationRate: "", //安心包渗透率
ewLtPenetrationRate: "", //轮胎渗透率
batteryPenetrationRate: "", //电池渗透率
batteryConversionRate: "" //电池转化率
}, },
oldVal: { oldVal: {
ewConRate: "", //延保转化率 ewConRate: "", //延保转化率
ewAxbConRate: "", //延保安心包转化率 ewAxbConRate: "", //延保安心包转化率
ewLtConRate: "", //延保轮胎转化率 ewLtConRate: "", //延保轮胎转化率
riConRate: "" //权益转化率 riConRate: "", //权益转化率
ewPenetrationRate: "", //延保渗透率
ewAxbPenetrationRate: "", //安心包渗透率
ewLtPenetrationRate: "", //轮胎渗透率
batteryPenetrationRate: "", //电池渗透率
batteryConversionRate: "" //电池转化率
}, },
warningFormData: [ warningFormData: [
{ {
label: "转化率", label: "转化率",
name: "ewConRate", name: "ewConRate",
placeholder: "请输入",
type: "input", type: "input",
append: "%", append: "%",
listeners: { listeners: {
...@@ -66,8 +76,24 @@ export default { ...@@ -66,8 +76,24 @@ export default {
} }
}, },
{ {
label: "渗透率",
name: "ewPenetrationRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: () => {
this.handleInput(
this.warningForm.ewPenetrationRate,
"ewPenetrationRate"
)
}
}
},
{
label: "安心包转化率", label: "安心包转化率",
name: "ewAxbConRate", name: "ewAxbConRate",
placeholder: "请输入",
type: "input", type: "input",
append: "%", append: "%",
listeners: { listeners: {
...@@ -77,8 +103,24 @@ export default { ...@@ -77,8 +103,24 @@ export default {
} }
}, },
{ {
label: "安心包渗透率",
name: "ewAxbPenetrationRate",
placeholder: "请输入",
type: "input",
append: "%",
listeners: {
input: () => {
this.handleInput(
this.warningForm.ewAxbPenetrationRate,
"ewAxbPenetrationRate"
)
}
}
},
{
label: "轮胎转化率", label: "轮胎转化率",
name: "ewLtConRate", name: "ewLtConRate",
placeholder: "请输入",
type: "input", type: "input",
append: "%", append: "%",
listeners: { listeners: {
...@@ -86,12 +128,58 @@ export default { ...@@ -86,12 +128,58 @@ export default {
this.handleInput(this.warningForm.ewLtConRate, "ewLtConRate") 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: [ warningFormData2: [
{ {
label: "转化率", label: "转化率",
name: "riConRate", name: "riConRate",
placeholder: "请输入",
type: "input", type: "input",
append: "%", append: "%",
listeners: { listeners: {
...@@ -139,7 +227,12 @@ export default { ...@@ -139,7 +227,12 @@ export default {
ewConRate: "", //延保转化率 ewConRate: "", //延保转化率
ewAxbConRate: "", //延保安心包转化率 ewAxbConRate: "", //延保安心包转化率
ewLtConRate: "", //延保轮胎转化率 ewLtConRate: "", //延保轮胎转化率
riConRate: "" riConRate: "",
ewPenetrationRate: "", //延保渗透率
ewAxbPenetrationRate: "",
ewLtPenetrationRate: "",
batteryPenetrationRate: "",
batteryConversionRate: ""
} }
} }
}, },
...@@ -165,7 +258,12 @@ export default { ...@@ -165,7 +258,12 @@ export default {
ewConRate: this.warningForm.ewConRate, ewConRate: this.warningForm.ewConRate,
ewAxbConRate: this.warningForm.ewAxbConRate, ewAxbConRate: this.warningForm.ewAxbConRate,
ewLtConRate: this.warningForm.ewLtConRate, 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) const res = await saveOrUpdateWarningConfig(params)
if (res) { if (res) {
...@@ -197,5 +295,12 @@ export default { ...@@ -197,5 +295,12 @@ export default {
color: #999ea8; color: #999ea8;
font-size: 14px; font-size: 14px;
} }
.yanbao {
::v-deep .glsx-combi-form-block {
display: flex;
align-items: center;
flex-wrap: wrap;
}
}
} }
</style> </style>
...@@ -146,7 +146,8 @@ export default { ...@@ -146,7 +146,8 @@ export default {
}, },
searchFormSearch: {}, searchFormSearch: {},
searchForm: { searchForm: {
sceneLabelCode: "" sceneLabelCode: "",
businessType: ""
}, },
showFormData: [ showFormData: [
{ {
...@@ -161,6 +162,16 @@ export default { ...@@ -161,6 +162,16 @@ export default {
optionsName: "sceneLabelList" optionsName: "sceneLabelList"
}, },
{ {
label: "业务场景",
name: "businessType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "businessTypeOpt"
},
{
label: "品牌", label: "品牌",
name: "sonBrandId", name: "sonBrandId",
type: "select", type: "select",
......
...@@ -164,7 +164,8 @@ export default { ...@@ -164,7 +164,8 @@ export default {
}, },
searchFormSearch: {}, searchFormSearch: {},
searchForm: { searchForm: {
sceneLabelCode: "" sceneLabelCode: "",
businessType: ""
}, },
showFormData: [ showFormData: [
{ {
...@@ -179,6 +180,16 @@ export default { ...@@ -179,6 +180,16 @@ export default {
optionsName: "sceneLabelList" optionsName: "sceneLabelList"
}, },
{ {
label: "业务场景",
name: "businessType",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "businessTypeOpt"
},
{
label: "品牌", label: "品牌",
name: "sonBrandId", name: "sonBrandId",
type: "select", type: "select",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!