2019-01-30 23:33:43 +00:00
|
|
|
<div class="search-panel">
|
2018-06-07 21:47:19 +00:00
|
|
|
<form ng-submit="$ctrl.onSearch()">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
2018-11-05 09:14:31 +00:00
|
|
|
label="General search"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.search"
|
2019-04-12 12:33:08 +00:00
|
|
|
info="Search ticket by id or alias"
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
2018-11-05 09:14:31 +00:00
|
|
|
vn-one
|
2019-04-03 13:16:32 +00:00
|
|
|
label="Client id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.clientFk">
|
2018-11-05 09:14:31 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-one
|
|
|
|
label="Ticket id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.id">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-textfield>
|
2019-04-03 13:16:32 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Order id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.orderFk">
|
2019-04-03 13:16:32 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="From"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.from">
|
2019-04-03 13:16:32 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="To"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.to">
|
2019-04-03 13:16:32 +00:00
|
|
|
</vn-date-picker>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
2019-04-03 13:16:32 +00:00
|
|
|
min="0"
|
|
|
|
step="1"
|
|
|
|
label="Days onward"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.scopeDays"
|
2019-04-03 13:16:32 +00:00
|
|
|
display-controls="true">
|
|
|
|
</vn-input-number>
|
2019-03-25 14:16:56 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
2019-04-03 13:16:32 +00:00
|
|
|
label="Nickname"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.nickname">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-textfield>
|
2019-03-25 14:16:56 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.salesPersonFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients/activeWorkersWithRole"
|
2019-03-25 14:16:56 +00:00
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
|
|
|
where="{role: 'employee'}"
|
|
|
|
label="Sales person">
|
|
|
|
<tpl-item>{{firstName}} {{name}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
2019-04-03 13:16:32 +00:00
|
|
|
<vn-textfield
|
2018-06-07 21:47:19 +00:00
|
|
|
vn-one
|
2019-04-03 13:16:32 +00:00
|
|
|
label="Invoice"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.refFk">
|
2019-04-03 13:16:32 +00:00
|
|
|
</vn-textfield>
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Agency"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.agencyModeFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="AgencyModes/isActive">
|
2018-06-07 21:47:19 +00:00
|
|
|
</vn-autocomplete>
|
2018-10-30 12:58:02 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-03-25 14:16:56 +00:00
|
|
|
label="State"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.stateFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="States">
|
2018-10-30 12:58:02 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-03-25 14:16:56 +00:00
|
|
|
label="Grouped States"
|
|
|
|
value-field="alertLevel"
|
|
|
|
show-field="code"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.alertLevel"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="AlertLevels">
|
2018-10-30 12:58:02 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-12-12 13:30:48 +00:00
|
|
|
<vn-horizontal>
|
2019-04-03 13:16:32 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Warehouse"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.warehouseFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Warehouses">
|
2019-04-03 13:16:32 +00:00
|
|
|
</vn-autocomplete>
|
2019-03-25 14:16:56 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
label="Province"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.provinceFk"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Provinces">
|
2019-03-25 14:16:56 +00:00
|
|
|
</vn-autocomplete>
|
2018-10-30 12:58:02 +00:00
|
|
|
</vn-horizontal>
|
2020-02-06 06:37:41 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="My team"
|
|
|
|
ng-model="filter.myTeam"
|
|
|
|
triple-state="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="Problems"
|
|
|
|
ng-model="filter.problems"
|
|
|
|
triple-state="true">
|
|
|
|
</vn-check>
|
|
|
|
</vn-horizontal>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-horizontal class="vn-mt-lg">
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
|
|
|
</div>
|