refs #5334 workFk, clientFk
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
2778858705
commit
cf632040e7
|
@ -26,13 +26,13 @@
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value
|
<vn-label-value
|
||||||
label="Boss department"
|
label="Boss department"
|
||||||
value="{{$summary.workerFk}}">
|
value="{{summary.worker.firstName}} {{summary.worker.lastName}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Email"
|
<vn-label-value label="Email"
|
||||||
value="{{summary.notificationEmail}}">
|
value="{{summary.notificationEmail}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Self-consumption customer"
|
<vn-label-value label="Self-consumption customer"
|
||||||
value="{{summary.workerFk}}">
|
value="{{summary.client.name}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-vertical>
|
<vn-vertical>
|
||||||
|
|
|
@ -8,9 +8,19 @@ class Controller extends Component {
|
||||||
if (!value) return;
|
if (!value) return;
|
||||||
|
|
||||||
const filter = {
|
const filter = {
|
||||||
|
fields: ['id', 'name', 'code', 'workerFk', 'isProduction', 'chatName',
|
||||||
|
'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMai', 'hasToMistake', 'clientFk'],
|
||||||
include: [
|
include: [
|
||||||
{relation: 'client'},
|
{relation: 'client',
|
||||||
{relation: 'worker'}
|
scope: {
|
||||||
|
fields: ['id', 'name']
|
||||||
|
}},
|
||||||
|
{
|
||||||
|
relation: 'worker',
|
||||||
|
scope: {
|
||||||
|
fields: ['id', 'firstName', 'lastName']
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue