diff --git a/pages/pum/supplieraudit_form.vue b/pages/pum/supplieraudit_form.vue index 214583d..813bb9b 100644 --- a/pages/pum/supplieraudit_form.vue +++ b/pages/pum/supplieraudit_form.vue @@ -8,7 +8,7 @@ - + @@ -25,9 +25,9 @@ - + {uni.navigateBack()}" ref="ticketd_b"> @@ -89,21 +89,25 @@ import xtUpload from "@/components/xtUpload.vue" } }, methods:{ - uploadSuccess(type, e){ - console.log('type', type, e); - console.log('form.material_type',this.form.material_type) - }, - progress(e){ - console.log(e) - }, - async handleSave(id){ + handleSave(){ let that = this; that.$refs.customForm.validate().then(res => { + that.saveLoading = true; + that.$api.supplierauditCreate(that.form).then(res => { + that.saveLoading = false; + uni.showToast({ + title: '提交成功', + icon: 'success' + }); + uni.navigateBack() + }).catch(e=>{ + that.saveLoading = false; + console.log('err', err); + }) }).catch(err => { console.log('err', err); }) - let res = await that.$api.supplierauditCreate(that.form) }, } }