From 20c52ebd081fab0db4fd6d03899c5bf891df5619 Mon Sep 17 00:00:00 2001 From: gongzeliang <447196008@qq.com> Date: Sun, 10 Mar 2024 23:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UploadImagePdf/index.vue | 1 + src/views/company/invoice/index.vue | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/components/UploadImagePdf/index.vue b/src/components/UploadImagePdf/index.vue index 35cbda1..735c14e 100644 --- a/src/components/UploadImagePdf/index.vue +++ b/src/components/UploadImagePdf/index.vue @@ -100,6 +100,7 @@ export default { return true }, beginCheck() { + console.log('我进来验证了') this.$loading(true) let form = {} const invoiceCheckApi = this.type == '01' ? invoiceCheckApi01 : this.type == '02' ? invoiceCheckApi02 : this.type == '03' ? invoiceCheckApi03 : this.type == '04' ? invoiceCheckApi04 : invoiceCheckApi05; diff --git a/src/views/company/invoice/index.vue b/src/views/company/invoice/index.vue index 93a8026..ad88f7c 100644 --- a/src/views/company/invoice/index.vue +++ b/src/views/company/invoice/index.vue @@ -306,6 +306,9 @@ export default { } this.$refs.UploadImagePdf.beginCheck() }).catch((err) => { + if (err && err.length > 0){ + this.$fm('您还有数据未填写') + } if (err && err.length > 0 && err[0].name) { const fieldElement = this.$refs.form.$el.querySelector(`[name="${err[0].name}"]`); const fieldHeight = fieldElement.offsetHeight; @@ -459,6 +462,9 @@ export default { }); }).catch((err) => { this.$loading(false, 'form') + if (err && err.length > 0){ + this.$fm('您还有数据未填写') + } if (err && err.length > 0 && err[0].name) { const fieldElement = this.$refs.form.$el.querySelector(`[name="${err[0].name}"]`); const fieldHeight = fieldElement.offsetHeight;