flat: 金额校验
This commit is contained in:
38
api/map.js
38
api/map.js
@@ -1,25 +1,27 @@
|
|||||||
import {request} from '@/untils/AxiosUtils.js';
|
import {
|
||||||
|
request
|
||||||
|
} from '@/untils/AxiosUtils.js';
|
||||||
/*逆地址解析*/
|
/*逆地址解析*/
|
||||||
export const getcoder = (location, key, get_poi) => {
|
export const getcoder = (location, key, get_poi) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/qq/map/ws/geocoder/v1',
|
url: '/qq/map/ws/geocoder/v1',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
location,
|
location,
|
||||||
key,
|
key,
|
||||||
get_poi
|
get_poi
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*关键词输入提示*/
|
/*关键词输入提示*/
|
||||||
export const querySearch = (keyword, key) => {
|
export const querySearch = (keyword, key) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/qq/map/ws/place/v1/suggestion',
|
url: '/qq/map/ws/place/v1/suggestion',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
keyword,
|
keyword,
|
||||||
key
|
key
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -100,3 +100,11 @@ export const addInviteCompanyAuth = (params) => {
|
|||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getDictionary = (params) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/jobslink-api/system/dict-biz/dictionary',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
})
|
})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
if (resData.data.code === 200) {
|
if (resData.data.code === 200) {
|
||||||
if (false && resData.data.data) {
|
if (resData.data.data) {
|
||||||
resolve()
|
resolve()
|
||||||
} else {
|
} else {
|
||||||
// this.$api.msg('您未申请开通该功能,请联系工作人员')
|
// this.$api.msg('您未申请开通该功能,请联系工作人员')
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,8 @@
|
|||||||
</u-form-item>
|
</u-form-item>
|
||||||
<view style="font-size: 30rpx;font-weight: bold;padding: 20rpx 0 0;">岗位要求</view>
|
<view style="font-size: 30rpx;font-weight: bold;padding: 20rpx 0 0;">岗位要求</view>
|
||||||
<u-form-item label="招聘人数" prop="peopleNum" borderBottom labelWidth="80" ref="item3">
|
<u-form-item label="招聘人数" prop="peopleNum" borderBottom labelWidth="80" ref="item3">
|
||||||
<u--input type="number" v-model="info.peopleNum" border="none" placeholder="请输入招聘人数"></u--input>
|
<u--input type="number" v-model="info.peopleNum" border="none" maxlength="7"
|
||||||
|
placeholder="请输入招聘人数"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<!-- <u-form-item label="参考工资" prop="wage" labelWidth="80" borderBottom
|
<!-- <u-form-item label="参考工资" prop="wage" labelWidth="80" borderBottom
|
||||||
@click="showWage = true; hideKeyboard()" ref="item4">
|
@click="showWage = true; hideKeyboard()" ref="item4">
|
||||||
@@ -31,7 +32,8 @@
|
|||||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||||
</u-form-item> -->
|
</u-form-item> -->
|
||||||
<u-form-item label="参考工资" prop="wage" borderBottom labelWidth="80" ref="item1">
|
<u-form-item label="参考工资" prop="wage" borderBottom labelWidth="80" ref="item1">
|
||||||
<u--input v-model="info.wage" border="none" placeholder="请输入参考工资">
|
<u--input v-model="info.wage" border="none" type="number" maxlength="7" @blur="onBlurWage"
|
||||||
|
placeholder="请输入参考工资">
|
||||||
<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">
|
||||||
@@ -159,7 +161,8 @@
|
|||||||
import {
|
import {
|
||||||
submitInfo,
|
submitInfo,
|
||||||
getWorktypesBaseList,
|
getWorktypesBaseList,
|
||||||
findTradeList
|
findTradeList,
|
||||||
|
getDictionary
|
||||||
} from '@/api/userrecruit.js'
|
} from '@/api/userrecruit.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -237,6 +240,7 @@
|
|||||||
ageColumns: dic.ageArr,
|
ageColumns: dic.ageArr,
|
||||||
eduColumns: dic.eduArr,
|
eduColumns: dic.eduArr,
|
||||||
expeColumns: dic.expeArr,
|
expeColumns: dic.expeArr,
|
||||||
|
wallMaxAndMin: [],
|
||||||
rules: {
|
rules: {
|
||||||
jobName: {
|
jobName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@@ -362,12 +366,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
const {
|
||||||
|
id: staId,
|
||||||
|
label: staLabel
|
||||||
|
} = dic.wageUnitCategoryState[0].filter(item => item.id == 3)[0]
|
||||||
|
this.info.wageUnitCategory = staId
|
||||||
|
this.info.wageUnitCategoryName = staLabel
|
||||||
this.getWorkTypes()
|
this.getWorkTypes()
|
||||||
|
this.dictionary()
|
||||||
if (this.company) {
|
if (this.company) {
|
||||||
this.getDataInit()
|
this.getDataInit()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
onBlurWage(value) {
|
||||||
|
const val = this.wallMaxAndMin
|
||||||
|
if (!val.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
switch (true) {
|
||||||
|
case value < Math.min(...val):
|
||||||
|
this.info.wage = String(Math.min(...val))
|
||||||
|
return
|
||||||
|
case value > Math.max(...val):
|
||||||
|
this.info.wage = String(Math.max(...val))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async dictionary() {
|
||||||
|
let params = {
|
||||||
|
code: `wages_limit_${this.info.wageUnitCategory}`
|
||||||
|
}
|
||||||
|
this.info.wage = ''
|
||||||
|
let resData = await getDictionary(params)
|
||||||
|
if (resData.data.code === 200) {
|
||||||
|
const arr = resData.data.data.map((item) => Number(item.dictKey))
|
||||||
|
this.wallMaxAndMin = arr
|
||||||
|
}
|
||||||
|
},
|
||||||
async getDataInit() {
|
async getDataInit() {
|
||||||
const {
|
const {
|
||||||
companyTid,
|
companyTid,
|
||||||
@@ -404,6 +440,7 @@
|
|||||||
this.info.wageUnitCategoryName = value[0].label
|
this.info.wageUnitCategoryName = value[0].label
|
||||||
this.info.wageUnitCategory = value[0].id
|
this.info.wageUnitCategory = value[0].id
|
||||||
this.showWage = false
|
this.showWage = false
|
||||||
|
this.dictionary()
|
||||||
},
|
},
|
||||||
tradeConfirm(e) {
|
tradeConfirm(e) {
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in New Issue
Block a user