版本更新,折扣打印优化
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
<div class="demo_tabs_boxitem_one">
|
||||
<div class=""
|
||||
style="width: 100px; height: 70px;border-radius: 4px; background:rgb(186 200 239); display: flex; justify-content: center; align-items: center;">
|
||||
<div>{{ item.tableName || "pos" }}</div>
|
||||
<div>{{ item.tableName || "POS" }}</div>
|
||||
</div>
|
||||
<!-- <el-image style="width: 100px; height: 70px;border-radius: 10px;" :src="item.imgUrl" fit="scale-down" /> -->
|
||||
<div class="demo_tabs_boxitem_oneone">
|
||||
<div>
|
||||
{{ dayjs(item.createAt).format(" HH:mm:ss") }}
|
||||
{{ dayjs(item.createAt).format("HH:mm:ss") }}
|
||||
</div>
|
||||
<div style="color: #757575;">
|
||||
{{ dayjs(item.createAt).format("YYYY-MM-DD") }}
|
||||
@@ -30,7 +30,15 @@
|
||||
</div>
|
||||
<div class="demo_tabs_boxitem_tow">
|
||||
<div>
|
||||
¥{{ item.orderAmount }}
|
||||
<template v-if="item.discountAmount <= 0">
|
||||
¥{{ formatDecimal(item.orderAmount) }}
|
||||
</template>
|
||||
<template v-else>
|
||||
<span>¥{{ formatDecimal(item.orderAmount - item.discountAmount) }}</span>
|
||||
<span style="text-decoration: line-through;color: #999;font-size: 14px;">
|
||||
¥{{ formatDecimal(item.orderAmount) }}
|
||||
</span>
|
||||
</template>
|
||||
</div>
|
||||
<div style="color:#ff9e01;">
|
||||
<span v-if="item.status == 'pending'">挂单</span>
|
||||
@@ -46,6 +54,7 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { dayjs } from 'element-plus'
|
||||
import { formatDecimal } from '@/utils/index.js'
|
||||
|
||||
const props = defineProps({
|
||||
ordereData: {
|
||||
|
||||
Reference in New Issue
Block a user