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("不支持编辑!")
}
},
}