马宇豪
2025-04-23 34ec919649adfefeecd0418284dd7b02e9ed49b8
src/views/enterprise/enterpriseDetailForm.vue
@@ -261,7 +261,7 @@
            }else{
                if(this.title === '新增'){
                    let addForm = this.$refs.enterpriseBasicInformation.dataForm
                    if(updateForm.validstarttime == null){
                    if(addForm.validstarttime == null){
                        this.$notify({
                            title:'警告',
                            message:'请填写许可证期限',
@@ -286,34 +286,24 @@
                        }
                    }
                }
                else{
                } else{
                    let updateForm = this.$refs.enterpriseBasicInformation.dataForm
                    if(updateForm.validstarttime == null){
                    let res = await updateNewEnterprise(updateForm)
                    if(res.data.code === "200"){
                        this.$emit('getinfo')
                        this.dialogVisible = false
                        this.$notify({
                            title:'警告',
                            message:'请填写许可证期限',
                            type:'warning'
                            type:'success',
                            duration:2000,
                            message:'成功',
                            title:'成功',
                        })
                    }else {
                        let res = await updateNewEnterprise(updateForm)
                        if(res.data.code === "200"){
                            this.$emit('getinfo')
                            this.dialogVisible = false
                            this.$notify({
                                type:'success',
                                duration:2000,
                                message:'成功',
                                title:'成功',
                            })
                        }else {
                            this.$message({
                                type:'warning',
                                message:res.data.message
                            })
                        }
                        this.$message({
                            type:'warning',
                            message:res.data.message
                        })
                    }
                }
            }
        },