This commit is contained in:
parent
6018414fa8
commit
6e5f460fab
|
@ -36,13 +36,14 @@ vn-treeview-childs {
|
||||||
}
|
}
|
||||||
|
|
||||||
vn-treeview-child {
|
vn-treeview-child {
|
||||||
|
line-height: 38px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
.node {
|
.node {
|
||||||
@extend %clickable;
|
@extend %clickable;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 5px;
|
padding: 2px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
& > div > .arrow {
|
& > div > .arrow {
|
||||||
|
|
|
@ -5,7 +5,12 @@
|
||||||
ng-click="$ctrl.step(-1)"
|
ng-click="$ctrl.step(-1)"
|
||||||
class="flat">
|
class="flat">
|
||||||
</vn-button>
|
</vn-button>
|
||||||
<span>{{$ctrl.firstDay | date:'MMMM yyyy'}} - {{$ctrl.lastDay | date:'MMMM yyyy'}}</span>
|
<div>
|
||||||
|
<span translate>{{$ctrl.firstDay | date:'MMMM'}}</span>
|
||||||
|
<span>{{$ctrl.firstDay | date:'yyyy'}} -</span>
|
||||||
|
<span translate>{{$ctrl.lastDay | date:'MMMM'}}</span>
|
||||||
|
<span>{{$ctrl.lastDay | date:'yyyy'}}</span>
|
||||||
|
</div>
|
||||||
<vn-button
|
<vn-button
|
||||||
icon="navigate_next"
|
icon="navigate_next"
|
||||||
ng-click="$ctrl.step(1)"
|
ng-click="$ctrl.step(1)"
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<vn-tbody>
|
<vn-tbody>
|
||||||
<vn-tr
|
<vn-tr
|
||||||
ng-repeat="zone in zones"
|
ng-repeat="zone in zones"
|
||||||
ui-sref="zone.card.location({id: zone.id})"
|
ui-sref="zone.card.summary({id: zone.id})"
|
||||||
class="clickable search-result">
|
class="clickable search-result">
|
||||||
<vn-td number>{{::zone.id}}</vn-td>
|
<vn-td number>{{::zone.id}}</vn-td>
|
||||||
<vn-td expand>{{::zone.name}}</vn-td>
|
<vn-td expand>{{::zone.name}}</vn-td>
|
||||||
|
|
|
@ -1,16 +1,21 @@
|
||||||
|
<vn-crud-model auto-load="true"
|
||||||
|
url="Zones/{{$ctrl.$params.id}}/warehouses"
|
||||||
|
include="{relation: 'warehouse'}"
|
||||||
|
data="zoneWarehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-card class="summary">
|
<vn-card class="summary">
|
||||||
<h5>{{$ctrl.summary.name}}</h5>
|
<h5>#{{$ctrl.summary.id}} - {{$ctrl.summary.name}}</h5>
|
||||||
<vn-horizontal class="vn-pa-md">
|
<vn-horizontal class="vn-pa-md">
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-label-value label="Id"
|
|
||||||
value="{{$ctrl.summary.id}}">
|
|
||||||
</vn-label-value>
|
|
||||||
<vn-label-value label="Name"
|
|
||||||
value="{{$ctrl.summary.name}}">
|
|
||||||
</vn-label-value>
|
|
||||||
<vn-label-value label="Agency"
|
<vn-label-value label="Agency"
|
||||||
value="{{$ctrl.summary.agencyMode.name}}">
|
value="{{$ctrl.summary.agencyMode.name}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Price"
|
||||||
|
value="{{$ctrl.summary.price | currency: 'EUR': 2}}">
|
||||||
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Bonus"
|
||||||
|
value="{{$ctrl.summary.bonus | currency: 'EUR': 2}}">
|
||||||
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-label-value label="Closing hour (ETD)"
|
<vn-label-value label="Closing hour (ETD)"
|
||||||
|
@ -19,12 +24,6 @@
|
||||||
<vn-label-value label="Traveling days"
|
<vn-label-value label="Traveling days"
|
||||||
value="{{$ctrl.summary.travelingDays}}">
|
value="{{$ctrl.summary.travelingDays}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Price"
|
|
||||||
value="{{$ctrl.summary.price | currency: 'EUR': 2}}">
|
|
||||||
</vn-label-value>
|
|
||||||
<vn-label-value label="Bonus"
|
|
||||||
value="{{$ctrl.summary.bonus | currency: 'EUR': 2}}">
|
|
||||||
</vn-label-value>
|
|
||||||
<vn-vertical>
|
<vn-vertical>
|
||||||
<vn-check label="Volumetric" disabled="true"
|
<vn-check label="Volumetric" disabled="true"
|
||||||
ng-model="$ctrl.summary.isVolumetric">
|
ng-model="$ctrl.summary.isVolumetric">
|
||||||
|
@ -32,4 +31,21 @@
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
<vn-horizontal class="vn-pa-md">
|
||||||
|
<vn-auto>
|
||||||
|
<h4 translate>Warehouses</h4>
|
||||||
|
<vn-table model="model">
|
||||||
|
<vn-thead>
|
||||||
|
<vn-tr>
|
||||||
|
<vn-th>Name</vn-th>
|
||||||
|
</vn-tr>
|
||||||
|
</vn-thead>
|
||||||
|
<vn-tbody>
|
||||||
|
<vn-tr ng-repeat="zoneWarehouse in zoneWarehouses">
|
||||||
|
<vn-td>{{zoneWarehouse.warehouse.name}}</vn-td>
|
||||||
|
</vn-tr>
|
||||||
|
</vn-tbody>
|
||||||
|
</vn-table>
|
||||||
|
</vn-auto>
|
||||||
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
|
@ -1,10 +1,7 @@
|
||||||
import ngModule from '../module';
|
import ngModule from '../module';
|
||||||
|
import Component from 'core/lib/component';
|
||||||
|
|
||||||
class Controller {
|
class Controller extends Component {
|
||||||
constructor($http) {
|
|
||||||
this.$http = $http;
|
|
||||||
}
|
|
||||||
|
|
||||||
get zone() {
|
get zone() {
|
||||||
return this._zone;
|
return this._zone;
|
||||||
}
|
}
|
||||||
|
@ -30,8 +27,6 @@ class Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller.$inject = ['$http'];
|
|
||||||
|
|
||||||
ngModule.component('vnZoneSummary', {
|
ngModule.component('vnZoneSummary', {
|
||||||
template: require('./index.html'),
|
template: require('./index.html'),
|
||||||
controller: Controller,
|
controller: Controller,
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
Choose a sample: Selecciona una plantilla
|
Choose a sample: Selecciona una plantilla
|
||||||
Choose a company: Selecciona una empresa
|
Choose a company: Selecciona una empresa
|
||||||
|
Recipient: Destinatario
|
Loading…
Reference in New Issue