From 75c1a042e173eb974cbc5963d01a75f0ae4ee4f9 Mon Sep 17 00:00:00 2001 From: PQZ Date: Sat, 12 Oct 2024 17:43:59 +0800 Subject: [PATCH] 1 --- src/api/repair/tickets/Tickets.js | 10 +++---- .../repair/tickets/Components/TicketTable.vue | 28 +++++++------------ 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/src/api/repair/tickets/Tickets.js b/src/api/repair/tickets/Tickets.js index a663a3d..433baa5 100644 --- a/src/api/repair/tickets/Tickets.js +++ b/src/api/repair/tickets/Tickets.js @@ -46,12 +46,12 @@ export function setTicketsPaid(data){ }) } -// 打印导出 -export function setTicketsPrint(data){ + +export function print(id) { return request({ - url: preUrl + "/print", - method: 'post', - data + url: preUrl + "/print/" + id, + method: 'get' + }) } diff --git a/src/views/repair/tickets/Components/TicketTable.vue b/src/views/repair/tickets/Components/TicketTable.vue index 9c5d499..1396a1c 100644 --- a/src/views/repair/tickets/Components/TicketTable.vue +++ b/src/views/repair/tickets/Components/TicketTable.vue @@ -99,7 +99,7 @@ - +