|
|
|
|
@ -1,98 +1,77 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="p-root-home-quick g_w_all g_bg_f_5 g_kuaishou">
|
|
|
|
|
<view class="card-tip g_pt_24 g_pl_20 g_c_6">老乡信息</view>
|
|
|
|
|
<tosmanPart :info="info" @changeInfo="changeInfo"></tosmanPart>
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">老乡信息</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_15 g_ml_10 g_mr_10 g_radius_8" v-for="(item, index) in persenInfo" :key="index" @click="goFellow('')">
|
|
|
|
|
<view class="g_pb_2 g_flex_row_between">
|
|
|
|
|
<view class="g_flex_1 g_flex_column_center g_mr_10">
|
|
|
|
|
<view class="g_flex_row_start g_fs_16 g_fw_bold">
|
|
|
|
|
<view> {{ item.userName ? item.userName + "/" : "姓名/" }} </view>
|
|
|
|
|
<view v-if="!item.sex">性别/</view>
|
|
|
|
|
<view v-if="item.sex == 1">男/</view>
|
|
|
|
|
<view v-if="item.sex == 2">女/</view>
|
|
|
|
|
<view> {{ item.age ? item.age + "岁/" : "年龄/" }} </view>
|
|
|
|
|
<view> {{ item.nation ? item.nation : "民族" }} </view>
|
|
|
|
|
<view class="" v-if="false" hover-class="none" hover-stop-propagation="false">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="g_bg_f g_pl_15 g_pr_15 g_pt_15 g_ml_10 g_mr_10 g_radius_8" v-for="(item, index) in persenInfo" :key="index" @click="goFellow('')">
|
|
|
|
|
<view class="g_pb_2 g_flex_row_between">
|
|
|
|
|
<view class="g_flex_1 g_flex_column_center g_mr_10">
|
|
|
|
|
<view class="g_flex_row_start g_fs_16 g_fw_bold">
|
|
|
|
|
<view> {{ item.userName ? item.userName + "/" : "姓名/" }} </view>
|
|
|
|
|
<view v-if="!item.sex">性别/</view>
|
|
|
|
|
<view v-if="item.sex == 1">男/</view>
|
|
|
|
|
<view v-if="item.sex == 2">女/</view>
|
|
|
|
|
<view> {{ item.age ? item.age + "岁/" : "年龄/" }} </view>
|
|
|
|
|
<view> {{ item.nation ? item.nation : "民族" }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_none g_flex_row_end">
|
|
|
|
|
<view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9" style="background-color: #f5f5f5; border-radius: 17px">
|
|
|
|
|
<view class="g_flex_row_end" @click.stop="goFellow(item, index)">
|
|
|
|
|
<view class="g_flex_column_center">
|
|
|
|
|
<i class="iconfont icon-bianji g_c_3"></i>
|
|
|
|
|
<view class="g_flex_none g_flex_row_end">
|
|
|
|
|
<view class="g_flex_row_end g_pl_16 g_pr_16 g_pt_9 g_pb_9" style="background-color: #f5f5f5; border-radius: 17px">
|
|
|
|
|
<view class="g_flex_row_end" @click.stop="goFellow(item, index)">
|
|
|
|
|
<view class="g_flex_column_center">
|
|
|
|
|
<i class="iconfont icon-bianji g_c_3"></i>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_fs_13 g_c_3 g_ml_8">编辑</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_fs_13 g_c_3 g_ml_8">编辑</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="g_pb_8 g_c_6 g_flex_row_start flex_center">
|
|
|
|
|
<div style="background-color: #efefff" class="g_flex_row_center flex_center g_w_24 g_h_24 g_mr_4 g_radius_12">
|
|
|
|
|
<image src="../../static/image/address.svg" class="g_w_14 g_h_14"></image>
|
|
|
|
|
</div>
|
|
|
|
|
{{ item.address ? item.address : "家庭住址" }}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_start g_pb_15">
|
|
|
|
|
<view class="g_flex_row_start g_mr_14">
|
|
|
|
|
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
|
|
|
|
|
<image src="../../static/image/id_card.svg" class="g_w_24 g_h_24"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_column_center g_c_6">{{ item.idCard ? item.idCard : "身份证号" }}</view>
|
|
|
|
|
<view class="g_pb_8 g_c_6 g_flex_row_start flex_center">
|
|
|
|
|
<div style="background-color: #efefff" class="g_flex_row_center flex_center g_w_24 g_h_24 g_mr_4 g_radius_12">
|
|
|
|
|
<image src="../../static/image/address.svg" class="g_w_14 g_h_14"></image>
|
|
|
|
|
</div>
|
|
|
|
|
{{ item.address ? item.address : "家庭住址" }}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_start">
|
|
|
|
|
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
|
|
|
|
|
<image src="../../static/image/call.svg" class="g_w_24 g_h_24"></image>
|
|
|
|
|
<view class="g_flex_row_start g_pb_15">
|
|
|
|
|
<view class="g_flex_row_start g_mr_14">
|
|
|
|
|
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
|
|
|
|
|
<image src="../../static/image/id_card.svg" class="g_w_24 g_h_24"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_column_center g_c_6">{{ item.idCard ? item.idCard : "身份证号" }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_start">
|
|
|
|
|
<view class="g_flex_none g_mr_4 g_w_24 g_h_24 g_radius_50 g_flex_c">
|
|
|
|
|
<image src="../../static/image/call.svg" class="g_w_24 g_h_24"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_column_center g_c_6">{{ item.tel ? item.tel : "手机号" }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_column_center g_c_6">{{ item.tel ? item.tel : "手机号" }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_pb_17 g_flex_row_start" v-if="item.idCardImageUrl || item.imgs">
|
|
|
|
|
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
|
<view v-if="item.imgs" class="g_flex_row_start">
|
|
|
|
|
<view v-for="i in item.imgs" class="g_ml_10">
|
|
|
|
|
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
|
<view class="g_pb_17 g_flex_row_start" v-if="item.idCardImageUrl || item.imgs">
|
|
|
|
|
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
|
<view v-if="item.imgs" class="g_flex_row_start">
|
|
|
|
|
<view v-for="i in item.imgs" class="g_ml_10">
|
|
|
|
|
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="g_flex_row_center flex_center g_flex_1 g_h_48 g_bg_f g_fs_16 g_c_main g_ml_10 g_mr_10 g_radius_8" @click="goFellow('')" v-if="!persenInfo[0]">
|
|
|
|
|
<!-- <view class="g_w_18 g_h_18 g_mr_6 g_text_c g_radius_20 g_border_main g_fsi_18" style="line-height: 13px">+</view> -->
|
|
|
|
|
<view class="g_flex_column_center">
|
|
|
|
|
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
|
|
|
|
|
<view class="g_flex_row_center flex_center g_flex_1 g_h_48 g_bg_f g_fs_16 g_c_main g_ml_10 g_mr_10 g_radius_8" @click="goFellow('')" v-if="!persenInfo[0]">
|
|
|
|
|
<!-- <view class="g_w_18 g_h_18 g_mr_6 g_text_c g_radius_20 g_border_main g_fsi_18" style="line-height: 13px">+</view> -->
|
|
|
|
|
<view class="g_flex_column_center">
|
|
|
|
|
<i class="iconfont icon-jia1 g_c_min g_mr_6" style="font-size: 18px"></i>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="">添加老乡</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="">添加老乡</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">职位信息</view>
|
|
|
|
|
<view class="fs_top text-wrap">
|
|
|
|
|
<g-panel-form-slot :list="jobData" @clickResult="changePage" @changeTime="getTime"> </g-panel-form-slot>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="fs_bottom">
|
|
|
|
|
<g-panel-form-slot
|
|
|
|
|
:list="[
|
|
|
|
|
{
|
|
|
|
|
radius: 'no_top',
|
|
|
|
|
icon: '',
|
|
|
|
|
label: '政策模式',
|
|
|
|
|
result: '',
|
|
|
|
|
path: '',
|
|
|
|
|
value: zhengceSelect.text,
|
|
|
|
|
tip: 'slot-zhengce',
|
|
|
|
|
require: true,
|
|
|
|
|
customRequire: true,
|
|
|
|
|
type: 'slot-zhengce',
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
from: 'slot-zhengce',
|
|
|
|
|
},
|
|
|
|
|
]"
|
|
|
|
|
:defaultOption="zhengceTextList"
|
|
|
|
|
:jobInfo="updateInfo.jobId"
|
|
|
|
|
@updateZhengce="changeZhengce"
|
|
|
|
|
>
|
|
|
|
|
</g-panel-form-slot>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="card-tip g_pt_24 g_pb_8 g_pl_20 g_c_6">报名备注</view>
|
|
|
|
|
@ -129,8 +108,12 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { nationlist } from "../../utils/nation.js";
|
|
|
|
|
import dateUtil from "../../utils/dateUtil.js";
|
|
|
|
|
import tosmanPart from "../other/editTownsman.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
tosmanPart,
|
|
|
|
|
},
|
|
|
|
|
onReady() {
|
|
|
|
|
this.G.setNavStyle();
|
|
|
|
|
let that = this;
|
|
|
|
|
@ -158,15 +141,6 @@ export default {
|
|
|
|
|
that.updateInfo.jobName = data.info.jobName;
|
|
|
|
|
that.jobType = data.info.jobType;
|
|
|
|
|
console.log("data.info", data.info);
|
|
|
|
|
if (that.jobType == 1) {
|
|
|
|
|
that.templateId = data.info.templateId;
|
|
|
|
|
that.getPolicyByJobId({
|
|
|
|
|
id: data.info.id,
|
|
|
|
|
templateId: data.info.templateId,
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
that.getPolicyById(data.info);
|
|
|
|
|
}
|
|
|
|
|
that.getJobDetail(data.info);
|
|
|
|
|
that.$forceUpdate();
|
|
|
|
|
});
|
|
|
|
|
@ -180,21 +154,21 @@ export default {
|
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
return this.G.shareFun();
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
info: {
|
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
console.log("newVal", newVal);
|
|
|
|
|
},
|
|
|
|
|
deep: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log("options.jobId", options);
|
|
|
|
|
if (options.jobId) {
|
|
|
|
|
this.updateInfo.jobId = options.jobId;
|
|
|
|
|
this.updateInfo.jobName = options.jobName;
|
|
|
|
|
}
|
|
|
|
|
if (options.id) {
|
|
|
|
|
that.G.Post(that.api.resume_detail_new + "/" + options.id, {}, (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
that.updateInfo.jobId = res.resume.jobId;
|
|
|
|
|
that.updateInfo.jobName = res.resume.jobName;
|
|
|
|
|
that.getJobDetail({ id: res.resume.jobId });
|
|
|
|
|
that.getPolicyById({ id: res.resume.jobId });
|
|
|
|
|
});
|
|
|
|
|
that.getJobDetail({ id: options.jobId });
|
|
|
|
|
}
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: options.title ? options.title : "报名",
|
|
|
|
|
@ -245,168 +219,26 @@ export default {
|
|
|
|
|
persenInfo: [],
|
|
|
|
|
agreeRadio: ["agree"],
|
|
|
|
|
jobData: [],
|
|
|
|
|
zhengceTextList: [],
|
|
|
|
|
zhengceSelect: {
|
|
|
|
|
text: "政策一",
|
|
|
|
|
id: 1,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log("this.updateInfo.", this.updateInfo);
|
|
|
|
|
this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
|
|
|
|
|
|
|
|
|
|
this.jobData = [
|
|
|
|
|
{
|
|
|
|
|
radius: "no_bottom",
|
|
|
|
|
icon: "",
|
|
|
|
|
label: "报名职位",
|
|
|
|
|
result: that.updateInfo.jobId ? that.updateInfo.jobName : "请选择报名职位",
|
|
|
|
|
path: "/root/other/search?from=record",
|
|
|
|
|
placeholder: "请选择报名职位",
|
|
|
|
|
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
|
|
|
|
|
tip: "applia-job",
|
|
|
|
|
require: true,
|
|
|
|
|
customRequire: true,
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "",
|
|
|
|
|
label: "预约面试时间",
|
|
|
|
|
result: "",
|
|
|
|
|
path: "",
|
|
|
|
|
value: that.updateInfo.interviewTimeStr,
|
|
|
|
|
tip: "slot-time",
|
|
|
|
|
require: true,
|
|
|
|
|
customRequire: true,
|
|
|
|
|
type: "slot",
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
from: "reservation-time",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "",
|
|
|
|
|
label: "财务结算",
|
|
|
|
|
result: "",
|
|
|
|
|
path: "",
|
|
|
|
|
value: "-",
|
|
|
|
|
tip: "slot-caiwu",
|
|
|
|
|
require: false,
|
|
|
|
|
customRequire: false,
|
|
|
|
|
type: "slot",
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
from: "slot-caiwu",
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
if (that.jobType == 1) {
|
|
|
|
|
that.getPolicyByJobId({
|
|
|
|
|
id: that.updateInfo.jobId,
|
|
|
|
|
templateId: that.templateId,
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (that.updateInfo.jobId) {
|
|
|
|
|
that.getPolicyById({
|
|
|
|
|
id: that.updateInfo.jobId,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// that.getPolicyById({
|
|
|
|
|
// id: that.updateInfo.jobId,
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
if (that.updateInfo.jobId) {
|
|
|
|
|
that.getJobDetail({
|
|
|
|
|
id: that.updateInfo.jobId,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getPolicyByJobId($data) {
|
|
|
|
|
let that = this,
|
|
|
|
|
classify = 0;
|
|
|
|
|
if (that.IS_CREATOR) {
|
|
|
|
|
classify = 3;
|
|
|
|
|
} else {
|
|
|
|
|
classify = 2;
|
|
|
|
|
}
|
|
|
|
|
console.log("$data", $data);
|
|
|
|
|
let config = {
|
|
|
|
|
storeJobId: $data.templateId,
|
|
|
|
|
customJobId: $data.id,
|
|
|
|
|
classify,
|
|
|
|
|
};
|
|
|
|
|
that.G.Get(that.api.job_getPolicyShare, config, (res) => {
|
|
|
|
|
console.log("job_getPolicyShare res", res);
|
|
|
|
|
that.jobData = [
|
|
|
|
|
{
|
|
|
|
|
radius: "no_bottom",
|
|
|
|
|
icon: "",
|
|
|
|
|
label: "报名职位",
|
|
|
|
|
result: that.updateInfo.jobId ? that.updateInfo.jobName : "请选择报名职位",
|
|
|
|
|
path: "/root/other/search?from=record",
|
|
|
|
|
placeholder: "请选择报名职位",
|
|
|
|
|
fontColor: that.updateInfo.jobName == "请选择报名职位" ? "g_c_9" : "g_c_3",
|
|
|
|
|
tip: "applia-job",
|
|
|
|
|
require: true,
|
|
|
|
|
customRequire: true,
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "",
|
|
|
|
|
label: "预约面试时间",
|
|
|
|
|
result: "",
|
|
|
|
|
path: "",
|
|
|
|
|
value: that.updateInfo.interviewTimeStr,
|
|
|
|
|
tip: "slot-time",
|
|
|
|
|
require: true,
|
|
|
|
|
customRequire: true,
|
|
|
|
|
type: "slot",
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
from: "reservation-time",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "",
|
|
|
|
|
label: "财务结算",
|
|
|
|
|
result: "",
|
|
|
|
|
path: "",
|
|
|
|
|
value: res,
|
|
|
|
|
tip: "slot-caiwu",
|
|
|
|
|
require: false,
|
|
|
|
|
customRequire: false,
|
|
|
|
|
type: "slot",
|
|
|
|
|
pColumn: 18,
|
|
|
|
|
from: "slot-caiwu",
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getPolicyById($data) {
|
|
|
|
|
getJobDetail($data) {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log("自有政策:", $data);
|
|
|
|
|
console.log($data);
|
|
|
|
|
that.G.Get(
|
|
|
|
|
that.api.job_getPolicyPerson + "/" + $data.id,
|
|
|
|
|
that.api.job_personDetail + "/" + $data.id,
|
|
|
|
|
{
|
|
|
|
|
id: $data.id,
|
|
|
|
|
},
|
|
|
|
|
(res) => {
|
|
|
|
|
let policyStr = "";
|
|
|
|
|
console.log("resres", res);
|
|
|
|
|
let sta = "";
|
|
|
|
|
if (res.jobInfo) {
|
|
|
|
|
sta = res.jobInfo.replaceAll("\n\n", "\n");
|
|
|
|
|
}
|
|
|
|
|
let a = "",
|
|
|
|
|
b = "",
|
|
|
|
|
c = "";
|
|
|
|
|
a = "员工薪资:" + (sta || "-") + "\n\n";
|
|
|
|
|
if (that.IS_CREATOR) {
|
|
|
|
|
b = "服务费:" + (res.returnFeeType ? that.G.setReturnFee(res.returnFee, res.returnFeeType) : "-") + " \n" + "服务费详情:" + (res.returnFeeDesp || "-") + "\n\n";
|
|
|
|
|
}
|
|
|
|
|
c = "代理费:" + (that.G.setReturnFee(res.agencyReturnFee, res.agencyReturnFeeType) || "-") + "\n" + "代理费详情:" + (res.agencyReturnFeeDesp || "-");
|
|
|
|
|
policyStr = a + b + c;
|
|
|
|
|
|
|
|
|
|
// else {
|
|
|
|
|
// policyStr = "";
|
|
|
|
|
// }
|
|
|
|
|
policyStr = "1. 服务费:" + (res.record.returnFeeType != "" ? that.G.setReturnFee(res.record.returnFee, res.record.returnFeeType) : "详询客服") + " \n\n" + "2. 薪资待遇:" + (res.record.salaryDetail || "详询客服") + "\n\n";
|
|
|
|
|
|
|
|
|
|
that.jobData = [
|
|
|
|
|
{
|
|
|
|
|
@ -452,39 +284,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
getJobDetail($data) {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log($data);
|
|
|
|
|
that.G.Get(
|
|
|
|
|
that.api.job_personDetail + "/" + $data.id,
|
|
|
|
|
{
|
|
|
|
|
id: $data.id,
|
|
|
|
|
},
|
|
|
|
|
(res) => {
|
|
|
|
|
console.log("政策列表:", res);
|
|
|
|
|
let policyNum;
|
|
|
|
|
if (res.storeJobDetail) {
|
|
|
|
|
policyNum = res.storeJobDetail.policyNum;
|
|
|
|
|
} else {
|
|
|
|
|
policyNum = res.record.policyNum;
|
|
|
|
|
}
|
|
|
|
|
if (policyNum == "" || policyNum == 0) {
|
|
|
|
|
policyNum = 1;
|
|
|
|
|
}
|
|
|
|
|
let list = [];
|
|
|
|
|
for (let i = 0; i < policyNum; i++) {
|
|
|
|
|
let pickerStr = that.G.policyNumToHanZi(i + 1);
|
|
|
|
|
list[i] = {
|
|
|
|
|
value: i + 1,
|
|
|
|
|
name: pickerStr,
|
|
|
|
|
id: i + 1,
|
|
|
|
|
isSelected: false,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
that.zhengceTextList = list;
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
changeZhengce(e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log("选择政策:", e);
|
|
|
|
|
@ -553,12 +352,11 @@ export default {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: "/root/other/editTownsman?" + that.G.objToStr(params),
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: "/root/other/editTownsman",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// else {
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
// url: "/root/other/editTownsmanList",
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
handleClickMobile() {},
|
|
|
|
|
submitForm() {
|
|
|
|
|
@ -578,44 +376,44 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (that.persenInfo.length == 0) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请输入老乡信息",
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!that.persenInfo[0].userName) {
|
|
|
|
|
// if (that.persenInfo.length == 0) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "请输入老乡信息",
|
|
|
|
|
// });
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
if (!that.info.userName) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请填写老乡姓名",
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!that.persenInfo[0].tel) {
|
|
|
|
|
if (!that.info.tel) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请填写老乡手机号",
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!that.persenInfo[0].idCard) {
|
|
|
|
|
if (!that.info.idCard) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请填写老乡身份证号",
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (that.persenInfo[0].sex == 0) {
|
|
|
|
|
if (that.info.sex == 0) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请选择老乡性别",
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
that.persenInfo.forEach((item) => {
|
|
|
|
|
that.submitFormSub(item);
|
|
|
|
|
});
|
|
|
|
|
// that.persenInfo.forEach((item) => {
|
|
|
|
|
that.submitFormSub(that.info);
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
submitFormSub($item) {
|
|
|
|
|
let that = this;
|
|
|
|
|
@ -640,31 +438,28 @@ export default {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: "提交中",
|
|
|
|
|
});
|
|
|
|
|
if (that.jobType == 1) {
|
|
|
|
|
submitInfo.policyIdx = that.zhengceSelect.id;
|
|
|
|
|
}
|
|
|
|
|
// submitInfo.sex = submitInfo.sex == "男" ? 1 : 2;
|
|
|
|
|
if (submitInfo.imgs && submitInfo.imgs.length > 0) {
|
|
|
|
|
submitInfo.imgs = submitInfo.imgs.join(",");
|
|
|
|
|
}
|
|
|
|
|
submitInfo.resumeId = $item.id;
|
|
|
|
|
submitInfo.userApplyClueId = $item.id;
|
|
|
|
|
// submitInfo.resumeId = $item.id;
|
|
|
|
|
// submitInfo.userApplyClueId = $item.id;
|
|
|
|
|
console.log("submitInfo", submitInfo);
|
|
|
|
|
that.G.Post(that.api.resume_recordJob, submitInfo, (res) => {
|
|
|
|
|
that.G.Post(that.api.job_recordJob, submitInfo, (res) => {
|
|
|
|
|
// uni.hideLoading();
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "success",
|
|
|
|
|
title: "报名成功",
|
|
|
|
|
duration: 2000,
|
|
|
|
|
});
|
|
|
|
|
that.persenInfo = [];
|
|
|
|
|
that.info = {};
|
|
|
|
|
// uni.navigateBack();
|
|
|
|
|
// 跳转简历页审核中
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
uni.switchTab({
|
|
|
|
|
url: "/pages/resume/index",
|
|
|
|
|
url: "/pages/home/index",
|
|
|
|
|
});
|
|
|
|
|
uni.$emit("goNew", 2);
|
|
|
|
|
// uni.$emit("goNew", 2);
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
|
// that.$forceUpdate();
|
|
|
|
|
@ -678,6 +473,11 @@ export default {
|
|
|
|
|
// });
|
|
|
|
|
// }, 500);
|
|
|
|
|
},
|
|
|
|
|
changeInfo(e) {
|
|
|
|
|
console.log("e", e);
|
|
|
|
|
console.log("info", this.info);
|
|
|
|
|
this.info = e;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|