|
@@ -103,10 +103,85 @@ const _sfc_main = {
|
|
formErrors: {
|
|
formErrors: {
|
|
name: "",
|
|
name: "",
|
|
idCard: "",
|
|
idCard: "",
|
|
- phone: ""
|
|
|
|
|
|
+ phone: "",
|
|
|
|
+ gender: "",
|
|
|
|
+ ethnic: "",
|
|
|
|
+ currentAddress: "",
|
|
|
|
+ height: "",
|
|
|
|
+ weight: "",
|
|
|
|
+ expectedSalary: "",
|
|
|
|
+ skills: "",
|
|
|
|
+ training: ""
|
|
},
|
|
},
|
|
// Add loading state
|
|
// Add loading state
|
|
- isLoading: true
|
|
|
|
|
|
+ isLoading: true,
|
|
|
|
+ familyMemberErrors: {
|
|
|
|
+ relation: "",
|
|
|
|
+ name: "",
|
|
|
|
+ phone: "",
|
|
|
|
+ workplaceOrAddress: "",
|
|
|
|
+ position: ""
|
|
|
|
+ },
|
|
|
|
+ workErrors: {
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ companyName: "",
|
|
|
|
+ department: "",
|
|
|
|
+ position: "",
|
|
|
|
+ employeeCount: "",
|
|
|
|
+ monthlySalary: "",
|
|
|
|
+ supervisor: "",
|
|
|
|
+ supervisorPhone: ""
|
|
|
|
+ },
|
|
|
|
+ // 在 data 中添加教育经历的错误提示对象
|
|
|
|
+ educationErrors: {
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ schoolName: "",
|
|
|
|
+ major: "",
|
|
|
|
+ degree: ""
|
|
|
|
+ },
|
|
|
|
+ // 添加统一的验证规则
|
|
|
|
+ validationRules: {
|
|
|
|
+ name: {
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请输入姓名"
|
|
|
|
+ },
|
|
|
|
+ phone: {
|
|
|
|
+ required: true,
|
|
|
|
+ pattern: /^1[3-9]\d{9}$/,
|
|
|
|
+ message: "请输入正确的手机号码"
|
|
|
|
+ },
|
|
|
|
+ idCard: {
|
|
|
|
+ required: true,
|
|
|
|
+ pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
|
|
|
|
+ message: "请输入正确的身份证号码"
|
|
|
|
+ },
|
|
|
|
+ gender: {
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择性别"
|
|
|
|
+ },
|
|
|
|
+ ethnic: {
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请选择民族"
|
|
|
|
+ },
|
|
|
|
+ height: {
|
|
|
|
+ pattern: /^\d+(\.\d{1,2})?$/,
|
|
|
|
+ message: "请输入正确的身高(cm)"
|
|
|
|
+ },
|
|
|
|
+ weight: {
|
|
|
|
+ pattern: /^\d+(\.\d{1,2})?$/,
|
|
|
|
+ message: "请输入正确的体重(kg)"
|
|
|
|
+ },
|
|
|
|
+ expectedSalary: {
|
|
|
|
+ pattern: /^\d+(\.\d{1,2})?$/,
|
|
|
|
+ message: "请输入正确的期望薪资"
|
|
|
|
+ },
|
|
|
|
+ currentAddress: {
|
|
|
|
+ required: true,
|
|
|
|
+ message: "请输入现居住地址"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -171,32 +246,39 @@ const _sfc_main = {
|
|
this.formData.birthDate = e.detail.value;
|
|
this.formData.birthDate = e.detail.value;
|
|
},
|
|
},
|
|
saveFamilyMember() {
|
|
saveFamilyMember() {
|
|
|
|
+ this.resetFamilyMemberErrors();
|
|
|
|
+ let isValid = true;
|
|
if (!this.familyMemberForm.relation) {
|
|
if (!this.familyMemberForm.relation) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入称谓",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.familyMemberErrors.relation = "请输入称谓";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.familyMemberForm.name) {
|
|
if (!this.familyMemberForm.name) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入姓名",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.familyMemberErrors.name = "请输入姓名";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.familyMemberForm.workplaceOrAddress) {
|
|
|
|
+ this.familyMemberErrors.workplaceOrAddress = "请输入工作单位/家庭地址";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.familyMemberForm.position) {
|
|
|
|
+ this.familyMemberErrors.position = "请输入职务";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.familyMemberForm.phone) {
|
|
if (!this.familyMemberForm.phone) {
|
|
|
|
+ this.familyMemberErrors.phone = "请输入联系电话";
|
|
|
|
+ isValid = false;
|
|
|
|
+ } else if (!/^1[3-9]\d{9}$/.test(this.familyMemberForm.phone)) {
|
|
|
|
+ this.familyMemberErrors.phone = "请输入正确的手机号";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!isValid) {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "请输入联系电话",
|
|
|
|
|
|
+ title: "请完善所有必填信息",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.isEditing) {
|
|
if (this.isEditing) {
|
|
- if (!this.familyMemberForm.isEmergencyContact && this.familyMembers[this.editingIndex].isEmergencyContact) {
|
|
|
|
- this.formData.emergencyContact = "";
|
|
|
|
- this.formData.emergencyPhone = "";
|
|
|
|
- }
|
|
|
|
this.familyMembers[this.editingIndex] = { ...this.familyMemberForm };
|
|
this.familyMembers[this.editingIndex] = { ...this.familyMemberForm };
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
title: "修改成功",
|
|
title: "修改成功",
|
|
@@ -211,6 +293,20 @@ const _sfc_main = {
|
|
icon: "success"
|
|
icon: "success"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ this.resetFamilyMemberForm();
|
|
|
|
+ },
|
|
|
|
+ // 添加重置错误信息的方法
|
|
|
|
+ resetFamilyMemberErrors() {
|
|
|
|
+ this.familyMemberErrors = {
|
|
|
|
+ relation: "",
|
|
|
|
+ name: "",
|
|
|
|
+ phone: "",
|
|
|
|
+ workplaceOrAddress: "",
|
|
|
|
+ position: ""
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ // 修改重置表单的方法
|
|
|
|
+ resetFamilyMemberForm() {
|
|
this.familyMemberForm = {
|
|
this.familyMemberForm = {
|
|
relation: "",
|
|
relation: "",
|
|
name: "",
|
|
name: "",
|
|
@@ -219,6 +315,7 @@ const _sfc_main = {
|
|
phone: "",
|
|
phone: "",
|
|
isEmergencyContact: false
|
|
isEmergencyContact: false
|
|
};
|
|
};
|
|
|
|
+ this.resetFamilyMemberErrors();
|
|
},
|
|
},
|
|
editFamilyMember(index) {
|
|
editFamilyMember(index) {
|
|
this.isEditing = true;
|
|
this.isEditing = true;
|
|
@@ -277,37 +374,31 @@ const _sfc_main = {
|
|
this.educationForm.degree = this.degreeOptions[this.degreeIndex];
|
|
this.educationForm.degree = this.degreeOptions[this.degreeIndex];
|
|
},
|
|
},
|
|
saveEducation() {
|
|
saveEducation() {
|
|
|
|
+ this.resetEducationErrors();
|
|
|
|
+ let isValid = true;
|
|
if (!this.educationForm.startTime) {
|
|
if (!this.educationForm.startTime) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请选择开始时间",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.educationErrors.startTime = "请选择开始时间";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.educationForm.endTime) {
|
|
if (!this.educationForm.endTime) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请选择结束时间",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.educationErrors.endTime = "请选择结束时间";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.educationForm.schoolName) {
|
|
if (!this.educationForm.schoolName) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入学校名称",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.educationErrors.schoolName = "请输入学校名称";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.educationForm.major) {
|
|
if (!this.educationForm.major) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入专业",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.educationErrors.major = "请输入专业";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.educationForm.degree) {
|
|
if (!this.educationForm.degree) {
|
|
|
|
+ this.educationErrors.degree = "请选择学历";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!isValid) {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "请选择学历",
|
|
|
|
|
|
+ title: "请完善所有必填信息",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
@@ -376,39 +467,55 @@ const _sfc_main = {
|
|
this.workForm.endTime = e.detail.value;
|
|
this.workForm.endTime = e.detail.value;
|
|
},
|
|
},
|
|
saveWork() {
|
|
saveWork() {
|
|
|
|
+ this.workErrors = {
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ companyName: "",
|
|
|
|
+ department: "",
|
|
|
|
+ position: "",
|
|
|
|
+ employeeCount: "",
|
|
|
|
+ monthlySalary: "",
|
|
|
|
+ supervisor: "",
|
|
|
|
+ supervisorPhone: ""
|
|
|
|
+ };
|
|
|
|
+ let isValid = true;
|
|
if (!this.workForm.startTime) {
|
|
if (!this.workForm.startTime) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请选择开始时间",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.workErrors.startTime = "请选择开始时间";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.workForm.endTime) {
|
|
if (!this.workForm.endTime) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请选择结束时间",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.workErrors.endTime = "请选择结束时间";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.workForm.companyName) {
|
|
if (!this.workForm.companyName) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入单位名称",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.workErrors.companyName = "请输入单位名称";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.workForm.department) {
|
|
if (!this.workForm.department) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入任职部门",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
|
|
+ this.workErrors.department = "请输入任职部门";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
if (!this.workForm.position) {
|
|
if (!this.workForm.position) {
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: "请输入担任职务",
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ this.workErrors.position = "请输入担任职务";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.workForm.employeeCount) {
|
|
|
|
+ this.workErrors.employeeCount = "请输入单位人数";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.workForm.monthlySalary) {
|
|
|
|
+ this.workErrors.monthlySalary = "请输入月薪";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.workForm.supervisor) {
|
|
|
|
+ this.workErrors.supervisor = "请输入直属上级";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.workForm.supervisorPhone) {
|
|
|
|
+ this.workErrors.supervisorPhone = "请输入直属上级电话";
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ if (!isValid) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.isEditingWork) {
|
|
if (this.isEditingWork) {
|
|
@@ -476,6 +583,27 @@ const _sfc_main = {
|
|
if (!this.validateCurrentStep()) {
|
|
if (!this.validateCurrentStep()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ const allRequired = [
|
|
|
|
+ "name",
|
|
|
|
+ "gender",
|
|
|
|
+ "phone",
|
|
|
|
+ "idCard",
|
|
|
|
+ "ethnic",
|
|
|
|
+ "currentAddress"
|
|
|
|
+ ];
|
|
|
|
+ let isValid = true;
|
|
|
|
+ allRequired.forEach((field) => {
|
|
|
|
+ if (!this.validateField(field, this.formData[field])) {
|
|
|
|
+ isValid = false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if (!isValid) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请完善所有必填信息",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
if (!userInfo) {
|
|
if (!userInfo) {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
@@ -765,77 +893,75 @@ const _sfc_main = {
|
|
},
|
|
},
|
|
// 验证当前步骤的必填项
|
|
// 验证当前步骤的必填项
|
|
validateCurrentStep() {
|
|
validateCurrentStep() {
|
|
- const validations = {
|
|
|
|
- // 第一步:基本信息验证
|
|
|
|
- 1: () => {
|
|
|
|
- const basicChecks = [
|
|
|
|
- { value: this.formData.name, message: "请输入姓名" },
|
|
|
|
- { value: this.formData.gender, message: "请选择性别" },
|
|
|
|
- { value: this.formData.phone, message: "请输入手机号" },
|
|
|
|
- { value: this.formData.idCard, message: "请输入身份证号" }
|
|
|
|
- ];
|
|
|
|
- for (const check of basicChecks) {
|
|
|
|
- if (!check.value) {
|
|
|
|
- common_vendor.index.showToast({ title: check.message, icon: "none" });
|
|
|
|
- return false;
|
|
|
|
|
|
+ var _a, _b;
|
|
|
|
+ let isValid = true;
|
|
|
|
+ switch (this.currentStep) {
|
|
|
|
+ case 1:
|
|
|
|
+ const basicFields = ["name", "gender", "phone", "idCard", "ethnic", "currentAddress"];
|
|
|
|
+ basicFields.forEach((field) => {
|
|
|
|
+ if (!this.validateField(field, this.formData[field])) {
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ });
|
|
if (this.formData.gender === "女" && this.threePeriodIndex === -1) {
|
|
if (this.formData.gender === "女" && this.threePeriodIndex === -1) {
|
|
- common_vendor.index.showToast({ title: "请选择是否为三期", icon: "none" });
|
|
|
|
- return false;
|
|
|
|
|
|
+ this.formErrors.threePeriod = "请选择三期状态";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- return true;
|
|
|
|
- },
|
|
|
|
- // 第二步:家庭成员验证
|
|
|
|
- 3: () => {
|
|
|
|
|
|
+ if (this.formData.height) {
|
|
|
|
+ isValid = this.validateField("height", this.formData.height) && isValid;
|
|
|
|
+ }
|
|
|
|
+ if (this.formData.weight) {
|
|
|
|
+ isValid = this.validateField("weight", this.formData.weight) && isValid;
|
|
|
|
+ }
|
|
|
|
+ if (this.formData.expectedSalary) {
|
|
|
|
+ isValid = this.validateField("expectedSalary", this.formData.expectedSalary) && isValid;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
if (this.familyMembers.length === 0) {
|
|
if (this.familyMembers.length === 0) {
|
|
- common_vendor.index.showToast({ title: "请至少添加一位家庭成员", icon: "none" });
|
|
|
|
- return false;
|
|
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请至少添加一位家庭成员",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- return true;
|
|
|
|
- },
|
|
|
|
- // 第三步:教育经历验证
|
|
|
|
- 5: () => {
|
|
|
|
|
|
+ break;
|
|
|
|
+ case 5:
|
|
if (this.educationList.length === 0) {
|
|
if (this.educationList.length === 0) {
|
|
- common_vendor.index.showToast({ title: "请至少添加一项教育经历", icon: "none" });
|
|
|
|
- return false;
|
|
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请至少添加一项教育经历",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- return true;
|
|
|
|
- },
|
|
|
|
- // 第四步:专业技能验证
|
|
|
|
- 6: () => {
|
|
|
|
- if (!this.formData.skills) {
|
|
|
|
- common_vendor.index.showToast({ title: "请描述您的专业技能", icon: "none" });
|
|
|
|
- return false;
|
|
|
|
|
|
+ break;
|
|
|
|
+ case 6:
|
|
|
|
+ if (!((_a = this.formData.skills) == null ? void 0 : _a.trim())) {
|
|
|
|
+ this.formErrors.skills = "请描述您的专业技能";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- return true;
|
|
|
|
- },
|
|
|
|
- // 第五步:工作经历验证
|
|
|
|
- 8: () => {
|
|
|
|
- if (this.workList.length === 0) {
|
|
|
|
- common_vendor.index.showToast({ title: "请至少添加一项工作经历", icon: "none" });
|
|
|
|
- return false;
|
|
|
|
|
|
+ if (!((_b = this.formData.training) == null ? void 0 : _b.trim())) {
|
|
|
|
+ this.formErrors.training = "请描述您的培训经历";
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- for (let i = 0; i < this.workList.length; i++) {
|
|
|
|
- const work = this.workList[i];
|
|
|
|
- const workChecks = [
|
|
|
|
- { value: work.startTime, message: `单位${i + 1}:请选择开始时间` },
|
|
|
|
- { value: work.endTime, message: `单位${i + 1}:请选择结束时间` },
|
|
|
|
- { value: work.companyName, message: `单位${i + 1}:请输入单位名称` },
|
|
|
|
- { value: work.department, message: `单位${i + 1}:请输入任职部门` },
|
|
|
|
- { value: work.position, message: `单位${i + 1}:请输入担任职务` }
|
|
|
|
- ];
|
|
|
|
- for (const check of workChecks) {
|
|
|
|
- if (!check.value) {
|
|
|
|
- common_vendor.index.showToast({ title: check.message, icon: "none" });
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ break;
|
|
|
|
+ case 8:
|
|
|
|
+ if (this.workList.length === 0) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请至少添加一项工作经历",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ isValid = false;
|
|
}
|
|
}
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
- return validations[this.currentStep] ? validations[this.currentStep]() : true;
|
|
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ if (!isValid) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请完善所有必填信息",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ return isValid;
|
|
},
|
|
},
|
|
// Add method to fetch user data
|
|
// Add method to fetch user data
|
|
fetchUserData() {
|
|
fetchUserData() {
|
|
@@ -973,6 +1099,32 @@ const _sfc_main = {
|
|
this.formData.emergencyContact = this.familyMemberForm.name;
|
|
this.formData.emergencyContact = this.familyMemberForm.name;
|
|
this.formData.emergencyPhone = this.familyMemberForm.phone;
|
|
this.formData.emergencyPhone = this.familyMemberForm.phone;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ // 添加重置教育经历错误信息的方法
|
|
|
|
+ resetEducationErrors() {
|
|
|
|
+ this.educationErrors = {
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ schoolName: "",
|
|
|
|
+ major: "",
|
|
|
|
+ degree: ""
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ // 添加通用验证方法
|
|
|
|
+ validateField(fieldName, value) {
|
|
|
|
+ const rule = this.validationRules[fieldName];
|
|
|
|
+ if (!rule)
|
|
|
|
+ return true;
|
|
|
|
+ this.formErrors[fieldName] = "";
|
|
|
|
+ if (rule.required && !value) {
|
|
|
|
+ this.formErrors[fieldName] = rule.message;
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (rule.pattern && !rule.pattern.test(value)) {
|
|
|
|
+ this.formErrors[fieldName] = rule.message;
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 添加监听器来清除错误信息
|
|
// 添加监听器来清除错误信息
|
|
@@ -991,6 +1143,125 @@ const _sfc_main = {
|
|
if (newVal && this.formErrors.phone) {
|
|
if (newVal && this.formErrors.phone) {
|
|
this.formErrors.phone = "";
|
|
this.formErrors.phone = "";
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ "formData.gender": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.gender) {
|
|
|
|
+ this.formErrors.gender = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "formData.ethnic": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.ethnic) {
|
|
|
|
+ this.formErrors.ethnic = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "formData.currentAddress": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.currentAddress) {
|
|
|
|
+ this.formErrors.currentAddress = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "formData.height": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.height) {
|
|
|
|
+ this.formErrors.height = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "formData.weight": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.weight) {
|
|
|
|
+ this.formErrors.weight = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "formData.expectedSalary": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.expectedSalary) {
|
|
|
|
+ this.formErrors.expectedSalary = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "familyMemberForm.relation": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.familyMemberErrors.relation = "";
|
|
|
|
+ },
|
|
|
|
+ "familyMemberForm.name": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.familyMemberErrors.name = "";
|
|
|
|
+ },
|
|
|
|
+ "familyMemberForm.phone": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.familyMemberErrors.phone = "";
|
|
|
|
+ },
|
|
|
|
+ "workForm.companyName": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.companyName) {
|
|
|
|
+ this.workErrors.companyName = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "workForm.department": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.department) {
|
|
|
|
+ this.workErrors.department = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "workForm.position": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.position) {
|
|
|
|
+ this.workErrors.position = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "workForm.employeeCount": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.employeeCount) {
|
|
|
|
+ this.workErrors.employeeCount = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "workForm.monthlySalary": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.monthlySalary) {
|
|
|
|
+ this.workErrors.monthlySalary = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "workForm.supervisor": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.supervisor) {
|
|
|
|
+ this.workErrors.supervisor = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "workForm.supervisorPhone": function(newVal) {
|
|
|
|
+ if (newVal && this.workErrors.supervisorPhone) {
|
|
|
|
+ this.workErrors.supervisorPhone = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "formData.training": function(newVal) {
|
|
|
|
+ if (newVal && this.formErrors.training) {
|
|
|
|
+ this.formErrors.training = "";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "educationForm.startTime": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.educationErrors.startTime = "";
|
|
|
|
+ },
|
|
|
|
+ "educationForm.endTime": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.educationErrors.endTime = "";
|
|
|
|
+ },
|
|
|
|
+ "educationForm.schoolName": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.educationErrors.schoolName = "";
|
|
|
|
+ },
|
|
|
|
+ "educationForm.major": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.educationErrors.major = "";
|
|
|
|
+ },
|
|
|
|
+ "educationForm.degree": function(newVal) {
|
|
|
|
+ if (newVal)
|
|
|
|
+ this.educationErrors.degree = "";
|
|
|
|
+ },
|
|
|
|
+ // 添加对表单字段的实时验证
|
|
|
|
+ "formData": {
|
|
|
|
+ handler(newVal) {
|
|
|
|
+ const currentStepFields = {
|
|
|
|
+ 1: ["name", "gender", "phone", "idCard", "ethnic", "currentAddress", "height", "weight", "expectedSalary"],
|
|
|
|
+ 6: ["skills", "training"]
|
|
|
|
+ }[this.currentStep];
|
|
|
|
+ if (currentStepFields) {
|
|
|
|
+ currentStepFields.forEach((field) => {
|
|
|
|
+ if (newVal[field] !== void 0) {
|
|
|
|
+ this.validateField(field, newVal[field]);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ deep: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -1082,27 +1353,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
}, $data.isEditing ? {
|
|
}, $data.isEditing ? {
|
|
ad: common_vendor.o((...args) => $options.cancelEdit && $options.cancelEdit(...args))
|
|
ad: common_vendor.o((...args) => $options.cancelEdit && $options.cancelEdit(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- ae: $data.familyMemberForm.relation,
|
|
|
|
- af: common_vendor.o(($event) => $data.familyMemberForm.relation = $event.detail.value),
|
|
|
|
- ag: $data.familyMemberForm.name,
|
|
|
|
- ah: common_vendor.o(($event) => $data.familyMemberForm.name = $event.detail.value),
|
|
|
|
- ai: $data.familyMemberForm.workplaceOrAddress,
|
|
|
|
- aj: common_vendor.o(($event) => $data.familyMemberForm.workplaceOrAddress = $event.detail.value),
|
|
|
|
- ak: $data.familyMemberForm.position,
|
|
|
|
- al: common_vendor.o(($event) => $data.familyMemberForm.position = $event.detail.value),
|
|
|
|
- am: $data.familyMemberForm.phone,
|
|
|
|
- an: common_vendor.o(($event) => $data.familyMemberForm.phone = $event.detail.value),
|
|
|
|
- ao: $data.familyMemberForm.isEmergencyContact,
|
|
|
|
- ap: common_vendor.o((...args) => $options.handleEmergencyContactChange && $options.handleEmergencyContactChange(...args)),
|
|
|
|
- aq: common_vendor.t($data.isEditing ? "✓" : "+"),
|
|
|
|
- ar: common_vendor.o((...args) => $options.saveFamilyMember && $options.saveFamilyMember(...args)),
|
|
|
|
- as: common_vendor.t($data.isEditing ? "保存修改" : "添加成员")
|
|
|
|
|
|
+ ae: $data.familyMemberErrors.relation ? 1 : "",
|
|
|
|
+ af: $data.familyMemberForm.relation,
|
|
|
|
+ ag: common_vendor.o(($event) => $data.familyMemberForm.relation = $event.detail.value),
|
|
|
|
+ ah: $data.familyMemberErrors.relation
|
|
|
|
+ }, $data.familyMemberErrors.relation ? {
|
|
|
|
+ ai: common_vendor.t($data.familyMemberErrors.relation)
|
|
|
|
+ } : {}, {
|
|
|
|
+ aj: $data.familyMemberErrors.name ? 1 : "",
|
|
|
|
+ ak: $data.familyMemberForm.name,
|
|
|
|
+ al: common_vendor.o(($event) => $data.familyMemberForm.name = $event.detail.value),
|
|
|
|
+ am: $data.familyMemberErrors.name
|
|
|
|
+ }, $data.familyMemberErrors.name ? {
|
|
|
|
+ an: common_vendor.t($data.familyMemberErrors.name)
|
|
|
|
+ } : {}, {
|
|
|
|
+ ao: $data.familyMemberForm.workplaceOrAddress,
|
|
|
|
+ ap: common_vendor.o(($event) => $data.familyMemberForm.workplaceOrAddress = $event.detail.value),
|
|
|
|
+ aq: $data.familyMemberForm.position,
|
|
|
|
+ ar: common_vendor.o(($event) => $data.familyMemberForm.position = $event.detail.value),
|
|
|
|
+ as: $data.familyMemberErrors.phone ? 1 : "",
|
|
|
|
+ at: $data.familyMemberForm.phone,
|
|
|
|
+ av: common_vendor.o(($event) => $data.familyMemberForm.phone = $event.detail.value),
|
|
|
|
+ aw: $data.familyMemberErrors.phone
|
|
|
|
+ }, $data.familyMemberErrors.phone ? {
|
|
|
|
+ ax: common_vendor.t($data.familyMemberErrors.phone)
|
|
|
|
+ } : {}, {
|
|
|
|
+ ay: $data.familyMemberForm.isEmergencyContact,
|
|
|
|
+ az: common_vendor.o((...args) => $options.handleEmergencyContactChange && $options.handleEmergencyContactChange(...args)),
|
|
|
|
+ aA: common_vendor.t($data.isEditing ? "✓" : "+"),
|
|
|
|
+ aB: common_vendor.o((...args) => $options.saveFamilyMember && $options.saveFamilyMember(...args)),
|
|
|
|
+ aC: common_vendor.t($data.isEditing ? "保存修改" : "添加成员")
|
|
}) : {}, {
|
|
}) : {}, {
|
|
- at: $data.currentStep === 5
|
|
|
|
|
|
+ aD: $data.currentStep === 5
|
|
}, $data.currentStep === 5 ? common_vendor.e({
|
|
}, $data.currentStep === 5 ? common_vendor.e({
|
|
- av: $data.educationList.length > 0
|
|
|
|
|
|
+ aE: $data.educationList.length > 0
|
|
}, $data.educationList.length > 0 ? {
|
|
}, $data.educationList.length > 0 ? {
|
|
- aw: common_vendor.f($data.educationList, (edu, index, i0) => {
|
|
|
|
|
|
+ aF: common_vendor.f($data.educationList, (edu, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(index === 0 ? "第一学历" : "最高学历"),
|
|
a: common_vendor.t(index === 0 ? "第一学历" : "最高学历"),
|
|
b: common_vendor.o(($event) => $options.editEducation(index), index),
|
|
b: common_vendor.o(($event) => $options.editEducation(index), index),
|
|
@@ -1116,43 +1402,77 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
};
|
|
};
|
|
})
|
|
})
|
|
} : {}, {
|
|
} : {}, {
|
|
- ax: $data.educationList.length < 2 || $data.isEditingEducation
|
|
|
|
|
|
+ aG: $data.educationList.length < 2 || $data.isEditingEducation
|
|
}, $data.educationList.length < 2 || $data.isEditingEducation ? common_vendor.e({
|
|
}, $data.educationList.length < 2 || $data.isEditingEducation ? common_vendor.e({
|
|
- ay: common_vendor.t($data.isEditingEducation ? "编辑教育经历" : $data.educationList.length === 0 ? "添加第一学历" : "添加最高学历"),
|
|
|
|
- az: $data.isEditingEducation
|
|
|
|
|
|
+ aH: common_vendor.t($data.isEditingEducation ? "编辑教育经历" : $data.educationList.length === 0 ? "添加第一学历" : "添加最高学历"),
|
|
|
|
+ aI: $data.isEditingEducation
|
|
}, $data.isEditingEducation ? {
|
|
}, $data.isEditingEducation ? {
|
|
- aA: common_vendor.o((...args) => $options.cancelEditEducation && $options.cancelEditEducation(...args))
|
|
|
|
|
|
+ aJ: common_vendor.o((...args) => $options.cancelEditEducation && $options.cancelEditEducation(...args))
|
|
|
|
+ } : {}, {
|
|
|
|
+ aK: common_vendor.t($data.educationForm.startTime || "开始时间"),
|
|
|
|
+ aL: $data.educationForm.startTime,
|
|
|
|
+ aM: common_vendor.o((...args) => $options.bindStartTimeChange && $options.bindStartTimeChange(...args)),
|
|
|
|
+ aN: $data.educationErrors.startTime ? 1 : "",
|
|
|
|
+ aO: common_vendor.t($data.educationForm.endTime || "结束时间"),
|
|
|
|
+ aP: $data.educationForm.endTime,
|
|
|
|
+ aQ: common_vendor.o((...args) => $options.bindEndTimeChange && $options.bindEndTimeChange(...args)),
|
|
|
|
+ aR: $data.educationErrors.endTime ? 1 : "",
|
|
|
|
+ aS: $data.educationErrors.startTime
|
|
|
|
+ }, $data.educationErrors.startTime ? {
|
|
|
|
+ aT: common_vendor.t($data.educationErrors.startTime)
|
|
} : {}, {
|
|
} : {}, {
|
|
- aB: common_vendor.t($data.educationForm.startTime || "开始时间"),
|
|
|
|
- aC: $data.educationForm.startTime,
|
|
|
|
- aD: common_vendor.o((...args) => $options.bindStartTimeChange && $options.bindStartTimeChange(...args)),
|
|
|
|
- aE: common_vendor.t($data.educationForm.endTime || "结束时间"),
|
|
|
|
- aF: $data.educationForm.endTime,
|
|
|
|
- aG: common_vendor.o((...args) => $options.bindEndTimeChange && $options.bindEndTimeChange(...args)),
|
|
|
|
- aH: $data.educationForm.schoolName,
|
|
|
|
- aI: common_vendor.o(($event) => $data.educationForm.schoolName = $event.detail.value),
|
|
|
|
- aJ: $data.educationForm.major,
|
|
|
|
- aK: common_vendor.o(($event) => $data.educationForm.major = $event.detail.value),
|
|
|
|
- aL: common_vendor.t($data.degreeOptions[$data.degreeIndex] || "请选择学历"),
|
|
|
|
- aM: common_vendor.o((...args) => $options.bindDegreeChange && $options.bindDegreeChange(...args)),
|
|
|
|
- aN: $data.degreeIndex,
|
|
|
|
- aO: $data.degreeOptions,
|
|
|
|
- aP: common_vendor.t($data.isEditingEducation ? "✓" : "+"),
|
|
|
|
- aQ: common_vendor.o((...args) => $options.saveEducation && $options.saveEducation(...args)),
|
|
|
|
- aR: common_vendor.t($data.isEditingEducation ? "保存修改" : "添加学历")
|
|
|
|
|
|
+ aU: $data.educationErrors.endTime
|
|
|
|
+ }, $data.educationErrors.endTime ? {
|
|
|
|
+ aV: common_vendor.t($data.educationErrors.endTime)
|
|
|
|
+ } : {}, {
|
|
|
|
+ aW: $data.educationErrors.schoolName ? 1 : "",
|
|
|
|
+ aX: $data.educationForm.schoolName,
|
|
|
|
+ aY: common_vendor.o(($event) => $data.educationForm.schoolName = $event.detail.value),
|
|
|
|
+ aZ: $data.educationErrors.schoolName
|
|
|
|
+ }, $data.educationErrors.schoolName ? {
|
|
|
|
+ ba: common_vendor.t($data.educationErrors.schoolName)
|
|
|
|
+ } : {}, {
|
|
|
|
+ bb: $data.educationErrors.major ? 1 : "",
|
|
|
|
+ bc: $data.educationForm.major,
|
|
|
|
+ bd: common_vendor.o(($event) => $data.educationForm.major = $event.detail.value),
|
|
|
|
+ be: $data.educationErrors.major
|
|
|
|
+ }, $data.educationErrors.major ? {
|
|
|
|
+ bf: common_vendor.t($data.educationErrors.major)
|
|
|
|
+ } : {}, {
|
|
|
|
+ bg: common_vendor.t($data.degreeOptions[$data.degreeIndex] || "请选择学历"),
|
|
|
|
+ bh: common_vendor.o((...args) => $options.bindDegreeChange && $options.bindDegreeChange(...args)),
|
|
|
|
+ bi: $data.degreeIndex,
|
|
|
|
+ bj: $data.degreeOptions,
|
|
|
|
+ bk: $data.educationErrors.degree ? 1 : "",
|
|
|
|
+ bl: $data.educationErrors.degree
|
|
|
|
+ }, $data.educationErrors.degree ? {
|
|
|
|
+ bm: common_vendor.t($data.educationErrors.degree)
|
|
|
|
+ } : {}, {
|
|
|
|
+ bn: common_vendor.t($data.isEditingEducation ? "✓" : "+"),
|
|
|
|
+ bo: common_vendor.o((...args) => $options.saveEducation && $options.saveEducation(...args)),
|
|
|
|
+ bp: common_vendor.t($data.isEditingEducation ? "保存修改" : "添加学历")
|
|
}) : {}) : {}, {
|
|
}) : {}) : {}, {
|
|
- aS: $data.currentStep === 6
|
|
|
|
- }, $data.currentStep === 6 ? {
|
|
|
|
- aT: $data.formData.skills,
|
|
|
|
- aU: common_vendor.o(($event) => $data.formData.skills = $event.detail.value),
|
|
|
|
- aV: $data.formData.training,
|
|
|
|
- aW: common_vendor.o(($event) => $data.formData.training = $event.detail.value)
|
|
|
|
|
|
+ bq: $data.currentStep === 6
|
|
|
|
+ }, $data.currentStep === 6 ? common_vendor.e({
|
|
|
|
+ br: $data.formErrors.skills ? 1 : "",
|
|
|
|
+ bs: $data.formData.skills,
|
|
|
|
+ bt: common_vendor.o(($event) => $data.formData.skills = $event.detail.value),
|
|
|
|
+ bv: $data.formErrors.skills
|
|
|
|
+ }, $data.formErrors.skills ? {
|
|
|
|
+ bw: common_vendor.t($data.formErrors.skills)
|
|
} : {}, {
|
|
} : {}, {
|
|
- aX: $data.currentStep === 8
|
|
|
|
|
|
+ bx: $data.formErrors.training ? 1 : "",
|
|
|
|
+ by: $data.formData.training,
|
|
|
|
+ bz: common_vendor.o(($event) => $data.formData.training = $event.detail.value),
|
|
|
|
+ bA: $data.formErrors.training
|
|
|
|
+ }, $data.formErrors.training ? {
|
|
|
|
+ bB: common_vendor.t($data.formErrors.training)
|
|
|
|
+ } : {}) : {}, {
|
|
|
|
+ bC: $data.currentStep === 8
|
|
}, $data.currentStep === 8 ? common_vendor.e({
|
|
}, $data.currentStep === 8 ? common_vendor.e({
|
|
- aY: $data.workList.length > 0
|
|
|
|
|
|
+ bD: $data.workList.length > 0
|
|
}, $data.workList.length > 0 ? {
|
|
}, $data.workList.length > 0 ? {
|
|
- aZ: common_vendor.f($data.workList, (work, index, i0) => {
|
|
|
|
|
|
+ bE: common_vendor.f($data.workList, (work, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(index + 1),
|
|
a: common_vendor.t(index + 1),
|
|
b: common_vendor.o(($event) => $options.editWork(index), index),
|
|
b: common_vendor.o(($event) => $options.editWork(index), index),
|
|
@@ -1170,48 +1490,90 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
};
|
|
};
|
|
})
|
|
})
|
|
} : {}, {
|
|
} : {}, {
|
|
- ba: $data.workList.length < 2 || $data.isEditingWork
|
|
|
|
|
|
+ bF: $data.workList.length < 2 || $data.isEditingWork
|
|
}, $data.workList.length < 2 || $data.isEditingWork ? common_vendor.e({
|
|
}, $data.workList.length < 2 || $data.isEditingWork ? common_vendor.e({
|
|
- bb: common_vendor.t($data.isEditingWork ? "编辑工作经历" : "添加工作经历"),
|
|
|
|
- bc: $data.isEditingWork
|
|
|
|
|
|
+ bG: common_vendor.t($data.isEditingWork ? "编辑工作经历" : "添加工作经历"),
|
|
|
|
+ bH: $data.isEditingWork
|
|
}, $data.isEditingWork ? {
|
|
}, $data.isEditingWork ? {
|
|
- bd: common_vendor.o((...args) => $options.cancelEditWork && $options.cancelEditWork(...args))
|
|
|
|
|
|
+ bI: common_vendor.o((...args) => $options.cancelEditWork && $options.cancelEditWork(...args))
|
|
|
|
+ } : {}, {
|
|
|
|
+ bJ: common_vendor.t($data.workForm.startTime || "开始时间"),
|
|
|
|
+ bK: $data.workForm.startTime,
|
|
|
|
+ bL: common_vendor.o((...args) => $options.bindWorkStartTimeChange && $options.bindWorkStartTimeChange(...args)),
|
|
|
|
+ bM: $data.workErrors.startTime ? 1 : "",
|
|
|
|
+ bN: common_vendor.t($data.workForm.endTime || "结束时间"),
|
|
|
|
+ bO: $data.workForm.endTime,
|
|
|
|
+ bP: common_vendor.o((...args) => $options.bindWorkEndTimeChange && $options.bindWorkEndTimeChange(...args)),
|
|
|
|
+ bQ: $data.workErrors.endTime ? 1 : "",
|
|
|
|
+ bR: $data.workErrors.startTime
|
|
|
|
+ }, $data.workErrors.startTime ? {
|
|
|
|
+ bS: common_vendor.t($data.workErrors.startTime)
|
|
|
|
+ } : {}, {
|
|
|
|
+ bT: $data.workErrors.endTime
|
|
|
|
+ }, $data.workErrors.endTime ? {
|
|
|
|
+ bU: common_vendor.t($data.workErrors.endTime)
|
|
|
|
+ } : {}, {
|
|
|
|
+ bV: $data.workErrors.companyName ? 1 : "",
|
|
|
|
+ bW: $data.workForm.companyName,
|
|
|
|
+ bX: common_vendor.o(($event) => $data.workForm.companyName = $event.detail.value),
|
|
|
|
+ bY: $data.workErrors.companyName
|
|
|
|
+ }, $data.workErrors.companyName ? {
|
|
|
|
+ bZ: common_vendor.t($data.workErrors.companyName)
|
|
|
|
+ } : {}, {
|
|
|
|
+ ca: $data.workErrors.employeeCount ? 1 : "",
|
|
|
|
+ cb: $data.workForm.employeeCount,
|
|
|
|
+ cc: common_vendor.o(($event) => $data.workForm.employeeCount = $event.detail.value),
|
|
|
|
+ cd: $data.workErrors.employeeCount
|
|
|
|
+ }, $data.workErrors.employeeCount ? {
|
|
|
|
+ ce: common_vendor.t($data.workErrors.employeeCount)
|
|
|
|
+ } : {}, {
|
|
|
|
+ cf: $data.workErrors.department ? 1 : "",
|
|
|
|
+ cg: $data.workForm.department,
|
|
|
|
+ ch: common_vendor.o(($event) => $data.workForm.department = $event.detail.value),
|
|
|
|
+ ci: $data.workErrors.department
|
|
|
|
+ }, $data.workErrors.department ? {
|
|
|
|
+ cj: common_vendor.t($data.workErrors.department)
|
|
|
|
+ } : {}, {
|
|
|
|
+ ck: $data.workErrors.position ? 1 : "",
|
|
|
|
+ cl: $data.workForm.position,
|
|
|
|
+ cm: common_vendor.o(($event) => $data.workForm.position = $event.detail.value),
|
|
|
|
+ cn: $data.workErrors.position
|
|
|
|
+ }, $data.workErrors.position ? {
|
|
|
|
+ co: common_vendor.t($data.workErrors.position)
|
|
|
|
+ } : {}, {
|
|
|
|
+ cp: $data.workForm.monthlySalary,
|
|
|
|
+ cq: common_vendor.o(($event) => $data.workForm.monthlySalary = $event.detail.value),
|
|
|
|
+ cr: $data.workErrors.monthlySalary
|
|
|
|
+ }, $data.workErrors.monthlySalary ? {
|
|
|
|
+ cs: common_vendor.t($data.workErrors.monthlySalary)
|
|
|
|
+ } : {}, {
|
|
|
|
+ ct: $data.workForm.supervisor,
|
|
|
|
+ cv: common_vendor.o(($event) => $data.workForm.supervisor = $event.detail.value),
|
|
|
|
+ cw: $data.workErrors.supervisor
|
|
|
|
+ }, $data.workErrors.supervisor ? {
|
|
|
|
+ cx: common_vendor.t($data.workErrors.supervisor)
|
|
|
|
+ } : {}, {
|
|
|
|
+ cy: $data.workForm.supervisorPhone,
|
|
|
|
+ cz: common_vendor.o(($event) => $data.workForm.supervisorPhone = $event.detail.value),
|
|
|
|
+ cA: $data.workErrors.supervisorPhone
|
|
|
|
+ }, $data.workErrors.supervisorPhone ? {
|
|
|
|
+ cB: common_vendor.t($data.workErrors.supervisorPhone)
|
|
} : {}, {
|
|
} : {}, {
|
|
- be: common_vendor.t($data.workForm.startTime || "开始时间"),
|
|
|
|
- bf: $data.workForm.startTime,
|
|
|
|
- bg: common_vendor.o((...args) => $options.bindWorkStartTimeChange && $options.bindWorkStartTimeChange(...args)),
|
|
|
|
- bh: common_vendor.t($data.workForm.endTime || "结束时间"),
|
|
|
|
- bi: $data.workForm.endTime,
|
|
|
|
- bj: common_vendor.o((...args) => $options.bindWorkEndTimeChange && $options.bindWorkEndTimeChange(...args)),
|
|
|
|
- bk: $data.workForm.companyName,
|
|
|
|
- bl: common_vendor.o(($event) => $data.workForm.companyName = $event.detail.value),
|
|
|
|
- bm: $data.workForm.employeeCount,
|
|
|
|
- bn: common_vendor.o(($event) => $data.workForm.employeeCount = $event.detail.value),
|
|
|
|
- bo: $data.workForm.department,
|
|
|
|
- bp: common_vendor.o(($event) => $data.workForm.department = $event.detail.value),
|
|
|
|
- bq: $data.workForm.position,
|
|
|
|
- br: common_vendor.o(($event) => $data.workForm.position = $event.detail.value),
|
|
|
|
- bs: $data.workForm.monthlySalary,
|
|
|
|
- bt: common_vendor.o(($event) => $data.workForm.monthlySalary = $event.detail.value),
|
|
|
|
- bv: $data.workForm.supervisor,
|
|
|
|
- bw: common_vendor.o(($event) => $data.workForm.supervisor = $event.detail.value),
|
|
|
|
- bx: $data.workForm.supervisorPhone,
|
|
|
|
- by: common_vendor.o(($event) => $data.workForm.supervisorPhone = $event.detail.value),
|
|
|
|
- bz: common_vendor.t($data.isEditingWork ? "✓" : "+"),
|
|
|
|
- bA: common_vendor.o((...args) => $options.saveWork && $options.saveWork(...args)),
|
|
|
|
- bB: common_vendor.t($data.isEditingWork ? "保存修改" : "添加工作经历")
|
|
|
|
|
|
+ cC: common_vendor.t($data.isEditingWork ? "✓" : "+"),
|
|
|
|
+ cD: common_vendor.o((...args) => $options.saveWork && $options.saveWork(...args)),
|
|
|
|
+ cE: common_vendor.t($data.isEditingWork ? "保存修改" : "添加工作经历")
|
|
}) : {}) : {}, {
|
|
}) : {}) : {}, {
|
|
- bC: $options.showPrevButton
|
|
|
|
|
|
+ cF: $options.showPrevButton
|
|
}, $options.showPrevButton ? {
|
|
}, $options.showPrevButton ? {
|
|
- bD: common_vendor.o((...args) => $options.prevStep && $options.prevStep(...args))
|
|
|
|
|
|
+ cG: common_vendor.o((...args) => $options.prevStep && $options.prevStep(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- bE: $options.showNextButton
|
|
|
|
|
|
+ cH: $options.showNextButton
|
|
}, $options.showNextButton ? {
|
|
}, $options.showNextButton ? {
|
|
- bF: common_vendor.o((...args) => $options.nextStep && $options.nextStep(...args))
|
|
|
|
|
|
+ cI: common_vendor.o((...args) => $options.nextStep && $options.nextStep(...args))
|
|
} : {}, {
|
|
} : {}, {
|
|
- bG: $options.showSubmitButton
|
|
|
|
|
|
+ cJ: $options.showSubmitButton
|
|
}, $options.showSubmitButton ? {
|
|
}, $options.showSubmitButton ? {
|
|
- bH: common_vendor.o((...args) => $options.submitForm && $options.submitForm(...args))
|
|
|
|
|
|
+ cK: common_vendor.o((...args) => $options.submitForm && $options.submitForm(...args))
|
|
} : {});
|
|
} : {});
|
|
}
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|