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