From 1dec68b58904509ceb8d4af8762bd1c387aa4e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Fri, 15 Mar 2024 11:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/index.vue | 46 +++++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 36fbaec..443b7dd 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -7,7 +7,8 @@ - +
暂无数据
- + +
暂无数据
- + +
暂无数据
收银员:{{ orderDetaildata.userName }}
- 创建时间:{{dayjs( orderDetaildata.createdAt).format("YYYY-MM-DD HH:mm:ss") }} + 创建时间:{{ dayjs( + orderDetaildata.createdAt).format("YYYY-MM-DD HH:mm:ss") }}
终端:{{ orderDetaildata.zdNo }} @@ -83,17 +87,18 @@
{{ item.productName }}-{{ item.productSkuName }}
{{ item.num }}
{{ item.price }}
-
已退
+
已退
{{ item.priceAmount }}
- 退单 + 退单
- - 重打收銀打票 - - 重打出品小票 + + 重打收銀打票 + 重打出品小票
@@ -162,7 +167,7 @@ 单号:{{ orderDetaildata.orderNo }}
- 下单时间:{{ dayjs(orderDetaildata.createdAt).format("YYYY-MM-DD HH:mm:ss") }} + 下单时间:{{ dayjs(orderDetaildata.createdAt).format("YYYY-MM-DD HH:mm:ss") }}
金额:¥{{ orderDetaildata.orderAmount }} @@ -214,7 +219,7 @@ import { ref, onMounted, reactive } from 'vue' import { ElMessage, dayjs } from 'element-plus' import { useUser } from "@/store/user.js" import lodash from 'lodash' -import { orderfindOrder, orderorderDetail, payreturnOrder } from '@/api/order/index.js' +import { orderfindOrder, orderorderDetail, payreturnOrder, cloudPrinterprint } from '@/api/order/index.js' import add from '@/views/order/components/add.vue' const store = useUser() const itemboxshow = ref(false) @@ -263,6 +268,22 @@ const payreturnOrderclick = async () => { } +const print = async (e) => { + try { + await cloudPrinterprint({ + type: e, + orderId: orderDetaildata.value.id, + ispre: false + }) + ElMessage({ + message: '成功打票', + type: 'success', + }) + } catch (error) { + + } +} + const loadingboxshow = ref(false); const emititemboxshow = async (e) => { //接收子组件值 并赋值给父组件 @@ -729,6 +750,7 @@ onMounted(() => { .orderbox_right_item { margin-top: 6px; + span { font-size: var(--el-font-size-base); // color: var(--primary-color);