forked from verdnatura/salix-front
fix(sms): se importa workerDescriptro y se maneja el error refs #6303
This commit is contained in:
parent
9fad8bf78d
commit
8904893528
|
@ -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: {
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue