This commit is contained in:
parent
996f14341d
commit
34f48e46e7
|
@ -20,7 +20,7 @@ class Controller extends Component {
|
||||||
include: [
|
include: [
|
||||||
{relation: 'supplier'},
|
{relation: 'supplier'},
|
||||||
{relation: 'worker'},
|
{relation: 'worker'},
|
||||||
{relation: 'ExpeditionTruck',
|
{relation: 'roadmapStop',
|
||||||
scope: {
|
scope: {
|
||||||
include: [
|
include: [
|
||||||
{relation: 'warehouse'}
|
{relation: 'warehouse'}
|
||||||
|
@ -48,7 +48,7 @@ class Controller extends Component {
|
||||||
description: this.roadmapStop.description
|
description: this.roadmapStop.description
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$http.post(`roadmapStops`, data)
|
this.$http.post(`RoadmapStops`, data)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.loadData();
|
this.loadData();
|
||||||
this.vnApp.showSuccess(this.$t('Data saved!'));
|
this.vnApp.showSuccess(this.$t('Data saved!'));
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
"RoadmapStop": {
|
"roadmapStop": {
|
||||||
"type": "belongsTo",
|
"type": "belongsTo",
|
||||||
"model": "RoadmapStop",
|
"model": "RoadmapStop",
|
||||||
"foreignKey": "truckFk"
|
"foreignKey": "truckFk"
|
||||||
|
|
Loading…
Reference in New Issue