fix: todo
parent
841ea4bf36
commit
c9aac08ef9
|
@ -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 ? '断开扫描枪' : '连接扫描枪',
|
||||||
|
|
Loading…
Reference in New Issue