fix: todo

pull/144/MERGE
xingyu4j 2025-06-15 19:33:54 +08:00
parent 841ea4bf36
commit c9aac08ef9
1 changed files with 5 additions and 7 deletions

View File

@ -32,7 +32,7 @@ async function getOrderSum() {
/** 核销 */
async function handlePickup(pickUpVerifyCode?: string) {
if (!pickUpVerifyCode) {
pickUpVerifyCode = await prompt({
await prompt({
component: () => {
return h(Input, {});
},
@ -41,7 +41,7 @@ async function handlePickup(pickUpVerifyCode?: string) {
modelPropName: 'value',
}).then(async (val) => {
if (val) {
return val;
pickUpVerifyCode = val;
}
});
}
@ -175,9 +175,8 @@ onMounted(() => {
<template>
<Page auto-content-height>
<!-- TODO @xingyu样式乱的 -->
<Card class="mb-4 h-[10%]">
<template class="flex flex-row gap-4">
<div class="flex flex-row gap-4">
<SummaryCard
class="flex flex-1"
title="订单数量"
@ -214,9 +213,8 @@ onMounted(() => {
:decimals="2"
:value="Number(fenToYuan(summary?.afterSalePrice || 0))"
/>
</template>
</div>
</Card>
<!-- TODO @xingyu核销弹不出来 -->
<Grid class="h-[80%]" table-title="">
<template #toolbar-tools>
<TableAction
@ -226,7 +224,7 @@ onMounted(() => {
type: 'primary',
icon: 'lucide:circle-check-big',
auth: ['trade:order:pick-up'],
onClick: handlePickup,
onClick: handlePickup.bind(null, undefined),
},
{
label: serialPort ? '断开扫描枪' : '连接扫描枪',