This commit is contained in:
parent
37b9c5c4ce
commit
50c989a267
|
@ -44,9 +44,14 @@ module.exports = Self => {
|
||||||
description: 'The claim state id',
|
description: 'The claim state id',
|
||||||
http: {source: 'query'}
|
http: {source: 'query'}
|
||||||
}, {
|
}, {
|
||||||
arg: 'workerFk',
|
arg: 'salesPersonFk',
|
||||||
type: 'Integer',
|
type: 'Integer',
|
||||||
description: 'The worker id',
|
description: 'The salesPerson id',
|
||||||
|
http: {source: 'query'}
|
||||||
|
}, {
|
||||||
|
arg: 'attenderFk',
|
||||||
|
type: 'Integer',
|
||||||
|
description: 'The attender worker id',
|
||||||
http: {source: 'query'}
|
http: {source: 'query'}
|
||||||
}, {
|
}, {
|
||||||
arg: 'created',
|
arg: 'created',
|
||||||
|
@ -86,7 +91,9 @@ module.exports = Self => {
|
||||||
return {'c.id': value};
|
return {'c.id': value};
|
||||||
case 'claimStateFk':
|
case 'claimStateFk':
|
||||||
return {'cl.claimStateFk': value};
|
return {'cl.claimStateFk': value};
|
||||||
case 'workerFk':
|
case 'salesPersonFk':
|
||||||
|
return {'c.salesPersonFk': value};
|
||||||
|
case 'attenderFk':
|
||||||
return {'cl.workerFk': value};
|
return {'cl.workerFk': value};
|
||||||
case 'created':
|
case 'created':
|
||||||
return {'cl.created': value};
|
return {'cl.created': value};
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
search-function="{firstName: $search}"
|
search-function="{firstName: $search}"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
where="{role: 'employee'}"
|
where="{role: 'employee'}"
|
||||||
label="Worker">
|
label="Attended by">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
|
|
@ -31,6 +31,27 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
field="filter.salesPersonFk"
|
||||||
|
url="/client/api/Clients/activeWorkersWithRole"
|
||||||
|
search-function="{firstName: $search}"
|
||||||
|
value-field="id"
|
||||||
|
where="{role: 'employee'}"
|
||||||
|
label="Salesperson">
|
||||||
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
||||||
|
</vn-autocomplete>
|
||||||
|
<vn-autocomplete
|
||||||
|
vn-one
|
||||||
|
field="filter.attenderFk"
|
||||||
|
url="/client/api/Clients/activeWorkersWithRole"
|
||||||
|
search-function="{firstName: $search}"
|
||||||
|
value-field="id"
|
||||||
|
where="{role: 'employee'}"
|
||||||
|
label="Attended by">
|
||||||
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
||||||
|
</vn-autocomplete>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-autocomplete vn-one
|
||||||
label="State"
|
label="State"
|
||||||
field="filter.claimStateFk"
|
field="filter.claimStateFk"
|
||||||
url="/claim/api/ClaimStates"
|
url="/claim/api/ClaimStates"
|
||||||
|
@ -38,18 +59,6 @@
|
||||||
value-field="id">
|
value-field="id">
|
||||||
<tpl-item>{{description}}</tpl-item>
|
<tpl-item>{{description}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
|
||||||
vn-one
|
|
||||||
field="filter.workerFk"
|
|
||||||
url="/client/api/Clients/activeWorkersWithRole"
|
|
||||||
search-function="{firstName: $search}"
|
|
||||||
value-field="id"
|
|
||||||
where="{role: 'employee'}"
|
|
||||||
label="Worker">
|
|
||||||
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
|
||||||
</vn-autocomplete>
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
|
||||||
<vn-date-picker
|
<vn-date-picker
|
||||||
vn-one
|
vn-one
|
||||||
label="Created"
|
label="Created"
|
||||||
|
|
Loading…
Reference in New Issue