Commit d9967575 by wangzhihui

招聘接口联调

1 parent d3066d3b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com' * @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-03-30 17:36:59 * @Date: 2026-03-30 17:36:59
* @LastEditors: 'wangzhihui' '1733904062@qq.com' * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-03-31 14:27:00 * @LastEditTime: 2026-04-01 16:58:21
* @FilePath: \dj-car-life-system\src\api\recruitment.js * @FilePath: \dj-car-life-system\src\api\recruitment.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -85,3 +85,19 @@ export function associateRecruitmentDemand(data) { ...@@ -85,3 +85,19 @@ export function associateRecruitmentDemand(data) {
data.method = `dj.staff.api.recruitment.demand.relate`; data.method = `dj.staff.api.recruitment.demand.relate`;
return request(data); return request(data);
} }
// 招聘需求批量变更
export function batchChangeRecruitment(data) {
data.method = `dj.staff.api.recruitment.demand.batch.change`;
return request(data);
}
// 单店信息督导和员工查询
export function findMerchantStaffList(data) {
// data.method = `${path2}workbench.findMerchantStaffList`
data.method = `dj.api.smartcarlife.workbench.findMerchantStaffFilterList`;
return request(data);
}
// 招聘需求关联系统门店
export function linkMerchant(data) {
data.method = `dj.staff.api.recruitment.demand.link.merchant`;
return request(data);
}
\ No newline at end of file \ No newline at end of file
...@@ -936,7 +936,7 @@ export const downloadReportManage_reportType = [ ...@@ -936,7 +936,7 @@ export const downloadReportManage_reportType = [
{ {
confId: "BIAnalysisReport", confId: "BIAnalysisReport",
confValue: "BI数据分析表", confValue: "BI数据分析表",
} },
]; ];
// 下载报表 业务类型 // 下载报表 业务类型
...@@ -2026,3 +2026,23 @@ export const reviewCaseStatusOptMap = { ...@@ -2026,3 +2026,23 @@ export const reviewCaseStatusOptMap = {
1: "#2CCA74", 1: "#2CCA74",
2: "#EB4E4E", 2: "#EB4E4E",
}; };
export const connectionFlagOpt = [
{
confId: 1,
confValue: "已关联",
},
{
confId: 0,
confValue: "未关联",
},
];
export const connectionFlagOptMap = {
true: "#2CCA74",
false: "#EB4E4E",
};
export const changeTypeOpt = [
{ confId: 1, confValue: "区域运营" },
{ confId: 2, confValue: "技师督导" },
{ confId: 3, confValue: "招聘负责人" },
{ confId: 4, confValue: "创建人" }
];
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</template> </template>
<template #merchantHtml> <template #merchantHtml>
<div style="display: flex; align-items: center; width: 100%;"> <div style="display: flex; align-items: center; width: 100%;">
<el-select v-if="!addForm.isNewMerchant" <el-select v-if="!addForm.bySystemMerchant"
v-model="addForm.merchantId" v-model="addForm.merchantId"
filterable filterable
placeholder="请选择门店名称" placeholder="请选择门店名称"
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
placeholder="请输入门店名称" placeholder="请输入门店名称"
style="width: 260px;"> style="width: 260px;">
</el-input> </el-input>
<el-checkbox v-model="addForm.isNewMerchant" <el-checkbox v-model="addForm.bySystemMerchant"
style="margin-left: 10px;" style="margin-left: 10px;"
@change="handleIsNewMerchantChange"> @change="handleIsNewMerchantChange">
未创建系统门店 未创建系统门店
...@@ -109,14 +109,12 @@ export default { ...@@ -109,14 +109,12 @@ export default {
recruitmentTypeName: "", recruitmentTypeName: "",
requirementDescription: "", requirementDescription: "",
urgent: 0, // 0-非急招 1-急招 , urgent: 0, // 0-非急招 1-急招 ,
isNewMerchant: false, bySystemMerchant: false,
newCarSalesVolume: "", salesVolume: "",
mainBrand: [], brand: [],
merchantAddress: "", merchantAddress: "",
provinceCode: "", province: "",
provinceName: "",
cityCode: "",
cityName: "",
}, },
labelWidth: "150px", labelWidth: "150px",
defaultWidth: "530px", defaultWidth: "530px",
...@@ -130,7 +128,7 @@ export default { ...@@ -130,7 +128,7 @@ export default {
}, },
{ {
label: "近一月新车销量", label: "近一月新车销量",
name: "newCarSalesVolume", name: "salesVolume",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 4, maxlength: 4,
...@@ -138,13 +136,13 @@ export default { ...@@ -138,13 +136,13 @@ export default {
}, },
{ {
label: "主营品牌", label: "主营品牌",
name: "mainBrand", name: "brand",
type: "select", type: "select",
isClear: true, isClear: true,
multiple: true, multiple: true,
noFilter: false, noFilter: false,
optionList: [], optionList: [],
optionId: "brandId", optionId: "brandName",
optionLabel: "brandName", optionLabel: "brandName",
optionsName: "brandList", optionsName: "brandList",
isHide: true, isHide: true,
...@@ -241,11 +239,11 @@ export default { ...@@ -241,11 +239,11 @@ export default {
merchantId: [ merchantId: [
{ required: true, message: "请输入/选择门店名称", trigger: ["change", "blur"] }, { required: true, message: "请输入/选择门店名称", trigger: ["change", "blur"] },
], ],
newCarSalesVolume: [ salesVolume: [
{ {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (this.addForm.isNewMerchant) { if (this.addForm.bySystemMerchant) {
if (!value) { if (!value) {
callback(new Error("请输入近一月新车销量")); callback(new Error("请输入近一月新车销量"));
} else if (!/^[1-9]\d*$/.test(value)) { } else if (!/^[1-9]\d*$/.test(value)) {
...@@ -260,11 +258,11 @@ export default { ...@@ -260,11 +258,11 @@ export default {
trigger: ["change", "blur"], trigger: ["change", "blur"],
}, },
], ],
mainBrand: [ brand: [
{ {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (this.addForm.isNewMerchant) { if (this.addForm.bySystemMerchant) {
if (!value || value.length === 0) { if (!value || value.length === 0) {
callback(new Error("请选择主营品牌")); callback(new Error("请选择主营品牌"));
} else { } else {
...@@ -281,8 +279,8 @@ export default { ...@@ -281,8 +279,8 @@ export default {
{ {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (this.addForm.isNewMerchant) { if (this.addForm.bySystemMerchant) {
if (!this.addForm.provinceCode || !this.addForm.cityCode) { if (!this.addForm.province || !this.addForm.merchantAddress) {
callback(new Error("请选择门店地址")); callback(new Error("请选择门店地址"));
} else { } else {
callback(); callback();
...@@ -417,7 +415,7 @@ export default { ...@@ -417,7 +415,7 @@ export default {
this.addForm.merchantName = item ? item.merchantName : ""; this.addForm.merchantName = item ? item.merchantName : "";
}, },
handleIsNewMerchantChange(val) { handleIsNewMerchantChange(val) {
const fieldsToToggle = ["newCarSalesVolume", "mainBrand", "merchantAddress"]; const fieldsToToggle = ["salesVolume", "brand", "merchantAddress"];
fieldsToToggle.forEach((name) => { fieldsToToggle.forEach((name) => {
const index = this.editFormData.findIndex(k => k.name === name); const index = this.editFormData.findIndex(k => k.name === name);
if (index > -1) { if (index > -1) {
...@@ -428,12 +426,12 @@ export default { ...@@ -428,12 +426,12 @@ export default {
this.addForm.merchantId = ""; this.addForm.merchantId = "";
this.addForm.merchantName = ""; this.addForm.merchantName = "";
if (!val) { if (!val) {
this.addForm.newCarSalesVolume = ""; this.addForm.salesVolume = "";
this.addForm.mainBrand = []; this.addForm.brand = [];
this.addForm.provinceCode = ""; // this.addForm.provinceCode = "";
this.addForm.provinceName = ""; this.addForm.province = "";
this.addForm.cityCode = ""; // this.addForm.cityCode = "";
this.addForm.cityName = ""; // this.addForm.cityName = "";
this.addForm.merchantAddress = ""; this.addForm.merchantAddress = "";
if (this.$refs.provinceCityRef) { if (this.$refs.provinceCityRef) {
this.$refs.provinceCityRef.init("", "", ""); this.$refs.provinceCityRef.init("", "", "");
...@@ -442,16 +440,16 @@ export default { ...@@ -442,16 +440,16 @@ export default {
this.$refs[this.editChildRef] && this.$refs[this.editChildRef].$refs.form.clearValidate(); this.$refs[this.editChildRef] && this.$refs[this.editChildRef].$refs.form.clearValidate();
}, },
handleSelectProvince(val) { handleSelectProvince(val) {
this.addForm.provinceCode = val.provinceCode; // this.addForm.provinceCode = val.provinceCode;
this.addForm.provinceName = val.provinceName; this.addForm.province = val.provinceName;
this.addForm.cityCode = ""; // this.addForm.cityCode = "";
this.addForm.cityName = ""; // this.addForm.cityName = "";
this.addForm.merchantAddress = val.provinceCode; this.addForm.merchantAddress = val.provinceName;
}, },
handleSelectCity(val) { handleSelectCity(val) {
this.addForm.cityCode = val.cityCode; // this.addForm.cityCode = val.cityCode;
this.addForm.cityName = val.cityName; // this.addForm.cityName = val.cityName;
this.addForm.merchantAddress = this.addForm.provinceCode + "" + val.cityCode; this.addForm.merchantAddress = this.addForm.province + "" + val.cityName;
}, },
handleSave() { handleSave() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
...@@ -463,25 +461,27 @@ export default { ...@@ -463,25 +461,27 @@ export default {
type: "warning", type: "warning",
}).then(() => { }).then(() => {
let params = { let params = {
merchantId: this.addForm.isNewMerchant ? "" : this.addForm.merchantId, merchantId: this.addForm.bySystemMerchant ? "" : this.addForm.merchantId,
regionOperationId: this.addForm.regionOperationId, regionOperationId: this.addForm.regionOperationId,
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.isNewMerchant ? this.addForm.merchantId : this.addForm.merchantName, merchantName: this.addForm.bySystemMerchant ? this.addForm.merchantId : this.addForm.merchantName,
regionOperationName: this.addForm.regionOperationName, regionOperationName: this.addForm.regionOperationName,
businessTypeName: this.addForm.businessTypeName, businessTypeName: this.addForm.businessTypeName,
recruitmentTypeName: this.addForm.recruitmentTypeName, recruitmentTypeName: this.addForm.recruitmentTypeName,
urgent: this.addForm.urgent, urgent: this.addForm.urgent,
isNewMerchant: this.addForm.isNewMerchant ? 1 : 0, bySystemMerchant: this.addForm.bySystemMerchant,
newCarSalesVolume: this.addForm.newCarSalesVolume,
mainBrandIds: this.addForm.mainBrand.join(","),
provinceCode: this.addForm.provinceCode,
provinceName: this.addForm.provinceName,
cityCode: this.addForm.cityCode,
cityName: this.addForm.cityName,
}; };
if (this.addForm.bySystemMerchant) {
params.salesVolume = this.addForm.salesVolume;
params.brand = this.addForm.brand.join("/");
params.merchantAddress = this.addForm.merchantAddress;
params.province = this.addForm.provinceName;
}
this.btnLoding = true; this.btnLoding = true;
addRecruitment(params).then((res) => { addRecruitment(params).then((res) => {
if (res) { if (res) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!