|
@@ -199,8 +199,9 @@ getDict('menduner_industry_type', {}, 'industryList').then(({ data }) => {
|
|
|
// 获取基本信息
|
|
|
const getBaseInfo = async () => {
|
|
|
let completeCount = 0
|
|
|
+ const totalCount = formItems.value.options?.length || 0
|
|
|
const data = await getEnterpriseBaseInfo()
|
|
|
- if (!data) return
|
|
|
+ if (!data || !Object.keys(data).length) return emit('complete', { totalCount, completeCount, id: 'basicInfo' }) // 完成度展示
|
|
|
query.id = data.id
|
|
|
formItems.value.options.forEach(item => {
|
|
|
if (item.dictTypeName) {
|
|
@@ -219,7 +220,6 @@ const getBaseInfo = async () => {
|
|
|
if (!item.rules || (item.value !== undefined && item.value !== null && item.value !== '')) completeCount++
|
|
|
})
|
|
|
// 完成度展示
|
|
|
- const totalCount = formItems.value.options?.length || 0
|
|
|
emit('complete', { totalCount, completeCount, id: 'basicInfo' })
|
|
|
}
|
|
|
getBaseInfo()
|