feat: refs #8398 modify previous changes
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
764eef13c3
commit
8182bf7b91
|
@ -254,16 +254,14 @@ const moveTicketsAdvance = async () => {
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
console.log('ticket: ', ticket);
|
|
||||||
ticketsToMove.push({
|
ticketsToMove.push({
|
||||||
originId: ticket.futureId,
|
originId: ticket.futureId,
|
||||||
destinationId: ticket.id,
|
destinationId: ticket.id,
|
||||||
originShipped: ticket.futureShipped,
|
originShipped: ticket.futureShipped,
|
||||||
destinationShipped: ticket.shipped,
|
destinationShipped: ticket.shipped,
|
||||||
salesPersonFk: ticket.client.salesPersonFk,
|
salesPersonFk: ticket.workerFk,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = { tickets: ticketsToMove };
|
const params = { tickets: ticketsToMove };
|
||||||
await axios.post('Tickets/merge', params);
|
await axios.post('Tickets/merge', params);
|
||||||
vnTableRef.value.reload();
|
vnTableRef.value.reload();
|
||||||
|
|
|
@ -245,13 +245,12 @@ const totalPriceColor = (totalWithVat) =>
|
||||||
|
|
||||||
const moveTicketsFuture = async () => {
|
const moveTicketsFuture = async () => {
|
||||||
const ticketsToMove = selectedTickets.value.map((ticket) => {
|
const ticketsToMove = selectedTickets.value.map((ticket) => {
|
||||||
console.log('salesPersonFk: ', ticket.client);
|
|
||||||
return {
|
return {
|
||||||
originId: ticket.id,
|
originId: ticket.id,
|
||||||
destinationId: ticket.futureId,
|
destinationId: ticket.futureId,
|
||||||
originShipped: ticket.shipped,
|
originShipped: ticket.shipped,
|
||||||
destinationShipped: ticket.futureShipped,
|
destinationShipped: ticket.futureShipped,
|
||||||
salesPersonFk: ticket.client.salesPersonFk,
|
salesPersonFk: ticket.salesPersonFk,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue