From f73f87119dd1b609c7f94e86659c1a05c6bcfd4f Mon Sep 17 00:00:00 2001 From: lzttt <1803073139@qq.com> Date: Sat, 12 Oct 2024 12:41:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=EF=BC=88=E5=89=8D=E7=AB=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/tickets/Tickets.js | 9 ++++++ .../repair/tickets/Components/TicketTable.vue | 31 ++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/src/api/repair/tickets/Tickets.js b/src/api/repair/tickets/Tickets.js index 4e46991..a663a3d 100644 --- a/src/api/repair/tickets/Tickets.js +++ b/src/api/repair/tickets/Tickets.js @@ -46,6 +46,15 @@ export function setTicketsPaid(data){ }) } +// 打印导出 +export function setTicketsPrint(data){ + return request({ + url: preUrl + "/print", + method: 'post', + data + }) +} + // 新增客户、车辆信息 export function updateCustomerAndCar(data){ return request({ diff --git a/src/views/repair/tickets/Components/TicketTable.vue b/src/views/repair/tickets/Components/TicketTable.vue index a0ae1c3..9c5d499 100644 --- a/src/views/repair/tickets/Components/TicketTable.vue +++ b/src/views/repair/tickets/Components/TicketTable.vue @@ -115,6 +115,10 @@ @click="handleVoid(scope.row)" >作废 + 打印 + @@ -145,7 +149,7 @@