flat: 修改企业性质

This commit is contained in:
Apcallover
2024-05-06 18:01:43 +08:00
parent fe0d0af325
commit 5739f53062
3 changed files with 34 additions and 14 deletions

View File

@@ -27,8 +27,9 @@
</u-form-item>
<u-form-item label="用工单位性质" labelWidth="100" prop="nature" borderBottom ref="item1"
@click="showJobCompanyNature = true; hideKeyboard()">
<PickerList placeholder="请选择企业性质" :columns="[dic.companyEnum]" :visibel="showJobCompanyNature"
v-model="formData.nature" @cancel="showJobCompanyNature = false">
<PickerList placeholder="请选择企业性质" :columns="[xzDic]" :visibel="showJobCompanyNature"
labelName="dictValue" valueName="dictKey" v-model="formData.nature"
@cancel="showJobCompanyNature = false">
</PickerList>
</u-form-item>
<u-form-item label="所属行业" labelWidth="100" prop="tradeId" borderBottom ref="item1"
@@ -88,7 +89,8 @@
import PickerList from './pickerList.vue';
import {
addInviteCompanyAuth,
getInviteCompanyAuthInfo
getInviteCompanyAuthInfo,
getDictionary2
} from '@/api/userrecruit.js'
import {
mapState
@@ -195,6 +197,7 @@
showJobCompanyNature: false,
showjobCompanyIndustry: false,
dic,
xzDic: [],
formData: {},
rules
};
@@ -203,6 +206,7 @@
if (options.reviewStatus === '9') {
this.getInfo()
}
this.getDictInfo()
},
computed: {
...mapState({
@@ -234,9 +238,10 @@
tradeId: Number(_this.formData.tradeId),
manager: _this.authInfo.realName,
idNumber: _this.authInfo.idNumber,
companyName: dic.addressColumn[0].filter((item) => item.value == _this.formData.cityId)[0].label
companyName: dic.addressColumn[0].filter((item) => item.value == _this
.formData.cityId)[0].label
}
console.log(params)
console.log(params)
let resData = await addInviteCompanyAuth(params)
if (resData.data.code === 200) {
uni.navigateBack(1)
@@ -245,9 +250,9 @@
})
}
}).catch(errors => {
if(/[\u4e00-\u9fff]/.test(errors.message)) {
_this.$api.msg(errors.message)
}
if (/[\u4e00-\u9fff]/.test(errors.message)) {
_this.$api.msg(errors.message)
}
})
},
async getInfo() {
@@ -273,6 +278,12 @@
_this.formData = {}
},
})
},
async getDictInfo() {
let resData = await getDictionary2()
if (resData.data.code === 200) {
this.xzDic = resData.data.data
}
}
},
}