Commit d9967575 by wangzhihui

招聘接口联调

1 parent d3066d3b
......@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2026-03-30 17:36:59
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -85,3 +85,19 @@ export function associateRecruitmentDemand(data) {
data.method = `dj.staff.api.recruitment.demand.relate`;
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
......@@ -936,7 +936,7 @@ export const downloadReportManage_reportType = [
{
confId: "BIAnalysisReport",
confValue: "BI数据分析表",
}
},
];
// 下载报表 业务类型
......@@ -2026,3 +2026,23 @@ export const reviewCaseStatusOptMap = {
1: "#2CCA74",
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 @@
</template>
<template #merchantHtml>
<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"
filterable
placeholder="请选择门店名称"
......@@ -46,7 +46,7 @@
placeholder="请输入门店名称"
style="width: 260px;">
</el-input>
<el-checkbox v-model="addForm.isNewMerchant"
<el-checkbox v-model="addForm.bySystemMerchant"
style="margin-left: 10px;"
@change="handleIsNewMerchantChange">
未创建系统门店
......@@ -109,14 +109,12 @@ export default {
recruitmentTypeName: "",
requirementDescription: "",
urgent: 0, // 0-非急招 1-急招 ,
isNewMerchant: false,
newCarSalesVolume: "",
mainBrand: [],
bySystemMerchant: false,
salesVolume: "",
brand: [],
merchantAddress: "",
provinceCode: "",
provinceName: "",
cityCode: "",
cityName: "",
province: "",
},
labelWidth: "150px",
defaultWidth: "530px",
......@@ -130,7 +128,7 @@ export default {
},
{
label: "近一月新车销量",
name: "newCarSalesVolume",
name: "salesVolume",
type: "input",
isClear: true,
maxlength: 4,
......@@ -138,13 +136,13 @@ export default {
},
{
label: "主营品牌",
name: "mainBrand",
name: "brand",
type: "select",
isClear: true,
multiple: true,
noFilter: false,
optionList: [],
optionId: "brandId",
optionId: "brandName",
optionLabel: "brandName",
optionsName: "brandList",
isHide: true,
......@@ -241,11 +239,11 @@ export default {
merchantId: [
{ required: true, message: "请输入/选择门店名称", trigger: ["change", "blur"] },
],
newCarSalesVolume: [
salesVolume: [
{
required: true,
validator: (rule, value, callback) => {
if (this.addForm.isNewMerchant) {
if (this.addForm.bySystemMerchant) {
if (!value) {
callback(new Error("请输入近一月新车销量"));
} else if (!/^[1-9]\d*$/.test(value)) {
......@@ -260,11 +258,11 @@ export default {
trigger: ["change", "blur"],
},
],
mainBrand: [
brand: [
{
required: true,
validator: (rule, value, callback) => {
if (this.addForm.isNewMerchant) {
if (this.addForm.bySystemMerchant) {
if (!value || value.length === 0) {
callback(new Error("请选择主营品牌"));
} else {
......@@ -281,8 +279,8 @@ export default {
{
required: true,
validator: (rule, value, callback) => {
if (this.addForm.isNewMerchant) {
if (!this.addForm.provinceCode || !this.addForm.cityCode) {
if (this.addForm.bySystemMerchant) {
if (!this.addForm.province || !this.addForm.merchantAddress) {
callback(new Error("请选择门店地址"));
} else {
callback();
......@@ -417,7 +415,7 @@ export default {
this.addForm.merchantName = item ? item.merchantName : "";
},
handleIsNewMerchantChange(val) {
const fieldsToToggle = ["newCarSalesVolume", "mainBrand", "merchantAddress"];
const fieldsToToggle = ["salesVolume", "brand", "merchantAddress"];
fieldsToToggle.forEach((name) => {
const index = this.editFormData.findIndex(k => k.name === name);
if (index > -1) {
......@@ -428,12 +426,12 @@ export default {
this.addForm.merchantId = "";
this.addForm.merchantName = "";
if (!val) {
this.addForm.newCarSalesVolume = "";
this.addForm.mainBrand = [];
this.addForm.provinceCode = "";
this.addForm.provinceName = "";
this.addForm.cityCode = "";
this.addForm.cityName = "";
this.addForm.salesVolume = "";
this.addForm.brand = [];
// this.addForm.provinceCode = "";
this.addForm.province = "";
// this.addForm.cityCode = "";
// this.addForm.cityName = "";
this.addForm.merchantAddress = "";
if (this.$refs.provinceCityRef) {
this.$refs.provinceCityRef.init("", "", "");
......@@ -442,16 +440,16 @@ export default {
this.$refs[this.editChildRef] && this.$refs[this.editChildRef].$refs.form.clearValidate();
},
handleSelectProvince(val) {
this.addForm.provinceCode = val.provinceCode;
this.addForm.provinceName = val.provinceName;
this.addForm.cityCode = "";
this.addForm.cityName = "";
this.addForm.merchantAddress = val.provinceCode;
// this.addForm.provinceCode = val.provinceCode;
this.addForm.province = val.provinceName;
// this.addForm.cityCode = "";
// this.addForm.cityName = "";
this.addForm.merchantAddress = val.provinceName;
},
handleSelectCity(val) {
this.addForm.cityCode = val.cityCode;
this.addForm.cityName = val.cityName;
this.addForm.merchantAddress = this.addForm.provinceCode + "" + val.cityCode;
// this.addForm.cityCode = val.cityCode;
// this.addForm.cityName = val.cityName;
this.addForm.merchantAddress = this.addForm.province + "" + val.cityName;
},
handleSave() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
......@@ -463,25 +461,27 @@ export default {
type: "warning",
}).then(() => {
let params = {
merchantId: this.addForm.isNewMerchant ? "" : this.addForm.merchantId,
merchantId: this.addForm.bySystemMerchant ? "" : this.addForm.merchantId,
regionOperationId: this.addForm.regionOperationId,
businessType: this.addForm.businessType,
recruitmentQuantity: this.addForm.recruitmentQuantity,
recruitmentType: this.addForm.recruitmentType,
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,
businessTypeName: this.addForm.businessTypeName,
recruitmentTypeName: this.addForm.recruitmentTypeName,
urgent: this.addForm.urgent,
isNewMerchant: this.addForm.isNewMerchant ? 1 : 0,
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,
bySystemMerchant: this.addForm.bySystemMerchant,
};
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;
addRecruitment(params).then((res) => {
if (res) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!