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

91 lines
3.1 KiB
HTML
Raw Normal View History

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"
url="Workers/activeWithRole"
2019-04-05 13:20:12 +00:00
search-function="{firstName: $search}"
value-field="id"
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"
url="Warehouses">
2019-04-05 13:20:12 +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">
2020-06-02 12:42:58 +00:00
<vn-check vn-one
triple-state="true"
label="For me"
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>