收银员:{{ 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);