merge
This commit is contained in:
commit
f38bb2206a
|
@ -0,0 +1,23 @@
|
||||||
|
<div pad-large>
|
||||||
|
<form ng-submit="$ctrl.onSearch()">
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-textfield vn-one label="ID Ruta" model="$ctrl.filter.ruteId"></vn-textfield>
|
||||||
|
<vn-textfield vn-one label="Fecha" model="$ctrl.filter.date"></vn-textfield>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-autocomplete vn-one
|
||||||
|
initial-value="$ctrl.filter.province"
|
||||||
|
field="$ctrl.filter.provinceFk"
|
||||||
|
url="/client/api/Provinces"
|
||||||
|
show-field="name"
|
||||||
|
value-field="id"
|
||||||
|
label="Provincia">
|
||||||
|
</vn-autocomplete>
|
||||||
|
<vn-textfield vn-one label="Hora" model="$ctrl.filter.hour"></vn-textfield>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-check vn-one pad-medium-top label="Ticket con incidencia" field="$ctrl.filter.withIncidence"></vn-check>
|
||||||
|
<vn-textfield vn-one label="Agencia" model="$ctrl.filter.agency"></vn-textfield>
|
||||||
|
</vn-horizontal>
|
||||||
|
</form>
|
||||||
|
</div>
|
|
@ -0,0 +1,25 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
|
||||||
|
export default class Controller {
|
||||||
|
constructor($window) {
|
||||||
|
this.$window = $window;
|
||||||
|
}
|
||||||
|
onSearch() {
|
||||||
|
this.setStorageValue();
|
||||||
|
this.onSubmit(this.filter);
|
||||||
|
}
|
||||||
|
$onChanges() {
|
||||||
|
var value = JSON.parse(this.$window.sessionStorage.getItem('production'));
|
||||||
|
if (value !== undefined)
|
||||||
|
this.filter = value;
|
||||||
|
}
|
||||||
|
setStorageValue() {
|
||||||
|
this.$window.sessionStorage.setItem('production', JSON.stringify(this.filter));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Controller.$inject = ['$window'];
|
||||||
|
|
||||||
|
ngModule.component('vnProductionFilterPanel', {
|
||||||
|
template: require('./filter-panel.html'),
|
||||||
|
controller: Controller
|
||||||
|
});
|
|
@ -1,27 +1,34 @@
|
||||||
<vn-card margin-large>
|
<vn-card margin-large>
|
||||||
|
<mg-ajax path="" options="vnIndex"></mg-ajax>
|
||||||
<vn-vertical pad-medium>
|
<vn-vertical pad-medium>
|
||||||
<vn-horizontal vn-one>
|
<vn-horizontal vn-one>
|
||||||
<vn-one>
|
<vn-title vn-one><span translate>Localizador</span></vn-title>
|
||||||
<vn-title><span translate>Localizador</span></vn-title>
|
<vn-searchbar vn-auto
|
||||||
</vn-one>
|
index="index"
|
||||||
<vn-one>
|
on-search="$ctrl.filter(index)"
|
||||||
<vn-textfield vn-one label="Search" model="$ctrl.filter"></vn-textfield>
|
advanced="true"
|
||||||
</vn-one>
|
search="$ctrl.model.filter"
|
||||||
<vn-one>
|
popover="vn-production-filter-panel">
|
||||||
<vn-horizontal>
|
</vn-searchbar>
|
||||||
<vn-one></vn-one>
|
<vn-one vn-horizontal>
|
||||||
<vn-one>
|
<vn-one></vn-one>
|
||||||
<vn-textfield vn-one label="Search" model="$ctrl.Search"></vn-textfield>
|
<vn-autocomplete vn-one
|
||||||
</vn-one>
|
initial-value="$ctrl.warehouse"
|
||||||
<vn-none>
|
field="$ctrl.warehouseFk"
|
||||||
<vn-icon-button icon="refresh"></vn-icon-button>
|
url="/client/api/ContactChannels"
|
||||||
</vn-none>
|
label="Almacen">
|
||||||
</vn-horizontal>
|
</vn-autocomplete>
|
||||||
|
<vn-none>
|
||||||
|
<vn-icon-button icon="refresh"></vn-icon-button>
|
||||||
|
</vn-none>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal vn-one>
|
<vn-horizontal vn-one>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-button vn-auto label="Impreso"></vn-button>
|
||||||
|
|
||||||
|
</vn-horizontal>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-two></vn-two>
|
<vn-two></vn-two>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -3,3 +3,4 @@ export * from './module';
|
||||||
|
|
||||||
// import components
|
// import components
|
||||||
import './index/index';
|
import './index/index';
|
||||||
|
import './filter-panel/filter-panel';
|
||||||
|
|
Loading…
Reference in New Issue