0
0
Fork 0

fix(sms): se importa workerDescriptro y se maneja el error refs #6303

This commit is contained in:
Pablo Natek 2023-10-16 08:50:58 +02:00
parent 9fad8bf78d
commit 8904893528
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import CardDescriptor from 'components/ui/CardDescriptor.vue';
import TicketDescriptorMenu from './TicketDescriptorMenu.vue'; import TicketDescriptorMenu from './TicketDescriptorMenu.vue';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import useCardDescription from 'src/composables/useCardDescription'; import useCardDescription from 'src/composables/useCardDescription';
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';
const $props = defineProps({ const $props = defineProps({
id: { id: {

View File

@ -64,6 +64,7 @@ async function sendDeliveryNote({ address, type, documentType }) {
const shipped = toDate(ticket.value.shipped); const shipped = toDate(ticket.value.shipped);
function showSmsDialog(template, customData) { function showSmsDialog(template, customData) {
console.log('Entra');
const address = ticket.value.address; const address = ticket.value.address;
const client = ticket.value.client; const client = ticket.value.client;
const phone = const phone =
@ -87,7 +88,7 @@ function showSmsDialog(template, customData) {
componentProps: { componentProps: {
phone: phone, phone: phone,
template: template, template: template,
locale: client.user.lang, locale: client.user ? client.user.lang : 'default_locale',
data: data, data: data,
promise: sendSms, promise: sendSms,
}, },