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;