refs #5919 locker back y front
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-10-10 13:44:22 +02:00
parent 1a2b58af9c
commit 3c58f86c2a
4 changed files with 39 additions and 4 deletions

View File

@ -115,6 +115,9 @@
},
"Operator": {
"dataSource": "vn"
},
"locker": {
"dataSource": "vn"
}
}

View File

@ -0,0 +1,28 @@
{
"name": "locker",
"description": "Employee´s locker",
"base": "Loggable",
"options": {
"mysql": {
"table": "locker"
}
},
"properties": {
"code": {
"type": "string"
},
"gender": {
"type": "string"
},
"workerFk": {
"type": "number"
}
},
"relations": {
"id": {
"type": "belongsTo",
"model": "worker",
"foreignKey": "workerFk"
}
}
}

View File

@ -75,11 +75,10 @@
ng-model="$ctrl.worker.SSN"
rule>
</vn-textfield>
<vn-input-number
min="0"
<vn-autocomplete
label="Locker"
ng-model="$ctrl.worker.locker">
</vn-input-number>
ng-model="$ctrl.worker.locker"></vn-autocomplete>
<!-- ng-click="ctrl.choose"> -->
</vn-horizontal>
</vn-vertical>
</vn-card>

View File

@ -13,6 +13,11 @@ class Controller extends Section {
return this.$.watcher.submit()
.then(() => this.card.reload());
}
chooseLocker() {
const workerGender = this.worker.sex;
console.log(workerGender);
}
}
ngModule.vnComponent('vnWorkerBasicData', {