企业用户bug修复
This commit is contained in:
@@ -113,8 +113,8 @@
|
||||
<view class="form-item clickable" @click="selectIndustry">
|
||||
<view class="label">本地重点发展产业</view>
|
||||
<view class="input-content">
|
||||
<text class="input-text" :class="{ placeholder: !formData.industryType }">
|
||||
{{ formData.industryType || '请选择产业类型' }}
|
||||
<text class="input-text" :class="{ placeholder: !formData.industryTypeText }">
|
||||
{{ formData.industryTypeText || '请选择产业类型' }}
|
||||
</text>
|
||||
<uni-icons type="arrowright" size="16" color="#999"></uni-icons>
|
||||
</view>
|
||||
@@ -255,7 +255,8 @@ const formData = reactive({
|
||||
enterpriseType: null, // 是否是就业见习基地 (0=是, 1=否, null=未选择)
|
||||
legalIdCard: '', // 法人身份证号
|
||||
legalPhone: '', // 法人联系方式
|
||||
industryType: '', // 是否是本地重点发展产业
|
||||
industryType: '', // 本地重点发展产业值
|
||||
industryTypeText: '', // 本地重点发展产业显示文本
|
||||
isLocalCompany: null, // 是否是本地企业 (true/false/null)
|
||||
scale: '', // 企业规模
|
||||
scaleText: '', // 企业规模显示文本
|
||||
@@ -287,11 +288,17 @@ const openSelectPopup = (config) => {
|
||||
|
||||
// 产业类型选项数据
|
||||
const industryOptions = [
|
||||
'人工智能',
|
||||
'生物医药',
|
||||
'新能源',
|
||||
'高端装备制造',
|
||||
'其他'
|
||||
{ label: '粮油产业集群', value: '0' },
|
||||
{ label: '绿色矿业产业集群', value: '1' },
|
||||
{ label: '绿色有机果蔬产业集群', value: '2' },
|
||||
{ label: '煤炭煤电化工产业集群', value: '3' },
|
||||
{ label: '棉花和纺织服装产业集群', value: '4' },
|
||||
{ label: '新能源新材料等战略性新兴产业产业集群', value: '5' },
|
||||
{ label: '优质畜产品产业集群', value: '6' },
|
||||
{ label: '油气生产加工产业集群', value: '7' },
|
||||
{ label: '旅游', value: '8' },
|
||||
{ label: '电子产品', value: '9' },
|
||||
{ label: '现代商贸物流产业', value: '10' }
|
||||
]
|
||||
|
||||
// 备用企业类型选项(当字典数据加载失败时使用)
|
||||
@@ -394,10 +401,16 @@ const editCompanyIntro = () => {
|
||||
|
||||
// 选择产业类型
|
||||
const selectIndustry = () => {
|
||||
uni.showActionSheet({
|
||||
itemList: industryOptions,
|
||||
success: (res) => {
|
||||
formData.industryType = industryOptions[res.tapIndex]
|
||||
console.log('点击本地重点发展产业,当前选项:', industryOptions)
|
||||
|
||||
openSelectPopup({
|
||||
title: '本地重点发展产业',
|
||||
maskClick: true,
|
||||
data: [industryOptions],
|
||||
success: (_, [value]) => {
|
||||
console.log('选择的产业类型:', value)
|
||||
formData.industryType = value.value // 存储数字值用于传值
|
||||
formData.industryTypeText = value.label // 存储文字标签用于显示
|
||||
updateCompletion()
|
||||
$api.msg('产业类型选择成功')
|
||||
}
|
||||
@@ -485,6 +498,7 @@ const scaleOptions = computed(() => {
|
||||
return scaleData
|
||||
})
|
||||
|
||||
|
||||
// 选择企业规模
|
||||
const selectScale = () => {
|
||||
console.log('点击企业规模,当前数据:', scaleOptions.value)
|
||||
@@ -517,16 +531,6 @@ const selectScale = () => {
|
||||
showScaleSelector(options)
|
||||
}
|
||||
|
||||
// 备用企业规模选项(当字典数据加载失败时使用)
|
||||
const fallbackScaleOptions = [
|
||||
{ label: '1-10人', value: '1' },
|
||||
{ label: '11-50人', value: '2' },
|
||||
{ label: '51-100人', value: '3' },
|
||||
{ label: '101-500人', value: '4' },
|
||||
{ label: '501-1000人', value: '5' },
|
||||
{ label: '1000人以上', value: '6' }
|
||||
]
|
||||
|
||||
// 显示企业规模选择器
|
||||
const showScaleSelector = (options) => {
|
||||
console.log('企业规模选项列表:', options)
|
||||
@@ -709,7 +713,7 @@ const confirm = () => {
|
||||
legalPhone: formData.legalPhone,
|
||||
industryType: formData.industryType,
|
||||
isLocalCompany: formData.isLocalCompany,
|
||||
scale: formData.scaleText,
|
||||
scale: formData.scale, // 改为提交数字值
|
||||
companyContactList: formData.companyContactList.filter(contact => contact.contactPerson.trim() && contact.contactPersonPhone.trim())
|
||||
}
|
||||
|
||||
@@ -1008,4 +1012,3 @@ defineExpose({
|
||||
button::after
|
||||
border: none
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user