refactor: urgent quotation card
This commit is contained in:
parent
cd15c65a77
commit
9845b95de2
2 changed files with 17 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ defineProps<{
|
||||||
customerName?: string;
|
customerName?: string;
|
||||||
reporter?: string;
|
reporter?: string;
|
||||||
totalPrice?: number;
|
totalPrice?: number;
|
||||||
|
urgent?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
defineEmits<{
|
defineEmits<{
|
||||||
|
|
@ -44,8 +45,18 @@ defineEmits<{
|
||||||
<span>
|
<span>
|
||||||
{{ $t('general.itemNo', { msg: $t('quotation.title') }) }}
|
{{ $t('general.itemNo', { msg: $t('quotation.title') }) }}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-caption app-text-muted" style="top: 10px">
|
<span
|
||||||
|
class="text-caption row items-center"
|
||||||
|
:class="urgent ? 'urgent' : 'app-text-muted'"
|
||||||
|
style="top: 10px"
|
||||||
|
>
|
||||||
{{ code }}
|
{{ code }}
|
||||||
|
<q-icon
|
||||||
|
v-if="urgent"
|
||||||
|
name="mdi-fire"
|
||||||
|
size="xs"
|
||||||
|
style="position: absolute; top: 7px"
|
||||||
|
></q-icon>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -152,4 +163,8 @@ span {
|
||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.urgent {
|
||||||
|
color: hsl(var(--red-6-hsl));
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -525,6 +525,7 @@ watch(() => pageState.currentTab, fetchQuotationList);
|
||||||
<div class="row q-col-gutter-md">
|
<div class="row q-col-gutter-md">
|
||||||
<div v-for="v in quotationData" :key="v.id" class="col-md-4 col-12">
|
<div v-for="v in quotationData" :key="v.id" class="col-md-4 col-12">
|
||||||
<QuotationCard
|
<QuotationCard
|
||||||
|
:urgent="v.urgent"
|
||||||
:type="
|
:type="
|
||||||
pageState.currentTab !== 'all'
|
pageState.currentTab !== 'all'
|
||||||
? pageState.currentTab
|
? pageState.currentTab
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue