salix/modules/item/front/request-search-panel/index.html

110 lines
3.7 KiB
HTML
Raw Normal View History

2019-04-05 13:20:12 +00:00
<div class="search-panel">
2023-05-25 09:41:14 +00:00
<vn-crud-model
auto-load="true"
url="Warehouses"
2023-05-25 09:41:14 +00:00
data="warehouses">
</vn-crud-model>
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"
url="TicketRequests/getItemTypeWorker"
2019-04-05 13:20:12 +00:00
search-function="{firstName: $search}"
show-field="nickname"
2019-04-05 13:20:12 +00:00
value-field="id"
label="Atender">
</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"
2023-05-25 09:41:14 +00:00
data="warehouses"
show-field="name"
value-field="id">
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>
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">
<vn-check vn-one
triple-state="true"
label="For me"
2020-06-02 12:42:58 +00:00
ng-model="filter.mine">
</vn-check>
<vn-autocomplete
vn-one
ng-model="filter.state"
data="$ctrl.states"
value-field="code"
label="State">
<tpl-item>{{name}}</tpl-item>
</vn-autocomplete>
</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>