flat: 金额校验
This commit is contained in:
52
api/map.js
52
api/map.js
@@ -1,25 +1,27 @@
|
||||
import {request} from '@/untils/AxiosUtils.js';
|
||||
/*逆地址解析*/
|
||||
export const getcoder = (location, key, get_poi) => {
|
||||
return request({
|
||||
url: '/qq/map/ws/geocoder/v1',
|
||||
method: 'get',
|
||||
params: {
|
||||
location,
|
||||
key,
|
||||
get_poi
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/*关键词输入提示*/
|
||||
export const querySearch = (keyword, key) => {
|
||||
return request({
|
||||
url: '/qq/map/ws/place/v1/suggestion',
|
||||
method: 'get',
|
||||
params: {
|
||||
keyword,
|
||||
key
|
||||
}
|
||||
})
|
||||
}
|
||||
import {
|
||||
request
|
||||
} from '@/untils/AxiosUtils.js';
|
||||
/*逆地址解析*/
|
||||
export const getcoder = (location, key, get_poi) => {
|
||||
return request({
|
||||
url: '/qq/map/ws/geocoder/v1',
|
||||
method: 'get',
|
||||
params: {
|
||||
location,
|
||||
key,
|
||||
get_poi
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/*关键词输入提示*/
|
||||
export const querySearch = (keyword, key) => {
|
||||
return request({
|
||||
url: '/qq/map/ws/place/v1/suggestion',
|
||||
method: 'get',
|
||||
params: {
|
||||
keyword,
|
||||
key
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -99,4 +99,12 @@ export const addInviteCompanyAuth = (params) => {
|
||||
method: 'post',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export const getDictionary = (params) => {
|
||||
return request({
|
||||
url: '/api/jobslink-api/system/dict-biz/dictionary',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
@@ -59,7 +59,7 @@
|
||||
})
|
||||
uni.hideLoading()
|
||||
if (resData.data.code === 200) {
|
||||
if (false && resData.data.data) {
|
||||
if (resData.data.data) {
|
||||
resolve()
|
||||
} else {
|
||||
// this.$api.msg('您未申请开通该功能,请联系工作人员')
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,8 @@
|
||||
</u-form-item>
|
||||
<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--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 label="参考工资" prop="wage" labelWidth="80" borderBottom
|
||||
@click="showWage = true; hideKeyboard()" ref="item4">
|
||||
@@ -31,7 +32,8 @@
|
||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
||||
</u-form-item> -->
|
||||
<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">
|
||||
<u-form-item class="wageunitLeft" prop="wageUnitCategory" labelWidth="0" border="surround"
|
||||
@click="showWage = true; hideKeyboard()" ref="item4">
|
||||
@@ -159,7 +161,8 @@
|
||||
import {
|
||||
submitInfo,
|
||||
getWorktypesBaseList,
|
||||
findTradeList
|
||||
findTradeList,
|
||||
getDictionary
|
||||
} from '@/api/userrecruit.js'
|
||||
export default {
|
||||
data() {
|
||||
@@ -237,6 +240,7 @@
|
||||
ageColumns: dic.ageArr,
|
||||
eduColumns: dic.eduArr,
|
||||
expeColumns: dic.expeArr,
|
||||
wallMaxAndMin: [],
|
||||
rules: {
|
||||
jobName: {
|
||||
type: 'string',
|
||||
@@ -362,12 +366,44 @@
|
||||
}
|
||||
},
|
||||
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.dictionary()
|
||||
if (this.company) {
|
||||
this.getDataInit()
|
||||
}
|
||||
},
|
||||
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() {
|
||||
const {
|
||||
companyTid,
|
||||
@@ -404,6 +440,7 @@
|
||||
this.info.wageUnitCategoryName = value[0].label
|
||||
this.info.wageUnitCategory = value[0].id
|
||||
this.showWage = false
|
||||
this.dictionary()
|
||||
},
|
||||
tradeConfirm(e) {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user