#7451: Deleted module property in CardSummary and each module #1378

Merged
jon merged 2 commits from 7451-DeleteModuleProp into dev 2025-02-12 12:11:20 +00:00
25 changed files with 6 additions and 44 deletions

View File

@ -29,10 +29,6 @@ const $props = defineProps({
type: String, type: String,
default: null, default: null,
}, },
module: {
type: String,
default: null,
},
summary: { summary: {
type: Object, type: Object,
default: null, default: null,
@ -148,7 +144,9 @@ const toModule = computed(() =>
{{ t('components.smartCard.openSummary') }} {{ t('components.smartCard.openSummary') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<RouterLink :to="{ name: `${module}Summary`, params: { id: entity.id } }"> <RouterLink
:to="{ name: `${dataKey}Summary`, params: { id: entity.id } }"
>
<QBtn <QBtn
class="link" class="link"
color="white" color="white"

View File

@ -51,7 +51,6 @@ const removeAlias = () => {
<CardDescriptor <CardDescriptor
ref="descriptor" ref="descriptor"
:url="`MailAliases/${entityId}`" :url="`MailAliases/${entityId}`"
module="Alias"
data-key="Alias" data-key="Alias"
title="alias" title="alias"
> >

View File

@ -24,7 +24,6 @@ onMounted(async () => {
ref="descriptor" ref="descriptor"
:url="`VnUsers/preview`" :url="`VnUsers/preview`"
:filter="{ ...filter, where: { id: entityId } }" :filter="{ ...filter, where: { id: entityId } }"
module="Account"
data-key="Account" data-key="Account"
title="nickname" title="nickname"
> >

View File

@ -35,7 +35,6 @@ const removeRole = async () => {
<CardDescriptor <CardDescriptor
url="VnRoles" url="VnRoles"
:filter="{ where: { id: entityId } }" :filter="{ where: { id: entityId } }"
module="Role"
data-key="Role" data-key="Role"
:summary="$props.summary" :summary="$props.summary"
> >

View File

@ -46,7 +46,6 @@ onMounted(async () => {
<CardDescriptor <CardDescriptor
:url="`Claims/${entityId}`" :url="`Claims/${entityId}`"
:filter="filter" :filter="filter"
module="Claim"
title="client.name" title="client.name"
data-key="Claim" data-key="Claim"
> >

View File

@ -55,7 +55,6 @@ const debtWarning = computed(() => {
<template> <template>
<CardDescriptor <CardDescriptor
module="Customer"
:url="`Clients/${entityId}/getCard`" :url="`Clients/${entityId}/getCard`"
:summary="$props.summary" :summary="$props.summary"
data-key="Customer" data-key="Customer"

View File

@ -147,7 +147,6 @@ async function deleteEntry() {
<template> <template>
<CardDescriptor <CardDescriptor
ref="entryDescriptorRef" ref="entryDescriptorRef"
module="Entry"
:url="`Entries/${entityId}`" :url="`Entries/${entityId}`"
:userFilter="entryFilter" :userFilter="entryFilter"
title="supplier.nickname" title="supplier.nickname"

View File

@ -90,7 +90,6 @@ async function setInvoiceCorrection(id) {
<template> <template>
<CardDescriptor <CardDescriptor
ref="cardDescriptorRef" ref="cardDescriptorRef"
module="InvoiceIn"
data-key="InvoiceIn" data-key="InvoiceIn"
:url="`InvoiceIns/${entityId}`" :url="`InvoiceIns/${entityId}`"
:filter="filter" :filter="filter"

View File

@ -36,7 +36,6 @@ function ticketFilter(invoice) {
<template> <template>
<CardDescriptor <CardDescriptor
ref="descriptor" ref="descriptor"
module="InvoiceOut"
:url="`InvoiceOuts/${entityId}`" :url="`InvoiceOuts/${entityId}`"
:filter="filter" :filter="filter"
title="ref" title="ref"

View File

@ -92,7 +92,6 @@ const updateStock = async () => {
<template> <template>
<CardDescriptor <CardDescriptor
data-key="Item" data-key="Item"
module="Item"
:summary="$props.summary" :summary="$props.summary"
:url="`Items/${entityId}/getCard`" :url="`Items/${entityId}/getCard`"
@on-fetch="setData" @on-fetch="setData"

View File

@ -26,7 +26,6 @@ const entityId = computed(() => {
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor
module="ItemType"
:url="`ItemTypes/${entityId}`" :url="`ItemTypes/${entityId}`"
:filter="filter" :filter="filter"
title="code" title="code"

View File

@ -57,7 +57,6 @@ const total = ref(0);
ref="descriptor" ref="descriptor"
:url="`Orders/${entityId}`" :url="`Orders/${entityId}`"
:filter="filter" :filter="filter"
module="Order"
title="client.name" title="client.name"
@on-fetch="setData" @on-fetch="setData"
data-key="Order" data-key="Order"

View File

@ -22,7 +22,6 @@ const card = computed(() => store.data);
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor
module="Agency"
data-key="Agency" data-key="Agency"
:url="`Agencies/${entityId}`" :url="`Agencies/${entityId}`"
:title="card?.name" :title="card?.name"

View File

@ -23,7 +23,6 @@ const entityId = computed(() => {
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor
module="Route"
:url="`Routes/${entityId}`" :url="`Routes/${entityId}`"
:filter="filter" :filter="filter"
:title="null" :title="null"

View File

@ -26,12 +26,7 @@ const entityId = computed(() => {
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor :url="`Roadmaps/${entityId}`" :filter="filter" data-key="Roadmap">
module="Roadmap"
:url="`Roadmaps/${entityId}`"
:filter="filter"
data-key="Roadmap"
>
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="t('Roadmap')" :value="entity?.name" /> <VnLv :label="t('Roadmap')" :value="entity?.name" />
<VnLv :label="t('ETD')" :value="toDateHourMin(entity?.etd)" /> <VnLv :label="t('ETD')" :value="toDateHourMin(entity?.etd)" />

View File

@ -9,7 +9,6 @@ const { notify } = useNotify();
<template> <template>
<CardDescriptor <CardDescriptor
:url="`Vehicles/${$route.params.id}`" :url="`Vehicles/${$route.params.id}`"
module="Vehicle"
data-key="Vehicle" data-key="Vehicle"
title="numberPlate" title="numberPlate"
:to-module="{ name: 'VehicleList' }" :to-module="{ name: 'VehicleList' }"

View File

@ -25,7 +25,6 @@ const entityId = computed(() => {
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor
module="Shelving"
:url="`Shelvings/${entityId}`" :url="`Shelvings/${entityId}`"
:filter="filter" :filter="filter"
title="code" title="code"

View File

@ -17,7 +17,6 @@ const entityId = computed(() => props.id || route.params.id);
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor
module="Parking"
data-key="Parking" data-key="Parking"
:url="`Parkings/${entityId}`" :url="`Parkings/${entityId}`"
title="code" title="code"

View File

@ -62,7 +62,6 @@ const getEntryQueryParams = (supplier) => {
<template> <template>
<CardDescriptor <CardDescriptor
module="Supplier"
:url="`Suppliers/${entityId}`" :url="`Suppliers/${entityId}`"
:filter="filter" :filter="filter"
data-key="Supplier" data-key="Supplier"

View File

@ -44,7 +44,6 @@ function ticketFilter(ticket) {
@on-fetch="(data) => ([problems] = data)" @on-fetch="(data) => ([problems] = data)"
/> />
<CardDescriptor <CardDescriptor
module="Ticket"
:url="`Tickets/${entityId}`" :url="`Tickets/${entityId}`"
:filter="filter" :filter="filter"
data-key="Ticket" data-key="Ticket"

View File

@ -32,7 +32,6 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.
<template> <template>
<CardDescriptor <CardDescriptor
module="Travel"
:url="`Travels/${entityId}`" :url="`Travels/${entityId}`"
:title="data.title" :title="data.title"
:subtitle="data.subtitle" :subtitle="data.subtitle"

View File

@ -50,7 +50,6 @@ const handlePhotoUpdated = (evt = false) => {
<template> <template>
<CardDescriptor <CardDescriptor
ref="cardDescriptorRef" ref="cardDescriptorRef"
module="Worker"
:data-key="dataKey" :data-key="dataKey"
url="Workers/summary" url="Workers/summary"
:filter="{ where: { id: entityId } }" :filter="{ where: { id: entityId } }"

View File

@ -12,11 +12,6 @@ const $props = defineProps({
<template> <template>
<QPopupProxy> <QPopupProxy>
<WorkerDescriptor <WorkerDescriptor v-if="$props.id" :id="$props.id" :summary="WorkerSummary" />
v-if="$props.id"
:id="$props.id"
:summary="WorkerSummary"
data-key="workerDescriptorProxy"
/>
</QPopupProxy> </QPopupProxy>
</template> </template>

View File

@ -42,7 +42,6 @@ const { openConfirmationModal } = useVnConfirm();
<template> <template>
<CardDescriptor <CardDescriptor
ref="DepartmentDescriptorRef" ref="DepartmentDescriptorRef"
module="Department"
:url="`Departments/${entityId}`" :url="`Departments/${entityId}`"
:summary="$props.summary" :summary="$props.summary"
:to-module="{ name: 'WorkerDepartment' }" :to-module="{ name: 'WorkerDepartment' }"

View File

@ -25,12 +25,7 @@ const entityId = computed(() => {
</script> </script>
<template> <template>
<CardDescriptor <CardDescriptor :url="`Zones/${entityId}`" :filter="filter" data-key="Zone">
module="Zone"
:url="`Zones/${entityId}`"
:filter="filter"
data-key="Zone"
>
<template #menu="{ entity }"> <template #menu="{ entity }">
<ZoneDescriptorMenuItems :zone="entity" /> <ZoneDescriptorMenuItems :zone="entity" />
</template> </template>