Commit f76fbad0 by wangzhihui

fixed

1 parent 1dcdcf2e
......@@ -101,3 +101,21 @@ export function linkMerchant(data) {
data.method = `dj.staff.api.recruitment.demand.link.merchant`;
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
......@@ -2083,6 +2083,16 @@ export const trialStatusOpt = [
confValue: "无试岗",
},
];
export const approvalStatusOpt=[
{
confId: 0,
confValue: "待审批",
},
{
confId: 1,
confValue: "已审批",
},
]
export const connectionFlagOptMap = {
true: "#2CCA74",
false: "#EB4E4E",
......
......@@ -109,6 +109,7 @@ export default {
salesVolume: "",
brand: [],
merchantAddress: "",
merchantAddressDetail: "",
provinceCityCode: "",
province: "",
......@@ -145,12 +146,21 @@ export default {
isHide: true,
},
{
label: "门店地址",
label: "所属省市",
name: "merchantAddress",
addHtml: "merchantAddressHtml",
isHide: true,
},
{
label: "详细地址",
name: "merchantAddressDetail",
type: "input",
isClear: true,
maxlength: 60,
showLimit: true,
isHide: true,
},
{
label: "业务类型",
name: "businessType",
type: "select",
......@@ -278,7 +288,24 @@ export default {
validator: (rule, value, callback) => {
if (this.addForm.bySystemMerchant) {
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 {
callback();
}
......@@ -460,7 +487,7 @@ export default {
})
},
handleIsNewMerchantChange(val) {
const fieldsToToggle = ["salesVolume", "brand", "merchantAddress"];
const fieldsToToggle = ["salesVolume", "brand", "merchantAddress", "merchantAddressDetail"];
fieldsToToggle.forEach((name) => {
const index = this.editFormData.findIndex(k => k.name === name);
if (index > -1) {
......@@ -478,6 +505,7 @@ export default {
this.addForm.cityCode = "";
this.addForm.cityName = "";
this.addForm.merchantAddress = "";
this.addForm.merchantAddressDetail = "";
if (this.$refs.provinceCityRef) {
this.$refs.provinceCityRef.init("", "", "");
}
......@@ -538,6 +566,7 @@ export default {
params.salesVolume = this.addForm.salesVolume;
params.brand = brands.join("/");
params.merchantAddress = this.addForm.merchantAddress;
params.merchantAddressDetail = this.addForm.merchantAddressDetail;
params.province = this.addForm.province;
params.provinceCityCode = this.addForm.provinceCityCode;
}
......
......@@ -54,12 +54,18 @@ export default {
hasTooltip: true,
},
{
title: "门店地址",
title: "所属省市",
key: "merchantAddress",
style: contentStyle,
hasTooltip: true,
},
{
title: "详细地址",
key: "merchantAddressDetail",
style: contentStyle,
hasTooltip: true,
},
{
title: "业务类型",
key: "businessTypeName",
},
......
......@@ -15,9 +15,12 @@
<trialOnboard
ref="trialOnboard"
:trialOnboardings="detailInfo.trialOnboardings"
:demand-id="id"
:businessType="detailInfo.businessType"
@handleAddConfirm="handleTrialConfirm"
@handleWorking="handleWorking"
@handleViewResult="handleViewResult"
@handleApprovalSuccess="handleApprovalSuccess"
:isBtn="isBtn"
></trialOnboard>
<!-- 入职计划 -->
......@@ -241,6 +244,10 @@ export default {
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 {
} from "@api/recruitment";
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 reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
......@@ -347,12 +347,19 @@ export default {
prop: "technicalSupervisorName",
width: 160,
},
{
label: "所属省市",
prop: "provinceCity",
width: 160,
},
{
label: "详细地址",
prop: "merchantAddressDetail",
width: 160,
},
{
label: "主营品牌",
prop: "brand",
width: 160,
......@@ -408,6 +415,18 @@ export default {
addHtml: "statusHtml",
},
{
label: "审批状态",
prop: "approvalStatus",
width: 120,
formatter: (cellValue) => {
const approvalStatusMap = {
0: "待审批",
2: "已审批",
};
return approvalStatusMap[cellValue.approvalStatus] || "-";
},
},
{
label: "试岗状态",
prop: "trialStatus",
width: 120,
......@@ -448,6 +467,7 @@ export default {
technicalSupervisorName: "",
brand: "",
connectionFlag: "",
approvalStatus:""
},
showFormData: [
{
......@@ -566,6 +586,16 @@ export default {
optionLabel: "confValue",
optionsName: "trialStatusOpt",
},
{
label: "审批状态",
name: "approvalStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "approvalStatusOpt",
},
],
baseData: {
......@@ -585,6 +615,7 @@ export default {
changeTypeOpt: deepClone(changeTypeOpt),
receiverOpt: [],
relateMerchantOpt: [],
approvalStatusOpt:deepClone(approvalStatusOpt)
},
isRejectDialogConfig: {
title: "驳回",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!