优化下单折扣
This commit is contained in:
@@ -225,12 +225,12 @@ function paySuccess() {
|
||||
emits('success')
|
||||
dialogVisible.value = false;
|
||||
ElMessage.success('支付成功')
|
||||
goodsStore.clearCart()
|
||||
useStorage.del('tableCode')
|
||||
socket.cartInit()
|
||||
goodsStore.successClearCart()
|
||||
}
|
||||
|
||||
|
||||
const payCardRef = ref(null)
|
||||
function show(t) {
|
||||
dialogVisible.value = true;
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
</div>
|
||||
<CartItem
|
||||
:item="{ product_name: '客座费', number: goodsStore.tableInfo.num, lowPrice: store.shopInfo.tableFee, memberPrice: store.shopInfo.tableFee }"
|
||||
v-if="!store.shopInfo.isTableFee && goodsStore.tableInfo.name && (goodsStore.cartList.length || goodsStore.orderList.length)" />
|
||||
v-if="!store.shopInfo.isTableFee && goodsStore.tableInfo.id" />
|
||||
<div class="order_list_item" v-for="(arr, index) in goodsStore.orderList" :key="index">
|
||||
<div class="order_num">{{ `第${arr.orderNum}次下单` }}</div>
|
||||
<CartItem type="order" :border="false" :item="item" :index="index" :i="i" :key="item.id"
|
||||
|
||||
@@ -174,6 +174,8 @@ async function checkRecord() {
|
||||
// 开始交班
|
||||
const exit = async () => {
|
||||
try {
|
||||
if (loading.value) return
|
||||
loading.value = true;
|
||||
// await staffPermission('yun_xu_jiao_ban')
|
||||
const res = await handover(isPrint.value)
|
||||
const data = await handoverData(res)
|
||||
@@ -188,8 +190,8 @@ const exit = async () => {
|
||||
}
|
||||
logoutHandle()
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
loading.value = false;
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,9 +207,9 @@ async function logoutHandle() {
|
||||
});
|
||||
}, 1000);
|
||||
} catch (error) {
|
||||
loading.value = false;
|
||||
console.log('退出失败');
|
||||
}
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
// 获取交班打印数据前置
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="box_content_left_top_item_top">
|
||||
<div>
|
||||
{{ infoData.amount }}
|
||||
{{ formatDecimal(+infoData.amount) }}
|
||||
</div>
|
||||
<div>
|
||||
总收款
|
||||
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
<div style="display: flex;">
|
||||
<span>挂账金额</span>
|
||||
<span style="font-weight: bold;">{{ item.creditAmount }}</span>
|
||||
<span style="font-weight: bold;">{{ formatDecimal(+item.creditAmount) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -123,8 +123,7 @@
|
||||
import { reactive, onMounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { handoverRecordPage } from '@/api/account.js'
|
||||
import { useUser } from "@/store/user.js"
|
||||
import { ElMessage, dayjs } from 'element-plus'
|
||||
import { formatDecimal } from "@/utils/index.js";
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user