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