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