From 304dcf0fa2035cd9030191cecca23f9ab38dfce9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Nov 2025 14:05:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9supplieraudit?= =?UTF-8?q?=E4=B8=BA=E6=96=B0=E7=9A=84=E5=B7=A5=E5=8D=95=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pum/supplieraudit_form.vue | 32 ++++++++++++++++++---------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/pum/supplieraudit_form.vue b/src/views/pum/supplieraudit_form.vue index f321421e..f605ee10 100644 --- a/src/views/pum/supplieraudit_form.vue +++ b/src/views/pum/supplieraudit_form.vue @@ -43,20 +43,28 @@ + 删除 + 提交审批 @@ -90,7 +98,7 @@ export default { survery_form_: null }, localMode: this.mode, - ticketTitle: "供应商审核" + saveLoading: false, } }, watch: { @@ -124,16 +132,18 @@ export default { }) }) }, - async submit_b_func() { + handleSave() { if (this.localMode == "add") { - let res = await this.$API.pum.supplieraudit.create.req(this.formData); - this.ticketTitle = this.formData.name + "的供应商审核"; - this.formData.id = res.id; - return res.id; + this.saveLoading = true; + this.$API.pum.supplieraudit.create.req(this.formData).then(res=>{ + this.saveLoading = true; + this.$message.success("提交成功"); + }).catch(e=>{ + this.saveLoading = false; + }) + this.$emit('success', this.localMode); } else if (this.localMode == "edit") { - console.log(this.formData); - this.$message.error("不支持编辑"); - throw new Error("不支持编辑"); + this.$message.error("不支持编辑!") } }, }