feat: refs #6336 redesign
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-04-17 10:58:07 +02:00
parent c4c317ef41
commit 52a0be449d
2 changed files with 20 additions and 27 deletions

View File

@ -82,28 +82,21 @@ async function insert() {
:key="note.id" :key="note.id"
> >
<QCardSection horizontal> <QCardSection horizontal>
<slot name="picture"> <VnAvatar
<VnAvatar :descriptor="false"
:descriptor="false" :worker-id="note.workerFk"
:worker-id="note.workerFk" size="md"
size="md" />
/>
</slot>
<div class="full-width row justify-between q-pa-xs"> <div class="full-width row justify-between q-pa-xs">
<VnUserLink <VnUserLink
:name="`${note.worker.user.nickname}`" :name="`${note.worker.user.nickname}`"
:worker-id="note.worker.id" :worker-id="note.worker.id"
/> />
{{ toDateHour(note.created) }}
<slot name="actions">
{{ toDateHour(note.created) }}
</slot>
</div> </div>
</QCardSection> </QCardSection>
<QCardSection class="q-pa-xs q-my-none q-py-none"> <QCardSection class="q-pa-xs q-my-none q-py-none">
<slot name="text"> {{ note.text }}
{{ note.text }}
</slot>
</QCardSection> </QCardSection>
</QCard> </QCard>
</TransitionGroup> </TransitionGroup>

View File

@ -226,7 +226,19 @@ function openDialog(dmsId) {
:value="t(`claim.basicData.${claim.pickup}`)" :value="t(`claim.basicData.${claim.pickup}`)"
/> />
</QCard> </QCard>
<QCard class="vn-three" v-if="salesClaimed.length > 0"> <QCard class="vn-three">
<VnTitle
:url="`#/claim/${entityId}/notes`"
:text="t('claim.summary.notes')"
/>
<ClaimNotes
:id="entityId"
:add-note="false"
style="max-height: 300px"
order="created ASC"
/>
</QCard>
<QCard class="vn-two" v-if="salesClaimed.length > 0">
<VnTitle <VnTitle
:url="`#/claim/${entityId}/lines`" :url="`#/claim/${entityId}/lines`"
:text="t('claim.summary.details')" :text="t('claim.summary.details')"
@ -268,18 +280,6 @@ function openDialog(dmsId) {
</template> </template>
</QTable> </QTable>
</QCard> </QCard>
<QCard class="vn-two">
<VnTitle
:url="`#/claim/${entityId}/notes`"
:text="t('claim.summary.notes')"
/>
<ClaimNotes
:id="entityId"
:add-note="false"
style="max-height: 300px"
order="created ASC"
/>
</QCard>
<QCard class="vn-two" v-if="claimDms.length > 0"> <QCard class="vn-two" v-if="claimDms.length > 0">
<VnTitle <VnTitle
:url="`#/claim/${entityId}/photos`" :url="`#/claim/${entityId}/photos`"