Merge branch 'dev' into 八项作业

# Conflicts:
#	static/icon-apps/app_icons6.png
八项作业
liujun 2024-11-06 14:57:40 +08:00
commit e76bb4df08
33 changed files with 4563 additions and 4030 deletions

View File

@ -2,8 +2,8 @@ import {post, upload, uploads} from "../utils/request";
import {setSecurityMeasures} from "@/utils/submitHomeworkProcess"; import {setSecurityMeasures} from "@/utils/submitHomeworkProcess";
export const submitLogin = (params) => post("/app/admin/check", params) // 登录 export const submitLogin = (params) => post("/app/admin/check", params) // 登录
export const getIDCardDeduplication = (params) => post("/app/user/hasCardIdForApp", params) // 身份证去重 export const getIDCardDeduplication = (params) => post("/app/user/goCheck", params) // 身份证去重
export const getUserDeduplication = (params) => post("/app/user/hasUserNameForApp", params) // 用户名去重 export const getUserDeduplication = (params) => post("/app/user/goCheck", params) // 用户名去重
export const getPhoneNumberDeduplication = (params) => post("/app/user/hasPhoneForApp", params) // 手机号去重 export const getPhoneNumberDeduplication = (params) => post("/app/user/hasPhoneForApp", params) // 手机号去重
export const setRegister = (params) => post("/app/admin/register", params) // 注册 export const setRegister = (params) => post("/app/admin/register", params) // 注册
export const setForgotPassword = (params) => post("/app/admin/forgetPassword", params) // 忘记密码 export const setForgotPassword = (params) => post("/app/admin/forgetPassword", params) // 忘记密码
@ -28,8 +28,8 @@ export const getUserInfo = (params) => post("/app/user/getDetailByUserIdAndCorpI
export const setUserInfo = (params) => post("/app/user/edit", params) //修改用户信息 export const setUserInfo = (params) => post("/app/user/edit", params) //修改用户信息
export const getCertificateInformationList = (params) => post("/app/specialUser/list", params) //证书信息列表 export const getCertificateInformationList = (params) => post("/app/specialUser/list", params) //证书信息列表
export const getCertificateInformationView = (params) => post("/app/specialUser/goEdit", params) //证书信息查看 export const getCertificateInformationView = (params) => post("/app/specialUser/goEdit", params) //证书信息查看
export const setCertificateInformationAdd = (params) => upload("/app/specialUser/add", params) //证书信息添加 export const setCertificateInformationAdd = (params) => uploads("/app/specialUser/add", params) //证书信息添加
export const setCertificateInformationEdit = (params) => upload("/app/specialUser/edit", params) //证书信息修改 export const setCertificateInformationEdit = (params) => uploads("/app/specialUser/edit", params) //证书信息修改
export const setCertificateInformationEditPost = (params) => post("/app/specialUser/edit", params) //证书信息修改 export const setCertificateInformationEditPost = (params) => post("/app/specialUser/edit", params) //证书信息修改
export const getDeptTree = (params) => post("/api/department/listzTree", params) //用户信息 export const getDeptTree = (params) => post("/api/department/listzTree", params) //用户信息
export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID", export const getEMPLOYMENTAPPLYMANAGEMENTID = (params) => post("/app/user/getEMPLOYMENTAPPLYMANAGEMENTID",

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="empty"> <view class="empty">
<u--image :showLoading="true" src="/static/svg/empty.svg" width="750upx" height="500upx"></u--image> <u--image :showLoading="true" src="/static/svg/empty.svg" width="750rpx" height="500rpx"></u--image>
<view class="empty-text">{{ message }}</view> <view class="empty-text">{{ message }}</view>
</view> </view>
</template> </template>
@ -24,10 +24,10 @@ export default {
align-items: center; align-items: center;
position: relative; position: relative;
.empty-text{ .empty-text{
font-size: 30upx; font-size: 30rpx;
color: $uni-text-color-placeholder; color: $uni-text-color-placeholder;
position: absolute; position: absolute;
top: 400upx; top: 400rpx;
} }
} }
</style> </style>

View File

@ -0,0 +1,39 @@
<template>
<view class="fab_button" @click="$emit('click')">
<block v-if="type === 'plus'">
<u-icon name="plus" color="#fff" size="28rpx"></u-icon>
</block>
<block v-if="type === 'search'">
<u-icon name="search" color="#fff" size="28rpx"></u-icon>
</block>
<block v-if="type === 'edit'">
<u-icon name="edit-pen" color="#fff" size="28rpx"></u-icon>
</block>
</view>
</template>
<script>
export default {
props: {
type: {
type: String,
default: "plus",
},
},
}
</script>
<style scoped lang="scss">
.fab_button {
position: fixed;
bottom: 100rpx;
right: 30rpx;
background-color: #3377ff;
border-radius: 50%;
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
}
</style>

View File

@ -53,7 +53,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.handCenter { .handCenter {
border: 4upx dashed #e9e9e9; border: 4rpx dashed #e9e9e9;
height: 80vh; height: 80vh;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;

View File

@ -105,11 +105,18 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "", "appid" : "wx06c53a01ae0afd2c",
"setting" : { "setting" : {
"urlCheck" : false "urlCheck" : false,
"minified" : true,
"es6" : true
}, },
"usingComponents" : true "usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "展示当前位置信息"
}
}
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true "usingComponents" : true

View File

@ -72,17 +72,7 @@
{ {
"path": "pages/certificate_information/index", "path": "pages/certificate_information/index",
"style": { "style": {
"navigationBarTitleText": "证书信息", "navigationBarTitleText": "证书信息"
"app-plus": {
"titleNView": {
"buttons": [{
"text": "新建",
"fontSize": "15",
"float": "right",
"width": "40px"
}]
}
}
} }
}, },
{ {
@ -119,17 +109,7 @@
{ {
"path": "pages/mine/information/index", "path": "pages/mine/information/index",
"style": { "style": {
"navigationBarTitleText": "我的信息", "navigationBarTitleText": "我的信息"
"app-plus": {
"titleNView": {
"buttons": [{
"text": "修改",
"fontSize": "15",
"float": "right",
"width": "40px"
}]
}
}
} }
}, },
{ {

View File

@ -2,7 +2,7 @@
<view class="content"> <view class="content">
<view class="card"> <view class="card">
<u--form labelPosition="left" :model="form" :rules="rules" ref="form" labelWidth="100px"> <u--form labelPosition="left" :model="form" :rules="rules" ref="form" labelWidth="100px">
<u-form-item label="证书图片" prop="fileList" borderBottom required> <u-form-item label="证书正面图片" prop="fileList" borderBottom required>
<u-upload <u-upload
:fileList="form.fileList" :fileList="form.fileList"
@afterRead="fnAfterRead" @afterRead="fnAfterRead"
@ -11,6 +11,15 @@
previewFullImage previewFullImage
></u-upload> ></u-upload>
</u-form-item> </u-form-item>
<u-form-item label="证书反面图片" prop="fileListBack" borderBottom required>
<u-upload
:fileList="form.fileListBack"
@afterRead="fnAfterRead1"
@delete="fnDeletePic1"
:maxCount="1"
previewFullImage
></u-upload>
</u-form-item>
<u-form-item label="姓名" prop="NAME" borderBottom required> <u-form-item label="姓名" prop="NAME" borderBottom required>
<u--input v-model="form.NAME" border="none" disabled disabledColor="#ffffff"></u--input> <u--input v-model="form.NAME" border="none" disabled disabledColor="#ffffff"></u--input>
</u-form-item> </u-form-item>
@ -21,7 +30,8 @@
<u--input v-model="form.PHONE" border="none" disabled disabledColor="#ffffff"></u--input> <u--input v-model="form.PHONE" border="none" disabled disabledColor="#ffffff"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="身份证号码" prop="CARD_ID" borderBottom required> <u-form-item label="身份证号码" prop="CARD_ID" borderBottom required>
<u--input v-model="form.CARD_ID" border="none" @blur="fnCardIdDisassembly" disabled disabledColor="#ffffff"></u--input> <u--input v-model="form.CARD_ID" border="none" @blur="fnCardIdDisassembly" disabled
disabledColor="#ffffff"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="证书类型" prop="CER_TYPE_NAME" borderBottom required @click="fnShowCertificateType"> <u-form-item label="证书类型" prop="CER_TYPE_NAME" borderBottom required @click="fnShowCertificateType">
<u--input v-model="form.CER_TYPE_NAME" border="none" disabled disabledColor="#ffffff"></u--input> <u--input v-model="form.CER_TYPE_NAME" border="none" disabled disabledColor="#ffffff"></u--input>
@ -39,10 +49,12 @@
<u-form-item label="工种" prop="JOBS_TYPE" borderBottom required> <u-form-item label="工种" prop="JOBS_TYPE" borderBottom required>
<u--input v-model="form.JOBS_TYPE" border="none" disabledColor="#ffffff"></u--input> <u--input v-model="form.JOBS_TYPE" border="none" disabledColor="#ffffff"></u--input>
</u-form-item> </u-form-item>
<u-form-item v-if="form.CER_TYPE_NAME === '特种作业'" label="作业类别" prop="specialName" borderBottom required @click="fnShowCertificateTypeSpe"> <u-form-item v-if="form.CER_TYPE_NAME === ''" label="作业类别" prop="specialName" borderBottom required
@click="fnShowCertificateTypeSpe">
<u--input v-model="form.specialName" border="none" disabled disabledColor="#ffffff"></u--input> <u--input v-model="form.specialName" border="none" disabled disabledColor="#ffffff"></u--input>
</u-form-item> </u-form-item>
<u-form-item v-if="form.CER_TYPE_NAME === '特种作业'" label="操作项目" prop="operationName" borderBottom required @click="fnShowCertificateTypeOpe"> <u-form-item v-if="form.CER_TYPE_NAME === ''" label="操作项目" prop="operationName" borderBottom
required @click="fnShowCertificateTypeOpe">
<u--input v-model="form.operationName" border="none" disabled disabledColor="#ffffff"></u--input> <u--input v-model="form.operationName" border="none" disabled disabledColor="#ffffff"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="有效期开始" prop="VALIDITY_TIME_START" borderBottom required <u-form-item label="有效期开始" prop="VALIDITY_TIME_START" borderBottom required
@ -71,7 +83,9 @@
@confirm="fnTermOfValidityEndConfirm" @cancel="fnShowTermOfValidityEnd"></u-datetime-picker> @confirm="fnTermOfValidityEndConfirm" @cancel="fnShowTermOfValidityEnd"></u-datetime-picker>
<u-datetime-picker :show="showReviewTime" v-model="reviewTimeValue" mode="date" <u-datetime-picker :show="showReviewTime" v-model="reviewTimeValue" mode="date"
@confirm="fnReviewTimeConfirm" @cancel="fnShowReviewTime"></u-datetime-picker> @confirm="fnReviewTimeConfirm" @cancel="fnShowReviewTime"></u-datetime-picker>
<u-button type="primary" text="保 存" class="mt-10" @click="$u.debounce(fnSubmit, 1000,true)"></u-button> <view class="mt-10">
<u-button type="primary" text="保 存" @click="$u.debounce(fnSubmit, 1000,true)"></u-button>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -105,6 +119,7 @@ export default {
reviewTimeValue: new Date().toString(), reviewTimeValue: new Date().toString(),
form: { form: {
fileList: [], fileList: [],
fileListBack: [],
NAME: '', NAME: '',
SEX_NAME: '', SEX_NAME: '',
PHONE: '', PHONE: '',
@ -122,95 +137,63 @@ export default {
REVIEW_TIME: '' REVIEW_TIME: ''
}, },
rules: { rules: {
// fileList: { fileList: {
// type: 'array', type: 'array',
// required: true, required: true,
// message: '', message: '请上传证书图片',
// trigger: ['change'] trigger: ['change']
// }, },
// NAME: { fileListBack: {
// required: true, type: 'array',
// message: '', required: true,
// trigger: ['blur'] message: '请上传证书图片',
// }, trigger: ['change']
// SEX_NAME: { },
// required: true, CER_TYPE_NAME: {
// message: '', required: true,
// trigger: ['change'] message: '请选择证书类型',
// }, trigger: ['change']
// PHONE: [ },
// { CERTIFICATE: {
// required: true, required: true,
// message: '', message: '请填写证书名称',
// trigger: ['blur'] trigger: ['change']
// }, },
// { SPECIAL_NUMBER: {
// validator: (rule, value, callback) => { required: true,
// return uni.$u.test.mobile(value); message: '请填写证书编号',
// }, trigger: ['blur']
// message: '', },
// trigger: ['blur'], JOBS_TYPE: {
// }, required: true,
// ], message: '请填写工种',
// CARD_ID: [ trigger: ['change']
// { },
// required: true, specialName: {
// message: '', required: true,
// trigger: ['blur'] message: '请选择作业类别',
// }, trigger: ['change']
// { },
// validator: (rule, value, callback) => { operationName: {
// return uni.$u.test.idCard(value); required: true,
// }, message: '请选择操作项目',
// message: '', trigger: ['change']
// trigger: ['blur'], },
// }, ISSUING_AUTHORITY: {
// ], required: true,
// CER_TYPE_NAME: { message: '请填写发证机关',
// required: true, trigger: ['blur']
// message: '', },
// trigger: ['change'] VALIDITY_TIME_START: {
// }, required: true,
// CERTIFICATE: { message: '请选择有效期开始时间',
// required: true, trigger: ['change']
// message: '', },
// trigger: ['change'] VALIDITY_TIME_END: {
// }, required: true,
// SPECIAL_NUMBER: { message: '请选择有效期结束时间',
// required: true, trigger: ['change']
// message: '', },
// trigger: ['blur']
// },
// JOBS_TYPE: {
// required: true,
// message: '',
// trigger: ['change']
// },
// specialName: {
// required: true,
// message: '',
// trigger: ['change']
// },
// operationName: {
// required: true,
// message: '',
// trigger: ['change']
// },
// ISSUING_AUTHORITY: {
// required: true,
// message: '',
// trigger: ['blur']
// },
// VALIDITY_TIME_START: {
// required: true,
// message: '',
// trigger: ['change']
// },
// VALIDITY_TIME_END: {
// required: true,
// message: '',
// trigger: ['change']
// },
REVIEW_TIME: { REVIEW_TIME: {
required: true, required: true,
message: '请选择复审时间', message: '请选择复审时间',
@ -248,7 +231,14 @@ export default {
SPECIAL_USER_ID: this.SPECIAL_USER_ID SPECIAL_USER_ID: this.SPECIAL_USER_ID
}) })
this.form = {...this.form, ...resData.pd, CER_TYPE_NAME: resData.pd.typeName} this.form = {...this.form, ...resData.pd, CER_TYPE_NAME: resData.pd.typeName}
this.$set(this.form,'fileList',[{url:this.$filePath + resData.pd.FILEPATH,FILEPATH:this.$filePath + resData.pd.FILEPATH}]) this.$set(this.form, 'fileList', [{
url: this.$filePath + resData.pd.FILEPATH,
FILEPATH: this.$filePath + resData.pd.FILEPATH
}])
this.$set(this.form, 'fileListBack', [{
url: this.$filePath + resData.pd.FILEPATH_BACK,
FILEPATH: this.$filePath + resData.pd.FILEPATH_BACK
}])
let resDatares = await getDataDictionary({DICTIONARIES_ID: this.form.SPECIAL_TYPE}) let resDatares = await getDataDictionary({DICTIONARIES_ID: this.form.SPECIAL_TYPE})
this.certificateTypeColumnsOpe = [resDatares.list] this.certificateTypeColumnsOpe = [resDatares.list]
} else { } else {
@ -259,9 +249,9 @@ export default {
this.fnCardIdDisassembly(this.form.CARD_ID) this.fnCardIdDisassembly(this.form.CARD_ID)
this.fnCardIdDisassembly(this.form.CARD_ID) this.fnCardIdDisassembly(this.form.CARD_ID)
} }
if (this.form.SEX_NAME == '0') { if (this.form.SEX_NAME === '0') {
this.form.SEX_NAME = '男' this.form.SEX_NAME = '男'
} else if (this.form.SEX_NAME == '1') { } else if (this.form.SEX_NAME === '1') {
this.form.SEX_NAME = '女' this.form.SEX_NAME = '女'
} }
}, },
@ -354,27 +344,73 @@ export default {
this.form.fileList = [] this.form.fileList = []
} }
},
fnAfterRead1(event) {
var houzhui = event.file.url.replace(/.+\./, "");
console.log(houzhui);
if (houzhui == "jpg" || houzhui == "png") {
this.form.fileListBack.push(event.file)
} else {
uni.$u.toast('图片格式不正确请上传jpg格式图片或者png格式图片')
this.form.fileListBack = []
}
}, },
fnDeletePic(event) { fnDeletePic(event) {
this.form.fileList.splice(event.index, 1) this.form.fileList.splice(event.index, 1)
}, },
fnDeletePic1(event) {
this.form.fileListBack.splice(event.index, 1)
},
async fnSubmit() { async fnSubmit() {
console.info(this.$refs) console.info(this.$refs)
this.$refs.form.validate().then(async () => { this.$refs.form.validate().then(async () => {
if (!this.SPECIAL_USER_ID) { if (!this.SPECIAL_USER_ID) {
let files = []
files.push({
name: 'FILEPATH',
file: this.form.fileList[0],
uri: this.form.fileList[0].url,
})
files.push({
name: 'FILEPATH_BACK',
file: this.form.fileListBack[0],
uri: this.form.fileListBack[0].url,
})
if (files.length !== 2) {
uni.$u.toast('请上传证书正反面')
return
}
await setCertificateInformationAdd({ await setCertificateInformationAdd({
filePath: this.form.fileList[0].url, files: files,
name: 'file',
formData: { formData: {
...this.form ...this.form
} }
}) })
} else { } else {
if (!this.form.fileList[0].FILEPATH || !this.form.fileListBack[0].FILEPATH) {
uni.$u.toast('1')
let files = []
if (!this.form.fileList[0].FILEPATH) { if (!this.form.fileList[0].FILEPATH) {
files.push({
name: 'FILEPATH',
file: this.form.fileList[0],
uri: this.form.fileList[0].url,
})
}
if (!this.form.fileListBack[0].FILEPATH) {
files.push({
name: 'FILEPATH_BACK',
file: this.form.fileListBack[0],
uri: this.form.fileListBack[0].url,
})
}
await setCertificateInformationEdit({ await setCertificateInformationEdit({
filePath: this.form.fileList[0].url, files: files,
name: 'file',
formData: { formData: {
...this.form ...this.form
} }
@ -387,13 +423,14 @@ export default {
} }
} }
uni.$u.toast('保存成功') // uni.$u.toast('')
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 2000) }, 2000)
}).catch((e) => { }).catch((e) => {
console.info(e) console.info(e)
uni.$u.toast('请补全必填项') // uni.$u.toast('')
uni.$u.toast(e)
}) })
} }
}, },

View File

@ -4,7 +4,7 @@
<u-list-item v-for="(item, index) in list" :key="index"> <u-list-item v-for="(item, index) in list" :key="index">
<view style="display: flex;align-items: center;justify-content: space-between;"> <view style="display: flex;align-items: center;justify-content: space-between;">
<view> <view>
<u-image width="200upx" height="200upx" :src="$filePath + item.FILEPATH"></u-image> <u-image width="200rpx" height="200rpx" :src="$filePath + item.FILEPATH"></u-image>
</view> </view>
<view class="ml-10" style="flex: 1;"> <view class="ml-10" style="flex: 1;">
<view class="flex-between main-title"> <view class="flex-between main-title">
@ -19,8 +19,12 @@
<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" class="bth-mini" @click="fnEdit(item.SPECIAL_USER_ID)"></u-button> <u-button type="primary" text="编辑" size="mini"
<u-button type="primary" text="查看" size="mini" class="bth-mini ml-10" @click="fnView(item.SPECIAL_USER_ID)"></u-button> @click="fnEdit(item.SPECIAL_USER_ID)"></u-button>
<view class="ml-10">
<u-button type="primary" text="查看" size="mini"
@click="fnView(item.SPECIAL_USER_ID)"></u-button>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -28,13 +32,18 @@
</u-list-item> </u-list-item>
</u-list> </u-list>
<empty v-else></empty> <empty v-else></empty>
<fab-button @click="fnEdit"/>
</view> </view>
</template> </template>
<script> <script>
import {getCertificateInformationList, getCertificateInformationView} from "../../api"; import {getCertificateInformationList, getCertificateInformationView} from "../../api";
import FabButton from '@/components/fab_button/index.vue'
export default { export default {
components: {
FabButton,
},
data() { data() {
return { return {
SPECIAL_USER_ID: '', SPECIAL_USER_ID: '',
@ -52,11 +61,6 @@ export default {
onShow() { onShow() {
this.resetList() this.resetList()
}, },
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.fnEdit()
}
},
methods: { methods: {
async getData() { async getData() {
let resData = await getCertificateInformationList({ let resData = await getCertificateInformationList({

View File

@ -4,7 +4,9 @@
<u-cell-group> <u-cell-group>
<u-cell title="证书图片"> <u-cell title="证书图片">
<template #value> <template #value>
<u--image :src="info.FILEPATH" width="100upx" height="100upx" radius="10upx" @click="fnPreview"></u--image> <u--image :src="info.FILEPATH" width="100rpx" height="100rpx" radius="10rpx" @click="fnPreview"></u--image>
<u--image v-if="info.FILEPATH_BACK" :src="info.FILEPATH_BACK" width="100rpx" height="100rpx" radius="10rpx"
@click="fnPreview"></u--image>
</template> </template>
</u-cell> </u-cell>
<u-cell title="姓名" :value="info.NAME"></u-cell> <u-cell title="姓名" :value="info.NAME"></u-cell>
@ -46,6 +48,9 @@ export default {
}) })
this.info = resData.pd this.info = resData.pd
this.$set(this.info, 'FILEPATH', this.$filePath + resData.pd.FILEPATH) this.$set(this.info, 'FILEPATH', this.$filePath + resData.pd.FILEPATH)
if (resData.pd.FILEPATH_BACK) {
this.$set(this.info, 'FILEPATH_BACK', this.$filePath + resData.pd.FILEPATH_BACK)
}
}, },
fnPreview() { fnPreview() {
uni.previewImage({ uni.previewImage({

View File

@ -4,7 +4,7 @@
<u-cell-group> <u-cell-group>
<u-cell title="照片"> <u-cell title="照片">
<template #value> <template #value>
<u--image :src="info.PHOTO" shape="circle" width="100upx" height="100upx" <u--image :src="info.PHOTO" shape="circle" width="100rpx" height="100rpx"
@click="fnPreview(info.PHOTO)"></u--image> @click="fnPreview(info.PHOTO)"></u--image>
</template> </template>
</u-cell> </u-cell>
@ -19,9 +19,10 @@
<u-cell title="联系电话" :value="info.PHONE"></u-cell> <u-cell title="联系电话" :value="info.PHONE"></u-cell>
<u-cell title="人员类型" :value="info.ISFLOW === '1' ? '流动人员' : '固定人员'"> <u-cell title="人员类型" :value="info.ISFLOW === '1' ? '流动人员' : '固定人员'">
</u-cell> </u-cell>
<u-cell title="二维码" v-show="!CODE_TYPE && info.STATUS === '2' && info.CORPINFO_ID"> <u-cell title="二维码"
v-if="info.CORPINFO_ID && cleanCode && (info.DEPART_STATE == '0' || info.DEPART_STATE == '-1')">
<template #value> <template #value>
<u--image :src="info.code" width="100upx" height="100upx" @click="fnPreview(info.code)"> <u--image :src="info.code" width="100rpx" height="100rpx" @click="fnPreview(info.code)">
</u--image> </u--image>
</template> </template>
</u-cell> </u-cell>
@ -41,7 +42,8 @@
return { return {
info: {}, info: {},
USER_ID: '', USER_ID: '',
CODE_TYPE: '' CODE_TYPE: '',
cleanCode: ''
} }
}, },
created() { created() {
@ -65,6 +67,7 @@
console.log(this.$filePath + resData.pd.PHOTO) console.log(this.$filePath + resData.pd.PHOTO)
this.info.PHOTO = this.$filePath + resData.pd.PHOTO this.info.PHOTO = this.$filePath + resData.pd.PHOTO
this.info.code = 'data:image/jpg;base64,' + code this.info.code = 'data:image/jpg;base64,' + code
this.cleanCode = code
}, },
fnPreview(urls) { fnPreview(urls) {
uni.previewImage({ uni.previewImage({

View File

@ -40,15 +40,17 @@
<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" class="bth-mini ml-10" <u-button type="primary" text="查看" size="mini"
@click="fnView(item.EMPLOYMENT_APPLY_MANAGEMENT_ID, item.CORPINFO_ID, item.DEPART_STATE)"></u-button> @click="fnView(item.EMPLOYMENT_APPLY_MANAGEMENT_ID, item.CORPINFO_ID, item.DEPART_STATE)"></u-button>
<u-button type="primary" text="离职申请" size="mini" class="bth-mini ml-10" <view class="ml-10">
<u-button type="primary" text="离职申请" size="mini"
v-if="item.DEPART_STATE === '0'" v-if="item.DEPART_STATE === '0'"
@click="fnResignationApplication(item.EMPLOYMENT_APPLY_MANAGEMENT_ID,item.RELEVANT_UNIT_NAME)"> @click="fnResignationApplication(item.EMPLOYMENT_APPLY_MANAGEMENT_ID,item.RELEVANT_UNIT_NAME)">
</u-button> </u-button>
</view> </view>
</view> </view>
</view> </view>
</view>
</u-list-item> </u-list-item>
</u-list> </u-list>
<empty v-else></empty> <empty v-else></empty>

View File

@ -12,7 +12,9 @@
<u-cell title="申请时间" :value="form.APPLY_TIME"></u-cell> <u-cell title="申请时间" :value="form.APPLY_TIME"></u-cell>
<u-cell title="申请人" :value="userInfo.NAME"></u-cell> <u-cell title="申请人" :value="userInfo.NAME"></u-cell>
</u-cell-group> </u-cell-group>
<u-button type="primary" text="提交" class="mt-10" @click="$u.debounce(fnSubmit, 1000,true)"></u-button> <view class="mt-10">
<u-button type="primary" text="提交" @click="$u.debounce(fnSubmit, 1000,true)"></u-button>
</view>
</view> </view>
</view> </view>
</template> </template>

View File

@ -1,16 +1,9 @@
<template> <template>
<view class="page"> <view class="page">
<!-- #ifdef APP-PLUS -->
<view class="status_bar"> <view class="status_bar">
<view class="top_view"></view> <view class="top_view"></view>
</view> </view>
<!-- #endif -->
<view class="wui_banner"> <view class="wui_banner">
<view class="wui-bar">
<view class="icon-ui">
<u-icon name="scan" color="#fff" size="28" @click="fnScan"></u-icon>
</view>
</view>
<view class="banner_img"> <view class="banner_img">
<image src="../../static/home-bg.png" mode=""></image> <image src="../../static/home-bg.png" mode=""></image>
</view> </view>
@ -34,7 +27,8 @@
</view> </view>
</view> </view>
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton" <u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText" :cancelText="updateVersion.cancelText" :showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText"
:cancelText="updateVersion.cancelText"
@cancel="modalCancel" @confirm="modalConfirm"> @cancel="modalCancel" @confirm="modalConfirm">
<view style="text-align: center;color:#606266"> <view style="text-align: center;color:#606266">
<rich-text :nodes="updateVersion.modalContent"></rich-text> <rich-text :nodes="updateVersion.modalContent"></rich-text>

View File

@ -2,7 +2,7 @@
<view class="content1"> <view class="content1">
<view class="change-password"> <view class="change-password">
<u--form labelPosition="top" :model="form" :rules="rules" ref="form" labelWidth="100%" <u--form labelPosition="top" :model="form" :rules="rules" ref="form" labelWidth="100%"
:labelStyle="{color:'#333', fontSize:'34upx', fontWeight:'bold'}"> :labelStyle="{color:'#333', fontSize:'34rpx', fontWeight:'bold'}">
<u-form-item label="用户名" prop="USERNAME" borderBottom> <u-form-item label="用户名" prop="USERNAME" borderBottom>
<u--input v-model="form.USERNAME" border="none"></u--input> <u--input v-model="form.USERNAME" border="none"></u--input>
</u-form-item> </u-form-item>
@ -95,7 +95,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.change-password { .change-password {
background-color: #fff; background-color: #fff;
border-radius: 20upx; border-radius: 20rpx;
padding: 40upx; padding: 40rpx;
} }
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="wui_login"> <view class="wui_login">
<view class="form"> <view class="form">
<u--form labelPosition="top" :model="form" labelWidth="140upx" > <u--form labelPosition="top" :model="form" labelWidth="140rpx">
<u-form-item label="账号" borderBottom> <u-form-item label="账号" borderBottom>
<u--input v-model="form.userName" border="none" placeholder="请输入账号..."></u--input> <u--input v-model="form.userName" border="none" placeholder="请输入账号..."></u--input>
</u-form-item> </u-form-item>
@ -9,14 +9,16 @@
<u--input v-model="form.userPwd" type="password" border="none" placeholder="请输入密码..."></u--input> <u--input v-model="form.userPwd" type="password" border="none" placeholder="请输入密码..."></u--input>
</u-form-item> </u-form-item>
</u--form> </u--form>
<u-button type="primary" text="登 录" @click="$u.debounce(fnLogin, 1000,true)"></u-button> <u-button type="primary" text="登 录" custom-style="margin:40rpx 0 20rpx 0"
@click="$u.debounce(fnLogin, 1000,true)"></u-button>
<view class="tip"> <view class="tip">
<view @click="fnForgotPassword"></view> <view @click="fnForgotPassword"></view>
<view @click="fnRegister"></view> <view @click="fnRegister"></view>
</view> </view>
</view> </view>
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton" <u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText" :cancelText="updateVersion.cancelText" :showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText"
:cancelText="updateVersion.cancelText"
@cancel="modalCancel" @confirm="modalConfirm"> @cancel="modalCancel" @confirm="modalConfirm">
<view style="text-align: center;color:#606266"> <view style="text-align: center;color:#606266">
<rich-text :nodes="updateVersion.modalContent"></rich-text> <rich-text :nodes="updateVersion.modalContent"></rich-text>
@ -94,47 +96,36 @@ export default {
height: 100vh; height: 100vh;
background-color: #058cf5; background-color: #058cf5;
position: relative; position: relative;
.title { .title {
color: #fff; color: #fff;
font-size: 44upx; font-size: 44rpx;
font-weight: 500; font-weight: 500;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-top: 106upx; padding-top: 106rpx;
padding-left: 46upx; padding-left: 46rpx;
line-height: 1.6; line-height: 1.6;
} }
.form { .form {
width: 70%; width: 70%;
position: absolute; position: absolute;
top: 49%; top: 49%;
left: 50%; left: 50%;
background-color: #fff; background-color: #fff;
border-radius: 20upx; border-radius: 20rpx;
padding: 30upx 9%; padding: 30rpx 9%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
.tip { .tip {
font-size: 20upx; font-size: 24rpx;
margin-bottom: 40upx; margin-bottom: 40rpx;
color: #0b80e7; color: #0b80e7;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
} }
button{
margin-top: 40upx;
background-color: #0b80e7;
color: #fff;
font-weight: bold;
border: none;
border-radius: 10upx;
margin-bottom: 20upx;
}
::v-deep{
.u-button__text{
font-size: 32upx !important;
}
}
} }
</style> </style>

View File

@ -19,7 +19,9 @@
</u-form-item> </u-form-item>
<view class="tip">密码长度8~32须包含数字字母符号至少2种或以上元素</view> <view class="tip">密码长度8~32须包含数字字母符号至少2种或以上元素</view>
</u--form> </u--form>
<u-button type="primary" text="注 册" class="mt-10" @click="$u.debounce(fnRegister, 1000,true)"></u-button> <view class="mt-10">
<u-button type="primary" text="注 册" @click="$u.debounce(fnRegister, 1000,true)"></u-button>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -141,8 +143,8 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.tip { .tip {
padding-top: 20upx; padding-top: 20rpx;
padding-bottom: 20upx; padding-bottom: 20rpx;
font-size: 20upx; font-size: 20rpx;
} }
</style> </style>

View File

@ -16,8 +16,7 @@
</template> </template>
<script> <script>
export default { export default {}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -25,6 +24,7 @@
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
line-height: 60rpx; line-height: 60rpx;
.title { .title {
} }
} }

View File

@ -7,9 +7,7 @@
</template> </template>
<script> <script>
export default { export default {}
}
</script> </script>
<style scoped> <style scoped>

View File

@ -2,7 +2,7 @@
<view class="content1"> <view class="content1">
<view class="change-password"> <view class="change-password">
<u--form labelPosition="top" :model="form" :rules="rules" ref="form" labelWidth="100%" <u--form labelPosition="top" :model="form" :rules="rules" ref="form" labelWidth="100%"
:labelStyle="{color:'#333', fontSize:'34upx', fontWeight:'bold'}"> :labelStyle="{color:'#333', fontSize:'34rpx', fontWeight:'bold'}">
<u-form-item label="原密码" prop="oldPwd" borderBottom> <u-form-item label="原密码" prop="oldPwd" borderBottom>
<u--input v-model="form.oldPwd" type="password" border="none"></u--input> <u--input v-model="form.oldPwd" type="password" border="none"></u--input>
</u-form-item> </u-form-item>
@ -104,7 +104,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.change-password { .change-password {
background-color: #fff; background-color: #fff;
border-radius: 20upx; border-radius: 20rpx;
padding: 40upx; padding: 40rpx;
} }
</style> </style>

View File

@ -5,9 +5,10 @@
<view class="feedback-type"> <view class="feedback-type">
<view class="item" v-for="(item, index) in feedbackType" :key="index" <view class="item" v-for="(item, index) in feedbackType" :key="index"
:class="{active:item.value === form.FEEDBACK_TYPE}" @click="form.FEEDBACK_TYPE = item.value"> :class="{active:item.value === form.FEEDBACK_TYPE}" @click="form.FEEDBACK_TYPE = item.value">
<u--image :src="item.img" width="40upx" height="38upx" <view style="margin-left: 70rpx; margin-top: 20rpx;">
style="margin-left: 70upx; margin-top: 20upx;"></u--image> <u--image :src="item.img" width="40rpx" height="38rpx"></u--image>
<view style="margin-top: -40upx;">{{item.label}}</view> </view>
<view style="margin-top: -40rpx;">{{ item.label }}</view>
</view> </view>
</view> </view>
<view class="title">我要反馈</view> <view class="title">我要反馈</view>
@ -128,17 +129,17 @@ import {setFeedbackAdd, setFeedbackUpload} from "../../../api";
<style lang="scss" scoped> <style lang="scss" scoped>
.feedback { .feedback {
padding: 40upx; padding: 40rpx;
background-color: #fff; background-color: #fff;
.title { .title {
font-weight: bold; font-weight: bold;
margin-top: 20upx; margin-top: 20rpx;
margin-bottom: 20upx; margin-bottom: 20rpx;
color: $uni-text-color-placeholder; color: $uni-text-color-placeholder;
font-size: 30upx; font-size: 30rpx;
&:irst-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
} }
@ -146,24 +147,24 @@ import {setFeedbackAdd, setFeedbackUpload} from "../../../api";
.feedback-type { .feedback-type {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 20upx; margin-bottom: 20rpx;
margin-top: 20upx; margin-top: 20rpx;
.item { .item {
padding: 10upx; padding: 10rpx;
border-radius: 10upx; border-radius: 10rpx;
margin-top: 10upx; margin-top: 10rpx;
margin-right: 10upx; margin-right: 10rpx;
margin-bottom: 10upx; margin-bottom: 10rpx;
background-color: #f6f7fb; background-color: #f6f7fb;
text-align: center; text-align: center;
font-size: 30upx; font-size: 30rpx;
color: #9fa7bc; color: #9fa7bc;
width: 207upx; width: 207rpx;
height: 143upx; height: 143rpx;
box-sizing: border-box; box-sizing: border-box;
line-height: 143upx; line-height: 143rpx;
text-align: center; text-align: center;
&.active { &.active {
@ -175,14 +176,14 @@ import {setFeedbackAdd, setFeedbackUpload} from "../../../api";
::v-deep { ::v-deep {
.u-upload__wrap__preview__image { .u-upload__wrap__preview__image {
width: 146upx !important; width: 146rpx !important;
height: 146upx !important; height: 146rpx !important;
} }
} }
} }
.title { .title {
font-size: 32upx; font-size: 32rpx;
color: #333; color: #333;
} }
</style> </style>

View File

@ -19,9 +19,10 @@
</view> </view>
<view class="my_main"> <view class="my_main">
<view class="my_main_info"> <view class="my_main_info">
<view class="my_main_info_wrap" v-for="(item,index) in list" :key="item.name" @click="clickItem(item.name,index)"> <view class="my_main_info_wrap" v-for="(item,index) in list" :key="item.name"
@click="clickItem(item.name,index)">
<view class="my_main_info_wrap_img"> <view class="my_main_info_wrap_img">
<u--image :src="item.img" width="40upx" height="40upx"></u--image> <u--image :src="item.img" width="40rpx" height="40rpx"></u--image>
</view> </view>
<view class="my_main_info_wrap_info"> <view class="my_main_info_wrap_info">
<view class="my_main_info_wrap_info_lable"> <view class="my_main_info_wrap_info_lable">
@ -40,7 +41,8 @@
</view> </view>
</view> </view>
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton" <u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText" :cancelText="updateVersion.cancelText" :showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText"
:cancelText="updateVersion.cancelText"
@cancel="modalCancel" @confirm="modalConfirm"> @cancel="modalCancel" @confirm="modalConfirm">
<view style="text-align: center;color:#606266"> <view style="text-align: center;color:#606266">
<rich-text :nodes="updateVersion.modalContent"></rich-text> <rich-text :nodes="updateVersion.modalContent"></rich-text>
@ -72,10 +74,12 @@ export default {
name: '修改密码', name: '修改密码',
url: '/pages/mine/change_password/change_password' url: '/pages/mine/change_password/change_password'
}, },
// #ifdef APP-PLUS
{ {
img: require('../../../static/images/my_ico5.png'), img: require('../../../static/images/my_ico5.png'),
name: '版本更新', name: '版本更新',
}, },
// #endif
{ {
img: require('../../../static/images/my_ico6.png'), img: require('../../../static/images/my_ico6.png'),
name: '关于我们', name: '关于我们',
@ -129,50 +133,50 @@ export default {
.mytop { .mytop {
width: 100%; width: 100%;
background: url(/static/images/mybannerbg.png); background: url(/static/images/mybannerbg.png);
height: 400upx; height: 400rpx;
background-size: 100% 100%; background-size: 100% 100%;
padding: 20upx; padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;
.mytop_main_info { .mytop_main_info {
width: 80%; width: 80%;
margin: 0 auto; margin: 0 auto;
margin-top: 150upx; margin-top: 150rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.mytop_main_info_tx { .mytop_main_info_tx {
margin-right: 20upx; margin-right: 20rpx;
} }
.mytop_main_test_name { .mytop_main_test_name {
color: #fff; color: #fff;
font-size: 36upx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
} }
.mytop_main_test_p { .mytop_main_test_p {
color: #fff; color: #fff;
font-size: 26upx; font-size: 26rpx;
opacity: 0.6; opacity: 0.6;
margin-top: 5upx; margin-top: 5rpx;
} }
} }
} }
.my_main { .my_main {
width: 100%; width: 100%;
padding: 40upx; padding: 40rpx;
margin-top: -120upx; margin-top: -120rpx;
box-sizing: border-box; box-sizing: border-box;
.my_main_info { .my_main_info {
width: 100%; width: 100%;
background: #fff; background: #fff;
padding: 20upx 40upx; padding: 20rpx 40rpx;
box-sizing: border-box; box-sizing: border-box;
border-radius: 10upx; border-radius: 10rpx;
box-shadow: 0 0 20upx #eee; box-shadow: 0 0 20rpx #eee;
.my_main_info_wrap { .my_main_info_wrap {
width: 100%; width: 100%;
@ -180,19 +184,19 @@ export default {
align-items: center; align-items: center;
.my_main_info_wrap_img { .my_main_info_wrap_img {
width: 50upx; width: 50rpx;
height: 50upx; height: 50rpx;
margin-top: 10upx; margin-top: 10rpx;
} }
.my_main_info_wrap_info { .my_main_info_wrap_info {
flex: 1; flex: 1;
border-bottom: 1upx solid #eee; border-bottom: 1rpx solid #eee;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 30upx 0upx; padding: 30rpx 0rpx;
padding-left: 10upx; padding-left: 10rpx;
.my_main_info_wrap_info_lable { .my_main_info_wrap_info_lable {
@ -210,19 +214,19 @@ export default {
.layout_btner { .layout_btner {
width: 100%; width: 100%;
text-align: center; text-align: center;
padding: 0upx 40upx; padding: 0rpx 40rpx;
box-sizing: border-box; box-sizing: border-box;
.layout_btn { .layout_btn {
width: 100%; width: 100%;
text-align: center; text-align: center;
padding: 20upx; padding: 20rpx;
background: #e72f2f; background: #e72f2f;
box-sizing: border-box; box-sizing: border-box;
color: #fff; color: #fff;
box-shadow: 0 0 20upx #eee; box-shadow: 0 0 20rpx #eee;
border-radius: 10upx; border-radius: 10rpx;
} }
} }
</style> </style>

View File

@ -4,7 +4,7 @@
<u-cell-group> <u-cell-group>
<u-cell title="照片"> <u-cell title="照片">
<template #value> <template #value>
<u--image :src="info.userPhoto" shape="circle" width="100upx" height="100upx"></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>
@ -16,12 +16,12 @@
</u-cell> </u-cell>
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></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.AGE"></u-cell>
<u-cell title="身份证" :value="info.CARD_ID"></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"
style="display: flex;justify-content: space-between"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(userCardIDPhotoFile)"></u--image> @click="fnPreview(userCardIDPhotoFile)"></u--image>
</view> </view>
</template> </template>
@ -40,58 +40,91 @@
<u-cell title="联系电话" :value="info.PHONE"></u-cell> <u-cell title="联系电话" :value="info.PHONE"></u-cell>
<u-cell title="婚姻状况" :value="info.MARITALSTATUS == 0 ? '未婚':'已婚'"></u-cell> <u-cell title="婚姻状况" :value="info.MARITALSTATUS == 0 ? '未婚':'已婚'"></u-cell>
<u-cell title="政治面貌" :value="info.zzName"></u-cell> <u-cell title="政治面貌" :value="info.zzName"></u-cell>
<u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间" :value="info.POLITICAL_TIME"></u-cell> <u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间"
:value="info.POLITICAL_TIME"></u-cell>
<u-cell title="是否缴纳社保" :value="info.IS_SOCIAL_NAME"></u-cell> <u-cell title="是否缴纳社保" :value="info.IS_SOCIAL_NAME"></u-cell>
<u-cell title="社会保障号" v-if="info.IS_SOCIAL==='1'" :value="info.SOCIAL_NUMBER"></u-cell> <!-- 用v-if会出现渲染问题导致出现两行相同的数据 所以改成v-show modify by water_xu 2024.7.19 -->
<u-cell title="社会保障卡照片" v-if="info.IS_SOCIAL==='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"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(socialPhotoFile)"></u--image> @click="fnPreview(socialPhotoFile)"></u--image>
</view> </view>
</template> </template>
</u-cell> </u-cell>
<u-cell title="是否签订劳动合同" :value="info.IS_SIGN_LABOR_NAME"></u-cell>
<u-cell title="合同图片" v-show="info.IS_SIGN_LABOR==='1'">
<template #value>
<view v-for="(item,index) in contractFile" :key="index"
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(contractFile)"></u--image>
</view>
</template>
</u-cell>
<u-cell title="是否缴纳商业保险" :value="info.ISPAY_NAME"></u-cell>
<u-cell title="商业保险单号" v-show="info.ISPAY==='1'" :value="info.ISPAY_NUMBER"></u-cell>
<u-cell title="保险图片" v-show="info.ISPAY==='1'">
<template #value>
<view v-for="(item,index) in insuranceFile" :key="index"
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(insuranceFile)"></u--image>
</view>
</template>
</u-cell>
<u-cell title="是否按期缴纳工伤保险" :value="info.IS_INJURIES_PAY_NAME"></u-cell> <u-cell title="是否按期缴纳工伤保险" :value="info.IS_INJURIES_PAY_NAME"></u-cell>
<u-cell title="工伤保险有效期" v-if="info.IS_INJURIES_PAY==='1'" :value="info.IS_INJURIES_PAY_TIME"></u-cell> <u-cell title="工伤保险有效期" v-show="info.IS_INJURIES_PAY==='1'" :value="info.IS_INJURIES_PAY_TIME"></u-cell>
<u-cell title="工伤保险凭证" v-if="info.IS_INJURIES_PAY==='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"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(injuriesPayTiemFile)"></u--image> @click="fnPreview(injuriesPayTiemFile)"></u--image>
</view> </view>
</template> </template>
</u-cell> </u-cell>
<u-cell title="岗位名称(工种)" :value="info.POST_ID"></u-cell>
<u-cell title="是否参加三级安全培训" :value="info.IS_LEVEL_THREE_NAME"></u-cell>
<u-cell title="三级安全培训照片" v-show="info.IS_LEVEL_THREE==='1'">
<template #value>
<view v-for="(item,index) in photosOfLevel" :key="index"
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(photosOfLevel)"></u--image>
</view>
</template>
</u-cell>
<u-cell title="是否流动人员" :value="info.ISFLOW_NAME"></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'})"/>
</view> </view>
</template> </template>
<script> <script>
import { import {
getUserInfo, getUserInfo,
getEmployedBy getEmployedBy, getIDCardDeduplication
} from "../../../api"; } from "../../../api";
import FabButton from "@/components/fab_button/index.vue";
export default { export default {
components: {FabButton},
data() { data() {
return { return {
info: {}, info: {},
userCardIDPhotoFile: [], userCardIDPhotoFile: [],
socialPhotoFile: [], socialPhotoFile: [],
injuriesPayTiemFile: [], injuriesPayTiemFile: [],
photosOfLevel: [],
contractFile: [],
insuranceFile: [],
EMPLOYMENT_APPLY_MANAGEMENT_ID: '', EMPLOYMENT_APPLY_MANAGEMENT_ID: '',
} }
}, },
onNavigationBarButtonTap(e) {
if (e.index === 0) {
uni.$u.route({
url: '/pages/mine/information/update'
})
}
},
onShow() { onShow() {
this.fnGetData() this.fnGetData()
}, },
@ -101,6 +134,14 @@
} }
}, },
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
@ -110,6 +151,9 @@
this.userCardIDPhotoFile = [] this.userCardIDPhotoFile = []
this.socialPhotoFile = [] this.socialPhotoFile = []
this.injuriesPayTiemFile = [] this.injuriesPayTiemFile = []
this.contractFile = []
this.photosOfLevel = []
this.insuranceFile = []
let Employed = await getEmployedBy({ let Employed = await getEmployedBy({
showCount: 10, showCount: 10,
currentPage: 1, currentPage: 1,
@ -136,6 +180,19 @@
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) { for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
this.injuriesPayTiemFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH) 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') { if (this.info.ISFLOW === '0') {
this.info.ISFLOW_NAME = '否' this.info.ISFLOW_NAME = '否'
} else if (this.info.ISFLOW === '1') { } else if (this.info.ISFLOW === '1') {
@ -151,6 +208,21 @@
} else if (this.info.IS_INJURIES_PAY === '1') { } else if (this.info.IS_INJURIES_PAY === '1') {
this.info.IS_INJURIES_PAY_NAME = '是' 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) { if (resData.userPhotoFile.length > 0) {
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH) this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
} }

View File

@ -21,11 +21,16 @@
<u-form-item label="身份证" prop="CARD_ID" borderBottom required> <u-form-item label="身份证" prop="CARD_ID" borderBottom required>
<u--input border="none" v-model="form.CARD_ID" @blur="fnCardIdDisassembly"></u--input> <u--input border="none" v-model="form.CARD_ID" @blur="fnCardIdDisassembly"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="身份证照片(正反面)" prop="userCardIDPhotoFile" borderBottom required <u-form-item label="身份证照片(正反面)" prop="userCardIDPhotoFile" borderBottom required labelPosition="top"
class="form-item-block"> labelWidth="auto">
<u-upload class="mt-10" :fileList="form.userCardIDPhotoFile" @afterRead="fnAttIdPhotoAdd" <view class="mt-10 w100">
<u-upload :fileList="form.userCardIDPhotoFile" @afterRead="fnAttIdPhotoAdd"
@delete="fnAttIdPhotoDelete" multiple :maxCount="2" previewFullImage> @delete="fnAttIdPhotoDelete" multiple :maxCount="2" previewFullImage>
</u-upload> </u-upload>
<view class="tip">
温馨提示用户需上传身份证正反面身份证照片数量需2才能进行人员培训
</view>
</view>
</u-form-item> </u-form-item>
<u-form-item label="民族" prop="NATIONALITY" borderBottom required <u-form-item label="民族" prop="NATIONALITY" borderBottom required
@click="singleChoiceClick('NATIONALITY')"> @click="singleChoiceClick('NATIONALITY')">
@ -46,53 +51,141 @@
<u--input v-model="form.DEGREE_OF_EDUCATION_NAME" border="none" disabled disabledColor="#ffffff"> <u--input v-model="form.DEGREE_OF_EDUCATION_NAME" border="none" disabled disabledColor="#ffffff">
</u--input> </u--input>
</u-form-item> </u-form-item>
<view>
<u-form-item label="婚姻状况" prop="MARITALSTATUS" borderBottom required <u-form-item label="婚姻状况" prop="MARITALSTATUS" borderBottom required
@click="singleChoiceClick('MARITALSTATUS')"> @click="singleChoiceClick('MARITALSTATUS')">
<u--input v-model="form.MARITALSTATUS_NAME" border="none" disabled disabledColor="#ffffff"> <u--input v-model="form.MARITALSTATUS_NAME" border="none" disabled disabledColor="#ffffff">
</u--input> </u--input>
</u-form-item> </u-form-item>
</view>
<view>
<u-form-item label="政治面貌" prop="POLITICAL_STATUS" borderBottom required <u-form-item label="政治面貌" prop="POLITICAL_STATUS" borderBottom required
@click="singleChoiceClick('POLITICAL_STATUS')"> @click="singleChoiceClick('POLITICAL_STATUS')">
<u--input v-model="form.POLITICAL_STATUS_NAME" border="none" disabled disabledColor="#ffffff"> <u--input v-model="form.POLITICAL_STATUS_NAME" border="none" disabled disabledColor="#ffffff">
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item v-if="form.POLITICAL_STATUS == 'zhonggongdangyuan'" label="入党时间" prop="POLITICAL_STATUS" borderBottom required </view>
<view>
<u-form-item v-if="form.POLITICAL_STATUS == 'zhonggongdangyuan'" label="入党时间" prop="POLITICAL_STATUS"
borderBottom required
@click="fnShowDatePicke('POLITICAL_TIME')"> @click="fnShowDatePicke('POLITICAL_TIME')">
<u--input v-model="form.POLITICAL_TIME" border="none" disabled disabledColor="#ffffff"> <u--input v-model="form.POLITICAL_TIME" border="none" disabled disabledColor="#ffffff">
</u--input> </u--input>
</u-form-item> </u-form-item>
</view>
<view>
<u-form-item label="是否缴纳社保" prop="IS_SOCIAL_NAME" borderBottom required <u-form-item label="是否缴纳社保" prop="IS_SOCIAL_NAME" borderBottom required
@click="fnShowIsSocial"> @click="fnShowIsSocial">
<u--input v-model="form.IS_SOCIAL_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_SOCIAL_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item v-if="form.IS_SOCIAL=='1'" label="社会保障号" prop="SOCIAL_NUMBER" borderBottom required> </view>
<view>
<u-form-item v-if="form.IS_SOCIAL==='1'" label="社会保障号码" prop="SOCIAL_NUMBER" borderBottom required>
<u--input border="none" v-model="form.SOCIAL_NUMBER"></u--input> <u--input border="none" v-model="form.SOCIAL_NUMBER"></u--input>
</u-form-item> </u-form-item>
<u-form-item v-if="form.IS_SOCIAL=='1'" label="社会保障卡(正反面)" prop="socialPhotoFile" borderBottom required class="form-item-block"> </view>
<u-upload class="mt-10" :fileList="form.socialPhotoFile" @afterRead="fnAttSocialAdd" <view>
@delete="fnAttSocialDelete" multiple :maxCount="2" previewFullImage> <u-form-item v-if="form.IS_SOCIAL==='1'" label="社会保障卡" prop="socialPhotoFile" borderBottom required
</u-upload> labelPosition="top" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.socialPhotoFile" @afterRead="fnAttSocialAdd"
@delete="fnAttSocialDelete" multiple :maxCount="2" previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
</view>
<view>
<u-form-item label="是否缴纳保险" prop="IS_BF_NAME" borderBottom required @click="fnShowBf">
<u--input v-model="form.IS_BF_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item>
</view>
<view>
<u-form-item label="是否签订劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required
@click="fnShowIsSignLabor">
<u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item>
</view>
<view>
<u-form-item v-if="form.IS_SIGN_LABOR==='1'" label="合同图片" prop="contractFile" borderBottom required
labelPosition="top" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.contractFile" @afterRead="fnIsSignLaborAdd"
@delete="fnIsSignLaborDelete" multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item>
</view>
<view>
<u-form-item label="是否缴纳商业保险" prop="ISPAY_NAME" borderBottom required @click="fnShowIsPay">
<u--input v-model="form.ISPAY_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item>
</view>
<view>
<u-form-item v-if="form.ISPAY==='1'" label="商业保险单号" prop="ISPAY_NUMBER" borderBottom required>
<u--input border="none" v-model="form.ISPAY_NUMBER"></u--input>
</u-form-item>
</view>
<view>
<u-form-item v-if="form.ISPAY==='1'" label="保险图片" prop="insuranceFile" borderBottom required
labelPosition="top" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.insuranceFile" @afterRead="fnIsPayAdd" @delete="fnIsPayDelete"
multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item>
</view>
<view>
<u-form-item label="是否按期缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required <u-form-item label="是否按期缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required
@click="fnShowEmploymentInjuryInsurance"> @click="fnShowEmploymentInjuryInsurance">
<u--input v-model="form.IS_INJURIES_PAY_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_INJURIES_PAY_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="工伤保险有效期" v-if="form.IS_INJURIES_PAY==='1'" prop="<strong>IS_INJURIES_PAY_TIME</strong>" borderBottom </view>
<view>
<u-form-item label="工伤保险有效期" v-if="form.IS_INJURIES_PAY==='1'" prop="IS_INJURIES_PAY_TIME" borderBottom
required @click="fnShowInjuriesPayTiemEducation"> required @click="fnShowInjuriesPayTiemEducation">
<u--input v-model="form.IS_INJURIES_PAY_TIME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_INJURIES_PAY_TIME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
</view>
<view>
<u-form-item label="上传工伤保险凭证" prop="injuriesPayTiemFile" borderBottom required <u-form-item label="上传工伤保险凭证" prop="injuriesPayTiemFile" borderBottom required
v-if="form.IS_INJURIES_PAY==='1'" class="form-item-block"> v-if="form.IS_INJURIES_PAY==='1'" labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.injuriesPayTiemFile" <view class="mt-10 w100">
<u-upload :fileList="form.injuriesPayTiemFile"
@afterRead="fnInjuriesPayTiemAttachmentsAfterRead" @delete="fnInjuriesPayTiemAttachmentsDelete" @afterRead="fnInjuriesPayTiemAttachmentsAfterRead" @delete="fnInjuriesPayTiemAttachmentsDelete"
multiple :maxCount="4" previewFullImage></u-upload> multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
</view>
<view>
<u-form-item label="岗位名称(工种)" prop="POST_ID" borderBottom required>
<u--textarea border="none" v-model="form.POST_ID" autoHeight></u--textarea>
</u-form-item>
</view>
<view>
<u-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE_NAME" borderBottom required
@click="fnShowPhotosOfLevel">
<u--input v-model="form.IS_LEVEL_THREE_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item>
</view>
<view>
<u-form-item v-if="form.IS_LEVEL_THREE === '1'" label="三级安全培训照片" prop="photosOfLevel" borderBottom
required labelPosition="top" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.photosOfLevel" @afterRead="fnPhotosOfLevelAdd"
@delete="fnPhotosOfLevelDelete" multiple :maxCount="4" previewFullImage>
</u-upload>
</view>
</u-form-item>
</view>
<u-form-item label="是否流动人员" prop="ISFLOW_NAME" borderBottom required <u-form-item label="是否流动人员" prop="ISFLOW_NAME" borderBottom required
@click="fnShowFloatingPersonnel"> @click="fnShowFloatingPersonnel">
<u--input v-model="form.ISFLOW_NAME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input> <u--input v-model="form.ISFLOW_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item> </u-form-item>
</u--form> </u--form>
<u-picker ref="uPicker" :show="singleChoice" :columns="singleChoiceColumns" keyName="NAME" <u-picker ref="uPicker" :show="singleChoice" :columns="singleChoiceColumns" keyName="NAME"
@ -106,9 +199,21 @@
</u-picker> </u-picker>
<u-picker :show="showFloatingPersonnel" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name" <u-picker :show="showFloatingPersonnel" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnFloatingPersonnelConfirm" @cancel="fnShowFloatingPersonnel"></u-picker> @confirm="fnFloatingPersonnelConfirm" @cancel="fnShowFloatingPersonnel"></u-picker>
<u-picker :show="showBf" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnBFConfirm" @cancel="fnShowBf"></u-picker>
<u-picker :show="showIsSignLabor" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnIsSignLaborConfirm" @cancel="fnShowIsSignLabor"></u-picker>
<u-picker :show="showPhotosOfLevel" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnShowPhotosOfLevelConfirm" @cancel="fnShowPhotosOfLevel"></u-picker>
<u-picker :show="showIsPay" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnShowIsPayConfirm" @cancel="fnShowIsPay"></u-picker>
<u-datetime-picker :show="showInjuriesPayTiem" v-model="IS_INJURIES_PAY_TIME" mode="date" <u-datetime-picker :show="showInjuriesPayTiem" v-model="IS_INJURIES_PAY_TIME" mode="date"
@confirm="fnShowInjuriesPayTiemConfirm" @cancel="fnShowInjuriesPayTiemEducation"></u-datetime-picker> @confirm="fnShowInjuriesPayTiemConfirm"
<u-button type="primary" text="保 存" class="mt-10" @click="$u.debounce(fnSubmit, 1000,true)"></u-button> @cancel="fnShowInjuriesPayTiemEducation"></u-datetime-picker>
<view class="mt-10">
<u-button type="primary" text="保 存" @click="$u.debounce(fnSubmit, 1000,true)"></u-button>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -144,13 +249,20 @@
degreeOfEducationColumns: [], degreeOfEducationColumns: [],
showPersonWorkType: false, showPersonWorkType: false,
showFloatingPersonnel: false, showFloatingPersonnel: false,
showBf: false,
showIsSignLabor: false,
showPhotosOfLevel: false,
showIsPay: false,
personWorkTypeColumns: [], personWorkTypeColumns: [],
prePhotoId: [], prePhotoId: [],
form: { form: {
userPhoto: [], userPhoto: [],
userCardIDPhotoFile: [], userCardIDPhotoFile: [],
socialPhotoFile: [], socialPhotoFile: [],
injuriesPayTiemFile: [], // contractFile: [],
injuriesPayTiemFile: [],
photosOfLevel: [],
insuranceFile: [],
IS_INJURIES_PAY_TIME: '', IS_INJURIES_PAY_TIME: '',
NAME: '', NAME: '',
USERNAME: '', USERNAME: '',
@ -169,6 +281,15 @@
ISFLOW_NAME: '', ISFLOW_NAME: '',
IS_SOCIAL: '', IS_SOCIAL: '',
IS_SOCIAL_NAME: '', IS_SOCIAL_NAME: '',
IS_BF_NAME: '',
IS_BF: '',
IS_SIGN_LABOR: '',
IS_SIGN_LABOR_NAME: '',
POST_ID: '',
IS_LEVEL_THREE: '',
IS_LEVEL_THREE_NAME: '',
ISPAY: '',
ISPAY_NAME: ''
}, },
rules: { rules: {
userPhoto: { userPhoto: {
@ -197,7 +318,7 @@
socialPhotoFile: { socialPhotoFile: {
type: 'array', type: 'array',
required: true, required: true,
message: '请上传设保卡正反照', message: '请上传社保卡正反照',
trigger: ['change'] trigger: ['change']
}, },
CARD_ID: [{ CARD_ID: [{
@ -267,14 +388,54 @@
message: '请选择工伤保险有效期', message: '请选择工伤保险有效期',
trigger: ['change'] trigger: ['change']
}, },
IS_BF_NAME: {
required: true,
message: '请选择是否是否缴纳保险',
trigger: ['change']
},
IS_SIGN_LABOR_NAME: {
required: true,
message: '请选择是否签订劳动合同',
trigger: ['change']
},
contractFile: {
type: 'array',
required: true,
message: '请上传劳动合同',
trigger: ['change']
},
insuranceFile: {
type: 'array',
required: true,
message: '请上传保险图片',
trigger: ['change']
},
POST_ID: {
required: true,
message: '请填写岗位',
trigger: ['change']
},
photosOfLevel: {
type: 'array',
required: true,
message: '请上传三级安全培训照片',
trigger: ['change']
},
IS_LEVEL_THREE_NAME: {
required: true,
message: '请选择是否为三级人员',
trigger: ['change']
},
ISPAY_NUMBER: {
required: true,
message: '请填写商业保单号',
trigger: ['change']
},
} }
} }
}, },
onLoad() { onLoad() {
this.fnGetData() this.fnGetData()
// this.fnGetDataDictionary('d7d80f08d73a4accbccf4fd3d8d1d867', 'degreeOfEducationColumns')
// this.fnGetDataDictionary('55484e491a5e442d839c4595380713ec', 'personWorkTypeColumns')
}, },
computed: { computed: {
userInfo() { userInfo() {
@ -288,7 +449,10 @@
this.changeFrom = changeFrom this.changeFrom = changeFrom
if (changeFrom == 'NATIONALITY') this.fnGetDataDictionary('0a0e406f27f74ee698fe9979d25f62dd') if (changeFrom == 'NATIONALITY') this.fnGetDataDictionary('0a0e406f27f74ee698fe9979d25f62dd')
if (changeFrom == 'DEGREE_OF_EDUCATION') this.fnGetDataDictionary('d7d80f08d73a4accbccf4fd3d8d1d867') if (changeFrom == 'DEGREE_OF_EDUCATION') this.fnGetDataDictionary('d7d80f08d73a4accbccf4fd3d8d1d867')
if (changeFrom == 'MARITALSTATUS') this.singleChoiceColumns = [[{NAME: '已婚', BIANMA: '1'}, {NAME: '未婚', BIANMA: '0'}]] if (changeFrom == 'MARITALSTATUS') this.singleChoiceColumns = [[{NAME: '已婚', BIANMA: '1'}, {
NAME: '未婚',
BIANMA: '0'
}]]
if (changeFrom == 'POLITICAL_STATUS') this.fnGetDataDictionary('6351efdd12dc4730952e5d195718e252') if (changeFrom == 'POLITICAL_STATUS') this.fnGetDataDictionary('6351efdd12dc4730952e5d195718e252')
this.singleChoice = true this.singleChoice = true
@ -330,20 +494,13 @@
if (event.file.id) { if (event.file.id) {
// //
this.prePhotoId.push(event.file.id) this.prePhotoId.push(event.file.id)
// await removeUploadAttachments({
// IMGFILES_ID: event.file.id
// })
} }
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
duration: 2000 duration: 2000
}); });
// var pages = getCurrentPages(); //
// var prePage = pages[pages.length - 2]; //
// prePage.$vm.reloadx();
this.form.userCardIDPhotoFile.splice(event.index, 1) this.form.userCardIDPhotoFile.splice(event.index, 1)
} else if (res.cancel) { } else if (res.cancel) {
// console.log('');
} }
} }
}); });
@ -363,17 +520,11 @@
if (res.confirm) { if (res.confirm) {
if (event.file.id) { if (event.file.id) {
this.prePhotoId.push(event.file.id) this.prePhotoId.push(event.file.id)
// await removeUploadAttachments({
// IMGFILES_ID: event.file.id
// })
} }
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
duration: 2000 duration: 2000
}); });
// var pages = getCurrentPages(); //
// var prePage = pages[pages.length - 2]; //
// prePage.$vm.reloadx();
this.form.socialPhotoFile.splice(event.index, 1) this.form.socialPhotoFile.splice(event.index, 1)
} else if (res.cancel) { } else if (res.cancel) {
// console.log(''); // console.log('');
@ -381,6 +532,87 @@
} }
}); });
}, },
//
fnIsSignLaborAdd(event) {
for (let i = 0; i < event.file.length; i++) {
this.form.contractFile.push(event.file[i])
}
},
//
fnIsSignLaborDelete(event) {
uni.showModal({
title: '提示',
content: '确定删除吗',
success: async (res) => {
if (res.confirm) {
if (event.file.id) {
this.prePhotoId.push(event.file.id)
}
uni.showToast({
title: '操作成功',
duration: 2000
});
this.form.contractFile.splice(event.index, 1)
} else if (res.cancel) {
// console.log('');
}
}
});
},
//
fnIsPayAdd(event) {
for (let i = 0; i < event.file.length; i++) {
this.form.insuranceFile.push(event.file[i])
}
},
//
fnIsPayDelete(event) {
uni.showModal({
title: '提示',
content: '确定删除吗',
success: async (res) => {
if (res.confirm) {
if (event.file.id) {
this.prePhotoId.push(event.file.id)
}
uni.showToast({
title: '操作成功',
duration: 2000
});
this.form.insuranceFile.splice(event.index, 1)
} else if (res.cancel) {
// console.log('');
}
}
});
},
//
fnPhotosOfLevelAdd(event) {
for (let i = 0; i < event.file.length; i++) {
this.form.photosOfLevel.push(event.file[i])
}
},
//
fnPhotosOfLevelDelete(event) {
uni.showModal({
title: '提示',
content: '确定删除吗',
success: async (res) => {
if (res.confirm) {
if (event.file.id) {
this.prePhotoId.push(event.file.id)
}
uni.showToast({
title: '操作成功',
duration: 2000
});
this.form.photosOfLevel.splice(event.index, 1)
} else if (res.cancel) {
// console.log('');
}
}
});
},
async fnGetDataDictionary(DICTIONARIES_ID) { async fnGetDataDictionary(DICTIONARIES_ID) {
let resData = await getDataDictionary({ let resData = await getDataDictionary({
@ -399,22 +631,46 @@
fnShowPersonWorkType() { fnShowPersonWorkType() {
this.showPersonWorkType = !this.showPersonWorkType this.showPersonWorkType = !this.showPersonWorkType
}, },
// fnPersonWorkTypeConfirm(e) {
// this.form.PERSON_WORK_TYPE = e.value[0].BIANMA
// this.form.PERSON_WORK_TYPE_NAME = e.value[0].NAME
// this.fnShowPersonWorkType()
// },
fnShowFloatingPersonnel() { fnShowFloatingPersonnel() {
this.showFloatingPersonnel = !this.showFloatingPersonnel this.showFloatingPersonnel = !this.showFloatingPersonnel
}, },
fnShowBf() {
this.showBf = !this.showBf
},
fnShowIsSignLabor() {
this.showIsSignLabor = !this.showIsSignLabor
},
fnShowIsPay() {
this.showIsPay = !this.showIsPay
},
fnShowIsPayConfirm(e) {
this.form.ISPAY = e.value[0].id
this.form.ISPAY_NAME = e.value[0].name
this.fnShowIsPay()
},
fnShowPhotosOfLevel() {
this.showPhotosOfLevel = !this.showPhotosOfLevel
},
fnShowPhotosOfLevelConfirm(e) {
this.form.IS_LEVEL_THREE = e.value[0].id
this.form.IS_LEVEL_THREE_NAME = e.value[0].name
this.fnShowPhotosOfLevel()
},
fnFloatingPersonnelConfirm(e) { fnFloatingPersonnelConfirm(e) {
this.form.ISFLOW = e.value[0].id this.form.ISFLOW = e.value[0].id
this.form.ISFLOW_NAME = e.value[0].name this.form.ISFLOW_NAME = e.value[0].name
this.fnShowFloatingPersonnel() this.fnShowFloatingPersonnel()
}, },
fnBFConfirm(e) {
this.form.IS_BF = e.value[0].id
this.form.IS_BF_NAME = e.value[0].name
this.fnShowBf()
},
fnIsSignLaborConfirm(e) {
this.form.IS_SIGN_LABOR = e.value[0].id
this.form.IS_SIGN_LABOR_NAME = e.value[0].name
this.fnShowIsSignLabor()
},
fnShowIsSocial() { fnShowIsSocial() {
this.showIsSocial = !this.showIsSocial this.showIsSocial = !this.showIsSocial
}, },
@ -447,17 +703,11 @@
if (res.confirm) { if (res.confirm) {
if (event.file.id) { if (event.file.id) {
this.prePhotoId.push(event.file.id) this.prePhotoId.push(event.file.id)
// await removeUploadAttachments({
// IMGFILES_ID: event.file.id
// })
} }
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
duration: 2000 duration: 2000
}); });
// var pages = getCurrentPages(); //
// var prePage = pages[pages.length - 2]; //
// prePage.$vm.reloadx();
this.form.injuriesPayTiemFile.splice(event.index, 1) this.form.injuriesPayTiemFile.splice(event.index, 1)
} else if (res.cancel) { } else if (res.cancel) {
// console.log(''); // console.log('');
@ -547,26 +797,50 @@
} }
this.form.PHONE = this.form.USERNAME this.form.PHONE = this.form.USERNAME
this.fnCardIdDisassembly(this.form.CARD_ID) this.fnCardIdDisassembly(this.form.CARD_ID)
if (this.form.IS_SOCIAL === '0') { if (this.form.IS_SOCIAL === '1') {
this.form.IS_SOCIAL_NAME = '否'
} else if (this.form.IS_SOCIAL === '1') {
this.form.IS_SOCIAL_NAME = '是' this.form.IS_SOCIAL_NAME = '是'
} else {
this.form.IS_SOCIAL_NAME = '否'
} }
if (this.form.IS_INJURIES_PAY === '0') { if (this.form.IS_INJURIES_PAY === '1') {
this.form.IS_INJURIES_PAY_NAME = '否'
} else if (this.form.IS_INJURIES_PAY === '1') {
this.form.IS_INJURIES_PAY_NAME = '是' this.form.IS_INJURIES_PAY_NAME = '是'
} else {
this.form.IS_INJURIES_PAY_NAME = '否'
} }
if (this.form.SEX_NAME == '0') { if (this.form.SEX_NAME === '0') {
this.form.SEX_NAME = '男' this.form.SEX_NAME = '男'
} else if (this.form.SEX_NAME == '1') { } else if (this.form.SEX_NAME === '1') {
this.form.SEX_NAME = '女' this.form.SEX_NAME = '女'
} }
if (this.form.ISFLOW == '0') { if (this.form.ISFLOW === '1') {
this.form.ISFLOW_NAME = '否'
} else if (this.form.ISFLOW == '1') {
this.form.ISFLOW_NAME = '是' this.form.ISFLOW_NAME = '是'
} else {
this.form.ISFLOW_NAME = '否'
} }
if (this.form.ISPAY === '1') {
this.form.ISPAY_NAME = '是'
} else {
this.form.ISPAY_NAME = '否'
}
if (this.form.IS_LEVEL_THREE === '1') {
this.form.IS_LEVEL_THREE_NAME = '是'
} else {
this.form.IS_LEVEL_THREE_NAME = '否'
}
if (this.form.IS_BF === '1') {
this.form.IS_BF_NAME = '是'
} else {
this.form.IS_BF_NAME = '否'
}
if (this.form.IS_SIGN_LABOR === '1') {
this.form.IS_SIGN_LABOR_NAME = '是'
} else {
this.form.IS_SIGN_LABOR_NAME = '否'
}
if (resData.userPhotoFile.length > 0) { if (resData.userPhotoFile.length > 0) {
this.$set(this.form, 'userPhoto', [{ this.$set(this.form, 'userPhoto', [{
url: this.$filePath + resData.userPhotoFile[0].FILEPATH, url: this.$filePath + resData.userPhotoFile[0].FILEPATH,
@ -600,7 +874,33 @@
this.form.injuriesPayTiemFile.push(obj) this.form.injuriesPayTiemFile.push(obj)
}) })
} }
if (resData.photosOfLevel.length > 0) {
resData.photosOfLevel.forEach(item => {
const obj = {
id: item.IMGFILES_ID,
url: this.$filePath + item.FILEPATH
}
this.form.photosOfLevel.push(obj)
})
}
if (resData.contractFile.length > 0) {
resData.contractFile.forEach(item => {
const obj = {
id: item.IMGFILES_ID,
url: this.$filePath + item.FILEPATH
}
this.form.contractFile.push(obj)
})
}
if (resData.insuranceFile.length > 0) {
resData.insuranceFile.forEach(item => {
const obj = {
id: item.IMGFILES_ID,
url: this.$filePath + item.FILEPATH
}
this.form.insuranceFile.push(obj)
})
}
}, },
fnAfterRead(event) { fnAfterRead(event) {
this.form.userPhoto.push(event.file) this.form.userPhoto.push(event.file)
@ -617,17 +917,16 @@
} }
if (await this.fnIDCardDeduplication()) return if (await this.fnIDCardDeduplication()) return
if (await this.fnPhoneNumberDeduplication()) return if (await this.fnPhoneNumberDeduplication()) return
if (this.form.userCardIDPhotoFile.length != 2) { if (this.form.userCardIDPhotoFile.length !== 2) {
uni.$u.toast('身份证照片需要两张') uni.$u.toast('身份证照片需要两张')
return return
} }
if (this.form.IS_SOCIAL === '1') { if (this.form.IS_SOCIAL === '1') {
if (this.form.socialPhotoFile.length != 2) { if (this.form.socialPhotoFile.length !== 2) {
uni.$u.toast('社保卡照片需要两张') uni.$u.toast('社保卡照片需要两张')
return return
} }
} }
let fileUrl = '' let fileUrl = ''
// //
for (let i = 0; i < this.prePhotoId.length; i++) { for (let i = 0; i < this.prePhotoId.length; i++) {
@ -635,6 +934,7 @@
IMGFILES_ID: this.prePhotoId[i] IMGFILES_ID: this.prePhotoId[i]
}) })
} }
//
for (let i = 0; i < this.form.userPhoto.length; i++) { for (let i = 0; i < this.form.userPhoto.length; i++) {
if (!this.form.userPhoto[i].FILEPATH) { if (!this.form.userPhoto[i].FILEPATH) {
let resData = await setUploadAttachments({ let resData = await setUploadAttachments({
@ -660,7 +960,6 @@
} }
}) })
} }
for (let i = 0; i < this.form.socialPhotoFile.length; i++) { for (let i = 0; i < this.form.socialPhotoFile.length; i++) {
await setUploadAttachments({ await setUploadAttachments({
filePath: this.form.socialPhotoFile[i].url, filePath: this.form.socialPhotoFile[i].url,
@ -672,17 +971,51 @@
} }
}) })
} }
for (let i = 0; i < this.form.injuriesPayTiemFile.length; i++) { // 16 for (let i = 0; i < this.form.injuriesPayTiemFile.length; i++) {
await setUploadAttachments({ await setUploadAttachments({
filePath: this.form.injuriesPayTiemFile[i].url, filePath: this.form.injuriesPayTiemFile[i].url,
name: 'files', name: 'files',
formData: { formData: {
TYPE: '16', TYPE: '16',
FOREIGN_KEY: this.userInfo.USER_ID, FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.CORPINFO_ID, CORPINFO_ID: this.userInfo.CORPINFO_ID,
} }
}) })
} }
for (let i = 0; i < this.form.photosOfLevel.length; i++) {
await setUploadAttachments({
filePath: this.form.photosOfLevel[i].url,
name: 'files',
formData: {
TYPE: '19',
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.userInfo.CORPINFO_ID,
}
})
}
for (let i = 0; i < this.form.contractFile.length; i++) {
await setUploadAttachments({
filePath: this.form.contractFile[i].url,
name: 'files',
formData: {
TYPE: '10',
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.userInfo.CORPINFO_ID,
}
})
}
for (let i = 0; i < this.form.insuranceFile.length; i++) {
await setUploadAttachments({
filePath: this.form.insuranceFile[i].url,
name: 'files',
formData: {
TYPE: '11',
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.userInfo.CORPINFO_ID,
}
})
}
//
await setUserInfo({ await setUserInfo({
...this.form, ...this.form,
PHOTO: fileUrl PHOTO: fileUrl
@ -723,5 +1056,9 @@
</script> </script>
<style scoped> <style scoped>
.tip {
color: red;
font-size: 12px;
margin-top: 5px;
}
</style> </style>

View File

@ -7,9 +7,7 @@
</template> </template>
<script> <script>
export default { export default {}
}
</script> </script>
<style scoped> <style scoped>

View File

@ -2,12 +2,12 @@
<view class="content"> <view class="content">
<view class="card"> <view class="card">
<u--form labelPosition="left" :model="form" :rules="rules" ref="form" labelWidth="auto"> <u--form labelPosition="left" :model="form" :rules="rules" ref="form" labelWidth="auto">
<u-form-item label="照片" prop="userPhoto" borderBottom required class="form-item-block"> <u-form-item label="照片" prop="userPhoto" borderBottom required labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.userPhoto" :maxCount="1" @afterRead="fnUserPhotoRead" <view class="mt-10 w100">
<u-upload :fileList="form.userPhoto" :maxCount="1" @afterRead="fnUserPhotoRead"
@delete="fnUserPhotoDelete" multiple previewFullImage></u-upload> @delete="fnUserPhotoDelete" multiple previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
<u-form-item label="单位名称" prop="NAME" borderBottom required> <u-form-item label="单位名称" prop="NAME" borderBottom required>
<u--input v-model="RELEVANT_UNIT_NAME" :disabled="true" border="none" inputAlign="right"></u--input> <u--input v-model="RELEVANT_UNIT_NAME" :disabled="true" border="none" inputAlign="right"></u--input>
</u-form-item> </u-form-item>
@ -34,9 +34,14 @@
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item label="身份证照片(录入身份证正、反彩色照片)" prop="userCardIDFileList" borderBottom required <u-form-item label="身份证照片(录入身份证正、反彩色照片)" prop="userCardIDFileList" borderBottom required
class="form-item-block"> labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.userCardIDFileList" @afterRead="fnUserCardIDAttachmentsRead" <view class="mt-10 w100">
@delete="fnInsuranceAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload> <u-upload :fileList="form.userCardIDFileList" @afterRead="fnUserCardIDAttachmentsRead"
@delete="fnUserCardIDAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload>
<view class="tip">
温馨提示用户需上传身份证正反面身份证照片数量需2才能进行人员培训
</view>
</view>
</u-form-item> </u-form-item>
<u-form-item label="民族" prop="NATIONALITY_NAME" borderBottom required @click="fnShowMizuOfEducation"> <u-form-item label="民族" prop="NATIONALITY_NAME" borderBottom required @click="fnShowMizuOfEducation">
@ -59,10 +64,10 @@
<u--input v-model="form.POLITICAL_TIME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.POLITICAL_TIME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="户口所在地" prop="HKLOCAL" borderBottom required class="form-item-block"> <u-form-item label="户口所在地" prop="HKLOCAL" borderBottom labelPosition="top" labelWidth="auto">
<u--textarea v-model="form.HKLOCAL" border="none" autoHeight></u--textarea> <u--textarea v-model="form.HKLOCAL" border="none" autoHeight></u--textarea>
</u-form-item> </u-form-item>
<u-form-item label="现住址" prop="ADDRESS" borderBottom required class="form-item-block"> <u-form-item label="现住址" prop="ADDRESS" borderBottom labelPosition="top" labelWidth="auto">
<u--textarea v-model="form.ADDRESS" border="none" autoHeight></u--textarea> <u--textarea v-model="form.ADDRESS" border="none" autoHeight></u--textarea>
</u-form-item> </u-form-item>
<u-form-item label="联系电话" prop="PHONE" borderBottom required> <u-form-item label="联系电话" prop="PHONE" borderBottom required>
@ -78,22 +83,22 @@
<!-- &lt;!&ndash; 20230612改成输入框 &ndash;&gt;--> <!-- &lt;!&ndash; 20230612改成输入框 &ndash;&gt;-->
<!-- <u&#45;&#45;input v-model="form.PERSON_WORK_TYPE" border="none" disabledColor="#ffffff" inputAlign="right"></u&#45;&#45;input>--> <!-- <u&#45;&#45;input v-model="form.PERSON_WORK_TYPE" border="none" disabledColor="#ffffff" inputAlign="right"></u&#45;&#45;input>-->
<!-- </u-form-item>--> <!-- </u-form-item>-->
<u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required <!-- <u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required-->
@click="fnShowEnterpriseStartingDateOfEmployment"> <!-- @click="fnShowEnterpriseStartingDateOfEmployment">-->
<u--input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<!-- @click="fnShowPost" --> <!-- @click="fnShowPost" -->
<u-form-item label="岗位名称" prop="POST_ID" borderBottom required> <u-form-item label="岗位名称" prop="POST_ID" borderBottom required>
<!-- 20230612改成输入框 --> <!-- 20230612改成输入框 -->
<u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right"> <u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right">
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required <!-- <u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required-->
@click="fnShowPostStartingDateOfEmployment"> <!-- @click="fnShowPostStartingDateOfEmployment">-->
<u--input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否缴纳社保" prop="IS_SOCIAL_NAME" borderBottom required <u-form-item label="是否缴纳社保" prop="IS_SOCIAL_NAME" borderBottom required
@click="fnShowIsSocial"> @click="fnShowIsSocial">
<u--input v-model="form.IS_SOCIAL_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_SOCIAL_NAME" border="none" disabled disabledColor="#ffffff"
@ -102,9 +107,17 @@
<u-form-item label="社会保障号码" prop="SOCIAL_NUMBER" borderBottom required v-if="form.IS_SOCIAL==='1'"> <u-form-item label="社会保障号码" prop="SOCIAL_NUMBER" borderBottom required v-if="form.IS_SOCIAL==='1'">
<u--input v-model="form.SOCIAL_NUMBER" border="none" inputAlign="right"></u--input> <u--input v-model="form.SOCIAL_NUMBER" border="none" inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="社保卡照片" prop="socialFileList" borderBottom required class="form-item-block" v-if="form.IS_SOCIAL==='1'" > <u-form-item label="社保卡照片" prop="socialFileList" borderBottom required labelPosition="top"
<u-upload class="mt-10" :fileList="form.socialFileList" @afterRead="fnSocialAttachmentsRead" labelWidth="auto" v-if="form.IS_SOCIAL==='1'">
<view class="mt-10 w100">
<u-upload :fileList="form.socialFileList" @afterRead="fnSocialAttachmentsRead"
@delete="fnSocialAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload> @delete="fnSocialAttachmentsDelete" multiple :maxCount="2" previewFullImage></u-upload>
</view>
</u-form-item>
<u-form-item label="是否缴纳保险" prop="IS_BF_NAME" borderBottom required
@click="fnShowInjuryInsurance">
<u--input v-model="form.IS_BF_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required <u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required
@click="fnShowLaborContract"> @click="fnShowLaborContract">
@ -112,10 +125,12 @@
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="劳动合同附件" prop="contractFile" borderBottom required v-if="form.IS_SIGN_LABOR==='1'" <u-form-item label="劳动合同附件" prop="contractFile" borderBottom required v-if="form.IS_SIGN_LABOR==='1'"
class="form-item-block"> labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.contractFile" <view class="mt-10 w100">
<u-upload :fileList="form.contractFile"
@afterRead="fnAttachmentToLaborContractAfterRead" @delete="fnAttachmentToLaborContractDelete" @afterRead="fnAttachmentToLaborContractAfterRead" @delete="fnAttachmentToLaborContractDelete"
multiple :maxCount="4" previewFullImage></u-upload> multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
<u-form-item label="是否按期缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required <u-form-item label="是否按期缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required
@click="fnShowEmploymentInjuryInsurance"> @click="fnShowEmploymentInjuryInsurance">
@ -128,10 +143,12 @@
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="上传工伤保险凭证" prop="injuriesPayTiemFile" borderBottom required <u-form-item label="上传工伤保险凭证" prop="injuriesPayTiemFile" borderBottom required
v-if="form.IS_INJURIES_PAY==='1'" class="form-item-block"> v-if="form.IS_INJURIES_PAY==='1'" labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.injuriesPayTiemFile" <view class="mt-10 w100">
<u-upload :fileList="form.injuriesPayTiemFile"
@afterRead="fnInjuriesPayTiemAttachmentsAfterRead" @delete="fnInjuriesPayTiemAttachmentsDelete" @afterRead="fnInjuriesPayTiemAttachmentsAfterRead" @delete="fnInjuriesPayTiemAttachmentsDelete"
multiple :maxCount="4" previewFullImage></u-upload> multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
@ -144,15 +161,25 @@
<u--input v-model="form.ISPAY_NUMBER" border="none" inputAlign="right"></u--input> <u--input v-model="form.ISPAY_NUMBER" border="none" inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="保险附件" prop="insuranceFile" borderBottom required v-if="form.ISPAY==='1'" <u-form-item label="保险附件" prop="insuranceFile" borderBottom required v-if="form.ISPAY==='1'"
class="form-item-block"> labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.insuranceFile" @afterRead="fnInsuranceAttachmentsAfterRead2" <view class="mt-10 w100">
<u-upload :fileList="form.insuranceFile" @afterRead="fnInsuranceAttachmentsAfterRead2"
@delete="fnInsuranceAttachmentsDelete" multiple :maxCount="4" previewFullImage></u-upload> @delete="fnInsuranceAttachmentsDelete" multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
<u-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE_NAME" borderBottom required <u-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE_NAME" borderBottom required
@click="fnShowSafetyTraining"> @click="fnShowSafetyTraining">
<u--input v-model="form.IS_LEVEL_THREE_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_LEVEL_THREE_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<u-form-item label="三级安全培训图片" prop="safetytraining" borderBottom required
v-if="form.IS_LEVEL_THREE==='1'"
labelPosition="top" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.safetytraining" @afterRead="fnSafetyTrainingAfterRead2"
@delete="fnSafetyTrainingAttachmentsDelete" multiple :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item>
<!-- <u-form-item label="安全告知培训是否合格" prop="IS_SAFETY_TELL_NAME" borderBottom required <!-- <u-form-item label="安全告知培训是否合格" prop="IS_SAFETY_TELL_NAME" borderBottom required
@click="fnShowAdmissionSafetyNotification"> @click="fnShowAdmissionSafetyNotification">
<u--input v-model="form.IS_SAFETY_TELL_NAME" border="none" disabled <u--input v-model="form.IS_SAFETY_TELL_NAME" border="none" disabled
@ -163,19 +190,20 @@
@click="fnShowSafetyTimeTraining"> @click="fnShowSafetyTimeTraining">
<u--input v-model="form.IS_SAFETY_TIME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input> <u--input v-model="form.IS_SAFETY_TIME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input>
</u-form-item> --> </u-form-item> -->
<u-form-item label="身体状况是否适应本岗位工作" prop="IS_BODY_ADAPT_NAME" borderBottom required <!-- <u-form-item label="身体状况是否适应本岗位工作" prop="IS_BODY_ADAPT_NAME" borderBottom required-->
@click="fnShowAdaptToTheJobPosition"> <!-- @click="fnShowAdaptToTheJobPosition">-->
<u--input v-model="form.IS_BODY_ADAPT_NAME" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.IS_BODY_ADAPT_NAME" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否特殊工种" prop="IS_SPECIAL_JOB_NAME" borderBottom required <!-- <u-form-item label="是否特殊工种" prop="IS_SPECIAL_JOB_NAME" borderBottom required-->
@click="fnShowSpecialTypeOfWork"> <!-- @click="fnShowSpecialTypeOfWork">-->
<u--input v-model="form.IS_SPECIAL_JOB_NAME" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.IS_SPECIAL_JOB_NAME" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否流动人员" prop="ISFLOW_NAME" borderBottom required <u-form-item label="是否流动人员" prop="ISFLOW_NAME" borderBottom required
@click="fnShowFloatingPersonnel"> @click="fnShowFloatingPersonnel">
<u--input v-model="form.ISFLOW_NAME" border="none" disabled disabledColor="#ffffff" inputAlign="right"></u--input> <u--input v-model="form.ISFLOW_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input>
</u-form-item> </u-form-item>
</u--form> </u--form>
<u-picker :show="showDegreeOfEducation" :columns="degreeOfEducationColumns" keyName="NAME" <u-picker :show="showDegreeOfEducation" :columns="degreeOfEducationColumns" keyName="NAME"
@ -194,6 +222,9 @@
<u-picker :show="showLaborContract" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name" <u-picker :show="showLaborContract" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" keyName="name"
@confirm="fnLaborContractConfirm" @cancel="fnShowLaborContract"></u-picker> @confirm="fnLaborContractConfirm" @cancel="fnShowLaborContract"></u-picker>
<u-picker :show="showInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]"
keyName="name" @confirm="fnEInsuranceConfirm" @cancel="fnShowEmploymentInjuryInsurance">
</u-picker>
<u-picker :show="showEmploymentInjuryInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" <u-picker :show="showEmploymentInjuryInsurance" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]"
keyName="name" @confirm="fnEmploymentInjuryInsuranceConfirm" @cancel="fnShowEmploymentInjuryInsurance"> keyName="name" @confirm="fnEmploymentInjuryInsuranceConfirm" @cancel="fnShowEmploymentInjuryInsurance">
</u-picker> </u-picker>
@ -227,12 +258,15 @@
@confirm="fnShowPoliticalStatusConfirm" @cancel="fnShowPoliticalStatusEducation"></u-picker> @confirm="fnShowPoliticalStatusConfirm" @cancel="fnShowPoliticalStatusEducation"></u-picker>
<!-- 入党时间 --> <!-- 入党时间 -->
<u-datetime-picker :show="showPoliticalTime" v-model="POLITICAL_TIME" mode="date" <u-datetime-picker :show="showPoliticalTime" v-model="POLITICAL_TIME" mode="date"
@confirm="fnShowPoliticalTimeConfirm" @cancel="fnShowPoliticalTimeEducation"></u-datetime-picker> @confirm="fnShowPoliticalTimeConfirm"
@cancel="fnShowPoliticalTimeEducation"></u-datetime-picker>
<!--工伤报销有效时间 --> <!--工伤报销有效时间 -->
<u-datetime-picker :show="showInjuriesPayTiem" v-model="IS_INJURIES_PAY_TIME" mode="date" <u-datetime-picker :show="showInjuriesPayTiem" v-model="IS_INJURIES_PAY_TIME" mode="date"
@confirm="fnShowInjuriesPayTiemConfirm" @cancel="fnShowInjuriesPayTiemEducation"></u-datetime-picker> @confirm="fnShowInjuriesPayTiemConfirm"
<u-button type="primary" text="保 存" class="mt-10" @click="$u.debounce(fnSubmit, 1000,true)"></u-button> @cancel="fnShowInjuriesPayTiemEducation"></u-datetime-picker>
<view class="mt-10">
<u-button type="primary" text="保 存" @click="$u.debounce(fnSubmit, 1000,true)"></u-button>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -248,7 +282,8 @@
setRelatedPartyRegistration, setRelatedPartyRegistration,
setUploadAttachments, setUploadAttachments,
getEMPLOYMENTAPPLYMANAGEMENTID, getEMPLOYMENTAPPLYMANAGEMENTID,
getEmployedBy getEmployedBy,
removeUploadAttachments
} from "../../api"; } from "../../api";
export default { export default {
@ -282,6 +317,7 @@
showIsSocial: false, showIsSocial: false,
showLaborContract: false, showLaborContract: false,
showEmploymentInjuryInsurance: false, showEmploymentInjuryInsurance: false,
showInsurance: false,
showEmploymentPayInsurance: false, showEmploymentPayInsurance: false,
showSafetyTraining: false, showSafetyTraining: false,
showAdmissionSafetyNotification: false, showAdmissionSafetyNotification: false,
@ -324,15 +360,19 @@
contractFile: [], contractFile: [],
ISPAY: '', ISPAY: '',
ISPAY_NAME: '', ISPAY_NAME: '',
imgDelKey: '',
IS_BF: '',
IS_BF_NAME: '',
IS_INJURIES_PAY: '', IS_INJURIES_PAY: '',
IS_INJURIES_PAY_NAME: '', IS_INJURIES_PAY_NAME: '',
safetytraining: [],
insuranceFile: [], insuranceFile: [],
IS_LEVEL_THREE: '', IS_LEVEL_THREE: '',
IS_LEVEL_THREE_NAME: '', IS_LEVEL_THREE_NAME: '',
IS_SAFETY_TELL: '', IS_SAFETY_TELL: '',
IS_SAFETY_TELL_NAME: '', IS_SAFETY_TELL_NAME: '',
IS_BODY_ADAPT: '', IS_BODY_ADAPT: '',
IS_BODY_ADAPT_NAME: '', // IS_BODY_ADAPT_NAME: '',
IS_SPECIAL_JOB: '', IS_SPECIAL_JOB: '',
IS_SPECIAL_JOB_NAME: '', IS_SPECIAL_JOB_NAME: '',
ISFLOW: '', ISFLOW: '',
@ -389,16 +429,16 @@
message: '请上传身份证照片', message: '请上传身份证照片',
trigger: ['change'] trigger: ['change']
}, },
HKLOCAL: { // HKLOCAL: {
required: true, // required: true,
message: '请填写户口所在地', // message: '',
trigger: ['blur'] // trigger: ['blur']
}, // },
ADDRESS: { // ADDRESS: {
required: true, // required: true,
message: '请填写现住址', // message: '',
trigger: ['blur'] // trigger: ['blur']
}, // },
PHONE: [{ PHONE: [{
required: true, required: true,
message: '请填写联系电话', message: '请填写联系电话',
@ -442,21 +482,21 @@
// message: '', // message: '',
// trigger: ['change'] // trigger: ['change']
// }, // },
CORP_START_DATE: { // CORP_START_DATE: {
required: true, // required: true,
message: '请选择本企业从业开始日期', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
POST_ID: { POST_ID: {
required: true, required: true,
message: '请选择岗位名称', message: '请选择岗位名称',
trigger: ['blur'] trigger: ['blur']
}, },
ENTRY_DATE: { // ENTRY_DATE: {
required: true, // required: true,
message: '请选择本岗位从业开始日期', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
SOCIAL_NUMBER: { SOCIAL_NUMBER: {
required: true, required: true,
message: '请填写社会保障号码', message: '请填写社会保障号码',
@ -484,7 +524,11 @@
message: '请上传劳动合同附件', message: '请上传劳动合同附件',
trigger: ['change'] trigger: ['change']
}, },
IS_INJURIES_PAY_NAME: { IS_BF_NAME: {
required: true,
message: '请选择是否缴纳保险',
trigger: ['change']
}, IS_INJURIES_PAY_NAME: {
required: true, required: true,
message: '请选择是否按期缴纳工伤保险', message: '请选择是否按期缴纳工伤保险',
trigger: ['change'] trigger: ['change']
@ -511,6 +555,12 @@
message: '请上传保险附件', message: '请上传保险附件',
trigger: ['change'] trigger: ['change']
}, },
safetytraining: {
type: 'array',
required: true,
message: '请上传三方安全培训图片',
trigger: ['change']
},
IS_LEVEL_THREE_NAME: { IS_LEVEL_THREE_NAME: {
required: true, required: true,
message: '请选择是否参加三级安全培训', message: '请选择是否参加三级安全培训',
@ -526,16 +576,16 @@
message: '请选择安全告知培训合格日期', message: '请选择安全告知培训合格日期',
trigger: ['change'] trigger: ['change']
}, },
IS_BODY_ADAPT_NAME: { // IS_BODY_ADAPT_NAME: {
required: true, // required: true,
message: '请选择身体状况是否适应本岗位工作', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
IS_SPECIAL_JOB_NAME: { // IS_SPECIAL_JOB_NAME: {
required: true, // required: true,
message: '请选择是否特殊工种', // message: '',
trigger: ['change'] // trigger: ['change']
}, // },
ISFLOW_NAME: { ISFLOW_NAME: {
required: true, required: true,
message: '请选择是否流动人员', message: '请选择是否流动人员',
@ -588,11 +638,21 @@
} else if (this.form.IS_SOCIAL === '1') { } else if (this.form.IS_SOCIAL === '1') {
this.form.IS_SOCIAL_NAME = '是' this.form.IS_SOCIAL_NAME = '是'
} }
if (this.form.MARITALSTATUS === '0') {
this.form.MARITALSTATUS_NAME = '未婚'
} else if (this.form.MARITALSTATUS === '1') {
this.form.MARITALSTATUS_NAME = '已婚'
}
if (this.form.IS_SIGN_LABOR === '0') { if (this.form.IS_SIGN_LABOR === '0') {
this.form.IS_SIGN_LABOR_NAME = '否' this.form.IS_SIGN_LABOR_NAME = '否'
} else if (this.form.IS_SIGN_LABOR === '1') { } else if (this.form.IS_SIGN_LABOR === '1') {
this.form.IS_SIGN_LABOR_NAME = '是' this.form.IS_SIGN_LABOR_NAME = '是'
} }
if (this.form.IS_BF === '0') {
this.form.IS_BF_NAME = '否'
} else if (this.form.IS_BF === '1') {
this.form.IS_BF_NAME = '是'
}
if (this.form.IS_INJURIES_PAY === '0') { if (this.form.IS_INJURIES_PAY === '0') {
this.form.IS_INJURIES_PAY_NAME = '否' this.form.IS_INJURIES_PAY_NAME = '否'
} else if (this.form.IS_INJURIES_PAY === '1') { } else if (this.form.IS_INJURIES_PAY === '1') {
@ -608,32 +668,35 @@
} else if (this.form.IS_SAFETY_TELL === '1') { } else if (this.form.IS_SAFETY_TELL === '1') {
this.form.IS_SAFETY_TELL_NAME = '是' this.form.IS_SAFETY_TELL_NAME = '是'
} }
if (this.form.IS_BODY_ADAPT === '0') { // if (this.form.IS_BODY_ADAPT === '0') {
this.form.IS_BODY_ADAPT_NAME = '否' // this.form.IS_BODY_ADAPT_NAME = ''
} else if (this.form.IS_BODY_ADAPT === '1') { // } else if (this.form.IS_BODY_ADAPT === '1') {
this.form.IS_BODY_ADAPT_NAME = '是' // this.form.IS_BODY_ADAPT_NAME = ''
} // }
if (this.form.IS_SPECIAL_JOB === '0') { // if (this.form.IS_SPECIAL_JOB === '0') {
this.form.IS_SPECIAL_JOB_NAME = '否' // this.form.IS_SPECIAL_JOB_NAME = ''
} else if (this.form.IS_SPECIAL_JOB === '1') { // } else if (this.form.IS_SPECIAL_JOB === '1') {
this.form.IS_SPECIAL_JOB_NAME = '是' // this.form.IS_SPECIAL_JOB_NAME = ''
} // }
if (this.form.ISFLOW === '0') { if (this.form.ISFLOW === '0') {
this.form.ISFLOW_NAME = '否' this.form.ISFLOW_NAME = '否'
} else if (this.form.ISFLOW === '1') { } else if (this.form.ISFLOW === '1') {
this.form.ISFLOW_NAME = '是' this.form.ISFLOW_NAME = '是'
} }
this.$set(this.form, 'userPhoto', [{ this.$set(this.form, 'userPhoto', [{
url: this.$filePath + resData.userPhotoFile[0].FILEPATH url: this.$filePath + resData.userPhotoFile[0].FILEPATH,
id: resData.userPhotoFile[0].IMGFILES_ID
}]) }])
for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) { for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) {
let ogj = {} let ogj = {}
ogj.url = this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH ogj.url = this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH
ogj.id = resData.userCardIDPhotoFile[i].IMGFILES_ID
this.form.userCardIDFileList.push(ogj) this.form.userCardIDFileList.push(ogj)
} }
for (let i = 0; i < resData.socialPhotoFile.length; i++) { for (let i = 0; i < resData.socialPhotoFile.length; i++) {
let ogj = {} let ogj = {}
ogj.url = this.$filePath + resData.socialPhotoFile[i].FILEPATH ogj.url = this.$filePath + resData.socialPhotoFile[i].FILEPATH
ogj.id = resData.socialPhotoFile[i].IMGFILES_ID
this.form.socialFileList.push(ogj) this.form.socialFileList.push(ogj)
} }
this.getDataCertificateInformation() this.getDataCertificateInformation()
@ -643,14 +706,14 @@
showCount: 9999, showCount: 9999,
currentPage: 1, currentPage: 1,
}); });
this.certificateInformationLength = resData.varList.length // this.certificateInformationLength = resData.varList.length
if (resData.varList.length > 0) { // if (resData.varList.length > 0) {
this.form.IS_SPECIAL_JOB = '1' // this.form.IS_SPECIAL_JOB = '1'
this.form.IS_SPECIAL_JOB_NAME = '是' // this.form.IS_SPECIAL_JOB_NAME = ''
} else { // } else {
this.form.IS_SPECIAL_JOB = '0' // this.form.IS_SPECIAL_JOB = '0'
this.form.IS_SPECIAL_JOB_NAME = '否' // this.form.IS_SPECIAL_JOB_NAME = ''
} // }
}, },
async fnIDCardDeduplication(CARD_ID = this.form.CARD_ID) { async fnIDCardDeduplication(CARD_ID = this.form.CARD_ID) {
let resData = await getIDCardDeduplication({ let resData = await getIDCardDeduplication({
@ -782,9 +845,17 @@
fnShowEmploymentInjuryInsurance() { fnShowEmploymentInjuryInsurance() {
this.showEmploymentInjuryInsurance = !this.showEmploymentInjuryInsurance this.showEmploymentInjuryInsurance = !this.showEmploymentInjuryInsurance
}, },
fnShowInjuryInsurance() {
this.showInsurance = !this.showInsurance
},
fnShowEmploymentPayInsurance() { fnShowEmploymentPayInsurance() {
this.showEmploymentPayInsurance = !this.showEmploymentPayInsurance this.showEmploymentPayInsurance = !this.showEmploymentPayInsurance
}, },
fnEInsuranceConfirm(e) {
this.form.IS_BF = e.value[0].id
this.form.IS_BF_NAME = e.value[0].name
this.fnShowInjuryInsurance()
},
fnEmploymentInjuryInsuranceConfirm(e) { fnEmploymentInjuryInsuranceConfirm(e) {
this.form.IS_INJURIES_PAY = e.value[0].id this.form.IS_INJURIES_PAY = e.value[0].id
this.form.IS_INJURIES_PAY_NAME = e.value[0].name this.form.IS_INJURIES_PAY_NAME = e.value[0].name
@ -802,6 +873,8 @@
} }
}, },
fnUserPhotoDelete(event) { fnUserPhotoDelete(event) {
var id = this.form.userPhoto[event.index].id
this.form.imgDelKey = this.form.imgDelKey + id + ','
this.form.userPhoto.splice(event.index, 1) this.form.userPhoto.splice(event.index, 1)
}, },
fnAttachmentToLaborContractAfterRead(event) { fnAttachmentToLaborContractAfterRead(event) {
@ -812,6 +885,14 @@
fnAttachmentToLaborContractDelete(event) { fnAttachmentToLaborContractDelete(event) {
this.form.contractFile.splice(event.index, 1) this.form.contractFile.splice(event.index, 1)
}, },
fnSafetyTrainingAfterRead2(event) {
for (let i = 0; i < event.file.length; i++) {
this.form.safetytraining.push(event.file[i])
}
},
fnSafetyTrainingAttachmentsDelete(event) {
this.form.safetytraining.splice(event.index, 1)
},
fnInsuranceAttachmentsAfterRead2(event) { fnInsuranceAttachmentsAfterRead2(event) {
for (let i = 0; i < event.file.length; i++) { for (let i = 0; i < event.file.length; i++) {
this.form.insuranceFile.push(event.file[i]) this.form.insuranceFile.push(event.file[i])
@ -861,6 +942,8 @@
} }
}, },
fnUserCardIDAttachmentsDelete(event) { fnUserCardIDAttachmentsDelete(event) {
var id = this.form.userCardIDFileList[event.index].id
this.form.imgDelKey = this.form.imgDelKey + id + ','
this.form.userCardIDFileList.splice(event.index, 1) this.form.userCardIDFileList.splice(event.index, 1)
}, },
// POLITICAL_STATUS // POLITICAL_STATUS
@ -888,6 +971,8 @@
} }
}, },
fnSocialAttachmentsDelete(event) { fnSocialAttachmentsDelete(event) {
var id = this.form.socialFileList[event.index].id
this.form.imgDelKey = this.form.imgDelKey + id + ','
this.form.socialFileList.splice(event.index, 1) this.form.socialFileList.splice(event.index, 1)
}, },
@ -909,33 +994,33 @@
fnInjuriesPayTiemAttachmentsDelete(event) { fnInjuriesPayTiemAttachmentsDelete(event) {
this.form.injuriesPayTiemFile.splice(event.index, 1) this.form.injuriesPayTiemFile.splice(event.index, 1)
}, },
fnAdaptToTheJobPositionConfirm(e) { // fnAdaptToTheJobPositionConfirm(e) {
this.form.IS_BODY_ADAPT = e.value[0].id // this.form.IS_BODY_ADAPT = e.value[0].id
this.form.IS_BODY_ADAPT_NAME = e.value[0].name // this.form.IS_BODY_ADAPT_NAME = e.value[0].name
this.fnShowAdaptToTheJobPosition() // this.fnShowAdaptToTheJobPosition()
}, // },
fnShowSpecialTypeOfWork() { fnShowSpecialTypeOfWork() {
this.showSpecialTypeOfWork = !this.showSpecialTypeOfWork this.showSpecialTypeOfWork = !this.showSpecialTypeOfWork
}, },
fnSpecialTypeOfWorkConfirm(e) { // fnSpecialTypeOfWorkConfirm(e) {
this.form.IS_SPECIAL_JOB = e.value[0].id // this.form.IS_SPECIAL_JOB = e.value[0].id
this.form.IS_SPECIAL_JOB_NAME = e.value[0].name // this.form.IS_SPECIAL_JOB_NAME = e.value[0].name
this.fnShowSpecialTypeOfWork() // this.fnShowSpecialTypeOfWork()
if (e.value[0].id === '1' && this.certificateInformationLength === 0) { // if (e.value[0].id === '1' && this.certificateInformationLength === 0) {
uni.showModal({ // uni.showModal({
title: '提示', // title: '',
content: '当前没有证书信息,请完善证书信息', // content: '',
showCancel: false, // showCancel: false,
success: (res) => { // success: (res) => {
if (res.confirm) { // if (res.confirm) {
uni.$u.route({ // uni.$u.route({
url: '/pages/certificate_information/index', // url: '/pages/certificate_information/index',
}) // })
} // }
} // }
}) // })
} // }
}, // },
fnShowFloatingPersonnel() { fnShowFloatingPersonnel() {
this.showFloatingPersonnel = !this.showFloatingPersonnel this.showFloatingPersonnel = !this.showFloatingPersonnel
}, },
@ -946,6 +1031,10 @@
}, },
fnSubmit() { fnSubmit() {
let fileUrl = '' let fileUrl = ''
let imgDelKey = String(this.form.imgDelKey)
if (imgDelKey.length > 0) {
this.form.imgDelKey = imgDelKey.replace(/undefined,/g, '').slice(0, -1)
}
this.$refs.form.validate().then(async () => { this.$refs.form.validate().then(async () => {
if (await this.fnIDCardDeduplication()) return if (await this.fnIDCardDeduplication()) return
if (await this.fnPhoneNumberDeduplication()) return if (await this.fnPhoneNumberDeduplication()) return
@ -974,6 +1063,8 @@
uni.$u.toast('工商或社保全无人员,不可进入本系统相关方人员管理!'); uni.$u.toast('工商或社保全无人员,不可进入本系统相关方人员管理!');
return; return;
} }
//
//
for (let i = 0; i < this.form.userPhoto.length; i++) { for (let i = 0; i < this.form.userPhoto.length; i++) {
let resData = await setUploadAttachments({ let resData = await setUploadAttachments({
filePath: this.form.userPhoto[i].url, filePath: this.form.userPhoto[i].url,
@ -997,6 +1088,17 @@
} }
}) })
} }
for (let i = 0; i < this.form.safetytraining.length; i++) {
await setUploadAttachments({
filePath: this.form.safetytraining[i].url,
name: 'files',
formData: {
TYPE: '19',
FOREIGN_KEY: this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.CORPINFO_ID,
}
})
}
for (let i = 0; i < this.form.insuranceFile.length; i++) { for (let i = 0; i < this.form.insuranceFile.length; i++) {
await setUploadAttachments({ await setUploadAttachments({
filePath: this.form.insuranceFile[i].url, filePath: this.form.insuranceFile[i].url,
@ -1008,6 +1110,7 @@
} }
}) })
} }
//
for (let i = 0; i < this.form.userCardIDFileList for (let i = 0; i < this.form.userCardIDFileList
.length; i++) { // 14 15 16 .length; i++) { // 14 15 16
await setUploadAttachments({ await setUploadAttachments({
@ -1048,6 +1151,7 @@
CORPINFO_ID: this.CORPINFO_ID, CORPINFO_ID: this.CORPINFO_ID,
RELEVANT_UNIT_NAME: this.RELEVANT_UNIT_NAME, RELEVANT_UNIT_NAME: this.RELEVANT_UNIT_NAME,
PHOTO: fileUrl, PHOTO: fileUrl,
WORK_SIGN: this.form.IS_SIGN_LABOR,
}) })
uni.$u.toast('保存成功,请等待相关方审核') uni.$u.toast('保存成功,请等待相关方审核')
setTimeout(() => { setTimeout(() => {
@ -1063,5 +1167,9 @@
</script> </script>
<style scoped> <style scoped>
.tip {
color: red;
font-size: 12px;
margin-top: 5px;
}
</style> </style>

View File

@ -6,27 +6,30 @@
<u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right"> <u--input v-model="form.POST_ID" border="none" disabledColor="#ffffff" inputAlign="right">
</u--input> </u--input>
</u-form-item> </u-form-item>
<u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required <!-- <u-form-item label="本企业从业开始日期" prop="CORP_START_DATE" borderBottom required-->
@click="fnShowDatePicke('CORP_START_DATE')"> <!-- @click="fnShowDatePicke('CORP_START_DATE')">-->
<u--input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.CORP_START_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required <!-- <u-form-item label="本岗位从业开始日期" prop="ENTRY_DATE" borderBottom required-->
@click="fnShowDatePicke('ENTRY_DATE')"> <!-- @click="fnShowDatePicke('ENTRY_DATE')">-->
<u--input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff" <!-- <u&#45;&#45;input v-model="form.ENTRY_DATE" border="none" disabled disabledColor="#ffffff"-->
inputAlign="right"></u--input> <!-- inputAlign="right"></u&#45;&#45;input>-->
</u-form-item> <!-- </u-form-item>-->
<u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required <u-form-item label="是否签署劳动合同" prop="IS_SIGN_LABOR_NAME" borderBottom required
@click="fnShowLaborContract"> @click="fnShowLaborContract">
<u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff" <u--input v-model="form.IS_SIGN_LABOR_NAME" border="none" disabled disabledColor="#ffffff"
inputAlign="right"></u--input> inputAlign="right"></u--input>
</u-form-item> </u-form-item>
<view v-if="form.IS_SIGN_LABOR==='1'"> <view v-if="form.IS_SIGN_LABOR==='1'">
<u-form-item label="劳动合同附件" prop="contractFile" borderBottom required class="form-item-block"> <u-form-item label="劳动合同附件" prop="contractFile" borderBottom required labelPosition="top"
<u-upload class="mt-10" :fileList="form.contractFile" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.contractFile"
@afterRead="fnAttachmentToLaborContractAfterRead" @afterRead="fnAttachmentToLaborContractAfterRead"
@delete="fnAttachmentToLaborContractDelete" multiple :maxCount="4" previewFullImage> @delete="fnAttachmentToLaborContractDelete" multiple :maxCount="4" previewFullImage>
</u-upload> </u-upload>
</view>
</u-form-item> </u-form-item>
</view> </view>
<u-form-item label="是否缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required <u-form-item label="是否缴纳工伤保险" prop="IS_INJURIES_PAY_NAME" borderBottom required
@ -43,11 +46,13 @@
</view> </view>
<view v-if="form.IS_INJURIES_PAY==='1'"> <view v-if="form.IS_INJURIES_PAY==='1'">
<u-form-item label="工伤保险凭证" prop="workInsurancePhotoFile" borderBottom required <u-form-item label="工伤保险凭证" prop="workInsurancePhotoFile" borderBottom required
class="form-item-block"> labelPosition="top" labelWidth="auto">
<u-upload class="mt-10" :fileList="form.workInsurancePhotoFile" <view class="mt-10 w100">
<u-upload :fileList="form.workInsurancePhotoFile"
@afterRead="fnWorkInsuranceRead" @delete="fnWorkInsuranceDelete" multiple @afterRead="fnWorkInsuranceRead" @delete="fnWorkInsuranceDelete" multiple
:maxCount="4" previewFullImage> :maxCount="4" previewFullImage>
</u-upload> </u-upload>
</view>
</u-form-item> </u-form-item>
</view> </view>
<u-form-item label="是否缴纳商业保险" prop="ISPAY_NAME" borderBottom required <u-form-item label="是否缴纳商业保险" prop="ISPAY_NAME" borderBottom required
@ -60,10 +65,13 @@
</u--input> </u--input>
</u-form-item> </u-form-item>
<view v-if="form.ISPAY==='1'"> <view v-if="form.ISPAY==='1'">
<u-form-item label="保险附件" prop="insuranceFile" borderBottom required class="form-item-block"> <u-form-item label="保险附件" prop="insuranceFile" borderBottom required labelPosition="top"
<u-upload class="mt-10" :fileList="form.insuranceFile" labelWidth="auto">
<view class="mt-10 w100">
<u-upload :fileList="form.insuranceFile"
@afterRead="fnInsuranceAttachmentsAfterRead" @delete="fnInsuranceDelete" multiple @afterRead="fnInsuranceAttachmentsAfterRead" @delete="fnInsuranceDelete" multiple
:maxCount="4" previewFullImage></u-upload> :maxCount="4" previewFullImage></u-upload>
</view>
</u-form-item> </u-form-item>
</view> </view>
<u-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE_NAME" borderBottom required <u-form-item label="是否参加三级安全培训" prop="IS_LEVEL_THREE_NAME" borderBottom required
@ -118,7 +126,9 @@
keyName="name" @confirm="fnSpecialTypeOfWorkConfirm" @cancel="fnShowSpecialTypeOfWork"></u-picker> keyName="name" @confirm="fnSpecialTypeOfWorkConfirm" @cancel="fnShowSpecialTypeOfWork"></u-picker>
<u-picker :show="showFloatingPersonnel" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]" <u-picker :show="showFloatingPersonnel" :columns="[[{name: '是', id: '1'}, {name: '否', id: '0'}]]"
keyName="name" @confirm="fnFloatingPersonnelConfirm" @cancel="fnShowFloatingPersonnel"></u-picker> keyName="name" @confirm="fnFloatingPersonnelConfirm" @cancel="fnShowFloatingPersonnel"></u-picker>
<u-button type="primary" text="修 改" class="mt-10" @click="$u.debounce(fnSubmit, 1000,true)"></u-button> <view class="mt-10">
<u-button type="primary" text="修 改" @click="$u.debounce(fnSubmit, 1000,true)"></u-button>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -403,6 +413,11 @@
} else if (this.form.IS_SIGN_LABOR === '1') { } else if (this.form.IS_SIGN_LABOR === '1') {
this.form.IS_SIGN_LABOR_NAME = '是' this.form.IS_SIGN_LABOR_NAME = '是'
} }
if (this.form.MARITALSTATUS === '0') {
this.form.MARITALSTATUS_NAME = '未婚'
} else if (this.form.MARITALSTATUS === '1') {
this.form.MARITALSTATUS_NAME = '已婚'
}
if (this.form.IS_INJURIES_PAY === '0') { if (this.form.IS_INJURIES_PAY === '0') {
this.form.IS_INJURIES_PAY_NAME = '否' this.form.IS_INJURIES_PAY_NAME = '否'
} else if (this.form.IS_INJURIES_PAY === '1') { } else if (this.form.IS_INJURIES_PAY === '1') {
@ -626,7 +641,8 @@
duration: 2000 duration: 2000
}); });
this.form.contractFile.splice(event.index, 1) this.form.contractFile.splice(event.index, 1)
} else if (res.cancel) {} } else if (res.cancel) {
}
} }
}); });
}, },

View File

@ -4,12 +4,12 @@
<view class="card"> <view class="card">
<view class="text_content"> <view class="text_content">
<view class="title title_left">基础信息</view> <view class="title title_left">基础信息</view>
<view class="title_right" @click="fnGoEditUserInfo"></view> <!-- <view class="title_right" @click="fnGoEditUserInfo"></view>-->
</view> </view>
<u-cell-group> <u-cell-group>
<u-cell title="照片"> <u-cell title="照片">
<template #value> <template #value>
<u--image :src="info.userPhoto" shape="circle" width="100upx" height="100upx"></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>
@ -25,8 +25,8 @@
<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"
style="display: flex;justify-content: space-between"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(userCardIDPhotoFile)"></u--image> @click="fnPreview(userCardIDPhotoFile)"></u--image>
</view> </view>
</template> </template>
@ -45,15 +45,16 @@
<u-cell title="联系电话" :value="info.PHONE"></u-cell> <u-cell title="联系电话" :value="info.PHONE"></u-cell>
<u-cell title="婚姻状况" :value="info.MARITALSTATUS_NAME"></u-cell> <u-cell title="婚姻状况" :value="info.MARITALSTATUS_NAME"></u-cell>
<u-cell title="政治面貌" :value="info.POLITICAL_STATUS_NAME"></u-cell> <u-cell title="政治面貌" :value="info.POLITICAL_STATUS_NAME"></u-cell>
<u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间" :value="info.POLITICAL_TIME"></u-cell> <u-cell v-if="info.POLITICAL_STATUS == 'zhonggongdangyuan'" title="入党时间"
:value="info.POLITICAL_TIME"></u-cell>
<u-cell title="社会保障号" :value="info.SOCIAL_NUMBER"></u-cell> <u-cell title="社会保障号" :value="info.SOCIAL_NUMBER"></u-cell>
<u-cell title="社会保障卡照片"> <u-cell title="社会保障卡照片">
<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"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(socialPhotoFile)"></u--image> @click="fnPreview(socialPhotoFile)"></u--image>
</view> </view>
</template> </template>
@ -66,19 +67,20 @@
<view class="card"> <view class="card">
<view class="text_content"> <view class="text_content">
<view class="title title_left">企业就职信息</view> <view class="title title_left">企业就职信息</view>
<view v-if = "info.DEPART_STATE == '0'" class="title_right" @click="goEdit"></view> <!-- <view v-if = "info.DEPART_STATE == '0'" class="title_right" @click="goEdit"></view>-->
<view v-else class="title_right_red">已离职</view> <!-- <view v-else class="title_right_red">已离职</view>-->
<view class="title_right_red" v-if="info.DEPART_STATE != '0'"></view>
</view> </view>
<u-cell-group> <u-cell-group>
<u-cell title="岗位名称" :value="info.POST_ID"></u-cell> <u-cell title="岗位名称" :value="info.POST_ID"></u-cell>
<u-cell title="本企业从业开始日期" :value="info.CORP_START_DATE"></u-cell> <!-- <u-cell title="本企业从业开始日期" :value="info.CORP_START_DATE"></u-cell>-->
<u-cell title="本岗位从业开始日期" :value="info.ENTRY_DATE"></u-cell> <!-- <u-cell title="本岗位从业开始日期" :value="info.ENTRY_DATE"></u-cell>-->
<u-cell title="是否签署劳动合同" :value="info.IS_SIGN_LABOR == '0' ? '否' : '是'"></u-cell> <u-cell title="是否签署劳动合同" :value="info.IS_SIGN_LABOR == '0' ? '否' : '是'"></u-cell>
<u-cell title="劳动合同附件" v-show="info.IS_SIGN_LABOR === '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"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(contractFile)"></u--image> @click="fnPreview(contractFile)"></u--image>
</view> </view>
</template> </template>
@ -89,8 +91,8 @@
<u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY === '1'"> <u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY === '1'">
<template #value> <template #value>
<view v-for="(item,index) in workInsurancePhotoFile" :key="index" <view v-for="(item,index) in workInsurancePhotoFile" :key="index"
style="display: flex;justify-content: space-between"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(workInsurancePhotoFile)"></u--image> @click="fnPreview(workInsurancePhotoFile)"></u--image>
</view> </view>
</template> </template>
@ -100,18 +102,14 @@
<u-cell title="保险附件" v-show="info.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"> style="display: flex;justify-content: space-between;margin-left: 10rpx;">
<u--image :src="item" width="100upx" height="100upx" style="margin-left: 10upx;" <u--image :src="item" width="100rpx" height="100rpx"
@click="fnPreview(insuranceFile)"></u--image> @click="fnPreview(insuranceFile)"></u--image>
</view> </view>
</template> </template>
</u-cell> </u-cell>
<u-cell title="是否参加三级安全培训" :value="info.IS_LEVEL_THREE == '0' ? '否' : '是'"></u-cell> <u-cell title="是否参加三级安全培训" :value="info.IS_LEVEL_THREE == '0' ? '否' : '是'"></u-cell>
<!-- <u-cell title="是否开展入场安全告知" :value="info.IS_SAFETY_TELL == '0' ? '否' : '是'"></u-cell> -->
<u-cell title="身体状况是否适应本岗位工作" :value="info.IS_BODY_ADAPT == '0' ? '否' : '是'"></u-cell>
<u-cell title="是否特殊工种" :value="info.IS_SPECIAL_JOB == '0' ? '否' : '是'"></u-cell> <u-cell title="是否特殊工种" :value="info.IS_SPECIAL_JOB == '0' ? '否' : '是'"></u-cell>
<!-- <u-cell title="是否流动人员" :value="info.ISFLOW == '0' ? '否' : '是'"></u-cell> -->
<!-- <u-cell title="审核意见" v-show="info.AUDIT_REMARKS != ''" :value="info.AUDIT_REMARKS"></u-cell>-->
</u-cell-group> </u-cell-group>
</view> </view>
</view> </view>
@ -148,9 +146,9 @@
onLoad(query) { onLoad(query) {
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = query.EMPLOYMENT_APPLY_MANAGEMENT_ID this.EMPLOYMENT_APPLY_MANAGEMENT_ID = query.EMPLOYMENT_APPLY_MANAGEMENT_ID
this.CORPINFO_ID = query.CORPINFO_ID this.CORPINFO_ID = query.CORPINFO_ID
if (query.DEPART_STATE != '0') { // if (query.DEPART_STATE != '0') {
this.DEPART_STATE = query.DEPART_STATE // this.DEPART_STATE = query.DEPART_STATE
} // }
this.fnGetData() this.fnGetData()
}, },
computed: { computed: {
@ -164,16 +162,16 @@
url: '/pages/mine/information/update' url: '/pages/mine/information/update'
}) })
}, },
goEdit() { // goEdit() {
uni.$u.route({ // uni.$u.route({
url: '/pages/related_party_units/edit', // url: '/pages/related_party_units/edit',
params: { // params: {
EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID, // EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID,
CORPINFO_ID: this.CORPINFO_ID, // CORPINFO_ID: this.CORPINFO_ID,
DEPART_STATE: this.DEPART_STATE // DEPART_STATE: this.DEPART_STATE
} // }
}) // })
}, // },
reloadx() { reloadx() {
this.contractFile = [] this.contractFile = []
this.insuranceFile = [] this.insuranceFile = []
@ -217,6 +215,7 @@
} }
if (resData.userPhotoFile && resData.userPhotoFile.length > 0) { if (resData.userPhotoFile && resData.userPhotoFile.length > 0) {
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH) this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
console.log(this.info.userPhoto)
} }
}, },
@ -247,6 +246,7 @@
font-size: 30rpx; font-size: 30rpx;
margin-top: 5px; margin-top: 5px;
} }
.title_right_red { .title_right_red {
margin-left: auto; margin-left: auto;
color: red; color: red;

View File

@ -16,7 +16,8 @@
</view> </view>
<view class="flex-between mt-10 subtitle"> <view class="flex-between mt-10 subtitle">
<view></view> <view></view>
<u-button type="primary" text="查看" size="mini" class="bth-mini" @click="fnView(item.SERVICE_COMPANY_USER_MAP_ID)"></u-button> <u-button type="primary" text="查看" size="mini"
@click="fnView(item.SERVICE_COMPANY_USER_MAP_ID)"></u-button>
</view> </view>
</view> </view>
</u-list-item> </u-list-item>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -12,53 +12,9 @@
} }
} }
.wui_banner{ .wui_banner{
height: 507upx; height: 507rpx;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.wui-bar{
display: flex;
align-items: center;
min-height: 100upx;
justify-content: flex-end;
z-index: 9999;
position: absolute;
width: 100%;
.search-form{
background: rgba(255,255,255,0.2);
border-radius: 100upx;
flex: 1;
height: 60upx;
line-height: 60upx;
font-size: 24upx;
color: #333333;
display: flex;
align-items: center;
margin: 0 30upx;
padding: 0 30upx;
.cuIcon-search{
color: rgba(255,255,255,0.5);
margin-right: 16upx;
font-size: 28upx;
}
input{
color: rgba(255,255,255,0.5);
flex: 1;
padding-right: 30upx;
height: 64upx;
line-height: 64upx;
font-size: 26upx;
background-color: transparent;
.phcolor{
color: rgba(255,255,255,0.5);
}
}
}
.icon-ui {
color: #fff;
font-size: 42upx;
margin-right: 22upx;
}
}
.banner_img{ .banner_img{
z-index: 1; z-index: 1;
width: 100%; width: 100%;
@ -74,11 +30,11 @@
.home-apps { .home-apps {
position: relative; position: relative;
top: -180upx; top: -180rpx;
background-color: #fff; background-color: #fff;
padding: 30upx 20upx; padding: 30rpx 20rpx;
border-radius: 40upx; border-radius: 40rpx;
margin: 0 30upx; margin: 0 30rpx;
display: flex; display: flex;
flex-wrap:wrap; flex-wrap:wrap;
.home-apps-item { .home-apps-item {
@ -88,14 +44,14 @@
flex-grow: 0; flex-grow: 0;
width: 25%; width: 25%;
.text { .text {
margin: 10upx 0; margin: 10rpx 0;
font-size: 28upx; font-size: 28rpx;
text-align: center; text-align: center;
width: 140upx; width: 140rpx;
} }
.home-apps-item-img { .home-apps-item-img {
width: 136upx; width: 136rpx;
height: 136upx; height: 136rpx;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -105,39 +61,39 @@
} }
.home-message{ .home-message{
position: relative; position: relative;
top: -160upx; top: -160rpx;
height: 120upx; height: 120rpx;
background-color: #fff; background-color: #fff;
border-radius: 40upx; border-radius: 40rpx;
margin: 0 30upx; margin: 0 30rpx;
padding: 0 30upx; padding: 0 30rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.home-title{ .home-title{
width: 54px; width: 54px;
height: 54px; height: 54px;
margin-right: 10upx; margin-right: 10rpx;
image{ image{
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.home-content{ .home-content{
font-size: 28upx; font-size: 28rpx;
flex: 1; flex: 1;
} }
.home-more{ .home-more{
color: #ccc; color: #ccc;
font-size: 26upx; font-size: 26rpx;
} }
} }
.home-letters{ .home-letters{
position: relative; position: relative;
top: -140upx; top: -140rpx;
background-color: #fff; background-color: #fff;
border-radius: 40upx; border-radius: 40rpx;
margin: 0 30upx; margin: 0 30rpx;
padding: 30upx; padding: 30rpx;
.letters-title{ .letters-title{
width: 80px; width: 80px;
@ -149,17 +105,17 @@
} }
.letters-content{ .letters-content{
.letters-item{ .letters-item{
border-bottom: 1upx solid #e5e5e5; border-bottom: 1rpx solid #e5e5e5;
padding: 20upx 0; padding: 20rpx 0;
&:last-child{ &:last-child{
border: none; border: none;
} }
.lable{ .lable{
font-size: 30upx; font-size: 30rpx;
white-space: nowrap; white-space: nowrap;
} }
.font{ .font{
font-size: 28upx; font-size: 28rpx;
color: #666; color: #666;
} }
.letters-title{ .letters-title{
@ -185,14 +141,14 @@
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
font-size: 30upx; font-size: 30rpx;
margin: 10upx 0; margin: 10rpx 0;
} }
.letters-date{ .letters-date{
display: flex; display: flex;
align-items: center; align-items: center;
width: 100%; width: 100%;
font-size: 30upx; font-size: 30rpx;
} }
} }
@ -200,7 +156,7 @@
} }
.home-line{ .home-line{
position: relative; position: relative;
top: -70upx; top: -70rpx;
text-align: center; text-align: center;
color: #ccc; color: #ccc;
} }
@ -213,19 +169,19 @@
z-index: 999; z-index: 999;
} }
.grid_item{ .grid_item{
width: calc(47% - 4upx); width: calc(47% - 4rpx);
display: block; display: block;
padding: 30upx 0; padding: 30rpx 0;
color: #fff; color: #fff;
margin-left: 2%; margin-left: 2%;
margin-top: 2%; margin-top: 2%;
text-align: center; text-align: center;
background-image: linear-gradient(to bottom right, rgba(0,138,255,1), rgba(91,74,255,1)); background-image: linear-gradient(to bottom right, rgba(0,138,255,1), rgba(91,74,255,1));
border: 1upx solid #2084d9; border: 1rpx solid #2084d9;
position: relative; position: relative;
.grid_text{ .grid_text{
display: flex; display: flex;
padding-left: 30upx; padding-left: 30rpx;
.grid_tut{ .grid_tut{
width: 85%; width: 85%;
} }
@ -235,28 +191,28 @@
.message_list{ .message_list{
padding: 30upx; padding: 30rpx;
.message_item{ .message_item{
position: relative; position: relative;
.message_flex{ .message_flex{
width: calc(100% - 30upx); width: calc(100% - 30rpx);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.fontstyle{ .fontstyle{
font-size: 32upx; font-size: 32rpx;
line-height: 60upx; line-height: 60rpx;
} }
.font0{ .font0{
font-size: 30upx; font-size: 30rpx;
color: #666; color: #666;
flex-basis: 72upx; flex-basis: 72rpx;
} }
.message_time{ .message_time{
font-size: 26upx; font-size: 26rpx;
color: #666; color: #666;
line-height: 60upx; line-height: 60rpx;
} }
} }
} }
@ -269,12 +225,12 @@
bottom: 0; bottom: 0;
display: block; display: block;
margin: auto; margin: auto;
width: 30upx; width: 30rpx;
height: 30upx; height: 30rpx;
color: #b4b4b4; color: #b4b4b4;
content: "\e6a3"; content: "\e6a3";
text-align: center; text-align: center;
font-size: 34upx; font-size: 34rpx;
font-family: cuIcon; font-family: cuIcon;
line-height: 30upx line-height: 30rpx
} }

View File

@ -1,154 +1,130 @@
.ml-10 { .ml-10 {
margin-left: 20upx !important; margin-left: 20rpx !important;
} }
.mt-10 { .mt-10 {
margin-top: 20upx !important; margin-top: 20rpx !important;
} }
.mb-10 { .mb-10 {
margin-bottom: 20upx !important; margin-bottom: 20rpx !important;
} }
.mr-10 { .mr-10 {
margin-right: 20upx !important; margin-right: 20rpx !important;
} }
.m-10 { .m-10 {
margin: 20upx !important; margin: 20rpx !important;
} }
.p-10 { .p-10 {
padding: 20upx !important; padding: 20rpx !important;
} }
.pl-10 { .pl-10 {
padding-left: 20upx !important; padding-left: 20rpx !important;
} }
.pr-10 { .pr-10 {
padding-right: 20upx !important; padding-right: 20rpx !important;
} }
.pt-10 { .pt-10 {
padding-top: 20upx !important; padding-top: 20rpx !important;
} }
.pb-10 { .pb-10 {
padding-bottom: 20upx !important; padding-bottom: 20rpx !important;
} }
.w100 { .w100 {
width: 100%; width: 100%;
} }
.flex1 { .flex1 {
flex: 1; flex: 1;
} }
.pr { .pr {
position: relative; position: relative;
} }
.border { .border {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
.content { .content {
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
background-color: $uni-bg-color-grey; background-color: $uni-bg-color-grey;
} }
.card { .card {
padding: 20upx; padding: 20rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
} }
.search { .search {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
.u-text { .u-text {
width: 100upx !important; width: 100rpx !important;
flex: none !important; flex: none !important;
} }
.u-button { .u-button {
height: 68upx !important; height: 68rpx !important;
} }
.u-input__content__field-wrapper__field { .u-input__content__field-wrapper__field {
height: 42upx !important; height: 42rpx !important;
} }
} }
.bth-mini{
width: auto !important;
border-radius: 15upx !important;
margin-left: unset;
margin-right: unset;
}
.bth{
flex: 1;
border-radius: 15upx !important;
margin-left: unset;
margin-right: unset;
}
.flex-between { .flex-between {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
} }
.flex-end { .flex-end {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: flex-end; justify-content: flex-end;
} }
.flex-warp { .flex-warp {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
} }
.main-title { .main-title {
color: #333333; color: #333333;
font-size: 30upx; font-size: 30rpx;
} }
.subtitle { .subtitle {
color: #888888; color: #888888;
font-size: 26upx; font-size: 26rpx;
}
.view-title{
border-left: 8upx solid #1d82fe;
.u-text{
padding-left: 10upx;
color: #353535 !important;
}
} }
.title { .title {
font-weight: bold; font-weight: bold;
color: #000000; color: #000000;
font-size: 28upx; font-size: 28rpx;
}
.title-none{
.u-cell__body__content,.u-cell__title{
display: none !important;
}
}
.title-show{
.u-cell__body__content,.u-cell__title{
display: flex !important;
}
}
.flex-none{
display: block;
.u-cell__body{
display: block !important;
}
} }
.required { .required {
&:before { &:before {
content: '*'; content: '*';
position: absolute; position: absolute;
left: 0; left: 0;
color: #f56c6c; color: #f56c6c;
font-size: 40upx; font-size: 40rpx;
font-weight: normal; font-weight: normal;
} }
} }
.form-item-block{
.u-form-item__body{
display: block !important;
.u-form-item__body__left{
width: 100% !important;
}
.u-form-item__body__right{
.u-form-item__body__right__content__slot{
justify-content: flex-start;
position: relative;
margin-left: 20upx;
}
}
}
}

View File

@ -1,17 +1,17 @@
.u-list { .u-list {
.u-list-item { .u-list-item {
padding: 20upx; padding: 20rpx;
background-color: #fff; background-color: #fff;
border-bottom: 1px solid rgb(214, 215, 217); border-bottom: 1px solid rgb(214, 215, 217);
} }
} }
.u-textarea{ .u-textarea{
padding: 18upx; padding: 18rpx;
} }
.u-form-item__body__left__content__required{ .u-form-item__body__left__content__required{
position: relative !important; position: relative !important;
left: 0 !important; left: 0 !important;
margin-right: 10upx; margin-right: 10rpx;
} }
.u-form-item__body__left{ .u-form-item__body__left{
//flex: 1 !important; //flex: 1 !important;
@ -20,7 +20,7 @@
.u-form-item__body__right__content__slot{ .u-form-item__body__right__content__slot{
justify-content: flex-end; justify-content: flex-end;
position: relative; position: relative;
padding-right: 20upx; padding-right: 20rpx;
} }
.u-text{ .u-text{
justify-content: flex-end !important; justify-content: flex-end !important;
@ -30,19 +30,19 @@
} }
} }
.u-text__value{ .u-text__value{
font-size: 28upx !important; font-size: 28rpx !important;
} }
.u-form-item__body__left__content__label{ .u-form-item__body__left__content__label{
font-size: 28upx !important; font-size: 28rpx !important;
} }
.u-tabs__wrapper__nav__item{ .u-tabs__wrapper__nav__item{
flex: 1 !important; flex: 1 !important;
} }
.u-upload__deletable{ .u-upload__deletable{
height: 40upx !important; height: 40rpx !important;
width: 40upx !important; width: 40rpx !important;
.u-icon__icon{ .u-icon__icon{
font-size: 30upx !important; font-size: 30rpx !important;
line-height: 30upx !important; line-height: 30rpx !important;
} }
} }