2019-04-05 13:20:12 +00:00
|
|
|
<div class="search-panel">
|
2021-02-23 15:09:29 +00:00
|
|
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
|
|
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
2019-04-05 13:20:12 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="General search"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.search"
|
2019-04-05 13:20:12 +00:00
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2021-02-23 15:09:29 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
2019-04-05 13:20:12 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Ticket id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.ticketFk">
|
2019-04-05 13:20:12 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-10-22 11:44:36 +00:00
|
|
|
ng-model="filter.attenderFk"
|
2021-04-13 12:08:10 +00:00
|
|
|
url="Workers/activeWithRole"
|
2019-04-05 13:20:12 +00:00
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
2021-11-02 10:24:52 +00:00
|
|
|
where="{role: {inq: ['logistic', 'buyer']}}"
|
2019-04-05 13:20:12 +00:00
|
|
|
label="Atender">
|
|
|
|
<tpl-item>{{nickname}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2021-02-23 15:09:29 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
2019-04-05 13:20:12 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Client id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="filter.clientFk">
|
2019-04-05 13:20:12 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<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-05 13:20:12 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2023-03-20 14:11:55 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
2023-04-05 06:19:50 +00:00
|
|
|
<vn-autocomplete
|
2023-03-20 14:11:55 +00:00
|
|
|
vn-one
|
2023-04-05 06:19:50 +00:00
|
|
|
ng-model="filter.requesterFk"
|
2023-04-17 06:35:44 +00:00
|
|
|
url="Workers/activeWithInheritedRole"
|
2023-03-21 07:44:28 +00:00
|
|
|
search-function="{firstName: $search}"
|
|
|
|
value-field="id"
|
2023-04-05 06:19:50 +00:00
|
|
|
where="{role: 'salesPerson'}"
|
2023-03-21 07:44:28 +00:00
|
|
|
label="Comercial">
|
2023-04-05 06:19:50 +00:00
|
|
|
<tpl-item>{{firstName}} {{lastName}}</tpl-item>
|
2023-03-20 14:11:55 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2023-04-05 06:19:50 +00:00
|
|
|
|
2021-02-23 15:09:29 +00:00
|
|
|
<section class="vn-px-md">
|
|
|
|
<vn-horizontal class="manifold-panel vn-pa-md">
|
2019-04-05 13:20:12 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="From"
|
2021-02-23 15:09:29 +00:00
|
|
|
ng-model="filter.from"
|
|
|
|
on-change="$ctrl.from = value">
|
2019-04-05 13:20:12 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="To"
|
2021-02-23 15:09:29 +00:00
|
|
|
ng-model="filter.to"
|
|
|
|
on-change="$ctrl.to = value">
|
2019-04-05 13:20:12 +00:00
|
|
|
</vn-date-picker>
|
2021-02-23 15:09:29 +00:00
|
|
|
<vn-none class="or vn-px-md" translate>Or</vn-none>
|
|
|
|
<vn-input-number
|
|
|
|
vn-one
|
|
|
|
min="0"
|
|
|
|
step="1"
|
|
|
|
label="Days onward"
|
|
|
|
ng-model="filter.scopeDays"
|
|
|
|
on-change="$ctrl.scopeDays = value"
|
|
|
|
display-controls="true">
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-icon color-marginal
|
|
|
|
icon="info"
|
|
|
|
vn-tooltip="Cannot choose a range of dates and days onward at the same time">
|
|
|
|
</vn-icon>
|
2019-04-05 13:20:12 +00:00
|
|
|
</vn-horizontal>
|
2021-02-23 15:09:29 +00:00
|
|
|
</section>
|
|
|
|
<vn-horizontal class="vn-px-lg">
|
2020-06-02 12:42:58 +00:00
|
|
|
<vn-check vn-one
|
|
|
|
triple-state="true"
|
|
|
|
label="For me"
|
|
|
|
ng-model="filter.mine">
|
|
|
|
</vn-check>
|
2020-08-31 06:32:30 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
ng-model="filter.state"
|
|
|
|
data="$ctrl.states"
|
|
|
|
value-field="code"
|
|
|
|
label="State">
|
|
|
|
<tpl-item>{{name}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
2019-04-18 09:02:28 +00:00
|
|
|
</vn-horizontal>
|
2021-02-23 15:09:29 +00:00
|
|
|
<vn-horizontal class="vn-px-lg vn-pb-lg vn-mt-lg">
|
2019-04-05 13:20:12 +00:00
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
|
|
|
</div>
|