fix: default product table
This commit is contained in:
parent
baed61b66b
commit
62edd051e6
1 changed files with 4 additions and 1 deletions
|
|
@ -174,6 +174,7 @@ function openEmployeeTable(title: string, index: number) {
|
|||
}
|
||||
|
||||
function groupByServiceId(data: typeof rows.value) {
|
||||
if (data.length === 0) return;
|
||||
const groupedItems: {
|
||||
title: string;
|
||||
product: QuotationPayload['productServiceList'][number][];
|
||||
|
|
@ -275,7 +276,9 @@ watch(
|
|||
<div class="column">
|
||||
<div class="full-width">
|
||||
<section
|
||||
v-for="(item, i) in groupByServiceId(rows)"
|
||||
v-for="(item, i) in groupByServiceId(rows) || [
|
||||
{ title: '', product: [] },
|
||||
]"
|
||||
:key="i"
|
||||
class="q-pb-md"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue