|
@@ -192,8 +192,6 @@ const query = reactive({})
|
|
|
|
|
|
// licenseUrl.value = info?.businessLicenseUrl ?? ''
|
|
// licenseUrl.value = info?.businessLicenseUrl ?? ''
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
const handleSave = async () => {
|
|
const handleSave = async () => {
|
|
const { valid } = await CtFormRef.value.formRef.validate()
|
|
const { valid } = await CtFormRef.value.formRef.validate()
|
|
if (!valid) return
|
|
if (!valid) return
|
|
@@ -205,13 +203,16 @@ const handleSave = async () => {
|
|
if (!query.establishmentTime) return Snackbar.warning('请选择成立时间')
|
|
if (!query.establishmentTime) return Snackbar.warning('请选择成立时间')
|
|
await updateEnterpriseBusiness(query)
|
|
await updateEnterpriseBusiness(query)
|
|
Snackbar.success('编辑成功')
|
|
Snackbar.success('编辑成功')
|
|
|
|
+ isUpdate = true
|
|
getBaseInfo()
|
|
getBaseInfo()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+let isUpdate = false // 是否同时更新基本信息
|
|
// 完成度展示
|
|
// 完成度展示
|
|
const completeFun = (completeCount = 0) => {
|
|
const completeFun = (completeCount = 0) => {
|
|
const totalCount = formItems.value.options?.length || 0
|
|
const totalCount = formItems.value.options?.length || 0
|
|
- emit('complete', { totalCount, completeCount, id: 'businessInformation' })
|
|
|
|
|
|
+ emit('complete', { totalCount, completeCount, id: 'businessInformation', isUpdate })
|
|
|
|
+ isUpdate = false // 重置
|
|
}
|
|
}
|
|
|
|
|
|
// 识别营业执照图片
|
|
// 识别营业执照图片
|