兼容微信小程序
parent
8aa01ed294
commit
0b6c61b5b3
|
@ -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>
|
|
@ -105,11 +105,18 @@
|
|||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "",
|
||||
"appid" : "wx06c53a01ae0afd2c",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
"urlCheck" : false,
|
||||
"minified" : true,
|
||||
"es6" : true
|
||||
},
|
||||
"usingComponents" : true
|
||||
"usingComponents" : true,
|
||||
"permission" : {
|
||||
"scope.userLocation" : {
|
||||
"desc" : "展示当前位置信息"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
|
|
24
pages.json
24
pages.json
|
@ -72,17 +72,7 @@
|
|||
{
|
||||
"path": "pages/certificate_information/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "证书信息",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"buttons": [{
|
||||
"text": "新建",
|
||||
"fontSize": "15",
|
||||
"float": "right",
|
||||
"width": "40px"
|
||||
}]
|
||||
}
|
||||
}
|
||||
"navigationBarTitleText": "证书信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -119,17 +109,7 @@
|
|||
{
|
||||
"path": "pages/mine/information/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的信息",
|
||||
"app-plus": {
|
||||
"titleNView": {
|
||||
"buttons": [{
|
||||
"text": "修改",
|
||||
"fontSize": "15",
|
||||
"float": "right",
|
||||
"width": "40px"
|
||||
}]
|
||||
}
|
||||
}
|
||||
"navigationBarTitleText": "我的信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
<u--input v-model="form.PHONE" border="none" disabled disabledColor="#ffffff"></u--input>
|
||||
</u-form-item>
|
||||
<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 label="证书类型" prop="CER_TYPE_NAME" borderBottom required @click="fnShowCertificateType">
|
||||
<u--input v-model="form.CER_TYPE_NAME" border="none" disabled disabledColor="#ffffff"></u--input>
|
||||
|
@ -48,10 +49,12 @@
|
|||
<u-form-item label="工种" prop="JOBS_TYPE" borderBottom required>
|
||||
<u--input v-model="form.JOBS_TYPE" border="none" disabledColor="#ffffff"></u--input>
|
||||
</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-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-form-item>
|
||||
<u-form-item label="有效期开始" prop="VALIDITY_TIME_START" borderBottom required
|
||||
|
@ -80,7 +83,9 @@
|
|||
@confirm="fnTermOfValidityEndConfirm" @cancel="fnShowTermOfValidityEnd"></u-datetime-picker>
|
||||
<u-datetime-picker :show="showReviewTime" v-model="reviewTimeValue" mode="date"
|
||||
@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>
|
||||
</template>
|
||||
|
@ -121,10 +126,10 @@ export default {
|
|||
CARD_ID: '',
|
||||
CER_TYPE: '',
|
||||
CER_TYPE_NAME: '',
|
||||
CERTIFICATE:'',
|
||||
JOBS_TYPE:'',
|
||||
SPECIAL_TYPE:'',
|
||||
OPERATION_TYPE:'',
|
||||
CERTIFICATE: '',
|
||||
JOBS_TYPE: '',
|
||||
SPECIAL_TYPE: '',
|
||||
OPERATION_TYPE: '',
|
||||
SPECIAL_NUMBER: '',
|
||||
ISSUING_AUTHORITY: '',
|
||||
VALIDITY_TIME_START: '',
|
||||
|
@ -250,20 +255,20 @@ export default {
|
|||
this.form.SEX_NAME = '女'
|
||||
}
|
||||
},
|
||||
async fnGetDataDictionary(){
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID:'6f87965751b84311b066484ac93c8077'})
|
||||
async fnGetDataDictionary() {
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID: '6f87965751b84311b066484ac93c8077'})
|
||||
this.certificateTypeColumns = [resData.list]
|
||||
},
|
||||
async fnGetDataDictionaryJobs(){
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID:'55484e491a5e442d839c4595380713ec'})
|
||||
async fnGetDataDictionaryJobs() {
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID: '55484e491a5e442d839c4595380713ec'})
|
||||
this.certificateTypeColumnsJobs = [resData.list]
|
||||
},
|
||||
async fnGetDataDictionarySpe(){
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID:'f4c3890d06d54904b32986cb6428ed4f'})
|
||||
async fnGetDataDictionarySpe() {
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID: 'f4c3890d06d54904b32986cb6428ed4f'})
|
||||
this.certificateTypeColumnsSpe = [resData.list]
|
||||
},
|
||||
async fnGetDataDictionaryOpe(){
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID:this.form.SPECIAL_TYPE})
|
||||
async fnGetDataDictionaryOpe() {
|
||||
let resData = await getDataDictionary({DICTIONARIES_ID: this.form.SPECIAL_TYPE})
|
||||
this.certificateTypeColumnsOpe = [resData.list]
|
||||
},
|
||||
fnCardIdDisassembly(event) {
|
||||
|
@ -296,13 +301,13 @@ export default {
|
|||
this.form.specialName = e.value[0].NAME
|
||||
this.form.SPECIAL_TYPE = e.value[0].DICTIONARIES_ID
|
||||
this.fnShowCertificateTypeSpe()
|
||||
this.fnGetDataDictionaryOpe();
|
||||
this.form.operationName ='';
|
||||
this.form.OPERATION_TYPE= '';
|
||||
this.fnGetDataDictionaryOpe();
|
||||
this.form.operationName = '';
|
||||
this.form.OPERATION_TYPE = '';
|
||||
},
|
||||
fnCertificateTypeConfirmOpe(e) {
|
||||
this.form.operationName = e.value[0].NAME
|
||||
this.form.OPERATION_TYPE= e.value[0].DICTIONARIES_ID
|
||||
this.form.operationName = e.value[0].NAME
|
||||
this.form.OPERATION_TYPE = e.value[0].DICTIONARIES_ID
|
||||
this.fnShowCertificateTypeOpe()
|
||||
},
|
||||
fnShowTermOfValidityStart() {
|
||||
|
@ -359,7 +364,7 @@ export default {
|
|||
async fnSubmit() {
|
||||
console.info(this.$refs)
|
||||
this.$refs.form.validate().then(async () => {
|
||||
if(!this.SPECIAL_USER_ID){
|
||||
if (!this.SPECIAL_USER_ID) {
|
||||
let files = []
|
||||
files.push({
|
||||
name: 'FILEPATH',
|
||||
|
@ -373,7 +378,7 @@ export default {
|
|||
uri: this.form.fileListBack[0].url,
|
||||
})
|
||||
|
||||
if (files.length !== 2){
|
||||
if (files.length !== 2) {
|
||||
uni.$u.toast('请上传证书正反面')
|
||||
return
|
||||
}
|
||||
|
@ -384,11 +389,11 @@ export default {
|
|||
...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],
|
||||
|
@ -396,7 +401,7 @@ export default {
|
|||
})
|
||||
}
|
||||
|
||||
if (!this.form.fileListBack[0].FILEPATH){
|
||||
if (!this.form.fileListBack[0].FILEPATH) {
|
||||
files.push({
|
||||
name: 'FILEPATH_BACK',
|
||||
file: this.form.fileListBack[0],
|
||||
|
@ -412,16 +417,16 @@ export default {
|
|||
})
|
||||
} else {
|
||||
this.form.fileMark = '1',
|
||||
await setCertificateInformationEditPost({
|
||||
...this.form
|
||||
})
|
||||
await setCertificateInformationEditPost({
|
||||
...this.form
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
// uni.$u.toast('保存成功')
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
},2000)
|
||||
}, 2000)
|
||||
}).catch((e) => {
|
||||
console.info(e)
|
||||
// uni.$u.toast('请补全必填项')
|
||||
|
|
|
@ -19,8 +19,12 @@
|
|||
<view class="flex-between mt-10 subtitle">
|
||||
<view></view>
|
||||
<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" class="bth-mini ml-10" @click="fnView(item.SPECIAL_USER_ID)"></u-button>
|
||||
<u-button type="primary" text="编辑" size="mini"
|
||||
@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>
|
||||
|
@ -28,16 +32,21 @@
|
|||
</u-list-item>
|
||||
</u-list>
|
||||
<empty v-else></empty>
|
||||
<fab-button @click="fnEdit"/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getCertificateInformationList, getCertificateInformationView} from "../../api";
|
||||
import FabButton from '@/components/fab_button/index.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
FabButton,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
SPECIAL_USER_ID:'',
|
||||
SPECIAL_USER_ID: '',
|
||||
info: {},
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
|
@ -52,11 +61,6 @@ export default {
|
|||
onShow() {
|
||||
this.resetList()
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
if (e.index === 0) {
|
||||
this.fnEdit()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
let resData = await getCertificateInformationList({
|
||||
|
@ -79,7 +83,7 @@ export default {
|
|||
fnView(SPECIAL_USER_ID) {
|
||||
uni.$u.route({
|
||||
url: '/pages/certificate_information/view',
|
||||
params:{
|
||||
params: {
|
||||
SPECIAL_USER_ID
|
||||
}
|
||||
})
|
||||
|
@ -87,7 +91,7 @@ export default {
|
|||
fnEdit(SPECIAL_USER_ID) {
|
||||
uni.$u.route({
|
||||
url: '/pages/certificate_information/add',
|
||||
params:{
|
||||
params: {
|
||||
SPECIAL_USER_ID
|
||||
}
|
||||
})
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
<u-cell title="证书图片">
|
||||
<template #value>
|
||||
<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>
|
||||
<u--image v-if="info.FILEPATH_BACK" :src="info.FILEPATH_BACK" width="100rpx" height="100rpx" radius="10rpx"
|
||||
@click="fnPreview"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
|
@ -15,7 +16,7 @@
|
|||
<u-cell title="证书类型" :value="info.typeName"></u-cell>
|
||||
<u-cell title="证书名称" :value="info.CERTIFICATE"></u-cell>
|
||||
<u-cell title="证书编号" :value="info.SPECIAL_NUMBER"></u-cell>
|
||||
<!-- <u-cell title="工种" :value="info.JOBS_TYPE"></u-cell>-->
|
||||
<!-- <u-cell title="工种" :value="info.JOBS_TYPE"></u-cell>-->
|
||||
<u-cell v-show="info.typeName === '特种作业'" title="作业类别" :value="info.specialName"></u-cell>
|
||||
<u-cell v-show="info.typeName === '特种作业'" title="操作项目" :value="info.operationName"></u-cell>
|
||||
<u-cell title="发证机关" :value="info.ISSUING_AUTHORITY"></u-cell>
|
||||
|
@ -32,7 +33,7 @@ import {getCertificateInformationView} from "../../api";
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
SPECIAL_USER_ID:'',
|
||||
SPECIAL_USER_ID: '',
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
|
@ -41,19 +42,19 @@ export default {
|
|||
this.fnGetData()
|
||||
},
|
||||
methods: {
|
||||
async fnGetData(){
|
||||
async fnGetData() {
|
||||
let resData = await getCertificateInformationView({
|
||||
SPECIAL_USER_ID:this.SPECIAL_USER_ID
|
||||
SPECIAL_USER_ID: this.SPECIAL_USER_ID
|
||||
})
|
||||
this.info = resData.pd
|
||||
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)
|
||||
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() {
|
||||
uni.previewImage({
|
||||
urls:[this.info.FILEPATH]
|
||||
urls: [this.info.FILEPATH]
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,80 +1,81 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="card">
|
||||
<u-cell-group>
|
||||
<u-cell title="照片">
|
||||
<template #value>
|
||||
<u--image :src="info.PHOTO" shape="circle" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(info.PHOTO)"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="就职单位相关方单位" :value="info.RELEVANT_UNIT_NAME"></u-cell>
|
||||
<u-cell title="岗位名称" :value="info.POST_ID"></u-cell>
|
||||
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||
<u-cell title="人员类型" :value="info.ISFLOW === '1' ? '流动人员' : '固定人员'">
|
||||
</u-cell>
|
||||
<u-cell title="二维码" v-if="info.CORPINFO_ID && cleanCode && (info.DEPART_STATE == '0' || info.DEPART_STATE == '-1')">
|
||||
<template #value>
|
||||
<u--image :src="info.code" width="100rpx" height="100rpx" @click="fnPreview(info.code)">
|
||||
</u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view class="card">
|
||||
<u-cell-group>
|
||||
<u-cell title="照片">
|
||||
<template #value>
|
||||
<u--image :src="info.PHOTO" shape="circle" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(info.PHOTO)"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="就职单位相关方单位" :value="info.RELEVANT_UNIT_NAME"></u-cell>
|
||||
<u-cell title="岗位名称" :value="info.POST_ID"></u-cell>
|
||||
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||
<u-cell title="人员类型" :value="info.ISFLOW === '1' ? '流动人员' : '固定人员'">
|
||||
</u-cell>
|
||||
<u-cell title="二维码"
|
||||
v-if="info.CORPINFO_ID && cleanCode && (info.DEPART_STATE == '0' || info.DEPART_STATE == '-1')">
|
||||
<template #value>
|
||||
<u--image :src="info.code" width="100rpx" height="100rpx" @click="fnPreview(info.code)">
|
||||
</u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getElectronicWorkCard,
|
||||
getElectronicWorkCardQRCode
|
||||
} from "../../api";
|
||||
import {
|
||||
getElectronicWorkCard,
|
||||
getElectronicWorkCardQRCode
|
||||
} from "../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
USER_ID: '',
|
||||
CODE_TYPE: '',
|
||||
cleanCode :''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.fnGetData()
|
||||
},
|
||||
onLoad(query) {
|
||||
this.USER_ID = query.USER_ID
|
||||
this.CODE_TYPE = query.CODE_TYPE
|
||||
},
|
||||
methods: {
|
||||
async fnGetData() {
|
||||
var params = {}
|
||||
if (this.CODE_TYPE) {
|
||||
params.USER_ID = this.USER_ID
|
||||
}
|
||||
let resData = await getElectronicWorkCard(params)
|
||||
let {
|
||||
code
|
||||
} = await getElectronicWorkCardQRCode(params)
|
||||
this.info = resData.pd
|
||||
console.log(this.$filePath + resData.pd.PHOTO)
|
||||
this.info.PHOTO = this.$filePath + resData.pd.PHOTO
|
||||
this.info.code = 'data:image/jpg;base64,' + code
|
||||
this.cleanCode = code
|
||||
},
|
||||
fnPreview(urls) {
|
||||
uni.previewImage({
|
||||
urls: [urls]
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
USER_ID: '',
|
||||
CODE_TYPE: '',
|
||||
cleanCode: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.fnGetData()
|
||||
},
|
||||
onLoad(query) {
|
||||
this.USER_ID = query.USER_ID
|
||||
this.CODE_TYPE = query.CODE_TYPE
|
||||
},
|
||||
methods: {
|
||||
async fnGetData() {
|
||||
var params = {}
|
||||
if (this.CODE_TYPE) {
|
||||
params.USER_ID = this.USER_ID
|
||||
}
|
||||
let resData = await getElectronicWorkCard(params)
|
||||
let {
|
||||
code
|
||||
} = await getElectronicWorkCardQRCode(params)
|
||||
this.info = resData.pd
|
||||
console.log(this.$filePath + resData.pd.PHOTO)
|
||||
this.info.PHOTO = this.$filePath + resData.pd.PHOTO
|
||||
this.info.code = 'data:image/jpg;base64,' + code
|
||||
this.cleanCode = code
|
||||
},
|
||||
fnPreview(urls) {
|
||||
uni.previewImage({
|
||||
urls: [urls]
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
||||
<u-list-item v-for="(item, index) in list" :key="index">
|
||||
<view>
|
||||
<view class="flex-between main-title">
|
||||
<text>单位名称:{{ item.RELEVANT_UNIT_NAME }}</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle" v-show="item.START_DATE">
|
||||
<text>就职时间:{{ item.START_DATE }}-{{ item.END_DATE || '至今' }}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
||||
<u-list-item v-for="(item, index) in list" :key="index">
|
||||
<view>
|
||||
<view class="flex-between main-title">
|
||||
<text>单位名称:{{ item.RELEVANT_UNIT_NAME }}</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle" v-show="item.START_DATE">
|
||||
<text>就职时间:{{ item.START_DATE }}-{{ item.END_DATE || '至今' }}</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle" v-show="item.DEPART_STATE">
|
||||
<text>就职状态:
|
||||
<template v-if="item.DEPART_STATE === '0'">在职</template>
|
||||
|
@ -18,100 +18,102 @@
|
|||
<template v-if="item.DEPART_STATE === '3'">已审核</template>
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<text>单位在职申请审核状态:
|
||||
<template v-if="item.AUDIT_STATE === '0'">已打回</template>
|
||||
<template v-if="item.AUDIT_STATE === '1'">待审核</template>
|
||||
<template v-if="item.AUDIT_STATE === '2'">审核通过</template>
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle" v-show="item.DEPART_STATE !== '0' && item.REVIEW_STATE">
|
||||
<text>单位离职申请审核状态:
|
||||
<template v-if="item.REVIEW_STATE === '0'">已打回</template>
|
||||
<template v-if="item.REVIEW_STATE === '1'">待审核</template>
|
||||
<template v-if="item.REVIEW_STATE === '2'">审核通过</template>
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<text>单位在职申请审核状态:
|
||||
<template v-if="item.AUDIT_STATE === '0'">已打回</template>
|
||||
<template v-if="item.AUDIT_STATE === '1'">待审核</template>
|
||||
<template v-if="item.AUDIT_STATE === '2'">审核通过</template>
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle" v-show="item.DEPART_STATE !== '0' && item.REVIEW_STATE">
|
||||
<text>单位离职申请审核状态:
|
||||
<template v-if="item.REVIEW_STATE === '0'">已打回</template>
|
||||
<template v-if="item.REVIEW_STATE === '1'">待审核</template>
|
||||
<template v-if="item.REVIEW_STATE === '2'">审核通过</template>
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="flex-between mt-10 subtitle" v-if="item.AUDIT_REMARKS">
|
||||
<text>审核意见:{{ item.AUDIT_REMARKS }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<view></view>
|
||||
<view class="flex-between">
|
||||
<u-button type="primary" text="查看" size="mini" class="bth-mini ml-10"
|
||||
@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"
|
||||
v-if="item.DEPART_STATE === '0'"
|
||||
@click="fnResignationApplication(item.EMPLOYMENT_APPLY_MANAGEMENT_ID,item.RELEVANT_UNIT_NAME)">
|
||||
</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-list-item>
|
||||
</u-list>
|
||||
<empty v-else></empty>
|
||||
</view>
|
||||
<text>审核意见:{{ item.AUDIT_REMARKS }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<view></view>
|
||||
<view class="flex-between">
|
||||
<u-button type="primary" text="查看" size="mini"
|
||||
@click="fnView(item.EMPLOYMENT_APPLY_MANAGEMENT_ID, item.CORPINFO_ID, item.DEPART_STATE)"></u-button>
|
||||
<view class="ml-10">
|
||||
<u-button type="primary" text="离职申请" size="mini"
|
||||
v-if="item.DEPART_STATE === '0'"
|
||||
@click="fnResignationApplication(item.EMPLOYMENT_APPLY_MANAGEMENT_ID,item.RELEVANT_UNIT_NAME)">
|
||||
</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-list-item>
|
||||
</u-list>
|
||||
<empty v-else></empty>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getEmployedBy
|
||||
} from "../../api";
|
||||
import {
|
||||
getEmployedBy
|
||||
} from "../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
totalPage: 0,
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.resetList()
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
let resData = await getEmployedBy({
|
||||
showCount: this.pageSize,
|
||||
currentPage: this.currentPage,
|
||||
});
|
||||
this.list = [...this.list, ...resData.varList];
|
||||
this.totalPage = resData.page.totalPage;
|
||||
},
|
||||
resetList() {
|
||||
this.pageSize = 10
|
||||
this.currentPage = 1
|
||||
this.list = []
|
||||
this.getData()
|
||||
},
|
||||
scrolltolower() {
|
||||
this.currentPage++;
|
||||
if (this.totalPage >= this.currentPage) this.getData();
|
||||
},
|
||||
fnResignationApplication(EMPLOYMENT_APPLY_MANAGEMENT_ID, RELEVANT_UNIT_NAME) {
|
||||
uni.$u.route({
|
||||
url: '/pages/employed_by/resignation_application',
|
||||
params: {
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
RELEVANT_UNIT_NAME
|
||||
}
|
||||
})
|
||||
},
|
||||
fnView(EMPLOYMENT_APPLY_MANAGEMENT_ID, CORPINFO_ID, DEPART_STATE) {
|
||||
uni.$u.route({
|
||||
url: '/pages/related_party_units/view',
|
||||
params: {
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
CORPINFO_ID,
|
||||
DEPART_STATE
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
totalPage: 0,
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.resetList()
|
||||
},
|
||||
methods: {
|
||||
async getData() {
|
||||
let resData = await getEmployedBy({
|
||||
showCount: this.pageSize,
|
||||
currentPage: this.currentPage,
|
||||
});
|
||||
this.list = [...this.list, ...resData.varList];
|
||||
this.totalPage = resData.page.totalPage;
|
||||
},
|
||||
resetList() {
|
||||
this.pageSize = 10
|
||||
this.currentPage = 1
|
||||
this.list = []
|
||||
this.getData()
|
||||
},
|
||||
scrolltolower() {
|
||||
this.currentPage++;
|
||||
if (this.totalPage >= this.currentPage) this.getData();
|
||||
},
|
||||
fnResignationApplication(EMPLOYMENT_APPLY_MANAGEMENT_ID, RELEVANT_UNIT_NAME) {
|
||||
uni.$u.route({
|
||||
url: '/pages/employed_by/resignation_application',
|
||||
params: {
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
RELEVANT_UNIT_NAME
|
||||
}
|
||||
})
|
||||
},
|
||||
fnView(EMPLOYMENT_APPLY_MANAGEMENT_ID, CORPINFO_ID, DEPART_STATE) {
|
||||
uni.$u.route({
|
||||
url: '/pages/related_party_units/view',
|
||||
params: {
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
CORPINFO_ID,
|
||||
DEPART_STATE
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
<u-cell title="申请时间" :value="form.APPLY_TIME"></u-cell>
|
||||
<u-cell title="申请人" :value="userInfo.NAME"></u-cell>
|
||||
</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>
|
||||
</template>
|
||||
|
@ -23,14 +25,14 @@ import {setResignationApplication} from "../../api";
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID:'',
|
||||
RELEVANT_UNIT_NAME:'',
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: '',
|
||||
RELEVANT_UNIT_NAME: '',
|
||||
form: {
|
||||
LEAVE_REASON: '',
|
||||
APPLY_TIME: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
|
||||
REVIEW_STATE: '1',
|
||||
DEPART_STATE: '-1',
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: ''
|
||||
REVIEW_STATE: '1',
|
||||
DEPART_STATE: '-1',
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -45,19 +47,19 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
async fnSubmit() {
|
||||
if(!this.form.LEAVE_REASON){
|
||||
if (!this.form.LEAVE_REASON) {
|
||||
uni.$u.toast('请填写离职原因')
|
||||
return
|
||||
}
|
||||
this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID = this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
this.form.EMPLOYMENT_APPLY_MANAGEMENT_ID = this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
await setResignationApplication({
|
||||
...this.form,
|
||||
OPERATOR:this.userInfo.USER_ID
|
||||
OPERATOR: this.userInfo.USER_ID
|
||||
})
|
||||
uni.$u.toast('申请成功')
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
},2000)
|
||||
}, 2000)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<!-- #ifdef APP-PLUS -->
|
||||
<view class="status_bar">
|
||||
<view class="top_view"></view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<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">
|
||||
<image src="../../static/home-bg.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-apps">
|
||||
<view class="home-apps-item" @click="fnScan">
|
||||
<view class="home-apps-item-img">
|
||||
<image src="../../static/icon-apps/app_icons6.png" mode=""></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>扫码</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home-apps-item" v-for="(item,index) in baseList" :key="index" @click="fnNavigator(index)">
|
||||
<view class="home-apps-item-img">
|
||||
<image :src="item.img" mode=""></image>
|
||||
|
@ -26,7 +27,8 @@
|
|||
</view>
|
||||
</view>
|
||||
<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">
|
||||
<view style="text-align: center;color:#606266">
|
||||
<rich-text :nodes="updateVersion.modalContent"></rich-text>
|
||||
|
@ -40,7 +42,7 @@ import updateVersion from "../../utils/updateVersion";
|
|||
import {setRelatedPartyScanning} from "../../api";
|
||||
|
||||
export default {
|
||||
mixins:[updateVersion],
|
||||
mixins: [updateVersion],
|
||||
data() {
|
||||
return {
|
||||
baseList: [
|
||||
|
@ -76,18 +78,18 @@ export default {
|
|||
this.fnUpdateVersion(false)
|
||||
},
|
||||
methods: {
|
||||
fnScan(){
|
||||
fnScan() {
|
||||
uni.scanCode({
|
||||
success: async (res) => {
|
||||
let obj =JSON.parse(res.result)
|
||||
let obj = JSON.parse(res.result)
|
||||
let type = obj[0].CODE_TYPE
|
||||
if (type === '0') {
|
||||
// type=0时跳转注册相关方企业页面
|
||||
await setRelatedPartyScanning({CORPINFO_ID:obj[0].CORPINFO_ID})
|
||||
await setRelatedPartyScanning({CORPINFO_ID: obj[0].CORPINFO_ID})
|
||||
uni.$u.route({
|
||||
url: '/pages/related_party_units/add',
|
||||
params:{
|
||||
CORPINFO_ID:obj[0].CORPINFO_ID,
|
||||
params: {
|
||||
CORPINFO_ID: obj[0].CORPINFO_ID,
|
||||
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME
|
||||
}
|
||||
})
|
||||
|
@ -95,9 +97,9 @@ export default {
|
|||
// type=1时跳转电子工牌页面
|
||||
uni.$u.route({
|
||||
url: '/pages/electronic_work_card/index',
|
||||
params:{
|
||||
USER_ID:obj[0].USER_ID,
|
||||
CODE_TYPE:obj[0].CODE_TYPE
|
||||
params: {
|
||||
USER_ID: obj[0].USER_ID,
|
||||
CODE_TYPE: obj[0].CODE_TYPE
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ export default {
|
|||
submitPassword() {
|
||||
this.$refs.form.validate().then(async () => {
|
||||
await setForgotPassword({
|
||||
...this.form
|
||||
...this.form
|
||||
})
|
||||
this.$refs.uToast.show({
|
||||
message: '修改成功',
|
||||
|
|
|
@ -1,22 +1,24 @@
|
|||
<template>
|
||||
<view class="wui_login">
|
||||
<view class="form">
|
||||
<u--form labelPosition="top" :model="form" labelWidth="140rpx" >
|
||||
<u--form labelPosition="top" :model="form" labelWidth="140rpx">
|
||||
<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 label="密码" borderBottom>
|
||||
<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>
|
||||
<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 @click="fnForgotPassword">忘记密码</view>
|
||||
<view @click="fnRegister">新用户注册</view>
|
||||
</view>
|
||||
</view>
|
||||
<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">
|
||||
<view style="text-align: center;color:#606266">
|
||||
<rich-text :nodes="updateVersion.modalContent"></rich-text>
|
||||
|
@ -31,7 +33,7 @@ import updateVersion from '../../utils/updateVersion'
|
|||
import JSEncrypt from '../../static/js/jsencrypt.min.js'
|
||||
|
||||
export default {
|
||||
mixins:[updateVersion],
|
||||
mixins: [updateVersion],
|
||||
data() {
|
||||
return {
|
||||
publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2zCyUYSD0pNrbtaYdvGfHfWoRV+fo/2N9O2PLLz/jZvMkigkq4eAq4JO+Ek0wDHI9WxP6iTSLYCHhIOs9CQTPvyldJFm8riZtQZlBTD8Plkb3rjrgwTqbBi3w3+HKYdkSvGFXJIdSOPbpXnj5BzN8vlVaybs24R/vpUzG9178lwIDAQAB',
|
||||
|
@ -45,12 +47,12 @@ export default {
|
|||
this.fnUpdateVersion(false)
|
||||
},
|
||||
methods: {
|
||||
fnRegister(){
|
||||
fnRegister() {
|
||||
uni.$u.route({
|
||||
url: '/pages/login/register',
|
||||
})
|
||||
},
|
||||
fnForgotPassword(){
|
||||
fnForgotPassword() {
|
||||
uni.$u.route({
|
||||
url: '/pages/login/forgot_password',
|
||||
})
|
||||
|
@ -71,11 +73,11 @@ export default {
|
|||
var jsencrypt = new JSEncrypt()
|
||||
jsencrypt.setPublicKey(this.publicKey)
|
||||
const keydataVal = jsencrypt.encrypt('qdkjchina' + this.form.userName + ',qd,' + this.form.userPwd)
|
||||
let resData = await submitLogin({'KEYDATA':keydataVal});
|
||||
let resData = await submitLogin({'KEYDATA': keydataVal});
|
||||
// console.log(resData)
|
||||
if (resData.PHOTO != '') {
|
||||
resData.PHOTO = this.$filePath + resData.PHOTO
|
||||
}
|
||||
if (resData.PHOTO != '') {
|
||||
resData.PHOTO = this.$filePath + resData.PHOTO
|
||||
}
|
||||
await this.$store.dispatch('setUserInfo', resData);
|
||||
uni.$u.route({
|
||||
url: '/pages/index/index',
|
||||
|
@ -90,11 +92,12 @@ export default {
|
|||
.wui_login {
|
||||
background-image: url(/static/bg-login.png);
|
||||
background-repeat: no-repeat;
|
||||
background-size:100% 100%;
|
||||
height:100vh;
|
||||
background-size: 100% 100%;
|
||||
height: 100vh;
|
||||
background-color: #058cf5;
|
||||
position: relative;
|
||||
.title{
|
||||
|
||||
.title {
|
||||
color: #fff;
|
||||
font-size: 44rpx;
|
||||
font-weight: 500;
|
||||
|
@ -104,17 +107,19 @@ export default {
|
|||
padding-left: 46rpx;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.form{
|
||||
|
||||
.form {
|
||||
width: 70%;
|
||||
position: absolute;
|
||||
top: 49%;
|
||||
left: 50%;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx 9%;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 30rpx 9%;
|
||||
transform: translate(-50%, -50%);
|
||||
.tip{
|
||||
font-size: 20rpx;
|
||||
|
||||
.tip {
|
||||
font-size: 24rpx;
|
||||
margin-bottom: 40rpx;
|
||||
color: #0b80e7;
|
||||
display: flex;
|
||||
|
@ -122,19 +127,5 @@ export default {
|
|||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
button{
|
||||
margin-top: 40rpx;
|
||||
background-color: #0b80e7;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
border-radius: 10rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
::v-deep{
|
||||
.u-button__text{
|
||||
font-size: 32rpx !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
</u-form-item>
|
||||
<view class="tip">密码长度8~32位,须包含数字、字母、符号至少2种或以上元素</view>
|
||||
</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>
|
||||
</template>
|
||||
|
@ -121,16 +123,16 @@ export default {
|
|||
},
|
||||
async fnRegister() {
|
||||
this.$refs.form.validate().then(async () => {
|
||||
if(await this.fnIDCardDeduplication()) return
|
||||
if(await this.fnUserDeduplication()) return
|
||||
if (await this.fnIDCardDeduplication()) return
|
||||
if (await this.fnUserDeduplication()) return
|
||||
await setRegister({...this.form})
|
||||
uni.$u.toast('注册成功')
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
uni.$u.route({
|
||||
url: '/pages/login/login',
|
||||
type:'reLaunch'
|
||||
type: 'reLaunch'
|
||||
})
|
||||
},2000)
|
||||
}, 2000)
|
||||
}).catch(() => {
|
||||
uni.$u.toast('请补全必填项')
|
||||
})
|
||||
|
@ -140,7 +142,7 @@ export default {
|
|||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.tip{
|
||||
.tip {
|
||||
padding-top: 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
font-size: 20rpx;
|
||||
|
|
|
@ -1,31 +1,31 @@
|
|||
<template>
|
||||
<view class="">
|
||||
<view class="about-us">
|
||||
<u-cell-group :border="false">
|
||||
<u-cell isLink url="/pages/mine/agreement/agreement">
|
||||
<u-icon slot="icon" size="20" name="/static/svg/menu_yhxy.svg"></u-icon>
|
||||
<view slot="title" class="title">用户服务协议</view>
|
||||
</u-cell>
|
||||
<u-cell isLink url="/pages/mine/privacy/privacy">
|
||||
<u-icon slot="icon" size="20" name="/static/svg/menu_yszc.svg"></u-icon>
|
||||
<view slot="title" class="title">隐私协议</view>
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<view class="about-us">
|
||||
<u-cell-group :border="false">
|
||||
<u-cell isLink url="/pages/mine/agreement/agreement">
|
||||
<u-icon slot="icon" size="20" name="/static/svg/menu_yhxy.svg"></u-icon>
|
||||
<view slot="title" class="title">用户服务协议</view>
|
||||
</u-cell>
|
||||
<u-cell isLink url="/pages/mine/privacy/privacy">
|
||||
<u-icon slot="icon" size="20" name="/static/svg/menu_yszc.svg"></u-icon>
|
||||
<view slot="title" class="title">隐私协议</view>
|
||||
</u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
}
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.about-us {
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
line-height: 60rpx;
|
||||
.title {
|
||||
}
|
||||
}
|
||||
.about-us {
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
line-height: 60rpx;
|
||||
|
||||
.title {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
@ -1,110 +1,110 @@
|
|||
<template>
|
||||
<view class="content1">
|
||||
<view class="change-password">
|
||||
<u--form labelPosition="top" :model="form" :rules="rules" ref="form" labelWidth="100%"
|
||||
:labelStyle="{color:'#333', fontSize:'34rpx', fontWeight:'bold'}">
|
||||
<u-form-item label="原密码" prop="oldPwd" borderBottom>
|
||||
<u--input v-model="form.oldPwd" type="password" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="新密码" prop="nowPwd" borderBottom>
|
||||
<u--input v-model="form.nowPwd" type="password" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="确认新密码" prop="confirmPwd" borderBottom>
|
||||
<u--input v-model="form.confirmPwd" type="password" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u--text type="error" text="密码长度8~32位,须包含数字、字母、符号至少2种或以上元素"></u--text>
|
||||
<u-form-item>
|
||||
<u-button type="primary" shape="circle" text="确定" @click="$u.debounce(submitPassword, 1000, true)">
|
||||
</u-button>
|
||||
</u-form-item>
|
||||
</u--form>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
</view>
|
||||
<view class="content1">
|
||||
<view class="change-password">
|
||||
<u--form labelPosition="top" :model="form" :rules="rules" ref="form" labelWidth="100%"
|
||||
:labelStyle="{color:'#333', fontSize:'34rpx', fontWeight:'bold'}">
|
||||
<u-form-item label="原密码" prop="oldPwd" borderBottom>
|
||||
<u--input v-model="form.oldPwd" type="password" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="新密码" prop="nowPwd" borderBottom>
|
||||
<u--input v-model="form.nowPwd" type="password" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="确认新密码" prop="confirmPwd" borderBottom>
|
||||
<u--input v-model="form.confirmPwd" type="password" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u--text type="error" text="密码长度8~32位,须包含数字、字母、符号至少2种或以上元素"></u--text>
|
||||
<u-form-item>
|
||||
<u-button type="primary" shape="circle" text="确定" @click="$u.debounce(submitPassword, 1000, true)">
|
||||
</u-button>
|
||||
</u-form-item>
|
||||
</u--form>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
setUpdatePassword
|
||||
} from "../../../api";
|
||||
import {
|
||||
setUpdatePassword
|
||||
} from "../../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
oldPwd: '',
|
||||
nowPwd: '',
|
||||
confirmPwd: '',
|
||||
},
|
||||
rules: {
|
||||
oldPwd: [{
|
||||
required: true,
|
||||
message: '请输入旧密码',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
min: 8,
|
||||
message: '长度最少8个字符',
|
||||
trigger: 'blur'
|
||||
},
|
||||
],
|
||||
nowPwd: [{
|
||||
required: true,
|
||||
message: '请输入新密码',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
pattern: /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{8,32}$/,
|
||||
message: '密码格式不正确',
|
||||
trigger: ['blur']
|
||||
},
|
||||
],
|
||||
confirmPwd: [{
|
||||
required: true,
|
||||
message: '请再次输入新密码',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
return value === this.form.nowPwd
|
||||
},
|
||||
message: '两次输入密码不一致',
|
||||
trigger: 'blur',
|
||||
}
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitPassword() {
|
||||
this.$refs.form.validate().then(async () => {
|
||||
await setUpdatePassword({
|
||||
PASSWORD: this.form.oldPwd,
|
||||
NEWPASSWORD: this.form.nowPwd,
|
||||
USER_ID: this.$store.getters.getUserInfo.USER_ID,
|
||||
USERNAME: this.$store.getters.getUserInfo.USERNAME
|
||||
})
|
||||
this.$refs.uToast.show({
|
||||
message: '修改成功',
|
||||
type: 'success',
|
||||
complete: () => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
}).catch((error) => {
|
||||
this.$refs.uToast.error('请填写完整')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
oldPwd: '',
|
||||
nowPwd: '',
|
||||
confirmPwd: '',
|
||||
},
|
||||
rules: {
|
||||
oldPwd: [{
|
||||
required: true,
|
||||
message: '请输入旧密码',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
min: 8,
|
||||
message: '长度最少8个字符',
|
||||
trigger: 'blur'
|
||||
},
|
||||
],
|
||||
nowPwd: [{
|
||||
required: true,
|
||||
message: '请输入新密码',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
pattern: /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{8,32}$/,
|
||||
message: '密码格式不正确',
|
||||
trigger: ['blur']
|
||||
},
|
||||
],
|
||||
confirmPwd: [{
|
||||
required: true,
|
||||
message: '请再次输入新密码',
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
return value === this.form.nowPwd
|
||||
},
|
||||
message: '两次输入密码不一致',
|
||||
trigger: 'blur',
|
||||
}
|
||||
],
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitPassword() {
|
||||
this.$refs.form.validate().then(async () => {
|
||||
await setUpdatePassword({
|
||||
PASSWORD: this.form.oldPwd,
|
||||
NEWPASSWORD: this.form.nowPwd,
|
||||
USER_ID: this.$store.getters.getUserInfo.USER_ID,
|
||||
USERNAME: this.$store.getters.getUserInfo.USERNAME
|
||||
})
|
||||
this.$refs.uToast.show({
|
||||
message: '修改成功',
|
||||
type: 'success',
|
||||
complete: () => {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
}).catch((error) => {
|
||||
this.$refs.uToast.error('请填写完整')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.change-password {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 40rpx;
|
||||
}
|
||||
.change-password {
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 40rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,188 +1,189 @@
|
|||
<template>
|
||||
<view class="">
|
||||
<view class="feedback">
|
||||
<u--input v-model="form.FEEDBACK_TITLE" placeholder="请输入标题" border="bottom" clearable></u--input>
|
||||
<view class="feedback-type">
|
||||
<view class="item" v-for="(item, index) in feedbackType" :key="index"
|
||||
:class="{active:item.value === form.FEEDBACK_TYPE}" @click="form.FEEDBACK_TYPE = item.value">
|
||||
<u--image :src="item.img" width="40rpx" height="38rpx"
|
||||
style="margin-left: 70rpx; margin-top: 20rpx;"></u--image>
|
||||
<view style="margin-top: -40rpx;">{{item.label}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">我要反馈</view>
|
||||
<u--textarea v-model="form.FEEDBACK_CONTENT" maxlength="255" height="100" count confirmType="done"
|
||||
placeholder="请输入问题描述"></u--textarea>
|
||||
<view class="title">
|
||||
<text>请提供相关问题的截图或照片</text>
|
||||
</view>
|
||||
<u-upload ref="aaa" capture="album" uploadIcon="plus" :fileList="form.fileList" @afterRead="afterRead"
|
||||
@delete="deletePic" name="1" multiple :maxCount="4"></u-upload>
|
||||
<u-button type="primary" text="提交" @click="$u.debounce(submitFeedback, 1000, true)"></u-button>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
</view>
|
||||
<view class="">
|
||||
<view class="feedback">
|
||||
<u--input v-model="form.FEEDBACK_TITLE" placeholder="请输入标题" border="bottom" clearable></u--input>
|
||||
<view class="feedback-type">
|
||||
<view class="item" v-for="(item, index) in feedbackType" :key="index"
|
||||
:class="{active:item.value === form.FEEDBACK_TYPE}" @click="form.FEEDBACK_TYPE = item.value">
|
||||
<view style="margin-left: 70rpx; margin-top: 20rpx;">
|
||||
<u--image :src="item.img" width="40rpx" height="38rpx"></u--image>
|
||||
</view>
|
||||
<view style="margin-top: -40rpx;">{{ item.label }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="title">我要反馈</view>
|
||||
<u--textarea v-model="form.FEEDBACK_CONTENT" maxlength="255" height="100" count confirmType="done"
|
||||
placeholder="请输入问题描述"></u--textarea>
|
||||
<view class="title">
|
||||
<text>请提供相关问题的截图或照片</text>
|
||||
</view>
|
||||
<u-upload ref="aaa" capture="album" uploadIcon="plus" :fileList="form.fileList" @afterRead="afterRead"
|
||||
@delete="deletePic" name="1" multiple :maxCount="4"></u-upload>
|
||||
<u-button type="primary" text="提交" @click="$u.debounce(submitFeedback, 1000, true)"></u-button>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {setFeedbackAdd, setFeedbackUpload} from "../../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
FEEDBACK_TITLE: '',
|
||||
FEEDBACK_TYPE: '其他',
|
||||
FEEDBACK_CONTENT: '',
|
||||
fileList: [],
|
||||
urlList: [],
|
||||
},
|
||||
feedbackType: [{
|
||||
label: '系统错误',
|
||||
value: '1',
|
||||
img: require('../../../static/images/fico1.png'),
|
||||
},
|
||||
{
|
||||
label: '界面优化',
|
||||
value: '2',
|
||||
img: require('../../../static/images/fico2.png'),
|
||||
},
|
||||
{
|
||||
label: '设计缺陷',
|
||||
value: '3',
|
||||
img: require('../../../static/images/fico3.png'),
|
||||
},
|
||||
{
|
||||
label: '性能问题',
|
||||
value: '4',
|
||||
img: require('../../../static/images/fico4.png'),
|
||||
},
|
||||
{
|
||||
label: '其他问题',
|
||||
value: '9',
|
||||
img: require('../../../static/images/fico5.png'),
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 新增图片
|
||||
afterRead(event) {
|
||||
this.form.fileList = [...this.form.fileList, ...event.file]
|
||||
},
|
||||
// 删除图片
|
||||
deletePic(event) {
|
||||
this.form.fileList = this.form.fileList.filter(item => item.url !== event.file.url)
|
||||
},
|
||||
// 提交反馈
|
||||
submitFeedback() {
|
||||
if (!this.form.FEEDBACK_TITLE) {
|
||||
this.$refs.uToast.warning('为了更加方便我们排查,请输入标题')
|
||||
return
|
||||
}
|
||||
if (!this.form.FEEDBACK_CONTENT) {
|
||||
this.$refs.uToast.warning('为了更加方便我们排查,请输入问题描述')
|
||||
return
|
||||
}
|
||||
if (this.form.fileList.length === 0) {
|
||||
this.$refs.uToast.warning('为了更加方便我们排查,请上传问题截图或照片')
|
||||
return
|
||||
}
|
||||
let PromiseArr = [];
|
||||
for (let i = 0; i < this.form.fileList.length; i++) {
|
||||
PromiseArr.push(this.fnSetFeedbackUpload(this.form.fileList[i].url))
|
||||
}
|
||||
Promise.all(PromiseArr).then(async () => {
|
||||
await setFeedbackAdd({
|
||||
...this.form,
|
||||
USER_ID: this.$store.getters.getUserInfo.USER_ID,
|
||||
FEEDBACK_IMG: this.form.urlList.join(';')
|
||||
})
|
||||
this.$refs.uToast.show({
|
||||
message: '反馈成功',
|
||||
type: 'success',
|
||||
complete: () => {
|
||||
uni.switchTab({
|
||||
url: '/pages/mine/index/index'
|
||||
})
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$refs.uToast.show({
|
||||
message: '反馈失败',
|
||||
type: 'error',
|
||||
})
|
||||
})
|
||||
},
|
||||
async fnSetFeedbackUpload(filePath){
|
||||
let resData = await setFeedbackUpload({
|
||||
name: 'FFILE',
|
||||
filePath,
|
||||
})
|
||||
this.form.urlList.push(resData.imgPath)
|
||||
return resData
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
FEEDBACK_TITLE: '',
|
||||
FEEDBACK_TYPE: '其他',
|
||||
FEEDBACK_CONTENT: '',
|
||||
fileList: [],
|
||||
urlList: [],
|
||||
},
|
||||
feedbackType: [{
|
||||
label: '系统错误',
|
||||
value: '1',
|
||||
img: require('../../../static/images/fico1.png'),
|
||||
},
|
||||
{
|
||||
label: '界面优化',
|
||||
value: '2',
|
||||
img: require('../../../static/images/fico2.png'),
|
||||
},
|
||||
{
|
||||
label: '设计缺陷',
|
||||
value: '3',
|
||||
img: require('../../../static/images/fico3.png'),
|
||||
},
|
||||
{
|
||||
label: '性能问题',
|
||||
value: '4',
|
||||
img: require('../../../static/images/fico4.png'),
|
||||
},
|
||||
{
|
||||
label: '其他问题',
|
||||
value: '9',
|
||||
img: require('../../../static/images/fico5.png'),
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 新增图片
|
||||
afterRead(event) {
|
||||
this.form.fileList = [...this.form.fileList, ...event.file]
|
||||
},
|
||||
// 删除图片
|
||||
deletePic(event) {
|
||||
this.form.fileList = this.form.fileList.filter(item => item.url !== event.file.url)
|
||||
},
|
||||
// 提交反馈
|
||||
submitFeedback() {
|
||||
if (!this.form.FEEDBACK_TITLE) {
|
||||
this.$refs.uToast.warning('为了更加方便我们排查,请输入标题')
|
||||
return
|
||||
}
|
||||
},
|
||||
}
|
||||
if (!this.form.FEEDBACK_CONTENT) {
|
||||
this.$refs.uToast.warning('为了更加方便我们排查,请输入问题描述')
|
||||
return
|
||||
}
|
||||
if (this.form.fileList.length === 0) {
|
||||
this.$refs.uToast.warning('为了更加方便我们排查,请上传问题截图或照片')
|
||||
return
|
||||
}
|
||||
let PromiseArr = [];
|
||||
for (let i = 0; i < this.form.fileList.length; i++) {
|
||||
PromiseArr.push(this.fnSetFeedbackUpload(this.form.fileList[i].url))
|
||||
}
|
||||
Promise.all(PromiseArr).then(async () => {
|
||||
await setFeedbackAdd({
|
||||
...this.form,
|
||||
USER_ID: this.$store.getters.getUserInfo.USER_ID,
|
||||
FEEDBACK_IMG: this.form.urlList.join(';')
|
||||
})
|
||||
this.$refs.uToast.show({
|
||||
message: '反馈成功',
|
||||
type: 'success',
|
||||
complete: () => {
|
||||
uni.switchTab({
|
||||
url: '/pages/mine/index/index'
|
||||
})
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$refs.uToast.show({
|
||||
message: '反馈失败',
|
||||
type: 'error',
|
||||
})
|
||||
})
|
||||
},
|
||||
async fnSetFeedbackUpload(filePath) {
|
||||
let resData = await setFeedbackUpload({
|
||||
name: 'FFILE',
|
||||
filePath,
|
||||
})
|
||||
this.form.urlList.push(resData.imgPath)
|
||||
return resData
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.feedback {
|
||||
padding: 40rpx;
|
||||
background-color: #fff;
|
||||
.feedback {
|
||||
padding: 40rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
color: $uni-text-color-placeholder;
|
||||
font-size: 30rpx;
|
||||
.title {
|
||||
font-weight: bold;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
color: $uni-text-color-placeholder;
|
||||
font-size: 30rpx;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.feedback-type {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
.feedback-type {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
|
||||
|
||||
.item {
|
||||
padding: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
margin-top: 10rpx;
|
||||
margin-right: 10rpx;
|
||||
margin-bottom: 10rpx;
|
||||
background-color: #f6f7fb;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #9fa7bc;
|
||||
width: 207rpx;
|
||||
height: 143rpx;
|
||||
box-sizing: border-box;
|
||||
line-height: 143rpx;
|
||||
text-align: center;
|
||||
.item {
|
||||
padding: 10rpx;
|
||||
border-radius: 10rpx;
|
||||
margin-top: 10rpx;
|
||||
margin-right: 10rpx;
|
||||
margin-bottom: 10rpx;
|
||||
background-color: #f6f7fb;
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
color: #9fa7bc;
|
||||
width: 207rpx;
|
||||
height: 143rpx;
|
||||
box-sizing: border-box;
|
||||
line-height: 143rpx;
|
||||
text-align: center;
|
||||
|
||||
&.active {
|
||||
background-color: #3c9cff;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
background-color: #3c9cff;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep {
|
||||
.u-upload__wrap__preview__image {
|
||||
width: 146rpx !important;
|
||||
height: 146rpx !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
::v-deep {
|
||||
.u-upload__wrap__preview__image {
|
||||
width: 146rpx !important;
|
||||
height: 146rpx !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
}
|
||||
.title {
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,84 +1,88 @@
|
|||
<template>
|
||||
<view class="main_container">
|
||||
<view class="mytop">
|
||||
<view class="mytop_main">
|
||||
<view class="mytop_main_info">
|
||||
<view class="mytop_main_info_tx">
|
||||
<u-avatar :src="userInfo.PHOTO || 'account-fill'" size="50"></u-avatar>
|
||||
</view>
|
||||
<view class="mytop_main_test">
|
||||
<view class="mytop_main_test_name">
|
||||
<view class="main_container">
|
||||
<view class="mytop">
|
||||
<view class="mytop_main">
|
||||
<view class="mytop_main_info">
|
||||
<view class="mytop_main_info_tx">
|
||||
<u-avatar :src="userInfo.PHOTO || 'account-fill'" size="50"></u-avatar>
|
||||
</view>
|
||||
<view class="mytop_main_test">
|
||||
<view class="mytop_main_test_name">
|
||||
{{ userInfo.NAME }}
|
||||
</view>
|
||||
<view class="mytop_main_test_p">
|
||||
</view>
|
||||
<view class="mytop_main_test_p">
|
||||
{{ userInfo.DEPARTMENT_NAME }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my_main">
|
||||
<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_img">
|
||||
<u--image :src="item.img" width="40rpx" height="40rpx"></u--image>
|
||||
</view>
|
||||
<view class="my_main_info_wrap_info">
|
||||
<view class="my_main_info_wrap_info_lable">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="my_main">
|
||||
<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_img">
|
||||
<u--image :src="item.img" width="40rpx" height="40rpx"></u--image>
|
||||
</view>
|
||||
<view class="my_main_info_wrap_info">
|
||||
<view class="my_main_info_wrap_info_lable">
|
||||
{{ item.name }}
|
||||
</view>
|
||||
<view class="">
|
||||
<u-icon name="arrow-right" color="#999" size="14"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="layout_btner" @click="logOut">
|
||||
<view class="layout_btn">
|
||||
退出登录
|
||||
</view>
|
||||
</view>
|
||||
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
|
||||
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText" :cancelText="updateVersion.cancelText"
|
||||
@cancel="modalCancel" @confirm="modalConfirm">
|
||||
<view style="text-align: center;color:#606266">
|
||||
<rich-text :nodes="updateVersion.modalContent"></rich-text>
|
||||
</view>
|
||||
</u-modal>
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<u-icon name="arrow-right" color="#999" size="14"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="layout_btner" @click="logOut">
|
||||
<view class="layout_btn">
|
||||
退出登录
|
||||
</view>
|
||||
</view>
|
||||
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
|
||||
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText"
|
||||
:cancelText="updateVersion.cancelText"
|
||||
@cancel="modalCancel" @confirm="modalConfirm">
|
||||
<view style="text-align: center;color:#606266">
|
||||
<rich-text :nodes="updateVersion.modalContent"></rich-text>
|
||||
</view>
|
||||
</u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import updateVersion from '../../../utils/updateVersion'
|
||||
|
||||
export default {
|
||||
mixins:[updateVersion],
|
||||
mixins: [updateVersion],
|
||||
data() {
|
||||
return {
|
||||
list:[
|
||||
list: [
|
||||
{
|
||||
img: require('../../../static/images/my_ico1.png'),
|
||||
name:'个人信息',
|
||||
url:'/pages/mine/information/index'
|
||||
name: '个人信息',
|
||||
url: '/pages/mine/information/index'
|
||||
},
|
||||
{
|
||||
img: require('../../../static/images/my_ico3.png'),
|
||||
name:'问题反馈',
|
||||
url:'/pages/mine/feedback/feedback'
|
||||
name: '问题反馈',
|
||||
url: '/pages/mine/feedback/feedback'
|
||||
},
|
||||
{
|
||||
img: require('../../../static/images/my_ico4.png'),
|
||||
name:'修改密码',
|
||||
url:'/pages/mine/change_password/change_password'
|
||||
name: '修改密码',
|
||||
url: '/pages/mine/change_password/change_password'
|
||||
},
|
||||
// #ifdef APP-PLUS
|
||||
{
|
||||
img: require('../../../static/images/my_ico5.png'),
|
||||
name:'版本更新',
|
||||
name: '版本更新',
|
||||
},
|
||||
// #endif
|
||||
{
|
||||
img: require('../../../static/images/my_ico6.png'),
|
||||
name:'关于我们',
|
||||
name: '关于我们',
|
||||
url: '/pages/mine/about_us/about_us'
|
||||
},
|
||||
],
|
||||
|
@ -110,8 +114,8 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
clickItem(name,index){
|
||||
if(name === '版本更新') this.fnUpdateVersion()
|
||||
clickItem(name, index) {
|
||||
if (name === '版本更新') this.fnUpdateVersion()
|
||||
else {
|
||||
uni.$u.route({
|
||||
url: this.list[index].url
|
||||
|
@ -123,106 +127,106 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.main_container {
|
||||
width: 100%;
|
||||
.main_container {
|
||||
width: 100%;
|
||||
|
||||
.mytop {
|
||||
width: 100%;
|
||||
background: url(/static/images/mybannerbg.png);
|
||||
height: 400rpx;
|
||||
background-size: 100% 100%;
|
||||
padding: 20rpx;
|
||||
box-sizing: border-box;
|
||||
.mytop {
|
||||
width: 100%;
|
||||
background: url(/static/images/mybannerbg.png);
|
||||
height: 400rpx;
|
||||
background-size: 100% 100%;
|
||||
padding: 20rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.mytop_main_info {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
margin-top: 150rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.mytop_main_info {
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
margin-top: 150rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.mytop_main_info_tx {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.mytop_main_info_tx {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.mytop_main_test_name {
|
||||
color: #fff;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.mytop_main_test_name {
|
||||
color: #fff;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.mytop_main_test_p {
|
||||
color: #fff;
|
||||
font-size: 26rpx;
|
||||
opacity: 0.6;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.mytop_main_test_p {
|
||||
color: #fff;
|
||||
font-size: 26rpx;
|
||||
opacity: 0.6;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.my_main {
|
||||
width: 100%;
|
||||
padding: 40rpx;
|
||||
margin-top: -120rpx;
|
||||
box-sizing: border-box;
|
||||
.my_main {
|
||||
width: 100%;
|
||||
padding: 40rpx;
|
||||
margin-top: -120rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.my_main_info {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
padding: 20rpx 40rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 0 20rpx #eee;
|
||||
.my_main_info {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
padding: 20rpx 40rpx;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
box-shadow: 0 0 20rpx #eee;
|
||||
|
||||
.my_main_info_wrap {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.my_main_info_wrap {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.my_main_info_wrap_img {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.my_main_info_wrap_img {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.my_main_info_wrap_info {
|
||||
flex: 1;
|
||||
border-bottom: 1rpx solid #eee;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 30rpx 0rpx;
|
||||
padding-left: 10rpx;
|
||||
.my_main_info_wrap_info {
|
||||
flex: 1;
|
||||
border-bottom: 1rpx solid #eee;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 30rpx 0rpx;
|
||||
padding-left: 10rpx;
|
||||
|
||||
.my_main_info_wrap_info_lable {
|
||||
.my_main_info_wrap_info_lable {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.my_main_info_wrap:last-child .my_main_info_wrap_info {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.my_main_info_wrap:last-child .my_main_info_wrap_info {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.layout_btner {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 0rpx 40rpx;
|
||||
box-sizing: border-box;
|
||||
.layout_btner {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 0rpx 40rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
.layout_btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 20rpx;
|
||||
background: #e72f2f;
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
box-shadow: 0 0 20rpx #eee;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
.layout_btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 20rpx;
|
||||
background: #e72f2f;
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
box-shadow: 0 0 20rpx #eee;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,64 +1,65 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view class="card">
|
||||
<u-cell-group>
|
||||
<u-cell title="照片">
|
||||
<template #value>
|
||||
<u--image :src="info.userPhoto" shape="circle" width="100rpx" height="100rpx"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||
<template #value>
|
||||
{{info.SEX === '1' ? '女' : ''}}
|
||||
{{info.SEX === '0' ? '男' : ''}}
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="身份证照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(userCardIDPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="民族" :value="info.minzuName"></u-cell>
|
||||
<u-cell title="户口所在地">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.HKLOCAL"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="现住址">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.ADDRESS"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||
<u-cell title="婚姻状况" :value="info.MARITALSTATUS == 0 ? '未婚':'已婚'"></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 title="是否缴纳社保" :value="info.IS_SOCIAL_NAME"></u-cell>
|
||||
<!-- 用v-if会出现渲染问题导致出现两行相同的数据 所以改成v-show modify by water_xu 2024.7.19 -->
|
||||
<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>
|
||||
<view v-for="(item,index) in socialPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(socialPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<view class="content">
|
||||
<view class="card">
|
||||
<u-cell-group>
|
||||
<u-cell title="照片">
|
||||
<template #value>
|
||||
<u--image :src="info.userPhoto" shape="circle" width="100rpx" height="100rpx"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||
<template #value>
|
||||
{{ info.SEX === '1' ? '女' : '' }}
|
||||
{{ info.SEX === '0' ? '男' : '' }}
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="身份证照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||
<u--image :src="item" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(userCardIDPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="民族" :value="info.minzuName"></u-cell>
|
||||
<u-cell title="户口所在地">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.HKLOCAL"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="现住址">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.ADDRESS"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||
<u-cell title="婚姻状况" :value="info.MARITALSTATUS == 0 ? '未婚':'已婚'"></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 title="是否缴纳社保" :value="info.IS_SOCIAL_NAME"></u-cell>
|
||||
<!-- 用v-if会出现渲染问题导致出现两行相同的数据 所以改成v-show modify by water_xu 2024.7.19 -->
|
||||
<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>
|
||||
<view v-for="(item,index) in socialPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||
<u--image :src="item" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(socialPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</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">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
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>
|
||||
|
@ -68,162 +69,158 @@
|
|||
<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">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
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="工伤保险有效期" v-show="info.IS_INJURIES_PAY==='1'" :value="info.IS_INJURIES_PAY_TIME"></u-cell>
|
||||
<u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY==='1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in injuriesPayTiemFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(injuriesPayTiemFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否按期缴纳工伤保险" :value="info.IS_INJURIES_PAY_NAME"></u-cell>
|
||||
<u-cell title="工伤保险有效期" v-show="info.IS_INJURIES_PAY==='1'" :value="info.IS_INJURIES_PAY_TIME"></u-cell>
|
||||
<u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY==='1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in injuriesPayTiemFile" :key="index"
|
||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||
<u--image :src="item" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(injuriesPayTiemFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</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">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
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-group>
|
||||
</view>
|
||||
</view>
|
||||
<u-cell title="是否流动人员" :value="info.ISFLOW_NAME"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
<fab-button type="edit" @click="$u.route({url: '/pages/mine/information/update'})"/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getUserInfo,
|
||||
getEmployedBy
|
||||
} from "../../../api";
|
||||
import {
|
||||
getUserInfo,
|
||||
getEmployedBy
|
||||
} from "../../../api";
|
||||
import FabButton from "@/components/fab_button/index.vue";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
userCardIDPhotoFile: [],
|
||||
socialPhotoFile: [],
|
||||
injuriesPayTiemFile:[],
|
||||
photosOfLevel:[],
|
||||
contractFile:[],
|
||||
insuranceFile: [],
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID:'',
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
if (e.index === 0) {
|
||||
uni.$u.route({
|
||||
url: '/pages/mine/information/update'
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.fnGetData()
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return this.$store.getters.getUserInfo
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fnPreview(urls) {
|
||||
uni.previewImage({
|
||||
urls
|
||||
})
|
||||
},
|
||||
async fnGetData() {
|
||||
this.userCardIDPhotoFile = []
|
||||
this.socialPhotoFile = []
|
||||
this.injuriesPayTiemFile = []
|
||||
this.contractFile = []
|
||||
this.photosOfLevel = []
|
||||
this.insuranceFile = []
|
||||
let Employed = await getEmployedBy({
|
||||
showCount: 10,
|
||||
currentPage: 1,
|
||||
DEPART_STATE:'0'
|
||||
})
|
||||
if(Employed.varList.length>0){
|
||||
Employed.varList.forEach(item => {
|
||||
console.log(item.EMPLOYMENT_APPLY_MANAGEMENT_ID);
|
||||
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = item.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
})
|
||||
}
|
||||
let resData = await getUserInfo({
|
||||
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID:this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
})
|
||||
this.info = resData.pd
|
||||
for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) {
|
||||
this.userCardIDPhotoFile.push(this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH)
|
||||
}
|
||||
for (let i = 0; i < resData.socialPhotoFile.length; i++) {
|
||||
this.socialPhotoFile.push(this.$filePath + resData.socialPhotoFile[i].FILEPATH)
|
||||
}
|
||||
export default {
|
||||
components: {FabButton},
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
userCardIDPhotoFile: [],
|
||||
socialPhotoFile: [],
|
||||
injuriesPayTiemFile: [],
|
||||
photosOfLevel: [],
|
||||
contractFile: [],
|
||||
insuranceFile: [],
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: '',
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.fnGetData()
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return this.$store.getters.getUserInfo
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fnPreview(urls) {
|
||||
uni.previewImage({
|
||||
urls
|
||||
})
|
||||
},
|
||||
async fnGetData() {
|
||||
this.userCardIDPhotoFile = []
|
||||
this.socialPhotoFile = []
|
||||
this.injuriesPayTiemFile = []
|
||||
this.contractFile = []
|
||||
this.photosOfLevel = []
|
||||
this.insuranceFile = []
|
||||
let Employed = await getEmployedBy({
|
||||
showCount: 10,
|
||||
currentPage: 1,
|
||||
DEPART_STATE: '0'
|
||||
})
|
||||
if (Employed.varList.length > 0) {
|
||||
Employed.varList.forEach(item => {
|
||||
console.log(item.EMPLOYMENT_APPLY_MANAGEMENT_ID);
|
||||
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = item.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
})
|
||||
}
|
||||
let resData = await getUserInfo({
|
||||
CORPINFO_ID: this.userInfo.CORPINFO_ID,
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
})
|
||||
this.info = resData.pd
|
||||
for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) {
|
||||
this.userCardIDPhotoFile.push(this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH)
|
||||
}
|
||||
for (let i = 0; i < resData.socialPhotoFile.length; i++) {
|
||||
this.socialPhotoFile.push(this.$filePath + resData.socialPhotoFile[i].FILEPATH)
|
||||
}
|
||||
|
||||
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
|
||||
this.injuriesPayTiemFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH)
|
||||
}
|
||||
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
|
||||
this.injuriesPayTiemFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH)
|
||||
}
|
||||
|
||||
for (let i = 0; i < resData.contractFile.length; i++) {
|
||||
this.contractFile.push(this.$filePath + resData.contractFile[i].FILEPATH)
|
||||
}
|
||||
for (let i = 0; i < resData.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.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)
|
||||
}
|
||||
for (let i = 0; i < resData.insuranceFile.length; i++) {
|
||||
this.insuranceFile.push(this.$filePath + resData.insuranceFile[i].FILEPATH)
|
||||
}
|
||||
|
||||
if (this.info.ISFLOW === '0') {
|
||||
this.info.ISFLOW_NAME = '否'
|
||||
} else if (this.info.ISFLOW === '1') {
|
||||
this.info.ISFLOW_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_SOCIAL === '0') {
|
||||
this.info.IS_SOCIAL_NAME = '否'
|
||||
} else if (this.info.IS_SOCIAL === '1') {
|
||||
this.info.IS_SOCIAL_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_INJURIES_PAY === '0') {
|
||||
this.info.IS_INJURIES_PAY_NAME = '否'
|
||||
} else if (this.info.IS_INJURIES_PAY === '1') {
|
||||
this.info.IS_INJURIES_PAY_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_SIGN_LABOR === '0') {
|
||||
this.info.IS_SIGN_LABOR_NAME = '否'
|
||||
} else if (this.info.IS_SIGN_LABOR === '1') {
|
||||
this.info.IS_SIGN_LABOR_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_LEVEL_THREE === '0'){
|
||||
this.info.IS_LEVEL_THREE_NAME = '否'
|
||||
} else if (this.info.IS_LEVEL_THREE === '1'){
|
||||
this.info.IS_LEVEL_THREE_NAME = '是'
|
||||
}
|
||||
if (this.info.ISPAY === '1'){
|
||||
this.info.ISPAY_NAME = '是'
|
||||
}else {
|
||||
this.info.ISPAY_NAME = '否'
|
||||
}
|
||||
if (resData.userPhotoFile.length > 0) {
|
||||
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
if (this.info.ISFLOW === '0') {
|
||||
this.info.ISFLOW_NAME = '否'
|
||||
} else if (this.info.ISFLOW === '1') {
|
||||
this.info.ISFLOW_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_SOCIAL === '0') {
|
||||
this.info.IS_SOCIAL_NAME = '否'
|
||||
} else if (this.info.IS_SOCIAL === '1') {
|
||||
this.info.IS_SOCIAL_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_INJURIES_PAY === '0') {
|
||||
this.info.IS_INJURIES_PAY_NAME = '否'
|
||||
} else if (this.info.IS_INJURIES_PAY === '1') {
|
||||
this.info.IS_INJURIES_PAY_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_SIGN_LABOR === '0') {
|
||||
this.info.IS_SIGN_LABOR_NAME = '否'
|
||||
} else if (this.info.IS_SIGN_LABOR === '1') {
|
||||
this.info.IS_SIGN_LABOR_NAME = '是'
|
||||
}
|
||||
if (this.info.IS_LEVEL_THREE === '0') {
|
||||
this.info.IS_LEVEL_THREE_NAME = '否'
|
||||
} else if (this.info.IS_LEVEL_THREE === '1') {
|
||||
this.info.IS_LEVEL_THREE_NAME = '是'
|
||||
}
|
||||
if (this.info.ISPAY === '1') {
|
||||
this.info.ISPAY_NAME = '是'
|
||||
} else {
|
||||
this.info.ISPAY_NAME = '否'
|
||||
}
|
||||
if (resData.userPhotoFile.length > 0) {
|
||||
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,15 +1,13 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<view>
|
||||
<web-view src="https://skqhdg.porthebei.com:9006/xieyi/privacy.html"></web-view>
|
||||
<web-view src="https://skqhdg.porthebei.com:9006/xieyi/privacy.html"></web-view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,254 +1,256 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="content" style="padding: 10px;">
|
||||
<view class="card">
|
||||
<view class="text_content">
|
||||
<view class="title title_left">基础信息</view>
|
||||
<!-- <view class="title_right" @click="fnGoEditUserInfo">修改</view>-->
|
||||
</view>
|
||||
<u-cell-group>
|
||||
<u-cell title="照片">
|
||||
<template #value>
|
||||
<u--image :src="info.userPhoto" shape="circle" width="100rpx" height="100rpx"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||
<template #value>
|
||||
{{info.SEX === '1' ? '女' : ''}}
|
||||
{{info.SEX === '0' ? '男' : ''}}
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="身份证照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(userCardIDPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="民族" :value="info.NATIONALITY_NAME"></u-cell>
|
||||
<u-cell title="户口所在地">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.HKLOCAL"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="现住址">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.ADDRESS"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||
<u-cell title="婚姻状况" :value="info.MARITALSTATUS_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>
|
||||
<view>
|
||||
<view class="content" style="padding: 10px;">
|
||||
<view class="card">
|
||||
<view class="text_content">
|
||||
<view class="title title_left">基础信息</view>
|
||||
<!-- <view class="title_right" @click="fnGoEditUserInfo">修改</view>-->
|
||||
</view>
|
||||
<u-cell-group>
|
||||
<u-cell title="照片">
|
||||
<template #value>
|
||||
<u--image :src="info.userPhoto" shape="circle" width="100rpx" height="100rpx"></u--image>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="姓名" :value="info.NAME"></u-cell>
|
||||
<u-cell title="性别" :value="info.SEX === '1' ? '女' : '男'">
|
||||
<template #value>
|
||||
{{ info.SEX === '1' ? '女' : '' }}
|
||||
{{ info.SEX === '0' ? '男' : '' }}
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="出生年月" :value="info.DATE_OF_BIRTH"></u-cell>
|
||||
<u-cell title="年龄" :value="info.AGE"></u-cell>
|
||||
<u-cell title="身份证" :value="info.CARD_ID"></u-cell>
|
||||
<u-cell title="身份证照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in userCardIDPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||
<u--image :src="item" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(userCardIDPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="民族" :value="info.NATIONALITY_NAME"></u-cell>
|
||||
<u-cell title="户口所在地">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.HKLOCAL"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="现住址">
|
||||
<template #value>
|
||||
<u--text :lines="2" align="right" :text="info.ADDRESS"></u--text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="联系电话" :value="info.PHONE"></u-cell>
|
||||
<u-cell title="婚姻状况" :value="info.MARITALSTATUS_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 title="社会保障号" :value="info.SOCIAL_NUMBER"></u-cell>
|
||||
<u-cell title="社会保障卡照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in socialPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(socialPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否流动人员" :value="info.ISFLOW == '0' ? '否' : '是'"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content" style="padding: 10px">
|
||||
<view class="card">
|
||||
<view class="text_content">
|
||||
<view class="title title_left">企业就职信息</view>
|
||||
<!-- <view v-if = "info.DEPART_STATE == '0'" class="title_right" @click="goEdit">修改</view>-->
|
||||
<!-- <view v-else class="title_right_red">已离职</view>-->
|
||||
<u-cell title="社会保障号" :value="info.SOCIAL_NUMBER"></u-cell>
|
||||
<u-cell title="社会保障卡照片">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in socialPhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||
<u--image :src="item" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(socialPhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否流动人员" :value="info.ISFLOW == '0' ? '否' : '是'"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content" style="padding: 10px">
|
||||
<view class="card">
|
||||
<view class="text_content">
|
||||
<view class="title title_left">企业就职信息</view>
|
||||
<!-- <view v-if = "info.DEPART_STATE == '0'" class="title_right" @click="goEdit">修改</view>-->
|
||||
<!-- <view v-else class="title_right_red">已离职</view>-->
|
||||
<view class="title_right_red" v-if="info.DEPART_STATE != '0'">已离职</view>
|
||||
</view>
|
||||
<u-cell-group>
|
||||
<u-cell title="岗位名称" :value="info.POST_ID"></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.IS_SIGN_LABOR == '0' ? '否' : '是'"></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">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(contractFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否缴纳工伤保险" :value="info.IS_INJURIES_PAY == '0' ? '否' : '是'"></u-cell>
|
||||
<u-cell title="工伤有效期" v-show="info.IS_INJURIES_PAY === '1'" :value="info.IS_INJURIES_PAY_TIME">
|
||||
</u-cell>
|
||||
<u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY === '1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in workInsurancePhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(workInsurancePhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否缴纳商业保险" :value="info.ISPAY == '0' ? '否' : '是'"></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">
|
||||
<u--image :src="item" width="100rpx" height="100rpx" style="margin-left: 10rpx;"
|
||||
@click="fnPreview(insuranceFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否参加三级安全培训" :value="info.IS_LEVEL_THREE == '0' ? '否' : '是'"></u-cell>
|
||||
<u-cell title="是否特殊工种" :value="info.IS_SPECIAL_JOB == '0' ? '否' : '是'"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-cell-group>
|
||||
<u-cell title="岗位名称" :value="info.POST_ID"></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.IS_SIGN_LABOR == '0' ? '否' : '是'"></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.IS_INJURIES_PAY == '0' ? '否' : '是'"></u-cell>
|
||||
<u-cell title="工伤有效期" v-show="info.IS_INJURIES_PAY === '1'" :value="info.IS_INJURIES_PAY_TIME">
|
||||
</u-cell>
|
||||
<u-cell title="工伤保险凭证" v-show="info.IS_INJURIES_PAY === '1'">
|
||||
<template #value>
|
||||
<view v-for="(item,index) in workInsurancePhotoFile" :key="index"
|
||||
style="display: flex;justify-content: space-between;margin-left: 10rpx;">
|
||||
<u--image :src="item" width="100rpx" height="100rpx"
|
||||
@click="fnPreview(workInsurancePhotoFile)"></u--image>
|
||||
</view>
|
||||
</template>
|
||||
</u-cell>
|
||||
<u-cell title="是否缴纳商业保险" :value="info.ISPAY == '0' ? '否' : '是'"></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_LEVEL_THREE == '0' ? '否' : '是'"></u-cell>
|
||||
<u-cell title="是否特殊工种" :value="info.IS_SPECIAL_JOB == '0' ? '否' : '是'"></u-cell>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getUserInfo
|
||||
} from "../../api";
|
||||
import {
|
||||
getUserInfo
|
||||
} from "../../api";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
empInfo: {},
|
||||
userPhoto: {},
|
||||
contractFile: [],
|
||||
userCardIDPhotoFile: [],
|
||||
socialPhotoFile: [],
|
||||
insuranceFile: [],
|
||||
workInsurancePhotoFile: [],
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: '',
|
||||
CORPINFO_ID: '',
|
||||
DEPART_STATE: ''
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
if (e.index === 0) {
|
||||
this.goEdit()
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = query.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
this.CORPINFO_ID = query.CORPINFO_ID
|
||||
// if (query.DEPART_STATE != '0') {
|
||||
// this.DEPART_STATE = query.DEPART_STATE
|
||||
// }
|
||||
this.fnGetData()
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return this.$store.getters.getUserInfo
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fnGoEditUserInfo() {
|
||||
uni.$u.route({
|
||||
url: '/pages/mine/information/update'
|
||||
})
|
||||
},
|
||||
// goEdit() {
|
||||
// uni.$u.route({
|
||||
// url: '/pages/related_party_units/edit',
|
||||
// params: {
|
||||
// EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
// CORPINFO_ID: this.CORPINFO_ID,
|
||||
// DEPART_STATE: this.DEPART_STATE
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
reloadx() {
|
||||
this.contractFile = []
|
||||
this.insuranceFile = []
|
||||
this.userCardIDPhotoFile = []
|
||||
this.socialPhotoFile = []
|
||||
this.workInsurancePhotoFile = []
|
||||
this.fnGetData()
|
||||
},
|
||||
async fnGetData() {
|
||||
let resData = await getUserInfo({
|
||||
// CORPINFO_ID:this.userInfo.CORPINFO_ID,
|
||||
dataType: this.DEPART_STATE,
|
||||
CORPINFO_ID: this.CORPINFO_ID,
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
})
|
||||
this.info = resData.pd
|
||||
if(resData.userCardIDPhotoFile){
|
||||
for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) {
|
||||
this.userCardIDPhotoFile.push(this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH)
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {},
|
||||
empInfo: {},
|
||||
userPhoto: {},
|
||||
contractFile: [],
|
||||
userCardIDPhotoFile: [],
|
||||
socialPhotoFile: [],
|
||||
insuranceFile: [],
|
||||
workInsurancePhotoFile: [],
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: '',
|
||||
CORPINFO_ID: '',
|
||||
DEPART_STATE: ''
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
if (e.index === 0) {
|
||||
this.goEdit()
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
this.EMPLOYMENT_APPLY_MANAGEMENT_ID = query.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
this.CORPINFO_ID = query.CORPINFO_ID
|
||||
// if (query.DEPART_STATE != '0') {
|
||||
// this.DEPART_STATE = query.DEPART_STATE
|
||||
// }
|
||||
this.fnGetData()
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return this.$store.getters.getUserInfo
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fnGoEditUserInfo() {
|
||||
uni.$u.route({
|
||||
url: '/pages/mine/information/update'
|
||||
})
|
||||
},
|
||||
// goEdit() {
|
||||
// uni.$u.route({
|
||||
// url: '/pages/related_party_units/edit',
|
||||
// params: {
|
||||
// EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID,
|
||||
// CORPINFO_ID: this.CORPINFO_ID,
|
||||
// DEPART_STATE: this.DEPART_STATE
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
reloadx() {
|
||||
this.contractFile = []
|
||||
this.insuranceFile = []
|
||||
this.userCardIDPhotoFile = []
|
||||
this.socialPhotoFile = []
|
||||
this.workInsurancePhotoFile = []
|
||||
this.fnGetData()
|
||||
},
|
||||
async fnGetData() {
|
||||
let resData = await getUserInfo({
|
||||
// CORPINFO_ID:this.userInfo.CORPINFO_ID,
|
||||
dataType: this.DEPART_STATE,
|
||||
CORPINFO_ID: this.CORPINFO_ID,
|
||||
EMPLOYMENT_APPLY_MANAGEMENT_ID: this.EMPLOYMENT_APPLY_MANAGEMENT_ID
|
||||
})
|
||||
this.info = resData.pd
|
||||
if (resData.userCardIDPhotoFile) {
|
||||
for (let i = 0; i < resData.userCardIDPhotoFile.length; i++) {
|
||||
this.userCardIDPhotoFile.push(this.$filePath + resData.userCardIDPhotoFile[i].FILEPATH)
|
||||
}
|
||||
if(resData.socialPhotoFile){
|
||||
for (let i = 0; i < resData.socialPhotoFile.length; i++) {
|
||||
this.socialPhotoFile.push(this.$filePath + resData.socialPhotoFile[i].FILEPATH)
|
||||
}
|
||||
}
|
||||
if (resData.socialPhotoFile) {
|
||||
for (let i = 0; i < resData.socialPhotoFile.length; i++) {
|
||||
this.socialPhotoFile.push(this.$filePath + resData.socialPhotoFile[i].FILEPATH)
|
||||
}
|
||||
if(resData.contractFile){
|
||||
for (let i = 0; i < resData.contractFile.length; i++) {
|
||||
this.contractFile.push(this.$filePath + resData.contractFile[i].FILEPATH)
|
||||
}
|
||||
}
|
||||
if (resData.contractFile) {
|
||||
for (let i = 0; i < resData.contractFile.length; i++) {
|
||||
this.contractFile.push(this.$filePath + resData.contractFile[i].FILEPATH)
|
||||
}
|
||||
if(resData.insuranceFile){
|
||||
for (let i = 0; i < resData.insuranceFile.length; i++) {
|
||||
this.insuranceFile.push(this.$filePath + resData.insuranceFile[i].FILEPATH)
|
||||
}
|
||||
}
|
||||
if (resData.insuranceFile) {
|
||||
for (let i = 0; i < resData.insuranceFile.length; i++) {
|
||||
this.insuranceFile.push(this.$filePath + resData.insuranceFile[i].FILEPATH)
|
||||
}
|
||||
if(resData.workInsurancePhotoFile){
|
||||
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
|
||||
this.workInsurancePhotoFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH)
|
||||
}
|
||||
}
|
||||
if(resData.userPhotoFile && resData.userPhotoFile.length>0){
|
||||
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
|
||||
console.log(this.info.userPhoto)
|
||||
}
|
||||
if (resData.workInsurancePhotoFile) {
|
||||
for (let i = 0; i < resData.workInsurancePhotoFile.length; i++) {
|
||||
this.workInsurancePhotoFile.push(this.$filePath + resData.workInsurancePhotoFile[i].FILEPATH)
|
||||
}
|
||||
}
|
||||
if (resData.userPhotoFile && resData.userPhotoFile.length > 0) {
|
||||
this.$set(this.info, 'userPhoto', this.$filePath + resData.userPhotoFile[0].FILEPATH)
|
||||
console.log(this.info.userPhoto)
|
||||
}
|
||||
|
||||
},
|
||||
fnPreview(urls) {
|
||||
uni.previewImage({
|
||||
urls
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
fnPreview(urls) {
|
||||
uni.previewImage({
|
||||
urls
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.text_content {
|
||||
display: flex;
|
||||
}
|
||||
.text_content {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.title_left {
|
||||
font-size: 40rpx;
|
||||
justify-content: flex-start;
|
||||
float: left;
|
||||
text-align: left;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.title_left {
|
||||
font-size: 40rpx;
|
||||
justify-content: flex-start;
|
||||
float: left;
|
||||
text-align: left;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.title_right {
|
||||
margin-left: auto;
|
||||
font-size: 30rpx;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.title_right_red {
|
||||
margin-left: auto;
|
||||
color: red;
|
||||
font-size: 30rpx;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.title_right {
|
||||
margin-left: auto;
|
||||
font-size: 30rpx;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.title_right_red {
|
||||
margin-left: auto;
|
||||
color: red;
|
||||
font-size: 30rpx;
|
||||
margin-top: 5px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
</view>
|
||||
<view class="flex-between mt-10 subtitle">
|
||||
<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>
|
||||
</u-list-item>
|
||||
|
@ -41,29 +42,29 @@ export default {
|
|||
onLoad() {
|
||||
this.resetList()
|
||||
},
|
||||
methods:{
|
||||
async getData(){
|
||||
methods: {
|
||||
async getData() {
|
||||
let resData = await getServiceUnitList({
|
||||
showCount: this.pageSize,
|
||||
currentPage: this.currentPage,
|
||||
});
|
||||
this.list = [...this.list,...resData.varList];
|
||||
this.list = [...this.list, ...resData.varList];
|
||||
this.totalPage = resData.page.totalPage;
|
||||
},
|
||||
resetList() {
|
||||
this.pageSize= 10
|
||||
this.currentPage= 1
|
||||
this.pageSize = 10
|
||||
this.currentPage = 1
|
||||
this.list = []
|
||||
this.getData()
|
||||
},
|
||||
scrolltolower() {
|
||||
this.currentPage++;
|
||||
if(this.totalPage >= this.currentPage) this.getData();
|
||||
if (this.totalPage >= this.currentPage) this.getData();
|
||||
},
|
||||
fnView(SERVICE_COMPANY_USER_MAP_ID){
|
||||
fnView(SERVICE_COMPANY_USER_MAP_ID) {
|
||||
uni.$u.route({
|
||||
url: '/pages/service_unit_management/view',
|
||||
params:{
|
||||
params: {
|
||||
SERVICE_COMPANY_USER_MAP_ID
|
||||
}
|
||||
})
|
||||
|
|
|
@ -20,7 +20,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
SERVICE_COMPANY_USER_MAP_ID: '',
|
||||
info:{}
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
|
@ -30,7 +30,7 @@ export default {
|
|||
methods: {
|
||||
async fnGetData() {
|
||||
let resData = await getServiceUnitView({
|
||||
SERVICE_COMPANY_USER_MAP_ID:this.SERVICE_COMPANY_USER_MAP_ID
|
||||
SERVICE_COMPANY_USER_MAP_ID: this.SERVICE_COMPANY_USER_MAP_ID
|
||||
})
|
||||
this.info = resData.pd
|
||||
}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
|
@ -15,50 +15,6 @@
|
|||
height: 507rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
.wui-bar{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 100rpx;
|
||||
justify-content: flex-end;
|
||||
z-index: 9999;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
.search-form{
|
||||
background: rgba(255,255,255,0.2);
|
||||
border-radius: 100rpx;
|
||||
flex: 1;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 30rpx;
|
||||
padding: 0 30rpx;
|
||||
.cuIcon-search{
|
||||
color: rgba(255,255,255,0.5);
|
||||
margin-right: 16rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
input{
|
||||
color: rgba(255,255,255,0.5);
|
||||
flex: 1;
|
||||
padding-right: 30rpx;
|
||||
height: 64rpx;
|
||||
line-height: 64rpx;
|
||||
font-size: 26rpx;
|
||||
background-color: transparent;
|
||||
.phcolor{
|
||||
color: rgba(255,255,255,0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
.icon-ui {
|
||||
color: #fff;
|
||||
font-size: 42rpx;
|
||||
margin-right: 22rpx;
|
||||
}
|
||||
}
|
||||
.banner_img{
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
|
|
|
@ -1,134 +1,125 @@
|
|||
.ml-10{
|
||||
.ml-10 {
|
||||
margin-left: 20rpx !important;
|
||||
}
|
||||
.mt-10{
|
||||
|
||||
.mt-10 {
|
||||
margin-top: 20rpx !important;
|
||||
}
|
||||
.mb-10{
|
||||
|
||||
.mb-10 {
|
||||
margin-bottom: 20rpx !important;
|
||||
}
|
||||
.mr-10{
|
||||
|
||||
.mr-10 {
|
||||
margin-right: 20rpx !important;
|
||||
}
|
||||
.m-10{
|
||||
|
||||
.m-10 {
|
||||
margin: 20rpx !important;
|
||||
}
|
||||
.p-10{
|
||||
|
||||
.p-10 {
|
||||
padding: 20rpx !important;
|
||||
}
|
||||
.pl-10{
|
||||
|
||||
.pl-10 {
|
||||
padding-left: 20rpx !important;
|
||||
}
|
||||
.pr-10{
|
||||
|
||||
.pr-10 {
|
||||
padding-right: 20rpx !important;
|
||||
}
|
||||
.pt-10{
|
||||
|
||||
.pt-10 {
|
||||
padding-top: 20rpx !important;
|
||||
}
|
||||
.pb-10{
|
||||
|
||||
.pb-10 {
|
||||
padding-bottom: 20rpx !important;
|
||||
}
|
||||
.w100{
|
||||
|
||||
.w100 {
|
||||
width: 100%;
|
||||
}
|
||||
.flex1{
|
||||
|
||||
.flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
.pr{
|
||||
|
||||
.pr {
|
||||
position: relative;
|
||||
}
|
||||
.border{
|
||||
border: 1px solid #e5e5e5;
|
||||
|
||||
.border {
|
||||
border: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
background-color: $uni-bg-color-grey;
|
||||
}
|
||||
.card{
|
||||
|
||||
.card {
|
||||
padding: 20rpx;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.search{
|
||||
|
||||
.search {
|
||||
border-bottom: 1px solid #ccc;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
.u-text{
|
||||
|
||||
.u-text {
|
||||
width: 100rpx !important;
|
||||
flex: none !important;
|
||||
}
|
||||
|
||||
.u-button {
|
||||
height: 68rpx !important;
|
||||
}
|
||||
.u-input__content__field-wrapper__field{
|
||||
|
||||
.u-input__content__field-wrapper__field {
|
||||
height: 42rpx !important;
|
||||
}
|
||||
}
|
||||
.bth-mini{
|
||||
width: auto !important;
|
||||
border-radius: 15rpx !important;
|
||||
margin-left: unset;
|
||||
margin-right: unset;
|
||||
}
|
||||
.bth{
|
||||
flex: 1;
|
||||
border-radius: 15rpx !important;
|
||||
margin-left: unset;
|
||||
margin-right: unset;
|
||||
}
|
||||
.flex-between{
|
||||
|
||||
.flex-between {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.flex-end{
|
||||
|
||||
.flex-end {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.flex-warp{
|
||||
|
||||
.flex-warp {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.main-title{
|
||||
|
||||
.main-title {
|
||||
color: #333333;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.subtitle{
|
||||
|
||||
.subtitle {
|
||||
color: #888888;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.view-title{
|
||||
border-left: 8rpx solid #1d82fe;
|
||||
.u-text{
|
||||
padding-left: 10rpx;
|
||||
color: #353535 !important;
|
||||
}
|
||||
}
|
||||
.title{
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
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{
|
||||
&:before{
|
||||
|
||||
.required {
|
||||
&:before {
|
||||
content: '*';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
@ -137,18 +128,3 @@
|
|||
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: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue