forked from verdnatura/salix-front
4560
This commit is contained in:
parent
ca4193e11a
commit
56a46cd130
|
@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
const emit = defineEmits(['onSubmit']);
|
const emit = defineEmits(['onSubmit']);
|
||||||
|
|
||||||
const $props = defineProps({
|
defineProps({
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -34,7 +34,7 @@ const updateDefaultStop = (data) => {
|
||||||
const onSave = async () => {
|
const onSave = async () => {
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
try {
|
try {
|
||||||
await axios.post('ExpeditionTrucks', { ...roadmapStopForm });
|
await axios.post('RoadmapStops', { ...roadmapStopForm });
|
||||||
emit('ok');
|
emit('ok');
|
||||||
} finally {
|
} finally {
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
|
|
|
@ -33,9 +33,9 @@ const updateDefaultStop = (data) => {
|
||||||
<div class="q-pa-lg">
|
<div class="q-pa-lg">
|
||||||
<CrudModel
|
<CrudModel
|
||||||
ref="roadmapStopsCrudRef"
|
ref="roadmapStopsCrudRef"
|
||||||
data-key="ExpeditionTrucks"
|
data-key="RoadmapStops"
|
||||||
url="ExpeditionTrucks"
|
url="RoadmapStops"
|
||||||
model="ExpeditionTrucks"
|
model="RoadmapStops"
|
||||||
:filter="{ where: { roadmapFk: route.params?.id } }"
|
:filter="{ where: { roadmapFk: route.params?.id } }"
|
||||||
:default-remove="false"
|
:default-remove="false"
|
||||||
:data-required="defaultStop"
|
:data-required="defaultStop"
|
||||||
|
@ -86,7 +86,7 @@ const updateDefaultStop = (data) => {
|
||||||
</template>
|
</template>
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
Warehouse: Almacén
|
Address: Consignatario
|
||||||
ETA date: Fecha ETA
|
ETA date: Fecha ETA
|
||||||
ETA hour: Hora ETA
|
ETA hour: Hora ETA
|
||||||
Description: Descripción
|
Description: Descripción
|
||||||
|
|
|
@ -35,9 +35,9 @@ onUnmounted(hideRightDrawer);
|
||||||
|
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{
|
{
|
||||||
name: 'warehouse',
|
name: 'address',
|
||||||
label: t('Warehouse'),
|
label: t('Address'),
|
||||||
field: (row) => dashIfEmpty(row?.warehouse?.name),
|
field: (row) => dashIfEmpty(row?.address?.nickname),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
},
|
},
|
||||||
|
@ -54,8 +54,8 @@ const filter = {
|
||||||
{ relation: 'supplier' },
|
{ relation: 'supplier' },
|
||||||
{ relation: 'worker' },
|
{ relation: 'worker' },
|
||||||
{
|
{
|
||||||
relation: 'expeditionTruck',
|
relation: 'roadmapStop',
|
||||||
scope: { include: [{ relation: 'warehouse' }] },
|
scope: { include: [{ relation: 'address' }] },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -146,7 +146,7 @@ const openAddStopDialog = () => {
|
||||||
</div>
|
</div>
|
||||||
<QTable
|
<QTable
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:rows="entity?.expeditionTruck"
|
:rows="entity?.roadmapStop"
|
||||||
:rows-per-page-options="[0]"
|
:rows-per-page-options="[0]"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
flat
|
flat
|
||||||
|
|
|
@ -8,7 +8,6 @@ import invoiceOut from './modules/invoiceOut';
|
||||||
import invoiceIn from './modules/invoiceIn';
|
import invoiceIn from './modules/invoiceIn';
|
||||||
import wagon from './modules/wagon';
|
import wagon from './modules/wagon';
|
||||||
import supplier from './modules/Supplier';
|
import supplier from './modules/Supplier';
|
||||||
import route from './modules/route';
|
|
||||||
import travel from './modules/travel';
|
import travel from './modules/travel';
|
||||||
import department from './modules/department';
|
import department from './modules/department';
|
||||||
import ItemType from './modules/itemType';
|
import ItemType from './modules/itemType';
|
||||||
|
@ -62,7 +61,6 @@ const routes = [
|
||||||
customer,
|
customer,
|
||||||
ticket,
|
ticket,
|
||||||
claim,
|
claim,
|
||||||
route,
|
|
||||||
worker,
|
worker,
|
||||||
shelving,
|
shelving,
|
||||||
invoiceOut,
|
invoiceOut,
|
||||||
|
|
Loading…
Reference in New Issue