Commit f76fbad0 by wangzhihui

fixed

1 parent 1dcdcf2e
...@@ -101,3 +101,21 @@ export function linkMerchant(data) { ...@@ -101,3 +101,21 @@ export function linkMerchant(data) {
data.method = `dj.staff.api.recruitment.demand.link.merchant`; data.method = `dj.staff.api.recruitment.demand.link.merchant`;
return request(data); return request(data);
} }
// 试岗计划审批(通过/驳回)
export function trialOnboardingApproval(data) {
data.method = `dj.staff.api.recruitment.trial.onboarding.approval`;
return request(data);
}
// 试岗门店列表
export function getTrialOnboardingStoreList(data) {
data.method = `dj.staff.api.recruitment.demand.store.list`;
return request(data);
}
// 招聘需求业务场景列表
export function getRecruitmentDemandSubSceneList(data) {
data.method = `dj.staff.api.recruitment.demand.sub.scene.list`;
return request(data);
}
\ No newline at end of file \ No newline at end of file
...@@ -2083,6 +2083,16 @@ export const trialStatusOpt = [ ...@@ -2083,6 +2083,16 @@ export const trialStatusOpt = [
confValue: "无试岗", confValue: "无试岗",
}, },
]; ];
export const approvalStatusOpt=[
{
confId: 0,
confValue: "待审批",
},
{
confId: 1,
confValue: "已审批",
},
]
export const connectionFlagOptMap = { export const connectionFlagOptMap = {
true: "#2CCA74", true: "#2CCA74",
false: "#EB4E4E", false: "#EB4E4E",
......
...@@ -109,6 +109,7 @@ export default { ...@@ -109,6 +109,7 @@ export default {
salesVolume: "", salesVolume: "",
brand: [], brand: [],
merchantAddress: "", merchantAddress: "",
merchantAddressDetail: "",
provinceCityCode: "", provinceCityCode: "",
province: "", province: "",
...@@ -145,12 +146,21 @@ export default { ...@@ -145,12 +146,21 @@ export default {
isHide: true, isHide: true,
}, },
{ {
label: "门店地址", label: "所属省市",
name: "merchantAddress", name: "merchantAddress",
addHtml: "merchantAddressHtml", addHtml: "merchantAddressHtml",
isHide: true, isHide: true,
}, },
{ {
label: "详细地址",
name: "merchantAddressDetail",
type: "input",
isClear: true,
maxlength: 60,
showLimit: true,
isHide: true,
},
{
label: "业务类型", label: "业务类型",
name: "businessType", name: "businessType",
type: "select", type: "select",
...@@ -278,7 +288,24 @@ export default { ...@@ -278,7 +288,24 @@ export default {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (this.addForm.bySystemMerchant) { if (this.addForm.bySystemMerchant) {
if (!this.addForm.provinceCode || !this.addForm.provinceCityCode) { if (!this.addForm.provinceCode || !this.addForm.provinceCityCode) {
callback(new Error("请选择门店地址")); callback(new Error("请选择省市"));
} else {
callback();
}
} else {
callback();
}
},
trigger: ["change", "blur"],
},
],
merchantAddressDetail: [
{
required: true,
validator: (rule, value, callback) => {
if (this.addForm.bySystemMerchant) {
if (!value || !value.trim()) {
callback(new Error("请输入详细地址"));
} else { } else {
callback(); callback();
} }
...@@ -460,7 +487,7 @@ export default { ...@@ -460,7 +487,7 @@ export default {
}) })
}, },
handleIsNewMerchantChange(val) { handleIsNewMerchantChange(val) {
const fieldsToToggle = ["salesVolume", "brand", "merchantAddress"]; const fieldsToToggle = ["salesVolume", "brand", "merchantAddress", "merchantAddressDetail"];
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) {
...@@ -478,6 +505,7 @@ export default { ...@@ -478,6 +505,7 @@ export default {
this.addForm.cityCode = ""; this.addForm.cityCode = "";
this.addForm.cityName = ""; this.addForm.cityName = "";
this.addForm.merchantAddress = ""; this.addForm.merchantAddress = "";
this.addForm.merchantAddressDetail = "";
if (this.$refs.provinceCityRef) { if (this.$refs.provinceCityRef) {
this.$refs.provinceCityRef.init("", "", ""); this.$refs.provinceCityRef.init("", "", "");
} }
...@@ -538,6 +566,7 @@ export default { ...@@ -538,6 +566,7 @@ export default {
params.salesVolume = this.addForm.salesVolume; params.salesVolume = this.addForm.salesVolume;
params.brand = brands.join("/"); params.brand = brands.join("/");
params.merchantAddress = this.addForm.merchantAddress; params.merchantAddress = this.addForm.merchantAddress;
params.merchantAddressDetail = this.addForm.merchantAddressDetail;
params.province = this.addForm.province; params.province = this.addForm.province;
params.provinceCityCode = this.addForm.provinceCityCode; params.provinceCityCode = this.addForm.provinceCityCode;
} }
......
...@@ -54,12 +54,18 @@ export default { ...@@ -54,12 +54,18 @@ export default {
hasTooltip: true, hasTooltip: true,
}, },
{ {
title: "门店地址", title: "所属省市",
key: "merchantAddress", key: "merchantAddress",
style: contentStyle, style: contentStyle,
hasTooltip: true, hasTooltip: true,
}, },
{ {
title: "详细地址",
key: "merchantAddressDetail",
style: contentStyle,
hasTooltip: true,
},
{
title: "业务类型", title: "业务类型",
key: "businessTypeName", key: "businessTypeName",
}, },
......
...@@ -15,9 +15,12 @@ ...@@ -15,9 +15,12 @@
<trialOnboard <trialOnboard
ref="trialOnboard" ref="trialOnboard"
:trialOnboardings="detailInfo.trialOnboardings" :trialOnboardings="detailInfo.trialOnboardings"
:demand-id="id"
:businessType="detailInfo.businessType"
@handleAddConfirm="handleTrialConfirm" @handleAddConfirm="handleTrialConfirm"
@handleWorking="handleWorking" @handleWorking="handleWorking"
@handleViewResult="handleViewResult" @handleViewResult="handleViewResult"
@handleApprovalSuccess="handleApprovalSuccess"
:isBtn="isBtn" :isBtn="isBtn"
></trialOnboard> ></trialOnboard>
<!-- 入职计划 --> <!-- 入职计划 -->
...@@ -241,6 +244,10 @@ export default { ...@@ -241,6 +244,10 @@ export default {
this.detailInfo.trialOnboardings.splice(index, 1) this.detailInfo.trialOnboardings.splice(index, 1)
} }
} }
},
handleApprovalSuccess({ index, data }) {
if (!data || this.detailInfo.trialOnboardings[index] === undefined) return
this.$set(this.detailInfo.trialOnboardings, index, data)
} }
} }
} }
......
...@@ -177,7 +177,7 @@ import { ...@@ -177,7 +177,7 @@ import {
} from "@api/recruitment"; } from "@api/recruitment";
import { mapActions, mapState } from "vuex"; import { mapActions, mapState } from "vuex";
import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap, trialStatusOpt } from "@/common/constants.js"; import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap, trialStatusOpt,approvalStatusOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util"; import { deepClone, Util } from "@/common/util";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"; import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
...@@ -347,12 +347,19 @@ export default { ...@@ -347,12 +347,19 @@ export default {
prop: "technicalSupervisorName", prop: "technicalSupervisorName",
width: 160, width: 160,
}, },
{ {
label: "所属省市", label: "所属省市",
prop: "provinceCity", prop: "provinceCity",
width: 160, width: 160,
}, },
{ {
label: "详细地址",
prop: "merchantAddressDetail",
width: 160,
},
{
label: "主营品牌", label: "主营品牌",
prop: "brand", prop: "brand",
width: 160, width: 160,
...@@ -408,6 +415,18 @@ export default { ...@@ -408,6 +415,18 @@ export default {
addHtml: "statusHtml", addHtml: "statusHtml",
}, },
{ {
label: "审批状态",
prop: "approvalStatus",
width: 120,
formatter: (cellValue) => {
const approvalStatusMap = {
0: "待审批",
2: "已审批",
};
return approvalStatusMap[cellValue.approvalStatus] || "-";
},
},
{
label: "试岗状态", label: "试岗状态",
prop: "trialStatus", prop: "trialStatus",
width: 120, width: 120,
...@@ -448,6 +467,7 @@ export default { ...@@ -448,6 +467,7 @@ export default {
technicalSupervisorName: "", technicalSupervisorName: "",
brand: "", brand: "",
connectionFlag: "", connectionFlag: "",
approvalStatus:""
}, },
showFormData: [ showFormData: [
{ {
...@@ -566,6 +586,16 @@ export default { ...@@ -566,6 +586,16 @@ export default {
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "trialStatusOpt", optionsName: "trialStatusOpt",
}, },
{
label: "审批状态",
name: "approvalStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "approvalStatusOpt",
},
], ],
baseData: { baseData: {
...@@ -585,6 +615,7 @@ export default { ...@@ -585,6 +615,7 @@ export default {
changeTypeOpt: deepClone(changeTypeOpt), changeTypeOpt: deepClone(changeTypeOpt),
receiverOpt: [], receiverOpt: [],
relateMerchantOpt: [], relateMerchantOpt: [],
approvalStatusOpt:deepClone(approvalStatusOpt)
}, },
isRejectDialogConfig: { isRejectDialogConfig: {
title: "驳回", title: "驳回",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!