Compare commits
No commits in common. "b05fb1f1465b247cfef5b18b8f84b6d8ba468615" and "459b85b8f9b3e455224b8f1ad7ce12632f490ecb" have entirely different histories.
b05fb1f146
...
459b85b8f9
|
@ -1,8 +0,0 @@
|
||||||
import {post, upload} from "../utils/request";
|
|
||||||
// 已重构接口
|
|
||||||
export const getUserInfoV1 = (params) => post("/app/sys/user/getXgfUserInfo", params) // 获取用户信息
|
|
||||||
export const setUserInitV1 = (params) => post("/app/sys/user/xgfInit", params) //更新用户信息
|
|
||||||
export const getDicLevel = (params) => post("/app/sys/dictionaries/getLevels", params) // 获取数据字典
|
|
||||||
export const getEmpLog = (params) => post("/app/sys/user/getEmpLog", params) // 获取就职记录
|
|
||||||
export const uploadFile = (params) => upload("/app/sys/file/uploadFile", params);
|
|
||||||
export const setRefreshToken = (params) => post("/sys/refreshToken", params ); // 刷新token
|
|
|
@ -1,14 +0,0 @@
|
||||||
import dayjs from "dayjs";
|
|
||||||
import store from "../store";
|
|
||||||
import {setRefreshToken} from "./api";
|
|
||||||
|
|
||||||
export default async function () {
|
|
||||||
const userStore = store.state.userInfo;
|
|
||||||
if (userStore.getTokenTime) {
|
|
||||||
if (dayjs().diff(dayjs(userStore.getTokenTime), "minute") >= 5) {
|
|
||||||
await userStore.setTokenTime(dayjs().format("YYYY-MM-DD HH:mm:ss"));
|
|
||||||
await setRefreshToken();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -15,8 +15,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/html5plus": "^1.0.2",
|
"@types/html5plus": "^1.0.2",
|
||||||
"@types/uni-app": "^1.4.4",
|
"@types/uni-app": "^1.4.4"
|
||||||
"dayjs": "^1.11.13"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
|
@ -60,13 +59,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
||||||
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
||||||
},
|
},
|
||||||
"node_modules/dayjs": {
|
|
||||||
"version": "1.11.13",
|
|
||||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
|
||||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/deepmerge": {
|
"node_modules/deepmerge": {
|
||||||
"version": "4.3.1",
|
"version": "4.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
||||||
|
@ -223,12 +215,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
||||||
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
||||||
},
|
},
|
||||||
"dayjs": {
|
|
||||||
"version": "1.11.13",
|
|
||||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
|
||||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"deepmerge": {
|
"deepmerge": {
|
||||||
"version": "4.3.1",
|
"version": "4.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/html5plus": "^1.0.2",
|
"@types/html5plus": "^1.0.2",
|
||||||
"@types/uni-app": "^1.4.4",
|
"@types/uni-app": "^1.4.4"
|
||||||
"dayjs": "^1.11.13"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,48 +4,48 @@
|
||||||
<u-list-item v-for="(item, index) in list" :key="index">
|
<u-list-item v-for="(item, index) in list" :key="index">
|
||||||
<view>
|
<view>
|
||||||
<view class="flex-between main-title">
|
<view class="flex-between main-title">
|
||||||
<text>单位名称:{{ item.relevantUnitName }}</text>
|
<text>单位名称:{{ item.RELEVANT_UNIT_NAME }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle" v-show="item.startDate">
|
<view class="flex-between mt-10 subtitle" v-show="item.START_DATE">
|
||||||
<text>就职时间:{{ item.startDate }}-{{ item.endDate || '至今' }}</text>
|
<text>就职时间:{{ item.START_DATE }}-{{ item.END_DATE || '至今' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle" v-show="item.departState">
|
<view class="flex-between mt-10 subtitle" v-show="item.DEPART_STATE">
|
||||||
<text>就职状态:
|
<text>就职状态:
|
||||||
<template v-if="item.departState === '0'">在职</template>
|
<template v-if="item.DEPART_STATE === '0'">在职</template>
|
||||||
<template v-if="item.departState === '1'">离职</template>
|
<template v-if="item.DEPART_STATE === '1'">离职</template>
|
||||||
<template v-if="item.departState === '-1'">离职申请中</template>
|
<template v-if="item.DEPART_STATE === '-1'">离职申请中</template>
|
||||||
<template v-if="item.departState === '2'">待审核</template>
|
<template v-if="item.DEPART_STATE === '2'">待审核</template>
|
||||||
<template v-if="item.departState === '3'">已审核</template>
|
<template v-if="item.DEPART_STATE === '3'">已审核</template>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>单位在职申请审核状态:
|
<text>单位在职申请审核状态:
|
||||||
<template v-if="item.auditState === '0'">已打回</template>
|
<template v-if="item.AUDIT_STATE === '0'">已打回</template>
|
||||||
<template v-if="item.auditState === '1'">待审核</template>
|
<template v-if="item.AUDIT_STATE === '1'">待审核</template>
|
||||||
<template v-if="item.auditState === '2'">审核通过</template>
|
<template v-if="item.AUDIT_STATE === '2'">审核通过</template>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle" v-show="item.departState !== '0' && item.reviewState">
|
<view class="flex-between mt-10 subtitle" v-show="item.DEPART_STATE !== '0' && item.REVIEW_STATE">
|
||||||
<text>单位离职申请审核状态:
|
<text>单位离职申请审核状态:
|
||||||
<template v-if="item.reviewState === '0'">已打回</template>
|
<template v-if="item.REVIEW_STATE === '0'">已打回</template>
|
||||||
<template v-if="item.reviewState === '1'">待审核</template>
|
<template v-if="item.REVIEW_STATE === '1'">待审核</template>
|
||||||
<template v-if="item.reviewState === '2'">审核通过</template>
|
<template v-if="item.REVIEW_STATE === '2'">审核通过</template>
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="flex-between mt-10 subtitle" v-if="item.auditRemarks">
|
<view class="flex-between mt-10 subtitle" v-if="item.AUDIT_REMARKS">
|
||||||
<text>审核意见:{{ item.auditRemarks }}
|
<text>审核意见:{{ item.AUDIT_REMARKS }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<view></view>
|
<view></view>
|
||||||
<view class="flex-between">
|
<view class="flex-between">
|
||||||
<u-button type="primary" text="查看" size="mini"
|
<u-button type="primary" text="查看" size="mini"
|
||||||
@click="fnView(item.employmentApplyManagementId, item.corpinfoId, item.departState)"></u-button>
|
@click="fnView(item.EMPLOYMENT_APPLY_MANAGEMENT_ID, item.CORPINFO_ID, item.DEPART_STATE)"></u-button>
|
||||||
<view class="ml-10">
|
<view class="ml-10">
|
||||||
<u-button type="primary" text="离职" size="mini"
|
<u-button type="primary" text="离职" size="mini"
|
||||||
v-if="item.departState === '0'"
|
v-if="item.DEPART_STATE === '0'"
|
||||||
@click="fnResignationApplication(item.employmentApplyManagementId,item.relevantUnitName)">
|
@click="fnResignationApplication(item.EMPLOYMENT_APPLY_MANAGEMENT_ID,item.RELEVANT_UNIT_NAME)">
|
||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -58,7 +58,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getEmpLog} from "../../api/api";
|
import {
|
||||||
|
getEmployedBy
|
||||||
|
} from "../../api";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -74,13 +76,11 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getData() {
|
async getData() {
|
||||||
let resData = await getEmpLog({
|
let resData = await getEmployedBy({
|
||||||
id: this.$store.getters.getUserInfo.USER_ID,
|
showCount: this.pageSize,
|
||||||
limit: this.pageSize,
|
currentPage: this.currentPage,
|
||||||
curPage: this.currentPage,
|
|
||||||
postMethod: 'application/json'
|
|
||||||
});
|
});
|
||||||
this.list = [...this.list, ...resData.page.list];
|
this.list = [...this.list, ...resData.varList];
|
||||||
this.totalPage = resData.page.totalPage;
|
this.totalPage = resData.page.totalPage;
|
||||||
},
|
},
|
||||||
resetList() {
|
resetList() {
|
||||||
|
|
|
@ -4,14 +4,19 @@
|
||||||
<u-cell-group>
|
<u-cell-group>
|
||||||
<u-cell title="照片">
|
<u-cell title="照片">
|
||||||
<template #value>
|
<template #value>
|
||||||
<u--image :src="userPhoto" shape="circle" width="100rpx" height="100rpx"></u--image>
|
<u--image :src="info.userPhoto" shape="circle" width="100rpx" height="100rpx"></u--image>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="姓名" :value="info.name"></u-cell>
|
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||||
<u-cell title="性别" :value="info.userDetails.sex === '1' ? '女' : '男'"></u-cell>
|
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||||
<u-cell title="出生年月" :value="info.userDetails.dateOfBirth"></u-cell>
|
<template #value>
|
||||||
<u-cell title="年龄" :value="info.userDetails.age"></u-cell>
|
{{ info.SEX === '1' ? '女' : '' }}
|
||||||
<u-cell title="身份证" :value="info.userDetails.cardId"></u-cell>
|
{{ info.SEX === '0' ? '男' : '' }}
|
||||||
|
</template>
|
||||||
|
</u-cell>
|
||||||
|
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||||
|
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||||
|
<u-cell title="身份证" :value="info.CARD_ID" @blur="fnIDCardDeduplication"></u-cell>
|
||||||
<u-cell title="身份证照片">
|
<u-cell title="身份证照片">
|
||||||
<template #value>
|
<template #value>
|
||||||
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
||||||
|
@ -21,25 +26,26 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="民族" :value="info.userDetails.nationalityName"></u-cell>
|
<u-cell title="民族" :value="info.minzuName"></u-cell>
|
||||||
<u-cell title="户口所在地">
|
<u-cell title="户口所在地">
|
||||||
<template #value>
|
<template #value>
|
||||||
<u--text :lines="2" align="right" :text="info.userDetails.hklocal"></u--text>
|
<u--text :lines="2" align="right" :text="info.HKLOCAL"></u--text>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="现住址">
|
<u-cell title="现住址">
|
||||||
<template #value>
|
<template #value>
|
||||||
<u--text :lines="2" align="right" :text="info.userDetails.address"></u--text>
|
<u--text :lines="2" align="right" :text="info.ADDRESS"></u--text>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="联系电话" :value="info.userDetails.phone"></u-cell>
|
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||||
<u-cell title="婚姻状况" :value="info.userDetails.maritalstatus === 0 ? '未婚':'已婚'"></u-cell>
|
<u-cell title="婚姻状况" :value="info.MARITALSTATUS == 0 ? '未婚':'已婚'"></u-cell>
|
||||||
<u-cell title="政治面貌" :value="info.userDetails.politicalStatusName"></u-cell>
|
<u-cell title="政治面貌" :value="info.zzName"></u-cell>
|
||||||
<u-cell v-if="info.userDetails.politicalStatus === 'zhonggongdangyuan'" title="入党时间"
|
<u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间"
|
||||||
:value="info.userDetails.politicalTime"></u-cell>
|
:value="info.POLITICAL_TIME"></u-cell>
|
||||||
<u-cell title="是否缴纳社保" :value="info.userDetails.isSocial === '1'? '是' : '否'"></u-cell>
|
<u-cell title="是否缴纳社保" :value="info.IS_SOCIAL_NAME"></u-cell>
|
||||||
<u-cell title="社会保障号" v-show="info.userDetails.isSocial==='1'" :value="info.userDetails.socialNumber"></u-cell>
|
<!-- 用v-if会出现渲染问题导致出现两行相同的数据 所以改成v-show modify by water_xu 2024.7.19 -->
|
||||||
<u-cell title="社会保障卡照片" v-show="info.userDetails.isSocial === '1'">
|
<u-cell title="社会保障号" v-show="info.IS_SOCIAL==='1'" :value="info.SOCIAL_NUMBER"></u-cell>
|
||||||
|
<u-cell title="社会保障卡照片" v-show="info.IS_SOCIAL==='1'">
|
||||||
<template #value>
|
<template #value>
|
||||||
<view v-for="(item,index) in socialPhotoFile" :key="index"
|
<view v-for="(item,index) in socialPhotoFile" :key="index"
|
||||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||||
|
@ -48,8 +54,8 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="是否签订劳动合同" :value="info.userDetails.isSignLabor === '1' ? '是':'否'"></u-cell>
|
<u-cell title="是否签订劳动合同" :value="info.IS_SIGN_LABOR_NAME"></u-cell>
|
||||||
<u-cell title="合同图片" v-show="info.userDetails.isSignLabor==='1'">
|
<u-cell title="合同图片" v-show="info.IS_SIGN_LABOR==='1'">
|
||||||
<template #value>
|
<template #value>
|
||||||
<view v-for="(item,index) in contractFile" :key="index"
|
<view v-for="(item,index) in contractFile" :key="index"
|
||||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||||
|
@ -58,9 +64,9 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="是否缴纳商业保险" :value="info.userDetails.ispay === '1' ? '是':'否'"></u-cell>
|
<u-cell title="是否缴纳商业保险" :value="info.ISPAY_NAME"></u-cell>
|
||||||
<u-cell title="商业保险单号" v-show="info.userDetails.ispay === '1'" :value="info.ispayNumber"></u-cell>
|
<u-cell title="商业保险单号" v-show="info.ISPAY==='1'" :value="info.ISPAY_NUMBER"></u-cell>
|
||||||
<u-cell title="保险图片" v-show="info.userDetails.ispay === '1'">
|
<u-cell title="保险图片" v-show="info.ISPAY==='1'">
|
||||||
<template #value>
|
<template #value>
|
||||||
<view v-for="(item,index) in insuranceFile" :key="index"
|
<view v-for="(item,index) in insuranceFile" :key="index"
|
||||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||||
|
@ -69,9 +75,9 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="是否按期缴纳工伤保险" :value="info.userDetails.isInjuriesPay === '1' ? '是':'否'"></u-cell>
|
<u-cell title="是否按期缴纳工伤保险" :value="info.IS_INJURIES_PAY_NAME"></u-cell>
|
||||||
<u-cell title="工伤保险有效期" v-show="info.userDetails.isInjuriesPay==='1'" :value="info.userDetails.isInjuriesPayTime"></u-cell>
|
<u-cell title="工伤保险有效期" v-show="info.IS_INJURIES_PAY==='1'" :value="info.IS_INJURIES_PAY_TIME"></u-cell>
|
||||||
<u-cell title="工伤保险凭证" v-show="info.userDetails.isInjuriesPay==='1'">
|
<u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY==='1'">
|
||||||
<template #value>
|
<template #value>
|
||||||
<view v-for="(item,index) in injuriesPayTiemFile" :key="index"
|
<view v-for="(item,index) in injuriesPayTiemFile" :key="index"
|
||||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||||
|
@ -80,9 +86,9 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="岗位名称(工种)" :value="info.userDetails.postName"></u-cell>
|
<u-cell title="岗位名称(工种)" :value="info.POST_ID"></u-cell>
|
||||||
<u-cell title="是否参加三级安全培训" :value="info.userDetails.isLevelThree === '1' ? '是':'否'"></u-cell>
|
<u-cell title="是否参加三级安全培训" :value="info.IS_LEVEL_THREE_NAME"></u-cell>
|
||||||
<u-cell title="三级安全培训照片" v-show="info.userDetails.isLevelThree === '1'">
|
<u-cell title="三级安全培训照片" v-show="info.IS_LEVEL_THREE==='1'">
|
||||||
<template #value>
|
<template #value>
|
||||||
<view v-for="(item,index) in photosOfLevel" :key="index"
|
<view v-for="(item,index) in photosOfLevel" :key="index"
|
||||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||||
|
@ -91,7 +97,7 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="是否流动人员" :value="info.emp.isflow === '1' ? '是':'否'"></u-cell>
|
<u-cell title="是否流动人员" :value="info.ISFLOW_NAME"></u-cell>
|
||||||
</u-cell-group>
|
</u-cell-group>
|
||||||
</view>
|
</view>
|
||||||
<fab-button type="edit" @click="$u.route({url: '/pages/mine/information/update'})"/>
|
<fab-button type="edit" @click="$u.route({url: '/pages/mine/information/update'})"/>
|
||||||
|
@ -104,32 +110,19 @@ import {
|
||||||
getEmployedBy, getIDCardDeduplication
|
getEmployedBy, getIDCardDeduplication
|
||||||
} from "../../../api";
|
} from "../../../api";
|
||||||
import FabButton from "@/components/fab_button/index.vue";
|
import FabButton from "@/components/fab_button/index.vue";
|
||||||
import {getUserInfoV1} from "../../../api/api";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {FabButton},
|
components: {FabButton},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
info: {
|
info: {},
|
||||||
userDetails:{
|
|
||||||
sex:'0',
|
|
||||||
dateOfBirth:'1900-01-01'
|
|
||||||
},
|
|
||||||
emp:{
|
|
||||||
isflow:'0'
|
|
||||||
},
|
|
||||||
age: '0',
|
|
||||||
nationalityName:'',
|
|
||||||
hklocal: '',
|
|
||||||
maritalstatus:'0'
|
|
||||||
},
|
|
||||||
userCardIDPhotoFile: [],
|
userCardIDPhotoFile: [],
|
||||||
socialPhotoFile: [],
|
socialPhotoFile: [],
|
||||||
injuriesPayTiemFile: [],
|
injuriesPayTiemFile: [],
|
||||||
photosOfLevel: [],
|
photosOfLevel: [],
|
||||||
contractFile: [],
|
contractFile: [],
|
||||||
insuranceFile: [],
|
insuranceFile: [],
|
||||||
userPhoto: ''
|
EMPLOYMENT_APPLY_MANAGEMENT_ID: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
@ -141,53 +134,98 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async fnIDCardDeduplication(CARD_ID = this.form.CARD_ID) {
|
||||||
|
let resData = await getIDCardDeduplication({CARD_ID})
|
||||||
|
if (resData.pd) {
|
||||||
|
uni.$u.toast('身份证号重复')
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
},
|
||||||
fnPreview(urls) {
|
fnPreview(urls) {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls
|
urls
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async fnGetData() {
|
async fnGetData() {
|
||||||
let data = await getUserInfoV1(
|
|
||||||
{
|
|
||||||
id: this.$store.getters.getUserInfo.USER_ID,
|
|
||||||
postMethod: 'application/json'
|
|
||||||
}
|
|
||||||
)
|
|
||||||
this.info = data.info
|
|
||||||
// 身份证
|
|
||||||
this.userCardIDPhotoFile = []
|
this.userCardIDPhotoFile = []
|
||||||
for (let i = 0; i < this.info.userCardInfo.length; i++) {
|
|
||||||
this.userCardIDPhotoFile.push(this.$filePath + this.info.userCardInfo[i].filepath)
|
|
||||||
}
|
|
||||||
// 社保
|
|
||||||
this.socialPhotoFile = []
|
this.socialPhotoFile = []
|
||||||
for (let i = 0; i < this.info.socSecurityInfo.length; i++) {
|
|
||||||
this.socialPhotoFile.push(this.$filePath + this.info.socSecurityInfo[i].filepath)
|
|
||||||
}
|
|
||||||
// 工伤保险
|
|
||||||
this.injuriesPayTiemFile = []
|
this.injuriesPayTiemFile = []
|
||||||
for (let i = 0; i < this.info.empInsuranceInfo.length; i++) {
|
|
||||||
this.injuriesPayTiemFile.push(this.$filePath + this.info.empInsuranceInfo[i].filepath)
|
|
||||||
}
|
|
||||||
// 劳动合同
|
|
||||||
this.contractFile = []
|
this.contractFile = []
|
||||||
for (let i = 0; i < this.info.contractInfo.length; i++) {
|
|
||||||
this.contractFile.push(this.$filePath + this.info.contractInfo[i].filepath)
|
|
||||||
}
|
|
||||||
// 三级培训
|
|
||||||
this.photosOfLevel = []
|
this.photosOfLevel = []
|
||||||
for (let i = 0; i < this.info.threeLevelInfo.length; i++) {
|
|
||||||
this.photosOfLevel.push(this.$filePath + this.info.threeLevelInfo[i].filepath)
|
|
||||||
}
|
|
||||||
// 商业保险
|
|
||||||
this.insuranceFile = []
|
this.insuranceFile = []
|
||||||
for (let i = 0; i < this.info.insuranceInfo.length; i++) {
|
let Employed = await getEmployedBy({
|
||||||
this.insuranceFile.push(this.$filePath + this.info.insuranceInfo[i].filepath)
|
showCount: 10,
|
||||||
|
currentPage: 1,
|
||||||
|
DEPART_STATE: '0'
|
||||||
|
})
|
||||||
|
if (Employed.varList.length > 0) {
|
||||||
|
Employed.varList.forEach(item => {
|
||||||
|
console.log(item.EMPLOYMENT_APPLY_MANAGEMENT_ID);
|
||||||
|
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = item.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||||
|
})
|
||||||
}
|
}
|
||||||
// 头像
|
let resData = await getUserInfo({
|
||||||
this.userPhoto = []
|
USER_ID: this.userInfo.USER_ID,
|
||||||
if (this.info.userPhotoInfo && this.info.userPhotoInfo.length > 0){
|
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||||
this.userPhoto = this.$filePath + this.info.userPhotoInfo[0].filepath
|
EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||||
|
})
|
||||||
|
this.info = resData.pd
|
||||||
|
for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) {
|
||||||
|
this.userCardIDPhotoFile.push(this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH)
|
||||||
|
}
|
||||||
|
for (let i = 0; i < resData.socialPhotoFile.length; i++) {
|
||||||
|
this.socialPhotoFile.push(this.$filePath + resData.socialPhotoFile[i].FILEPATH)
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
|
||||||
|
this.injuriesPayTiemFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH)
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < resData.contractFile.length; i++) {
|
||||||
|
this.contractFile.push(this.$filePath + resData.contractFile[i].FILEPATH)
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < resData.photosOfLevel.length; i++) {
|
||||||
|
this.photosOfLevel.push(this.$filePath + resData.photosOfLevel[i].FILEPATH)
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < resData.insuranceFile.length; i++) {
|
||||||
|
this.insuranceFile.push(this.$filePath + resData.insuranceFile[i].FILEPATH)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.info.ISFLOW === '0') {
|
||||||
|
this.info.ISFLOW_NAME = '否'
|
||||||
|
} else if (this.info.ISFLOW === '1') {
|
||||||
|
this.info.ISFLOW_NAME = '是'
|
||||||
|
}
|
||||||
|
if (this.info.IS_SOCIAL === '0') {
|
||||||
|
this.info.IS_SOCIAL_NAME = '否'
|
||||||
|
} else if (this.info.IS_SOCIAL === '1') {
|
||||||
|
this.info.IS_SOCIAL_NAME = '是'
|
||||||
|
}
|
||||||
|
if (this.info.IS_INJURIES_PAY === '0') {
|
||||||
|
this.info.IS_INJURIES_PAY_NAME = '否'
|
||||||
|
} else if (this.info.IS_INJURIES_PAY === '1') {
|
||||||
|
this.info.IS_INJURIES_PAY_NAME = '是'
|
||||||
|
}
|
||||||
|
if (this.info.IS_SIGN_LABOR === '0') {
|
||||||
|
this.info.IS_SIGN_LABOR_NAME = '否'
|
||||||
|
} else if (this.info.IS_SIGN_LABOR === '1') {
|
||||||
|
this.info.IS_SIGN_LABOR_NAME = '是'
|
||||||
|
}
|
||||||
|
if (this.info.IS_LEVEL_THREE === '0') {
|
||||||
|
this.info.IS_LEVEL_THREE_NAME = '否'
|
||||||
|
} else if (this.info.IS_LEVEL_THREE === '1') {
|
||||||
|
this.info.IS_LEVEL_THREE_NAME = '是'
|
||||||
|
}
|
||||||
|
if (this.info.ISPAY === '1') {
|
||||||
|
this.info.ISPAY_NAME = '是'
|
||||||
|
} else {
|
||||||
|
this.info.ISPAY_NAME = '否'
|
||||||
|
}
|
||||||
|
if (resData.userPhotoFile.length > 0) {
|
||||||
|
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,4 @@
|
||||||
import refreshToken from "../api/refreshToken";
|
let requestPath = 'http://192.168.0.104:8059/xgf_gwj'; // 后台请求地址
|
||||||
|
|
||||||
let requestPath = 'http://192.168.0.102:8059/xgf_gwj_2.0/'; // 后台请求地址
|
|
||||||
// let requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址
|
// let requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址
|
||||||
// let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址
|
// let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址
|
||||||
import store from '../store/index'
|
import store from '../store/index'
|
||||||
|
@ -37,7 +35,6 @@ function post(url, data) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}
|
}
|
||||||
if (res.data.result === 'success') {
|
if (res.data.result === 'success') {
|
||||||
refreshToken()
|
|
||||||
resolve(res.data)
|
resolve(res.data)
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
@ -22,9 +22,9 @@ export function formatDate(date, fmt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const filePath = 'http://192.168.192.201:8991/file/'
|
//export const filePath = 'http://192.168.192.201:8991/file/'
|
||||||
//export const filePath = 'https://qgqy.qhdsafety.com/file/'
|
//export const filePath = 'https://qgqy.qhdsafety.com/file/'
|
||||||
// export const filePath = 'https://wwag.qhdsafety.com/file/'
|
export const filePath = 'https://wwag.qhdsafety.com/file/'
|
||||||
|
|
||||||
function padLeftZero(str) {
|
function padLeftZero(str) {
|
||||||
return ('00' + str).substr(str.length)
|
return ('00' + str).substr(str.length)
|
||||||
|
|
Loading…
Reference in New Issue