|
@@ -532,6 +532,72 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ for (let i = 0; i < this.workList.length; i++) {
|
|
|
|
+ const work = this.workList[i];
|
|
|
|
+ if (!work.startTime) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请选择开始时间`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.endTime) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请选择结束时间`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.companyName) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入单位名称`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.department) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入任职部门`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.employeeCount) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入单位人数`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.position) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入担任职务`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.monthlySalary) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入月总收入`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.supervisor) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入直接领导姓名`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.supervisorPhone) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入领导电话`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
const submitData = {
|
|
const submitData = {
|
|
tenant_id: 1,
|
|
tenant_id: 1,
|
|
user_id: JSON.parse(common_vendor.index.getStorageSync("userInfo")).id,
|
|
user_id: JSON.parse(common_vendor.index.getStorageSync("userInfo")).id,
|
|
@@ -755,8 +821,57 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ if (!this.formData.phone) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请输入手机号",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.formData.idCard) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请输入身份证号",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (this.politicalIndex === -1) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请选择政治面貌",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (this.ethnicIndex === -1) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请选择民族",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (this.marriageIndex === -1) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请选择婚育状况",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
return true;
|
|
return true;
|
|
case 2:
|
|
case 2:
|
|
|
|
+ if (!this.formData.email) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请输入电子邮箱",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!this.formData.currentAddress) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请输入现居住地址",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
if (!this.formData.emergencyContact) {
|
|
if (!this.formData.emergencyContact) {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
title: "请输入紧急联系人",
|
|
title: "请输入紧急联系人",
|
|
@@ -816,8 +931,22 @@ const _sfc_main = {
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
case 6:
|
|
case 6:
|
|
|
|
+ if (!this.formData.skills) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请描述您的专业技能",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
return true;
|
|
return true;
|
|
case 7:
|
|
case 7:
|
|
|
|
+ if (!this.formData.training) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: "请描述您接受过的培训经历",
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
return true;
|
|
return true;
|
|
case 8:
|
|
case 8:
|
|
if (this.workList.length === 0) {
|
|
if (this.workList.length === 0) {
|
|
@@ -827,6 +956,72 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ for (let i = 0; i < this.workList.length; i++) {
|
|
|
|
+ const work = this.workList[i];
|
|
|
|
+ if (!work.startTime) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请选择开始时间`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.endTime) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请选择结束时间`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.companyName) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入单位名称`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.department) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入任职部门`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.employeeCount) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入单位人数`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.position) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入担任职务`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.monthlySalary) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入月总收入`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.supervisor) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入直接领导姓名`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (!work.supervisorPhone) {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: `单位${i + 1}:请输入领导电话`,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return true;
|
|
return true;
|
|
default:
|
|
default:
|
|
return true;
|
|
return true;
|