From 287d393c05a27da21dde0ff6fa3a2b2be8237852 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Sat, 23 Nov 2024 11:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E8=BD=A6=E6=8C=89=E9=92=AE=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/repair/tickets/form/TicketFinishManager.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/repair/tickets/form/TicketFinishManager.vue b/src/views/repair/tickets/form/TicketFinishManager.vue index a77a730..fb2a12b 100644 --- a/src/views/repair/tickets/form/TicketFinishManager.vue +++ b/src/views/repair/tickets/form/TicketFinishManager.vue @@ -70,7 +70,7 @@ 通知客户取车 - + 交车 @@ -139,7 +139,7 @@ @@ -226,7 +226,8 @@ export default { id: null, remark: null, image: null - } + }, + ticketId: null } }, mounted() { @@ -297,6 +298,7 @@ export default { async noticeCus(row){ // 在下面的代码执行之前,先去判断是否有项目或配件没有价格或为0 const flag = await hasPrice(row.id) + this.ticketId = row.id let choose = true if (!flag.data){ await this.$confirm('有项目或配件的价格为0,是否确认通知客户?', '选择', { @@ -343,12 +345,14 @@ export default { }, async doNotice(){ try { + this.noticeData.id = this.ticketId await this.$refs.noticeRef.validate() this.noticeLoading = true await noticeCus(this.noticeData) this.noticeDialog = false this.$modal.msgSuccess("操作成功") await this.getList() + this.ticketId = null }catch {} }, handleEdit(row){