|
|
|
@ -43,10 +43,10 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="g_pb_17 g_flex_row_start">
|
|
|
|
<view class="g_pb_17 g_flex_row_start">
|
|
|
|
<g-panel-image :url="item.idCardImageUrl" v-if="item.idCardImageUrl" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
<rh-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-if="item.imgs" class="g_flex_row_start">
|
|
|
|
<view v-for="i in item.imgs" class="g_ml_10">
|
|
|
|
<view v-for="i in item.imgs" class="g_ml_10">
|
|
|
|
<g-panel-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
<rh-image :url="i" radius="4" size="112" @clickItem="handleClickIDcard" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -84,18 +84,23 @@
|
|
|
|
</u-checkbox-group>
|
|
|
|
</u-checkbox-group>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="g_h_84"></view>
|
|
|
|
<view class="g_h_84"></view>
|
|
|
|
<g-panel-fixed>
|
|
|
|
<g-panel-fixed v-if="useform == 'root'">
|
|
|
|
<slot>
|
|
|
|
<slot>
|
|
|
|
<view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99">
|
|
|
|
<view class="g_flex_row_between g_pl_16 g_pr_16" style="z-index: 99">
|
|
|
|
<div class="" style="width:82px">
|
|
|
|
<div class="" style="width:82px">
|
|
|
|
<rh-button primaryColor="#00b666" btnText="取消" size="small_auto" type="default" @clickBtn="goReturn" />
|
|
|
|
<rh-button btnText="取消" size="small_auto" type="default" @clickBtn="goReturn" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="g_flex_1 g_flex_row_end">
|
|
|
|
<div class="g_flex_1 g_flex_row_end">
|
|
|
|
<rh-button primaryColor="#00b666" btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" />
|
|
|
|
<rh-button btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</slot>
|
|
|
|
</slot>
|
|
|
|
</g-panel-fixed>
|
|
|
|
</g-panel-fixed>
|
|
|
|
|
|
|
|
<view v-if="useform == 'pages'">
|
|
|
|
|
|
|
|
<view class="g_flex_row_center g_pl_16 g_pr_16" style="z-index: 99">
|
|
|
|
|
|
|
|
<rh-button btnText="立即报名" type="primary" :loading="btnLoading" @clickBtn="submitForm" />
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -108,7 +113,6 @@ export default {
|
|
|
|
this.G.setNavStyle();
|
|
|
|
this.G.setNavStyle();
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
uni.$on("getTownsman", (data) => {
|
|
|
|
uni.$on("getTownsman", (data) => {
|
|
|
|
console.log("getTownsman", data);
|
|
|
|
|
|
|
|
// 前端本地处理根据身份证号获取年龄
|
|
|
|
// 前端本地处理根据身份证号获取年龄
|
|
|
|
if (data.info.idCard && (data.info.idCard.length == 15 || data.info.idCard.length == 18)) {
|
|
|
|
if (data.info.idCard && (data.info.idCard.length == 15 || data.info.idCard.length == 18)) {
|
|
|
|
let infoByIDcard = this.G.getInfoByIDcard(data.info.idCard);
|
|
|
|
let infoByIDcard = this.G.getInfoByIDcard(data.info.idCard);
|
|
|
|
@ -128,7 +132,6 @@ export default {
|
|
|
|
index: that.persenInfo.length,
|
|
|
|
index: that.persenInfo.length,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("that.persenInfo", that.persenInfo);
|
|
|
|
|
|
|
|
that.$forceUpdate();
|
|
|
|
that.$forceUpdate();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
uni.$on("changeJobInfo", function (data) {
|
|
|
|
uni.$on("changeJobInfo", function (data) {
|
|
|
|
@ -153,13 +156,19 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
props:{
|
|
|
|
props:{
|
|
|
|
dataoptions:{
|
|
|
|
dataoptions:{
|
|
|
|
default:{}
|
|
|
|
default:()=>{
|
|
|
|
|
|
|
|
return {}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
useform:{
|
|
|
|
|
|
|
|
default:()=>{
|
|
|
|
|
|
|
|
return 'root'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
let options = this.dataoptions;
|
|
|
|
let options = this.dataoptions;
|
|
|
|
console.log("0114 options mounted", options);
|
|
|
|
|
|
|
|
let params = options.params ? JSON.parse(options.params) : {};
|
|
|
|
let params = options.params ? JSON.parse(options.params) : {};
|
|
|
|
if (params.jobId) {
|
|
|
|
if (params.jobId) {
|
|
|
|
that.currentJobInfo = JSON.parse(JSON.stringify(params));
|
|
|
|
that.currentJobInfo = JSON.parse(JSON.stringify(params));
|
|
|
|
@ -179,7 +188,6 @@ export default {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
|
|
|
|
that.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
|
|
|
|
that.updateInfo.interviewTimeStr = "";
|
|
|
|
that.updateInfo.interviewTimeStr = "";
|
|
|
|
console.log("获取面试时间:", that.updateInfo.interviewTimeStr);
|
|
|
|
|
|
|
|
// 设置默认时间
|
|
|
|
// 设置默认时间
|
|
|
|
let hour = new Date().getHours();
|
|
|
|
let hour = new Date().getHours();
|
|
|
|
if (hour < 20 && hour >= 6) {
|
|
|
|
if (hour < 20 && hour >= 6) {
|
|
|
|
@ -189,8 +197,6 @@ export default {
|
|
|
|
} else if (hour < 6) {
|
|
|
|
} else if (hour < 6) {
|
|
|
|
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 6:00";
|
|
|
|
this.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 6:00";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// that.updateInfo.interviewTimeStr = dateUtil.formatDateYMD(new Date().toLocaleDateString()) + " 06:00";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.$forceUpdate();
|
|
|
|
that.$forceUpdate();
|
|
|
|
if (that.updateInfo.jobId) {
|
|
|
|
if (that.updateInfo.jobId) {
|
|
|
|
that.setFormList();
|
|
|
|
that.setFormList();
|
|
|
|
@ -250,7 +256,7 @@ export default {
|
|
|
|
getJobDetail($data) {
|
|
|
|
getJobDetail($data) {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
that.G.Get(
|
|
|
|
that.G.Get(
|
|
|
|
that.api.job_personDetail + "/" + $data.leafCateId,
|
|
|
|
"/yishoudan/custom/job/detail/" + $data.leafCateId,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: $data.leafCateId,
|
|
|
|
id: $data.leafCateId,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -269,7 +275,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setFormList(policyStr) {
|
|
|
|
setFormList(policyStr) {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
// console.log("that.updateInfo", that.updateInfo);
|
|
|
|
|
|
|
|
if (that.isFans == 2) {
|
|
|
|
if (that.isFans == 2) {
|
|
|
|
that.jobData = [
|
|
|
|
that.jobData = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -380,13 +385,11 @@ export default {
|
|
|
|
: null,
|
|
|
|
: null,
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
that.$forceUpdate();
|
|
|
|
that.$forceUpdate();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleClickIDcard(e) {
|
|
|
|
handleClickIDcard(e) {
|
|
|
|
this.info.idCard = e;
|
|
|
|
this.info.idCard = e;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
clickDesp(e) {
|
|
|
|
clickDesp(e) {
|
|
|
|
this.updateInfo.desp = e.value;
|
|
|
|
this.updateInfo.desp = e.value;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -407,16 +410,10 @@ export default {
|
|
|
|
this.updateInfo.interviewLng = e.lng;
|
|
|
|
this.updateInfo.interviewLng = e.lng;
|
|
|
|
this.updateInfo.interviewAddress = e.address;
|
|
|
|
this.updateInfo.interviewAddress = e.address;
|
|
|
|
this.jobData[1].value = this.updateInfo.interviewAddress;
|
|
|
|
this.jobData[1].value = this.updateInfo.interviewAddress;
|
|
|
|
// billForm.value.storeAddr = e.address;
|
|
|
|
|
|
|
|
console.log("this.updateInfo", this.updateInfo);
|
|
|
|
|
|
|
|
console.log("e", e);
|
|
|
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
this.$forceUpdate();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeAddress(e) {
|
|
|
|
changeAddress(e) {
|
|
|
|
this.updateInfo.interviewAddress = e;
|
|
|
|
this.updateInfo.interviewAddress = e;
|
|
|
|
console.log("this.updateInfo", this.updateInfo);
|
|
|
|
|
|
|
|
console.log("e", e);
|
|
|
|
|
|
|
|
// this.info.address = e;
|
|
|
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
this.$forceUpdate();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
radioGroupChange(e) {},
|
|
|
|
radioGroupChange(e) {},
|
|
|
|
@ -432,14 +429,6 @@ export default {
|
|
|
|
let that = this,
|
|
|
|
let that = this,
|
|
|
|
params = {},
|
|
|
|
params = {},
|
|
|
|
info = null;
|
|
|
|
info = null;
|
|
|
|
// 如果第一个工友信息没有编辑, 则进行提示
|
|
|
|
|
|
|
|
// if (!that.persenInfo[0].userName && $item === "") {
|
|
|
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
|
|
|
// title: "请先编辑第一个工友信息",
|
|
|
|
|
|
|
|
// icon: "none",
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if ($item) {
|
|
|
|
if ($item) {
|
|
|
|
info = $item;
|
|
|
|
info = $item;
|
|
|
|
params = {
|
|
|
|
params = {
|
|
|
|
@ -456,7 +445,6 @@ export default {
|
|
|
|
index: $index,
|
|
|
|
index: $index,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("params", params);
|
|
|
|
|
|
|
|
if (info) {
|
|
|
|
if (info) {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "/root/home/editTownsman?" + that.G.objToStr(params),
|
|
|
|
url: "/root/home/editTownsman?" + that.G.objToStr(params),
|
|
|
|
@ -470,7 +458,6 @@ export default {
|
|
|
|
handleClickMobile() {},
|
|
|
|
handleClickMobile() {},
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
|
|
if (!that.agreeRadio) {
|
|
|
|
if (!that.agreeRadio) {
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
icon: "none",
|
|
|
|
icon: "none",
|
|
|
|
@ -503,8 +490,6 @@ export default {
|
|
|
|
submitInfo.applyUserJson = JSON.stringify(
|
|
|
|
submitInfo.applyUserJson = JSON.stringify(
|
|
|
|
that.persenInfo.map((item) => {
|
|
|
|
that.persenInfo.map((item) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// interviewTime: dayjs(item.interviewTime).format("YYYY-MM-DD HH:mm"),
|
|
|
|
|
|
|
|
// receptionTime: item.receptionTime ? dayjs(item.receptionTime).format("YYYY-MM-DD HH:mm") : dayjs(item.interviewTime).format("YYYY-MM-DD HH:mm"),
|
|
|
|
|
|
|
|
idCard: item.idCard,
|
|
|
|
idCard: item.idCard,
|
|
|
|
idCardImageUrl: item.idCardImageUrl,
|
|
|
|
idCardImageUrl: item.idCardImageUrl,
|
|
|
|
userName: item.userName,
|
|
|
|
userName: item.userName,
|
|
|
|
@ -521,38 +506,17 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.join(",")
|
|
|
|
.join(",")
|
|
|
|
: "",
|
|
|
|
: "",
|
|
|
|
// desp: item.desp,
|
|
|
|
|
|
|
|
// policyIdx: item.policyIdx,
|
|
|
|
|
|
|
|
// pickerStr: item.pickerStr,
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
// let _upAgencyName = '';
|
|
|
|
|
|
|
|
// if (that.detailRes.status == 0) {
|
|
|
|
|
|
|
|
// _upAgencyName = that.detailRes.fullName;
|
|
|
|
|
|
|
|
// } else if (that.detailRes.status == 1) {
|
|
|
|
|
|
|
|
// if (that.detailRes.providerNameAll) {
|
|
|
|
|
|
|
|
// _upAgencyName = `${that.detailRes.providerName}(${that.detailRes.providerNameAll})`;
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// _upAgencyName = that.detailRes.providerName;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// _upAgencyName = that.detailRes.userName;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// submitInfo.upAgencyName = _upAgencyName ? _upAgencyName : '';
|
|
|
|
|
|
|
|
console.log("submitInfo", submitInfo);
|
|
|
|
|
|
|
|
that.G.Post("/yishoudan/common/order/addBatch", submitInfo, (res) => {
|
|
|
|
that.G.Post("/yishoudan/common/order/addBatch", submitInfo, (res) => {
|
|
|
|
// uni.hideLoading();
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
icon: "success",
|
|
|
|
icon: "success",
|
|
|
|
title: "报名成功",
|
|
|
|
title: "报名成功",
|
|
|
|
duration: 2000,
|
|
|
|
duration: 2000,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// that.persenInfo = [];
|
|
|
|
|
|
|
|
that.btnLoading = false;
|
|
|
|
that.btnLoading = false;
|
|
|
|
that.$refs.AiApplyRef.ressetAitext();
|
|
|
|
that.$refs.AiApplyRef.ressetAitext();
|
|
|
|
|
|
|
|
|
|
|
|
// that.$forceUpdate();
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "/root/home/applicationSuccess?jobId=" + that.updateInfo.jobId,
|
|
|
|
url: "/root/home/applicationSuccess?jobId=" + that.updateInfo.jobId,
|
|
|
|
@ -562,10 +526,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submitFormSub($item) {
|
|
|
|
submitFormSub($item) {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
|
|
|
// url: "/root/home/applicationSuccess",
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
let submitInfo = {
|
|
|
|
let submitInfo = {
|
|
|
|
...that.updateInfo,
|
|
|
|
...that.updateInfo,
|
|
|
|
...$item,
|
|
|
|
...$item,
|
|
|
|
@ -580,32 +540,22 @@ export default {
|
|
|
|
uni.showLoading({
|
|
|
|
uni.showLoading({
|
|
|
|
title: "提交中",
|
|
|
|
title: "提交中",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// submitInfo.sex = submitInfo.sex == "男" ? 1 : 2;
|
|
|
|
|
|
|
|
if (submitInfo.imgs && submitInfo.imgs.length > 0) {
|
|
|
|
if (submitInfo.imgs && submitInfo.imgs.length > 0) {
|
|
|
|
submitInfo.imgs = submitInfo.imgs.join(",");
|
|
|
|
submitInfo.imgs = submitInfo.imgs.join(",");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
that.G.Post(that.api.job_recordJob, submitInfo, (res) => {
|
|
|
|
that.G.Post('/assistant/apply/handler/add', submitInfo, (res) => {
|
|
|
|
// uni.hideLoading();
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
icon: "success",
|
|
|
|
icon: "success",
|
|
|
|
title: "报名成功",
|
|
|
|
title: "报名成功",
|
|
|
|
duration: 2000,
|
|
|
|
duration: 2000,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// that.persenInfo = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.$refs.AiApplyRef.ressetAitext();
|
|
|
|
that.$refs.AiApplyRef.ressetAitext();
|
|
|
|
// that.$forceUpdate();
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "/root/home/applicationSuccess",
|
|
|
|
url: "/root/home/applicationSuccess",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, 1500);
|
|
|
|
}, 1500);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
|
|
|
// url: "/root/home/applicationSuccess",
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }, 500);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|