This commit is contained in:
parent
5bcd5a8e85
commit
48b4fd96e5
|
@ -4,7 +4,6 @@ const props = defineProps({
|
|||
phoneNumber: { type: [String, Number], default: null },
|
||||
icon: { type: Boolean, default: true },
|
||||
showNumber: { type: Boolean, default: true },
|
||||
schemeUrl: { type: String, default: 'tel' },
|
||||
});
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
|
@ -22,7 +21,7 @@ const { t } = useI18n();
|
|||
class="q-ml-xs"
|
||||
color="primary"
|
||||
padding="none"
|
||||
:href="`${props.schemeUrl}:${props.phoneNumber}`"
|
||||
:href="`sip:${props.phoneNumber}`"
|
||||
:title="t('globals.microsip')"
|
||||
@click.stop
|
||||
/>
|
||||
|
|
|
@ -72,21 +72,13 @@ const creditWarning = computed(() => {
|
|||
<VnLv :value="entity.phone">
|
||||
<template #label>
|
||||
{{ t('customer.summary.phone') }}
|
||||
<VnLinkPhone
|
||||
:phone-number="entity.phone"
|
||||
scheme-url="sip"
|
||||
:show-number="false"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="entity.phone" :show-number="false" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :value="entity.mobile">
|
||||
<template #label>
|
||||
{{ t('customer.summary.mobile') }}
|
||||
<VnLinkPhone
|
||||
:phone-number="entity.mobile"
|
||||
scheme-url="sip"
|
||||
:show-number="false"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="entity.mobile" :show-number="false" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('customer.summary.email')" :value="entity.email" />
|
||||
|
|
|
@ -80,10 +80,7 @@ function viewSummary(id) {
|
|||
<VnLv :label="t('customer.list.email')" :value="row.email" />
|
||||
<VnLv :label="t('customer.list.phone')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="row.phone"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="row.phone" />
|
||||
</template>
|
||||
</VnLv>
|
||||
</template>
|
||||
|
|
|
@ -211,34 +211,22 @@ async function changeState(value) {
|
|||
<VnLv :label="t('ticket.summary.packages')" :value="ticket.packages" />
|
||||
<VnLv :label="t('ticket.summary.consigneePhone')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="ticket.address.phone"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="ticket.address.phone" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('ticket.summary.consigneeMobile')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="ticket.address.mobile"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="ticket.address.mobile" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('ticket.summary.clientPhone')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="ticket.client.phone"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="ticket.client.phone" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('ticket.summary.clientMobile')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="ticket.client.mobile"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="ticket.client.mobile" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv
|
||||
|
|
|
@ -101,22 +101,13 @@ const setData = (entity) =>
|
|||
<VnLv :value="entity.phone">
|
||||
<template #label>
|
||||
{{ t('worker.card.phone') }}
|
||||
<VnLinkPhone
|
||||
:phone-number="entity.phone"
|
||||
scheme-url="sip"
|
||||
:show-number="false"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="entity.phone" :show-number="false" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :value="sip">
|
||||
<template #label>
|
||||
{{ t('worker.summary.sipExtension') }}
|
||||
<VnLinkPhone
|
||||
v-if="sip"
|
||||
:phone-number="sip"
|
||||
scheme-url="sip"
|
||||
:show-number="false"
|
||||
/>
|
||||
<VnLinkPhone v-if="sip" :phone-number="sip" :show-number="false" />
|
||||
</template>
|
||||
</VnLv>
|
||||
</template>
|
||||
|
|
|
@ -95,23 +95,17 @@ const filter = {
|
|||
</VnLv>
|
||||
<VnLv :label="t('worker.summary.phoneExtension')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="worker.mobileExtension"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="worker.mobileExtension" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('worker.summary.entPhone')">
|
||||
<template #value>
|
||||
<VnLinkPhone :phone-number="worker.phone" scheme-url="sip" />
|
||||
<VnLinkPhone :phone-number="worker.phone" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('worker.summary.personalPhone')">
|
||||
<template #value>
|
||||
<VnLinkPhone
|
||||
:phone-number="worker.client.phone"
|
||||
scheme-url="sip"
|
||||
/>
|
||||
<VnLinkPhone :phone-number="worker.client.phone" />
|
||||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('worker.summary.locker')" :value="worker.locker" />
|
||||
|
|
Loading…
Reference in New Issue