From 01c2cbcfb43e1fbc603915ee8a225b5fe39178d7 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Tue, 30 Dec 2025 14:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A2=E5=8D=95=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/order.ts | 8 ++++++++ src/views/order/index/config/content.ts | 2 +- src/views/order/index/index.vue | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/api/order/order.ts b/src/api/order/order.ts index 5ea0153..5e7cb54 100644 --- a/src/api/order/order.ts +++ b/src/api/order/order.ts @@ -64,6 +64,14 @@ const OrderApi = { data }); }, + // 订单打印 + printOrder(data: any) { + return request({ + url: `${baseURL}/print`, + method: "post", + data + }); + }, }; export default OrderApi; diff --git a/src/views/order/index/config/content.ts b/src/views/order/index/config/content.ts index 503e60a..b7f8d99 100644 --- a/src/views/order/index/config/content.ts +++ b/src/views/order/index/config/content.ts @@ -131,7 +131,7 @@ const contentConfig: IContentConfig = { label: "操作", align: "center", fixed: "right", - width: 150, + width: 180, templet: "custom", slotName: "operate", }, diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue index c4e8a8e..5595ec1 100644 --- a/src/views/order/index/index.vue +++ b/src/views/order/index/index.vue @@ -72,6 +72,7 @@