89 lines
2.7 KiB
HTML
89 lines
2.7 KiB
HTML
<div class="search-panel">
|
|
<form ng-submit="$ctrl.onSearch()">
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="General search"
|
|
ng-model="filter.search"
|
|
info="Search orders by id"
|
|
vn-focus>
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Client id"
|
|
ng-model="filter.clientFk">
|
|
</vn-textfield>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
label="Agency"
|
|
ng-model="filter.agencyModeFk"
|
|
url="AgencyModes/isActive"
|
|
show-field="name"
|
|
value-field="id">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
vn-one
|
|
ng-model="filter.workerFk"
|
|
url="Clients/activeWorkersWithRole"
|
|
search-function="{firstName: $search}"
|
|
show-field="nickname"
|
|
value-field="id"
|
|
where="{role: 'employee'}"
|
|
label="Sales person">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-date-picker
|
|
vn-one
|
|
label="From landed"
|
|
ng-model="filter.from">
|
|
</vn-date-picker>
|
|
<vn-date-picker
|
|
vn-one
|
|
label="To landed"
|
|
ng-model="filter.to">
|
|
</vn-date-picker>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-textfield
|
|
vn-one
|
|
label="Ticket id"
|
|
ng-model="filter.ticketFk">
|
|
</vn-textfield>
|
|
<vn-autocomplete
|
|
vn-one
|
|
label="Application"
|
|
ng-model="filter.sourceApp"
|
|
url="Orders/getSourceValues"
|
|
show-field="value"
|
|
value-field="value">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-check
|
|
vn-one
|
|
label="My team"
|
|
ng-model="filter.myTeam"
|
|
triple-state="true">
|
|
</vn-check>
|
|
<vn-check
|
|
vn-one
|
|
label="Order confirmed"
|
|
triple-state="true"
|
|
ng-model="filter.isConfirmed">
|
|
</vn-check>
|
|
<!-- <vn-check
|
|
vn-one
|
|
label="Show empty"
|
|
ng-model="filter.showEmpty">
|
|
</vn-check> -->
|
|
</vn-horizontal>
|
|
<vn-horizontal class="vn-mt-lg">
|
|
<vn-submit label="Search"></vn-submit>
|
|
</vn-horizontal>
|
|
</form>
|
|
</div> |