HOTFIX: #6943 CustomerList form salesPersons options #790

Closed
jsegarra wants to merge 84 commits from hotfix_newCustomer_SalesPerson into master
3 changed files with 9 additions and 15 deletions
Showing only changes of commit 90610cb832 - Show all commits

View File

@ -173,13 +173,13 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit
target="_blank"
:to="{
name: 'TicketList',
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Comentado?

Comentado?
query: { createForm: JSON.stringify({ clientFk: entity.id }) },
query: { createForm: JSON.stringify({ clientId: entity.id }) },
}"
size="md"
color="primary"
>
<template #default>
<QTooltip>{{ t('New order') }}</QTooltip>
<QTooltip>{{ t('New ticket') }}</QTooltip>
<div class="icon-container">
<QIcon class="icon second-icon" name="vn:ticket" />
<QIcon
@ -251,6 +251,7 @@ es:
Customer ticket list: Listado de tickets del cliente
Customer invoice out list: Listado de facturas del cliente
New order: Nuevo pedido
New ticket: Nuevo ticket
Go to user: Ir al usuario
Go to supplier: Ir al proveedor
Customer unpaid: Cliente impago

View File

@ -198,6 +198,7 @@ const getDateColor = (date) => {
formInitialData: {
active: true,
addressId: null,
clientFk: null,
},
}"
:user-params="{ showEmpty: false }"
@ -228,7 +229,7 @@ const getDateColor = (date) => {
<VnSelect
url="Clients"
:include="{ relation: 'addresses' }"
v-model="clientId"
v-model="data.clientFk"
:label="t('module.customer')"
@update:model-value="(id) => fetchClientAddress(id, data)"
/>

View File

@ -143,15 +143,8 @@ const columns = computed(() => [
]);
onMounted(() => {
if (!route.query.createForm) return;
const clientId = route.query.createForm;
const id = JSON.parse(clientId);
console.error('id: ', id);
onClientSelected(JSON.parse(route.query.createForm));
});
Outdated
Review

Lo que queria decir es que esta funcionalidad ya esta hecha, funciona asi sin añadir ningun codigo

Lo que queria decir es que esta funcionalidad ya esta hecha, funciona asi sin añadir ningun codigo

Si vas a https://lilium.verdnatura.es/#/customer/34655/summary y le das a

  1. Ctrl+click al icono de lineas, no te abre nueva pestaña, te reemplaza donde estas. Lo que quieren es mantener la vista del cliente y en otra las lineas de ese ticket
  2. Ctrl+click al icono de summary, te muestra el summaryen esa ventana. Lo que quieren es que se te abra una nueva pestaña para mantener el listado de tickets

Yo lo he probado y no va en lilium.verdnatura.es Si quieres, envíame un video por privado

Si vas a https://lilium.verdnatura.es/#/customer/34655/summary y le das a 1. Ctrl+click al icono de lineas, no te abre nueva pestaña, te reemplaza donde estas. Lo que quieren es mantener la vista del cliente y en otra las lineas de ese ticket 2. Ctrl+click al icono de summary, te muestra el summaryen esa ventana. Lo que quieren es que se te abra una nueva pestaña para mantener el listado de tickets Yo lo he probado y no va en lilium.verdnatura.es Si quieres, envíame un video por privado
function redirectToLines(id) {
const url = `#/ticket/${id}/sale`;
window.open(url, '_blank');
}
const onClientSelected = async (formData) => {
await fetchClient(formData);
await fetchAddresses(formData);
@ -248,7 +241,7 @@ onMounted(() => {
urlCreate: 'Tickets/new',
title: t('ticketList.createTicket'),
onDataSaved: ({ id }) => tableRef.redirect(id),
formInitialData: { clientFk: null },
formInitialData: { clientId: null },
}"
default-mode="table"
:order="['shippedDate DESC', 'shippedHour ASC', 'zoneLanding ASC', 'id']"
@ -259,12 +252,12 @@ onMounted(() => {
auto-load
>
<template #more-create-dialog="{ data }">
{{ data }}
<VnRow>
{{ clientId }}
<VnSelect
url="Clients"
:label="t('ticketList.client')"
v-model="data.clientFk"
v-model="data.clientId"
:options="clientsOptions"
option-value="id"
option-label="name"
@ -287,7 +280,6 @@ onMounted(() => {
</VnRow>
<VnRow>
<VnSelect
url="Addresses"
:label="t('ticket.create.address')"
v-model="data.addressId"
:options="addressesOptions"