|
@@ -137,12 +137,8 @@ const handleUploadFile = async (e) => {
|
|
const handleCommit = async () => {
|
|
const handleCommit = async () => {
|
|
// 广州辞图科技有限公司
|
|
// 广州辞图科技有限公司
|
|
const { valid } = await CtFormRef.value.formRef.validate()
|
|
const { valid } = await CtFormRef.value.formRef.validate()
|
|
- if (!valid) return
|
|
|
|
- const businessLicenseUrl = licenseUrl.value
|
|
|
|
- if (!businessLicenseUrl) {
|
|
|
|
- fileVerify.value = true
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ const businessLicenseUrl = licenseUrl.value; if (!businessLicenseUrl) fileVerify.value = true
|
|
|
|
+ if (!valid || !businessLicenseUrl) return
|
|
const baseInfo = {}
|
|
const baseInfo = {}
|
|
formItems.value.options.forEach(e => { baseInfo[e.key] = e.value })
|
|
formItems.value.options.forEach(e => { baseInfo[e.key] = e.value })
|
|
await enterpriseRegisterApply({ ...baseInfo, businessLicenseUrl })
|
|
await enterpriseRegisterApply({ ...baseInfo, businessLicenseUrl })
|