2019-01-30 23:33:43 +00:00
|
|
|
<div class="search-panel">
|
2023-05-25 09:41:14 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Warehouses"
|
|
|
|
data="warehouses">
|
|
|
|
</vn-crud-model>
|
2021-01-11 13:54:24 +00:00
|
|
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
2018-06-07 21:47:19 +00:00
|
|
|
<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>
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
2018-06-07 21:47:19 +00:00
|
|
|
<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>
|
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>
|
2021-01-08 13:32:48 +00:00
|
|
|
<section class="vn-px-md">
|
2021-01-11 13:54:24 +00:00
|
|
|
<vn-horizontal class="manifold-panel vn-pa-md">
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="From"
|
|
|
|
ng-model="filter.from"
|
2021-01-11 13:54:24 +00:00
|
|
|
on-change="$ctrl.from = value">
|
2021-01-08 13:32:48 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="To"
|
|
|
|
ng-model="filter.to"
|
2021-01-11 13:54:24 +00:00
|
|
|
on-change="$ctrl.to = value">
|
2021-01-08 13:32:48 +00:00
|
|
|
</vn-date-picker>
|
2021-01-22 11:02:03 +00:00
|
|
|
<vn-none class="or vn-px-md" translate>Or</vn-none>
|
2021-01-08 13:32:48 +00:00
|
|
|
<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>
|
2021-01-11 07:48:53 +00:00
|
|
|
<vn-icon color-marginal
|
|
|
|
icon="info"
|
|
|
|
vn-tooltip="Cannot choose a range of dates and days onward at the same time">
|
|
|
|
</vn-icon>
|
2021-01-08 13:32:48 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
</section>
|
|
|
|
<vn-horizontal class="vn-px-lg">
|
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"
|
2021-04-13 12:08:10 +00:00
|
|
|
url="Workers/activeWithInheritedRole"
|
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>
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
2018-06-07 21:47:19 +00:00
|
|
|
<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>
|
2020-11-12 12:33:33 +00:00
|
|
|
<vn-autocomplete vn-one
|
|
|
|
data="$ctrl.groupedStates"
|
2019-03-25 14:16:56 +00:00
|
|
|
label="Grouped States"
|
2021-10-15 08:49:23 +00:00
|
|
|
value-field="id"
|
2020-11-12 12:33:33 +00:00
|
|
|
show-field="name"
|
|
|
|
ng-model="filter.alertLevel">
|
|
|
|
<tpl-item>
|
|
|
|
{{name}}
|
|
|
|
</tpl-item>
|
2018-10-30 12:58:02 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
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"
|
2023-05-25 09:41:14 +00:00
|
|
|
data="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>
|
2021-09-01 09:27:24 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Collection"
|
|
|
|
ng-model="filter.collectionFk">
|
|
|
|
</vn-textfield>
|
2018-10-30 12:58:02 +00:00
|
|
|
</vn-horizontal>
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-horizontal class="vn-px-lg">
|
2020-02-06 06:37:41 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="My team"
|
|
|
|
ng-model="filter.myTeam"
|
|
|
|
triple-state="true">
|
|
|
|
</vn-check>
|
|
|
|
<vn-check
|
|
|
|
vn-one
|
2020-03-02 10:35:43 +00:00
|
|
|
label="With problems"
|
2020-02-06 06:37:41 +00:00
|
|
|
ng-model="filter.problems"
|
|
|
|
triple-state="true">
|
|
|
|
</vn-check>
|
2020-03-02 10:35:43 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="Pending"
|
|
|
|
ng-model="filter.pending"
|
|
|
|
triple-state="true">
|
|
|
|
</vn-check>
|
2021-12-14 11:05:06 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one
|
2021-12-21 07:52:39 +00:00
|
|
|
label="Has route"
|
|
|
|
ng-model="filter.hasRoute"
|
2021-12-14 11:05:06 +00:00
|
|
|
triple-state="true">
|
|
|
|
</vn-check>
|
2022-11-16 12:36:26 +00:00
|
|
|
<vn-check
|
|
|
|
vn-one
|
|
|
|
label="Has invoice"
|
|
|
|
ng-model="filter.hasInvoice"
|
|
|
|
triple-state="true">
|
2020-02-06 06:37:41 +00:00
|
|
|
</vn-horizontal>
|
2021-01-08 13:32:48 +00:00
|
|
|
<vn-horizontal class="vn-px-lg vn-pb-lg vn-mt-lg">
|
2018-06-07 21:47:19 +00:00
|
|
|
<vn-submit label="Search"></vn-submit>
|
|
|
|
</vn-horizontal>
|
|
|
|
</form>
|
|
|
|
</div>
|