refs #5978 hotfix_workCenter #1650

Merged
vicent merged 2 commits from hotfix_workCenter into test 2023-07-07 08:01:57 +00:00
4 changed files with 7 additions and 15 deletions
Showing only changes of commit 7030be3efa - Show all commits

View File

@ -83,7 +83,6 @@ export default class Token {
this.renewPeriod = data.renewPeriod; this.renewPeriod = data.renewPeriod;
this.stopRenewer(); this.stopRenewer();
this.inservalId = setInterval(() => this.checkValidity(), data.renewInterval * 1000); this.inservalId = setInterval(() => this.checkValidity(), data.renewInterval * 1000);
this.checkValidity();
}); });
} }

View File

@ -43,9 +43,6 @@
"SSN": { "SSN": {
"type" : "string" "type" : "string"
}, },
"labelerFk": {
"type" : "number"
},
"mobileExtension": { "mobileExtension": {
"type" : "number" "type" : "number"
}, },
@ -86,11 +83,6 @@
"type": "hasMany", "type": "hasMany",
"model": "WorkerTeamCollegues", "model": "WorkerTeamCollegues",
"foreignKey": "workerFk" "foreignKey": "workerFk"
},
"sector": {
"type": "belongsTo",
"model": "Sector",
"foreignKey": "sectorFk"
} }
} }
} }

View File

@ -31,7 +31,7 @@
<vn-side-menu side="right"> <vn-side-menu side="right">
<div class="vn-pa-md"> <div class="vn-pa-md">
<div class="totalBox vn-mb-sm" style="text-align: center;"> <div class="totalBox vn-mb-sm" style="text-align: center;">
<h6>{{'Contract' | translate}} #{{$ctrl.card.worker.hasWorkCenter}}</h6> <h6>{{'Contract' | translate}} #{{$ctrl.businessId}}</h6>
<div> <div>
{{'Used' | translate}} {{$ctrl.contractHolidays.holidaysEnjoyed || 0}} {{'Used' | translate}} {{$ctrl.contractHolidays.holidaysEnjoyed || 0}}
{{'of' | translate}} {{$ctrl.contractHolidays.totalHolidays || 0}} {{'days' | translate}} {{'of' | translate}} {{$ctrl.contractHolidays.totalHolidays || 0}} {{'days' | translate}}

View File

@ -33,11 +33,12 @@ class Controller extends ModuleCard {
}; };
this.$http.get(`Workers/${this.$params.id}`, {filter}) this.$http.get(`Workers/${this.$params.id}`, {filter})
.then(res => this.worker = res.data); .then(res => this.worker = res.data)
this.$http.get(`Workers/${this.$params.id}/activeContract`) .then(() =>
.then(res => { this.$http.get(`Workers/${this.$params.id}/activeContract`)
if (res.data) this.worker.hasWorkCenter = res.data.workCenterFk; .then(res => {
}); if (res.data) this.worker.hasWorkCenter = res.data.workCenterFk;
}));
} }
} }