flat: 添加企业
This commit is contained in:
@@ -369,6 +369,14 @@
|
|||||||
"colorType": "none"
|
"colorType": "none"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/recruit/subPage/enterpriceCertification/enterpriceCertification",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : "企业认证",
|
||||||
|
"enablePullDownRefresh" : false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"subPackages": [
|
"subPackages": [
|
||||||
|
|||||||
@@ -49,7 +49,12 @@
|
|||||||
let resData = await seeIsHaveCodep({idNumber})
|
let resData = await seeIsHaveCodep({idNumber})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
if(resData.data.code === 200) {
|
if(resData.data.code === 200) {
|
||||||
resData.data.data ? resolve() : this.$api.msg('您未申请开通该功能,请联系工作人员')
|
if (false && resData.data.data) {
|
||||||
|
resolve()
|
||||||
|
} else {
|
||||||
|
// this.$api.msg('您未申请开通该功能,请联系工作人员')
|
||||||
|
this.navTo('/pages/recruit/subPage/enterpriceCertification/enterpriceCertification')
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
<template>
|
||||||
|
<view class="">
|
||||||
|
<view class="content">
|
||||||
|
<u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
|
||||||
|
<u-form-item label="企业名称" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="统一信用代码" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="法人姓名" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="法人身份证号" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="所在地区" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="详细地址" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="联系人" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="手机号码" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="企业性质" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="行业" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="企业介绍" labelWidth="100" labelPosition="top" prop="userInfo.name" borderBottom
|
||||||
|
ref="item1">
|
||||||
|
<u--textarea v-model="formData.name" placeholder="请输入内容"></u--textarea>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const rules = []
|
||||||
|
import {
|
||||||
|
mapState
|
||||||
|
} from 'vuex'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
formData: {},
|
||||||
|
rules
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
authInfo: (state) => state.auth.authInfo,
|
||||||
|
userInfo: (state) => state.user.userInfo
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.content {
|
||||||
|
padding: 24rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -35,12 +35,8 @@
|
|||||||
<template slot="suffix">
|
<template slot="suffix">
|
||||||
<u-form-item class="wageunitLeft" prop="wageUnitCategory" labelWidth="0" border="surround"
|
<u-form-item class="wageunitLeft" prop="wageUnitCategory" labelWidth="0" border="surround"
|
||||||
@click="showWage = true; hideKeyboard()" ref="item4">
|
@click="showWage = true; hideKeyboard()" ref="item4">
|
||||||
<u--input
|
<u--input v-model="info.wageUnitCategoryName" disabledColor="#ffffff"
|
||||||
v-model="info.wageUnitCategoryName"
|
placeholder="请选择单位" style="width: 80px;" border="none"></u--input>
|
||||||
disabledColor="#ffffff"
|
|
||||||
placeholder="请选择单位"
|
|
||||||
style="width: 80px;"
|
|
||||||
border="none"></u--input>
|
|
||||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</template>
|
</template>
|
||||||
@@ -160,7 +156,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import dic from '@/common/dic.js'
|
import dic from '@/common/dic.js'
|
||||||
import { submitInfo, getWorktypesBaseList,findTradeList } from '@/api/userrecruit.js'
|
import {
|
||||||
|
submitInfo,
|
||||||
|
getWorktypesBaseList,
|
||||||
|
findTradeList
|
||||||
|
} from '@/api/userrecruit.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -369,7 +369,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getDataInit() {
|
async getDataInit() {
|
||||||
const { companyTid, comname, manager, telphone, companyDesc, tradeId, nature } = this.company
|
const {
|
||||||
|
companyTid,
|
||||||
|
comname,
|
||||||
|
manager,
|
||||||
|
telphone,
|
||||||
|
companyDesc,
|
||||||
|
tradeId,
|
||||||
|
nature
|
||||||
|
} = this.company
|
||||||
this.info.jobCompanyScale = companyTid
|
this.info.jobCompanyScale = companyTid
|
||||||
this.info.jobCompanyName = comname
|
this.info.jobCompanyName = comname
|
||||||
this.info.callName = manager
|
this.info.callName = manager
|
||||||
@@ -398,13 +406,18 @@ export default {
|
|||||||
this.showWage = false
|
this.showWage = false
|
||||||
},
|
},
|
||||||
tradeConfirm(e) {
|
tradeConfirm(e) {
|
||||||
const { value } = e
|
const {
|
||||||
|
value
|
||||||
|
} = e
|
||||||
this.info.tradeId = value[0].id
|
this.info.tradeId = value[0].id
|
||||||
this.info.tradeNames = value[0].name
|
this.info.tradeNames = value[0].name
|
||||||
this.showTrade = false
|
this.showTrade = false
|
||||||
},
|
},
|
||||||
skillConfirm(e) {
|
skillConfirm(e) {
|
||||||
const { value, indexs } = e
|
const {
|
||||||
|
value,
|
||||||
|
indexs
|
||||||
|
} = e
|
||||||
this.skillColumnsIndex = indexs
|
this.skillColumnsIndex = indexs
|
||||||
this.info.skillNames = this.getSkilDataNameWhereId(indexs).join('-')
|
this.info.skillNames = this.getSkilDataNameWhereId(indexs).join('-')
|
||||||
this.showSkills = false
|
this.showSkills = false
|
||||||
@@ -415,18 +428,24 @@ export default {
|
|||||||
// this.showNature = false
|
// this.showNature = false
|
||||||
// },
|
// },
|
||||||
ageConfirm(e) {
|
ageConfirm(e) {
|
||||||
const { value } = e
|
const {
|
||||||
|
value
|
||||||
|
} = e
|
||||||
this.info.ageDesc = value[0].label
|
this.info.ageDesc = value[0].label
|
||||||
this.showAge = false
|
this.showAge = false
|
||||||
},
|
},
|
||||||
eduConfirm(e) {
|
eduConfirm(e) {
|
||||||
const { value } = e
|
const {
|
||||||
|
value
|
||||||
|
} = e
|
||||||
this.info.education = value[0].value
|
this.info.education = value[0].value
|
||||||
this.info.educationLabel = value[0].label
|
this.info.educationLabel = value[0].label
|
||||||
this.showEdu = false
|
this.showEdu = false
|
||||||
},
|
},
|
||||||
expeConfirm(e) {
|
expeConfirm(e) {
|
||||||
const { value } = e
|
const {
|
||||||
|
value
|
||||||
|
} = e
|
||||||
this.info.experienceDesc = value[0].label
|
this.info.experienceDesc = value[0].label
|
||||||
this.showExpe = false
|
this.showExpe = false
|
||||||
},
|
},
|
||||||
@@ -532,7 +551,9 @@ export default {
|
|||||||
}
|
}
|
||||||
let that = this
|
let that = this
|
||||||
this.$refs.form1.validate().then(res => {
|
this.$refs.form1.validate().then(res => {
|
||||||
if(!this.info.wageUnitCategory) {return this.$api.msg('请选择参考工资单位')}
|
if (!this.info.wageUnitCategory) {
|
||||||
|
return this.$api.msg('请选择参考工资单位')
|
||||||
|
}
|
||||||
submitInfo(params).then(res => {
|
submitInfo(params).then(res => {
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
that.reset()
|
that.reset()
|
||||||
@@ -545,7 +566,9 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
getSkilDataNameWhereId(Indexs, type = true) {
|
getSkilDataNameWhereId(Indexs, type = true) {
|
||||||
if (!this.skillData) { return }
|
if (!this.skillData) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const [index1, index2, index3] = Indexs
|
const [index1, index2, index3] = Indexs
|
||||||
const work1 = this.skillData[index1]
|
const work1 = this.skillData[index1]
|
||||||
const work2 = work1.child[index2]
|
const work2 = work1.child[index2]
|
||||||
@@ -595,7 +618,11 @@ export default {
|
|||||||
uni.hideKeyboard()
|
uni.hideKeyboard()
|
||||||
},
|
},
|
||||||
skillsChange(e) {
|
skillsChange(e) {
|
||||||
const { columnIndex, index, picker = this.$refs.uPicker } = e
|
const {
|
||||||
|
columnIndex,
|
||||||
|
index,
|
||||||
|
picker = this.$refs.uPicker
|
||||||
|
} = e
|
||||||
let [index1, index2, index3] = this.skillColumnsIndex
|
let [index1, index2, index3] = this.skillColumnsIndex
|
||||||
switch (columnIndex) {
|
switch (columnIndex) {
|
||||||
case 0:
|
case 0:
|
||||||
@@ -617,9 +644,13 @@ export default {
|
|||||||
this.skillColumnsIndex = Indexs
|
this.skillColumnsIndex = Indexs
|
||||||
},
|
},
|
||||||
async getWorkTypes() {
|
async getWorkTypes() {
|
||||||
let resData = await getWorktypesBaseList({ type: 2 })
|
let resData = await getWorktypesBaseList({
|
||||||
|
type: 2
|
||||||
|
})
|
||||||
if (resData.data.code === 200) {
|
if (resData.data.code === 200) {
|
||||||
const { data } = resData.data
|
const {
|
||||||
|
data
|
||||||
|
} = resData.data
|
||||||
const arr = []
|
const arr = []
|
||||||
// 1、 空间换时间策略/user/userrecruit/saveApp
|
// 1、 空间换时间策略/user/userrecruit/saveApp
|
||||||
arr.push(data.map((item) => item.name));
|
arr.push(data.map((item) => item.name));
|
||||||
@@ -640,10 +671,12 @@ export default {
|
|||||||
height: 350rpx;
|
height: 350rpx;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wageunitLeft {
|
.wageunitLeft {
|
||||||
border-left: 3rpx solid rgb(192, 196, 204, 0.6);
|
border-left: 3rpx solid rgb(192, 196, 204, 0.6);
|
||||||
padding-left: 20rpx;
|
padding-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.wageunitLeft .u-form-item__body {
|
/deep/.wageunitLeft .u-form-item__body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user