Commit 7520bda1 by zhangbin

gx

parent e5b2704b
......@@ -31,10 +31,10 @@ export default {
mobileNo: 13900000000,
userId: 37393,
name: "124晚6565",
realName: "梁中全",
idCardNo: "342601199503121817",
realName: "张媛媛",
// idCardNo: "342601199503121817",
// idCardNo: "321111198502254219",
// idCardNo: "321183199610151344",
idCardNo: "32068219980926002X",
// idCardNo: "DDfCYHcrBMRhvRt4AQKt+WfGq6l2uT5G",
// mobileNo: 13776475181,
// userId: 3182743,
......
......@@ -1403,6 +1403,16 @@ const routes = [
title: "镇江资讯",
},
},
// 镇江政策措施
{
path: "/measure",
name: "Measure",
component: () =>
import ("@/views/measure/index"),
meta: {
title: "镇江政策措施",
},
},
// 身份码
{
path: "/identity",
......
<template>
<div class="measure">
<img src="./img/measure1.png" alt="">
<img src="./img/measure2.png" alt="">
<img src="./img/measure3.png" alt="">
</div>
</template>
<script>
export default {
}
</script>
<style lang="stylus" scoped>
.measure{
width 100%;
height 100%;
display: flex;
flex-direction: column;
overflow: scroll;
img{
width 100%;
}
}
</style>
\ No newline at end of file
......@@ -10,12 +10,7 @@
<div class="boxtwo" @click="next('1')">未在镇缴纳社保</div>
</div>
<div class="step" v-if="active === 1">
<div
class="cell"
v-for="item in list"
:key="item.name"
@click="filterData(item)"
>
<div class="cell" v-for="item in list" :key="item.name" @click="filterData(item)">
<img class="type" :src="item.icon" alt="" />
<p class="des">{{ item.name }}</p>
<img class="icon" src="@/assets/common/enter_icon.png" alt="" />
......@@ -23,13 +18,7 @@
<van-button type="primary" @click="prev">上一步</van-button>
</div>
<van-dialog
v-model="show"
title="填写信息"
show-cancel-button
@confirm="onConfirm"
@cancel="onCancel"
>
<van-dialog v-model="show" title="填写信息" show-cancel-button @confirm="onConfirm" @cancel="onCancel">
<van-field v-model="name" label="姓名" required />
<van-field v-model="passport" label="护照" required />
</van-dialog>
......@@ -102,66 +91,66 @@ export default {
filterData(item) {
this.genera = item.name;
let area = this.$store.state.talents.area;
if (item.status == "0") {
// 需要检查社保缴纳情况
if (area === 0) {
if (item.name != "企业全职人员") {
// 取消校验
this.$router.push({ name: "ReportForm",query: {genera:this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : ''} });
} else {
// 暂时关闭校验,直接退出
// this.$dialog.confirm({
// message:
// "由于省人社厅近期系统升级维护,暂时关闭社保查询通道,相关业务降于7月22日之后陆续开放",
// showCancelButton: false
// })
// .then(() => {
// this.$router.go(-1);
// });
let res = sessionStorage.getItem("ZJCD-UserInfo");
let idCard = JSON.parse(res).idCardNo;
console.log("------------", idCard);
let a = idCard.substring(0, 4);
console.log("a--------", a);
if (Number(a) + "" !== NaN + "") {
let idCardNo1 = idCard;
let idCardNo2 = idCardNo1;
console.log("如果为明文走这个---", idCardNo2);
this.socialCheck(idCardNo2, item.index);
console.log(item.index,'item.index-----')
if (item.status == "0") {
// 需要检查社保缴纳情况
if (area === 0) {
if (item.name != "企业全职人员") {
// 取消校验
this.$router.push({ name: "ReportForm", query: { genera: this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : '' } });
} else {
// 暂时关闭校验,直接退出
// this.$dialog.confirm({
// message:
// "由于省人社厅近期系统升级维护,暂时关闭社保查询通道,相关业务降于7月22日之后陆续开放",
// showCancelButton: false
// })
// .then(() => {
// this.$router.go(-1);
// });
let res = sessionStorage.getItem("ZJCD-UserInfo");
let idCard = JSON.parse(res).idCardNo;
console.log("------------", idCard);
let a = idCard.substring(0, 4);
console.log("a--------", a);
if (Number(a) + "" !== NaN + "") {
let idCardNo1 = idCard;
let idCardNo2 = idCardNo1;
console.log("如果为明文走这个---", idCardNo2);
this.socialCheck(idCardNo2, item.index);
console.log(item.index, 'item.index-----')
} else {
console.log("如果为加密走这个---", idCardNo2);
let idCardNo = decryptByDES(idCard, "MnuYbhGv");
let idCardNo1 = idCardNo;
let idCardNo2 = encryptByDES(idCardNo1, "MnuYbhGv");
this.socialCheck(idCardNo2, item.index);
}
} else {
console.log("如果为加密走这个---", idCardNo2);
let idCardNo = decryptByDES(idCard, "MnuYbhGv");
let idCardNo1 = idCardNo;
let idCardNo2 = encryptByDES(idCardNo1, "MnuYbhGv");
this.socialCheck(idCardNo2, item.index);
}
}
} else {
// 外籍或港澳台
this.show = true;
}
} else {
if (item.check) {
// 需要检测是否在名单中
if (area === 0) {
// 国内人员
let res = sessionStorage.getItem("ZJCD-UserInfo");
let name = JSON.parse(res).realName
? JSON.parse(res).realName
: JSON.parse(res).name;
// let idCard = decryptByDES(JSON.parse(res).idCardNo, "MnuYbhGv");
this.nameCheck(name);
} else {
// 外籍或港澳台
this.show = true;
}
} else {
if (item.check) {
// 需要检测是否在名单中
if (area === 0) {
// 国内人员
let res = sessionStorage.getItem("ZJCD-UserInfo");
let name = JSON.parse(res).realName
? JSON.parse(res).realName
: JSON.parse(res).name;
// let idCard = decryptByDES(JSON.parse(res).idCardNo, "MnuYbhGv");
this.nameCheck(name);
} else {
// 外籍或港澳台
this.show = true;
}
} else {
this.$store.commit("talents/SET_GENERA", this.genera);
this.$router.push({ name: "ReportForm",query: {genera:this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : ''} });
}
}
this.$store.commit("talents/SET_GENERA", this.genera);
this.$router.push({ name: "ReportForm", query: { genera: this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : '' } });
}
}
},
nameCheck(name) {
// 更改前代码
......@@ -176,7 +165,7 @@ export default {
this.$store.commit("talents/SET_NAME", this.name);
this.$store.commit("talents/SET_PASSPORT", this.passport);
this.$store.commit("talents/SET_GENERA", this.genera);
this.$router.push({ name: "ReportForm",query: {genera:this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : ''} });
this.$router.push({ name: "ReportForm", query: { genera: this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : '' } });
} else {
this.$dialog
.confirm({
......@@ -215,10 +204,13 @@ export default {
res.data.tradeMsg.data.dataSet.rowSet.row.length > 0
) {
let targetList = res.data.tradeMsg.data.dataSet.rowSet.row;
let company = this.checkSecure(targetList, "企业职工基本养老保险","企业基本养老保险");
console.log('targetList---', targetList);
let company = this.checkSecure(targetList, "企业职工基本养老保险", "企业基本养老保险");
console.log('company---', company);
if (company) {
sessionStorage.setItem("ZJCD-Company", company);
this.$router.push({ name: "ReportForm",query: {genera:this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : ''} });
this.$router.push({ name: "ReportForm", query: { genera: this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : '' } });
return;
} else if (index == 1) {
sessionStorage.removeItem("ZJCD-Company");
......@@ -272,7 +264,7 @@ export default {
// 校验医保是否缴费正常
if (company) {
sessionStorage.setItem("ZJCD-Company", company);
this.$router.push({ name: "ReportForm",query: {genera:this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : ''} });
this.$router.push({ name: "ReportForm", query: { genera: this.genera, ticket: this.$route.query.ticket ? this.$route.query.ticket : '' } });
return;
} else {
sessionStorage.removeItem("ZJCD-Company");
......@@ -287,10 +279,10 @@ export default {
checkSecure(data, name, name1) {
let company = "";
data.map((res) => {
let a = res.bab002.toString().substring(0,4)
let a = res.bab002.toString().substring(0, 4)
if ((res.aae140 == name || res.aae140 == name1) && res.aac031code == "1" && this.genera == '企业全职人员' && a == '3211') {
company = res.aae044;
} else if ( res.aae140 == name && res.aac031code == "1" && this.genera != '企业全职人员' ) {
} else if (res.aae140 == name && res.aac031code == "1" && this.genera != '企业全职人员') {
company = res.aae044;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment