From 6eb212ae28133dd0d5a61d5411909f798a7a76c4 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Thu, 13 Feb 2025 09:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=8C=85=E5=95=86=E5=85=A5=E5=9C=BA?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pro/apply/supervisorEnterApply.vue | 22 ++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/views/pro/apply/supervisorEnterApply.vue b/src/views/pro/apply/supervisorEnterApply.vue index cc13a18..d8878fa 100644 --- a/src/views/pro/apply/supervisorEnterApply.vue +++ b/src/views/pro/apply/supervisorEnterApply.vue @@ -865,6 +865,7 @@ export default { }, submitForm(formName, submitType) { this.loading = true + let isReturn = false if (submitType === '提交') { const param = { ...this.getParams(), @@ -883,16 +884,29 @@ export default { return false } //查询判断当前下所以人员文件是否上传 - judgeIsFileComplete(param).then(response => { - if (response.code === 500) { + + + try { + const response = judgeIsFileComplete(param) + console.log('response=====', response) + if (response.msg === '部分人员文件不存在,请先仔细核对,上传相关文件!') { this.$message({ message: '部分人员文件不存在,请先仔细核对,上传相关文件!', type: 'error' }) - return false + // return false + isReturn = true } - }) + } catch (error) { + this.$message({ + message: '文件检查失败,请稍后重试!', + type: 'error' + }) + // return false + } } + + if(isReturn) return this.$refs[formName].validate((valid) => { if (submitType === '提交' && !valid) { return this.$modal.msgError('请完善全部上传信息')