#911 claim.development
This commit is contained in:
parent
f5b36c5d20
commit
e52012ac41
|
@ -21,12 +21,6 @@
|
||||||
data="claimResponsibles"
|
data="claimResponsibles"
|
||||||
order="description">
|
order="description">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-crud-model
|
|
||||||
url="/client/api/Clients/activeWorkersWithRole"
|
|
||||||
where="{role: 'salesPerson'}"
|
|
||||||
data="activeSalesPersons"
|
|
||||||
order="firstName">
|
|
||||||
</vn-crud-model>
|
|
||||||
<vn-crud-model
|
<vn-crud-model
|
||||||
url="claim/api/ClaimRedeliveries"
|
url="claim/api/ClaimRedeliveries"
|
||||||
data="claimRedeliveries"
|
data="claimRedeliveries"
|
||||||
|
@ -78,8 +72,11 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Worker"
|
label="Worker"
|
||||||
field="claimDevelopment.workerFk"
|
field="claimDevelopment.workerFk"
|
||||||
data="activeSalesPersons"
|
url="/client/api/Clients/activeWorkersWithRole"
|
||||||
|
search-function="{firstName: $search}"
|
||||||
|
where="{role: 'employee'}"
|
||||||
show-field="firstName"
|
show-field="firstName"
|
||||||
|
value-field="id"
|
||||||
vn-acl="salesAssistant">
|
vn-acl="salesAssistant">
|
||||||
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -37,7 +37,11 @@ module.exports = Self => {
|
||||||
case 'role':
|
case 'role':
|
||||||
return {'r.name': value};
|
return {'r.name': value};
|
||||||
case 'firstName':
|
case 'firstName':
|
||||||
return {or: [{'w.firstName': {like: `%${value}%`}}, {'w.name': {like: `%${value}%`}}]};
|
return {or: [
|
||||||
|
{'w.firstName': {like: `%${value}%`}},
|
||||||
|
{'w.name': {like: `%${value}%`}},
|
||||||
|
{'u.name': {like: `%${value}%`}}
|
||||||
|
]};
|
||||||
case 'id':
|
case 'id':
|
||||||
return {'w.id': value};
|
return {'w.id': value};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue