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 @@