Compare commits

...

3 Commits

Author SHA1 Message Date
Alex Moreno 1beef5a28b Merge branch 'dev' into hotfix_arcRfid
gitea/salix/pipeline/head There was a failure building this commit Details
2023-04-18 05:22:06 +00:00
Vicent Llopis 237e9a4fb9 Merge branch 'dev' into hotfix_arcRfid
gitea/salix/pipeline/head There was a failure building this commit Details
2023-04-14 06:31:07 +00:00
Vicent Llopis d1dc9eb3e0 refs #5144 manejado que el usuario sea NULL
gitea/salix/pipeline/head There was a failure building this commit Details
2023-04-13 14:51:05 +02:00
4 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1 @@
ALTER TABLE `vn`.`printQueueArgs` MODIFY COLUMN value varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NULL;

View File

@ -11,8 +11,7 @@ module.exports = Self => {
http: {source: 'path'}
}, {
arg: 'userFk',
type: 'number',
required: true,
type: 'any',
description: 'The user id'
}
],

View File

@ -30,7 +30,7 @@
<img :src="QR" id="QR"/>
<div id="right">
<div id="additionalInfo" class="ellipsize"><b>Pallet: </b>{{id}}</div>
<div id="additionalInfo" class="ellipsize"><b>User: </b> {{username.name || '---'}}</div>
<div id="additionalInfo" class="ellipsize"><b>User: </b> {{username?.name || '---'}}</div>
<div id="additionalInfo" class="ellipsize"><b>Day: </b>{{labelData.dayName.toUpperCase() || '---'}}</div>
</div>
</td>
@ -38,4 +38,4 @@
</tbody>
</table>
</body>
</html>
</html>

View File

@ -14,13 +14,12 @@ module.exports = {
},
userFk: {
type: Number,
required: true,
description: 'The user id'
}
},
async serverPrefetch() {
this.labelsData = await this.rawSqlFromDef('labelData', this.id);
this.username = await this.findOneFromDef('username', this.userFk);
if (this.userFk) this.username = await this.findOneFromDef('username', this.userFk);
this.labelData = this.labelsData[0];
this.checkMainEntity(this.labelData);