refactor: service, package => expansion workflow step

This commit is contained in:
puriphatt 2024-11-05 14:32:32 +07:00
parent f68d49a0d9
commit 20856b2d0a

View file

@ -548,9 +548,17 @@ watch(
<!-- properties --> <!-- properties -->
<div class="bordered-t"> <div class="bordered-t">
<q-expansion-item
default-opened
switch-toggle-side
header-style="background-color: hsla(var(--info-bg) / 0.1); padding: 4px 16px; min-height: 36.08px"
header-class="row items-center q-px-md"
expand-icon-class="no-padding"
dense
>
<template #header>
<div <div
class="q-py-xs text-weight-medium row justify-between items-center q-px-md" class="text-weight-medium row justify-between items-center full-width"
style="background-color: hsla(var(--info-bg) / 0.1)"
> >
<span> <span>
{{ $t('flow.processStep') }} {{ $t('flow.processStep') }}
@ -572,7 +580,7 @@ watch(
/> />
</q-btn> </q-btn>
</div> </div>
</template>
<div class="q-py-md q-px-md full-width column"> <div class="q-py-md q-px-md full-width column">
<span <span
v-if=" v-if="
@ -604,7 +612,8 @@ watch(
> >
<div <div
v-if=" v-if="
attributes.stepProperties[stepIndex].attributes.length > 0 attributes.stepProperties[stepIndex].attributes.length >
0
" "
class="row q-gutter-sm" class="row q-gutter-sm"
> >
@ -649,7 +658,9 @@ watch(
stepIndex stepIndex
].productsId.includes(product.id) ].productsId.includes(product.id)
" "
@click="toggleCheckProductInStep(product.id, stepIndex)" @click="
toggleCheckProductInStep(product.id, stepIndex)
"
size="xs" size="xs"
/> />
{{ product.name }} {{ product.name }}
@ -677,7 +688,7 @@ watch(
{{ $t('productService.service.noPropertiesYet') }} {{ $t('productService.service.noPropertiesYet') }}
</span> </span>
</div> </div>
</q-expansion-item>
<!-- <div class="q-py-md q-px-md full-width"> <!-- <div class="q-py-md q-px-md full-width">
<div <div
v-if="attributes.additional.length > 0" v-if="attributes.additional.length > 0"