merge
This commit is contained in:
commit
74e2b2b04d
|
@ -11,8 +11,12 @@
|
||||||
<vn-vertical pad-large>
|
<vn-vertical pad-large>
|
||||||
<vn-title>Address</vn-title>
|
<vn-title>Address</vn-title>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-check vn-one label="enabled" field="$ctrl.address.isEnabled"></vn-check>
|
<vn-one>
|
||||||
<vn-check vn-one label="Is equalizated" field="$ctrl.address.isEqualizated"></vn-check>
|
<vn-check label="enabled" field="$ctrl.address.isEnabled"></vn-check>
|
||||||
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-check label="Is equalizated" field="$ctrl.address.isEqualizated"></vn-check>
|
||||||
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-textfield vn-one label="Consignee" field="$ctrl.address.consignee" vn-focus></vn-textfield>
|
<vn-textfield vn-one label="Consignee" field="$ctrl.address.consignee" vn-focus></vn-textfield>
|
||||||
|
|
|
@ -27,8 +27,12 @@
|
||||||
<vn-textfield vn-one label="Crédito asegurado" field="$ctrl.client.creditInsurance" vn-acl="administrative"></vn-textfield>
|
<vn-textfield vn-one label="Crédito asegurado" field="$ctrl.client.creditInsurance" vn-acl="administrative"></vn-textfield>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-check vn-one label="Recargo de equivalencia" field="$ctrl.client.equalizationTax" vn-acl="administrative"></vn-check>
|
<vn-one>
|
||||||
<vn-check vn-one label="Vies" field="$ctrl.client.vies" vn-acl="administrative"></vn-check>
|
<vn-check label="Recargo de equivalencia" field="$ctrl.client.equalizationTax" vn-acl="administrative"></vn-check>
|
||||||
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-check label="Vies" field="$ctrl.client.vies" vn-acl="administrative"></vn-check>
|
||||||
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
@ -36,9 +40,15 @@
|
||||||
<vn-vertical pad-large>
|
<vn-vertical pad-large>
|
||||||
<vn-title>Documentación</vn-title>
|
<vn-title>Documentación</vn-title>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-check vn-one label="Recibido core VNH" field="$ctrl.client.coreVnh" vn-acl="administrative"></vn-check>
|
<vn-one>
|
||||||
<vn-check vn-one label="Recibido core VNL" field="$ctrl.client.coreVnl" vn-acl="administrative"></vn-check>
|
<vn-check label="Recibido core VNH" field="$ctrl.client.coreVnh" vn-acl="administrative"></vn-check>
|
||||||
<vn-check vn-one label="Recibido B2B VNL" field="$ctrl.client.sepaVnl" vn-acl="administrative"></vn-check>
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-check label="Recibido core VNL" field="$ctrl.client.coreVnl" vn-acl="administrative"></vn-check>
|
||||||
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-check label="Recibido B2B VNL" field="$ctrl.client.sepaVnl" vn-acl="administrative"></vn-check>
|
||||||
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<vn-card>
|
<vn-card>
|
||||||
<vn-vertical class="margin-medium" pad-medium-top pad-medium-bottom>
|
<vn-vertical class="margin-medium" pad-medium-top pad-medium-bottom>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-one>
|
<a vn-one ui-sref="clients">
|
||||||
<i class="material-icons descriptor-icon">person</i>
|
<i class="material-icons descriptor-icon">person</i>
|
||||||
</vn-one>
|
</a>
|
||||||
<vn-vertical vn-two>
|
<vn-vertical vn-two>
|
||||||
<div class="margin-none">{{::$ctrl.client.id}}</div>
|
<div class="margin-none">{{::$ctrl.client.id}}</div>
|
||||||
<div class="margin-none">{{$ctrl.client.name}}</div>
|
<div class="margin-none">{{$ctrl.client.name}}</div>
|
||||||
|
|
|
@ -10,8 +10,12 @@
|
||||||
<vn-vertical pad-large>
|
<vn-vertical pad-large>
|
||||||
<vn-title>Fiscal data</vn-title>
|
<vn-title>Fiscal data</vn-title>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-check vn-one label="Facturar" field="$ctrl.client.hasToInvoice"></vn-check>
|
<vn-one>
|
||||||
<vn-check vn-one label="Factura impresa" field="$ctrl.client.invoiceByEmail"></vn-check>
|
<vn-check label="Facturar" field="$ctrl.client.hasToInvoice"></vn-check>
|
||||||
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-check label="Factura impresa" field="$ctrl.client.invoiceByEmail"></vn-check>
|
||||||
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-textfield vn-two label="Domicilio fiscal" field="$ctrl.client.street" vn-focus></vn-textfield>
|
<vn-textfield vn-two label="Domicilio fiscal" field="$ctrl.client.street" vn-focus></vn-textfield>
|
||||||
|
|
|
@ -8,9 +8,15 @@
|
||||||
<form name="form" ng-submit="watcher.submit()" pad-medium>
|
<form name="form" ng-submit="watcher.submit()" pad-medium>
|
||||||
<vn-card>
|
<vn-card>
|
||||||
<vn-vertical pad-large>
|
<vn-vertical pad-large>
|
||||||
<vn-title>Web access</vn-title>
|
<vn-one>
|
||||||
<vn-check label="Enable web access" field="$ctrl.account.active"></vn-check>
|
<vn-title>Web access</vn-title>
|
||||||
<vn-textfield label="User" class="margin-medium-top" field="$ctrl.account.name" vn-focus></vn-textfield>
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-check label="Enable web access" field="$ctrl.account.active"></vn-check>
|
||||||
|
</vn-one>
|
||||||
|
<vn-one>
|
||||||
|
<vn-textfield label="User" class="margin-medium-top" field="$ctrl.account.name" vn-focus></vn-textfield>
|
||||||
|
</vn-one>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
<vn-button-bar>
|
<vn-button-bar>
|
||||||
|
|
|
@ -2,6 +2,7 @@ import {module as _module} from '../module';
|
||||||
import * as resolveFactory from '../lib/resolveDefaultComponents';
|
import * as resolveFactory from '../lib/resolveDefaultComponents';
|
||||||
import * as normalizerFactory from '../lib/inputAttrsNormalizer';
|
import * as normalizerFactory from '../lib/inputAttrsNormalizer';
|
||||||
import * as util from '../lib/util';
|
import * as util from '../lib/util';
|
||||||
|
import './style.css';
|
||||||
|
|
||||||
const _NAME = 'check';
|
const _NAME = 'check';
|
||||||
export const NAME = util.getName(_NAME);
|
export const NAME = util.getName(_NAME);
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
vn-check {
|
||||||
|
float: left;
|
||||||
|
}
|
|
@ -1,19 +1,21 @@
|
||||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
<div
|
||||||
|
class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label"
|
||||||
|
tabindex="1"
|
||||||
|
ng-focus="$ctrl.hasFocus = true"
|
||||||
|
ng-blur="$ctrl.hasFocus = false"
|
||||||
|
ng-mouseenter="$ctrl.hasMouseIn = true"
|
||||||
|
ng-mouseleave="$ctrl.hasMouseIn = false"
|
||||||
|
>
|
||||||
<input type="text"
|
<input type="text"
|
||||||
class="mdl-textfield__input"
|
class="mdl-textfield__input"
|
||||||
name="{{::$ctrl.name}}"
|
name="{{::$ctrl.name}}"
|
||||||
ng-model="$ctrl.modelView"
|
ng-model="$ctrl.modelView"
|
||||||
ng-disabled="{{!$ctrl.enabled}}"
|
ng-disabled="{{!$ctrl.enabled}}"
|
||||||
rule="{{::$ctrl.rule}}"/>
|
rule="{{::$ctrl.rule}}"/>
|
||||||
<button
|
|
||||||
type="button"
|
<div class="mdl-chip__action">
|
||||||
class="mdl-chip__action ng-hide"
|
<i class="material-icons" ng-if="$ctrl.isTimePicker" ng-click="$ctrl.vp.open()">query_builder</i>
|
||||||
tabindex="-1"
|
<i class="material-icons pointer" ng-show="$ctrl.modelView&&($ctrl.hasFocus||$ctrl.hasMouseIn)" ng-click="$ctrl.onClear()">clear</i>
|
||||||
translate-attr="{title: 'Clear'}"
|
</div>
|
||||||
ng-show="$ctrl.modelView"
|
<label class="mdl-textfield__label" translate>{{$ctrl.label}}</label>
|
||||||
ng-click="$ctrl.onClear()"
|
|
||||||
>
|
|
||||||
<i class="material-icons">clear</i>
|
|
||||||
</button>
|
|
||||||
<label class="mdl-textfield__label">{{::$ctrl.label | translate}}</label>
|
|
||||||
</div>
|
</div>
|
|
@ -27,7 +27,9 @@ class DatePicker extends Component {
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
this._modelView = null;
|
this._modelView = null;
|
||||||
this._model = undefined;
|
this._model = undefined;
|
||||||
|
this._optionsChecked = false;
|
||||||
|
this.hasFocus = false;
|
||||||
|
this.hasMouseIn = false;
|
||||||
componentHandler.upgradeElement($element[0].firstChild);
|
componentHandler.upgradeElement($element[0].firstChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +39,8 @@ class DatePicker extends Component {
|
||||||
set model(value) {
|
set model(value) {
|
||||||
this._model = value;
|
this._model = value;
|
||||||
if (value && !this.modelView) {
|
if (value && !this.modelView) {
|
||||||
let initialDateFormat = (this.iniOptions && this.iniOptions.dateFormat) ? this.iniOptions.dateFormat : 'Y-m-d';
|
let options = this._getOptions();
|
||||||
|
let initialDateFormat = (options && options.dateFormat) ? options.dateFormat : 'Y-m-d';
|
||||||
let format = this._formatFlat2Angular(initialDateFormat);
|
let format = this._formatFlat2Angular(initialDateFormat);
|
||||||
this.modelView = this.$filter('date')(value, format);
|
this.modelView = this.$filter('date')(value, format);
|
||||||
}
|
}
|
||||||
|
@ -135,9 +138,12 @@ class DatePicker extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$onInit() {
|
_getOptions() {
|
||||||
if (!this.iniOptions)
|
if (this.iniOptions && this._optionsChecked) {
|
||||||
|
return this.iniOptions;
|
||||||
|
} else if (!this.iniOptions) {
|
||||||
this.iniOptions = {};
|
this.iniOptions = {};
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.iniOptions.locale)
|
if (!this.iniOptions.locale)
|
||||||
this.iniOptions.locale = this.$translate.use();
|
this.iniOptions.locale = this.$translate.use();
|
||||||
|
@ -157,9 +163,14 @@ class DatePicker extends Component {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
this._optionsChecked = true;
|
||||||
|
return this.iniOptions;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.input)
|
$onInit() {
|
||||||
this.vp = new Flatpickr(this.input, this.iniOptions);
|
this.iniOptions = this._getOptions();
|
||||||
|
this.isTimePicker = (this.iniOptions && this.iniOptions.enableTime && this.iniOptions.noCalendar);
|
||||||
|
this.vp = new Flatpickr(this.input, this.iniOptions);
|
||||||
}
|
}
|
||||||
$onDestroy() {
|
$onDestroy() {
|
||||||
if (this.vp)
|
if (this.vp)
|
||||||
|
|
|
@ -12,12 +12,12 @@ describe('Component vnDatePicker', () => {
|
||||||
angular.mock.module('client');
|
angular.mock.module('client');
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$timeout_) => {
|
beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$timeout_, _$translate_) => {
|
||||||
$componentController = _$componentController_;
|
$componentController = _$componentController_;
|
||||||
$scope = $rootScope.$new();
|
$scope = $rootScope.$new();
|
||||||
$timeout = _$timeout_;
|
$timeout = _$timeout_;
|
||||||
$element = angular.element(`<div><input></div>`);
|
$element = angular.element(`<div><input></div>`);
|
||||||
$translate = {};
|
$translate = _$translate_;
|
||||||
controller = $componentController('vnDatePicker', {$scope, $element, $translate, $timeout});
|
controller = $componentController('vnDatePicker', {$scope, $element, $translate, $timeout});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
vn-date-picker {
|
vn-date-picker {
|
||||||
|
div {
|
||||||
|
outline: none; //remove chrome outline
|
||||||
|
}
|
||||||
.mdl-chip__action {
|
.mdl-chip__action {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
width: auto;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
right: -6px;
|
right: -6px;
|
||||||
margin: 22px 0px;
|
margin: 22px 0px;
|
||||||
|
@ -8,5 +12,7 @@ vn-date-picker {
|
||||||
}
|
}
|
||||||
.material-icons {
|
.material-icons {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
float: right;
|
||||||
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './src/locator';
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"module": "locator",
|
||||||
|
"name": "Locator",
|
||||||
|
"icon": "add_location",
|
||||||
|
"validations" : false,
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"url": "/locator",
|
||||||
|
"state": "locator",
|
||||||
|
"component": "vn-locator-index"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
<vn-card margin-large>
|
||||||
|
<vn-vertical pad-medium>
|
||||||
|
<vn-horizontal vn-one margin-large-bottom class="locator-header">
|
||||||
|
<vn-title vn-one>Routes locator
|
||||||
|
</vn-title>
|
||||||
|
</vn-horizontal>
|
||||||
|
</vn-vertical>
|
||||||
|
</vn-card>
|
|
@ -0,0 +1,14 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
//import './style.scss';
|
||||||
|
|
||||||
|
class LocatorIndex {
|
||||||
|
constructor($state) {
|
||||||
|
this.$state = $state;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
LocatorIndex.$inject = ['$state'];
|
||||||
|
|
||||||
|
ngModule.component('vnLocatorIndex', {
|
||||||
|
template: require('./index.html'),
|
||||||
|
controller: LocatorIndex
|
||||||
|
});
|
|
@ -0,0 +1 @@
|
||||||
|
{}
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"Routes locator": "Localizador de rutas"
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
export * from './module';
|
||||||
|
|
||||||
|
import './index/index';
|
|
@ -0,0 +1,5 @@
|
||||||
|
import {ng} from 'vendor';
|
||||||
|
import 'core';
|
||||||
|
|
||||||
|
const ngModule = ng.module('locator', []);
|
||||||
|
export default ngModule;
|
|
@ -4,5 +4,6 @@
|
||||||
"core": [],
|
"core": [],
|
||||||
"client": [],
|
"client": [],
|
||||||
"production": [],
|
"production": [],
|
||||||
"route": []
|
"route": [],
|
||||||
|
"locator": []
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
{
|
{
|
||||||
"url": "/list",
|
"url": "/list",
|
||||||
"state": "routes.index",
|
"state": "routes.index",
|
||||||
"component": "vn-route-index"
|
"component": "vn-route-index",
|
||||||
|
"acl": ["employee"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"url": "/create",
|
"url": "/create",
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
"route": "$ctrl.route"
|
"route": "$ctrl.route"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"description": "Datos básicos",
|
"description": "Basic data",
|
||||||
"icon": "person"
|
"icon": "person"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
"route": "$ctrl.route"
|
"route": "$ctrl.route"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"description": "Datos logísticos",
|
"description": "Logistic data",
|
||||||
"icon": "local_shipping"
|
"icon": "local_shipping"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -58,7 +59,7 @@
|
||||||
"route": "$ctrl.route"
|
"route": "$ctrl.route"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"description": "Tickets asignados",
|
"description": "Assigned tickets",
|
||||||
"icon": "assignment"
|
"icon": "assignment"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
<vn-watcher
|
||||||
|
vn-id="watcher"
|
||||||
|
data="$ctrl.route"
|
||||||
|
form="form"
|
||||||
|
>
|
||||||
|
</vn-watcher>
|
||||||
|
<form name="form" pad-medium>
|
||||||
|
<vn-card>
|
||||||
|
<vn-vertical pad-large>
|
||||||
|
<vn-title>Basic data</vn-title>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-date-picker vn-one label="Date" model="$ctrl.route.date"></vn-date-picker>
|
||||||
|
<vn-autocomplete vn-one
|
||||||
|
label="Agency"
|
||||||
|
url="/route/api/Agencies"
|
||||||
|
field="$ctrl.route.agency"
|
||||||
|
>
|
||||||
|
</vn-autocomplete>
|
||||||
|
<vn-autocomplete vn-one
|
||||||
|
field="$ctrl.route.driver"
|
||||||
|
url="/route/api/Vehicles/activeDrivers"
|
||||||
|
label="Driver"></vn-autocomplete>
|
||||||
|
|
||||||
|
<vn-autocomplete vn-one
|
||||||
|
field="$ctrl.route.vehicle"
|
||||||
|
url="/route/api/Vehicles/comboVehicles"
|
||||||
|
label="Vehicle"
|
||||||
|
order="tradeMark ASC"
|
||||||
|
filter="{where: {isActive:1, warehouseFk:1}}"
|
||||||
|
></vn-autocomplete>
|
||||||
|
</vn-horizontal>
|
||||||
|
</vn-vertical>
|
||||||
|
</vn-card>
|
||||||
|
<vn-button-bar>
|
||||||
|
<vn-submit label="Save"></vn-submit>
|
||||||
|
</vn-button-bar>
|
||||||
|
</form>
|
|
@ -0,0 +1,8 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
|
||||||
|
ngModule.component('vnRouteBasicData', {
|
||||||
|
template: require('./basic-data.html'),
|
||||||
|
bindings: {
|
||||||
|
route: '<'
|
||||||
|
}
|
||||||
|
});
|
|
@ -8,11 +8,11 @@
|
||||||
<vn-card>
|
<vn-card>
|
||||||
<vn-vertical class="margin-medium" pad-medium-top pad-medium-bottom>
|
<vn-vertical class="margin-medium" pad-medium-top pad-medium-bottom>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-one>
|
<a vn-one ui-sref="routes.index">
|
||||||
<i class="material-icons descriptor-icon">local_shipping</i>
|
<i class="material-icons descriptor-icon">local_shipping</i>
|
||||||
</vn-one>
|
</a>
|
||||||
<vn-vertical vn-two>
|
<vn-vertical vn-two>
|
||||||
<div class="margin-none"><span translate>Ruta</span> {{::$ctrl.route.id}}</div>
|
<div class="margin-none"><span translate>Route</span> {{::$ctrl.route.id}}</div>
|
||||||
<div class="margin-none">{{$ctrl.route.date | date:'dd/MM/yyyy'}}</div>
|
<div class="margin-none">{{$ctrl.route.date | date:'dd/MM/yyyy'}}</div>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -1,3 +1,17 @@
|
||||||
{
|
{
|
||||||
"Routes" : "Rutas"
|
"Basic data": "Datos básicos",
|
||||||
|
"Logistic data": "Datos logísticos",
|
||||||
|
"Assigned tickets": "Tickets asignados",
|
||||||
|
"Routes" : "Rutas",
|
||||||
|
"Route" : "Ruta",
|
||||||
|
"Date": "Fecha",
|
||||||
|
"Agency": "Agencia",
|
||||||
|
"Driver": "Conductor",
|
||||||
|
"Vehicle": "Vehículo",
|
||||||
|
"Start Hour" : "Hora Inicio",
|
||||||
|
"End Hour": "Hora Fin",
|
||||||
|
"Start Km": "Km Inicio",
|
||||||
|
"End Km": "Km Fin",
|
||||||
|
"Packages": "Bultos",
|
||||||
|
"Route document": "Documento de Ruta"
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
<vn-watcher
|
||||||
|
vn-id="watcher"
|
||||||
|
data="$ctrl.route"
|
||||||
|
form="form"
|
||||||
|
>
|
||||||
|
</vn-watcher>
|
||||||
|
<form name="form" pad-medium>
|
||||||
|
<vn-card>
|
||||||
|
<vn-vertical pad-large>
|
||||||
|
<vn-title>Logistic data</vn-title>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-date-picker vn-one label="Start Hour" model="$ctrl.route.startHour" ini-options="{enableTime: true, noCalendar: true, enableSeconds: false, dateFormat: 'H:i'}"></vn-date-picker>
|
||||||
|
<vn-date-picker vn-one label="End Hour" model="$ctrl.route.endHour" ini-options="{enableTime: true, noCalendar: true, enableSeconds: false, dateFormat: 'H:i'}"></vn-date-picker>
|
||||||
|
<vn-textfield vn-one label="Start Km" model="$ctrl.route.starKm"></vn-textfield>
|
||||||
|
<vn-textfield vn-one label="End Km" model="$ctrl.route.endKm"></vn-textfield>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-textfield vn-one label="Packages" model="$ctrl.route.packages"></vn-textfield>
|
||||||
|
<vn-textfield vn-one label="Route document" model="$ctrl.route.document"></vn-textfield>
|
||||||
|
<vn-textfield vn-one label="M3" model="$ctrl.route.m3"></vn-textfield>
|
||||||
|
<vn-one></vn-one>
|
||||||
|
</vn-horizontal>
|
||||||
|
</vn-vertical>
|
||||||
|
</vn-card>
|
||||||
|
<vn-button-bar>
|
||||||
|
<vn-submit label="Save"></vn-submit>
|
||||||
|
</vn-button-bar>
|
||||||
|
</form>
|
|
@ -0,0 +1,8 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
|
||||||
|
ngModule.component('vnRouteLogisticData', {
|
||||||
|
template: require('./logistic-data.html'),
|
||||||
|
bindings: {
|
||||||
|
route: '<'
|
||||||
|
}
|
||||||
|
});
|
|
@ -5,3 +5,6 @@ import './index/index';
|
||||||
import './search-panel/search-panel';
|
import './search-panel/search-panel';
|
||||||
import './create/create';
|
import './create/create';
|
||||||
import './card/card';
|
import './card/card';
|
||||||
|
import './basic-data/basic-data';
|
||||||
|
import './logistic-data/logistic-data';
|
||||||
|
import './tickets/tickets';
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
<vn-one pad-medium>
|
||||||
|
<vn-card>
|
||||||
|
<vn-vertical pad-large>
|
||||||
|
<vn-title>Assigned tickets</vn-title>
|
||||||
|
</vn-vertical>
|
||||||
|
</vn-card>
|
||||||
|
</vn-one>
|
|
@ -0,0 +1,8 @@
|
||||||
|
import ngModule from '../module';
|
||||||
|
|
||||||
|
ngModule.component('vnRouteTickets', {
|
||||||
|
template: require('./tickets.html'),
|
||||||
|
bindings: {
|
||||||
|
route: '<'
|
||||||
|
}
|
||||||
|
});
|
|
@ -2,6 +2,6 @@
|
||||||
<a ui-sref="{{$ctrl.item.href}}" style="display: block; text-decoration: none; color: inherit; padding: .5em 2em;">
|
<a ui-sref="{{$ctrl.item.href}}" style="display: block; text-decoration: none; color: inherit; padding: .5em 2em;">
|
||||||
<i class="material-icons" style="float: right; margin-left: .4em;">keyboard_arrow_right</i>
|
<i class="material-icons" style="float: right; margin-left: .4em;">keyboard_arrow_right</i>
|
||||||
<i class="material-icons" style="vertical-align: middle; margin-right: .4em;">{{$ctrl.item.icon}}</i>
|
<i class="material-icons" style="vertical-align: middle; margin-right: .4em;">{{$ctrl.item.icon}}</i>
|
||||||
<span>{{$ctrl.item.description}}</span>
|
<span translate>{{$ctrl.item.description}}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
|
@ -11,5 +11,6 @@
|
||||||
"Clients": "Clientes",
|
"Clients": "Clientes",
|
||||||
"Routes" : "Rutas",
|
"Routes" : "Rutas",
|
||||||
"Production" : "Producción",
|
"Production" : "Producción",
|
||||||
"Modules access" : "Acceso a módulos"
|
"Modules access" : "Acceso a módulos",
|
||||||
|
"Locator": "Localizador"
|
||||||
}
|
}
|
|
@ -32,3 +32,14 @@ export const route = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
core.splitingRegister.register('route', route);
|
core.splitingRegister.register('route', route);
|
||||||
|
|
||||||
|
export const locator = () => {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
require.ensure([], () => {
|
||||||
|
require('locator');
|
||||||
|
resolve('locator');
|
||||||
|
}, 'locator');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
core.splitingRegister.register('locator', locator);
|
||||||
|
|
Loading…
Reference in New Issue