pull/1/head
gongzeliang 8 months ago
parent 0d1afc2fed
commit 20c52ebd08

@ -100,6 +100,7 @@ export default {
return true return true
}, },
beginCheck() { beginCheck() {
console.log('我进来验证了')
this.$loading(true) this.$loading(true)
let form = {} let form = {}
const invoiceCheckApi = this.type == '01' ? invoiceCheckApi01 : this.type == '02' ? invoiceCheckApi02 : this.type == '03' ? invoiceCheckApi03 : this.type == '04' ? invoiceCheckApi04 : invoiceCheckApi05; const invoiceCheckApi = this.type == '01' ? invoiceCheckApi01 : this.type == '02' ? invoiceCheckApi02 : this.type == '03' ? invoiceCheckApi03 : this.type == '04' ? invoiceCheckApi04 : invoiceCheckApi05;

@ -306,6 +306,9 @@ export default {
} }
this.$refs.UploadImagePdf.beginCheck() this.$refs.UploadImagePdf.beginCheck()
}).catch((err) => { }).catch((err) => {
if (err && err.length > 0){
this.$fm('您还有数据未填写')
}
if (err && err.length > 0 && err[0].name) { if (err && err.length > 0 && err[0].name) {
const fieldElement = this.$refs.form.$el.querySelector(`[name="${err[0].name}"]`); const fieldElement = this.$refs.form.$el.querySelector(`[name="${err[0].name}"]`);
const fieldHeight = fieldElement.offsetHeight; const fieldHeight = fieldElement.offsetHeight;
@ -459,6 +462,9 @@ export default {
}); });
}).catch((err) => { }).catch((err) => {
this.$loading(false, 'form') this.$loading(false, 'form')
if (err && err.length > 0){
this.$fm('您还有数据未填写')
}
if (err && err.length > 0 && err[0].name) { if (err && err.length > 0 && err[0].name) {
const fieldElement = this.$refs.form.$el.querySelector(`[name="${err[0].name}"]`); const fieldElement = this.$refs.form.$el.querySelector(`[name="${err[0].name}"]`);
const fieldHeight = fieldElement.offsetHeight; const fieldHeight = fieldElement.offsetHeight;

Loading…
Cancel
Save