2019-11-10 10:08:44 +00:00
|
|
|
<vn-crud-model
|
2018-11-13 06:44:03 +00:00
|
|
|
vn-id="model"
|
2019-12-20 06:55:00 +00:00
|
|
|
url="Travels/filter"
|
2018-11-13 06:44:03 +00:00
|
|
|
limit="20"
|
2019-12-20 06:55:00 +00:00
|
|
|
params="::$ctrl.params"
|
|
|
|
data="travels"
|
|
|
|
order="shipped DESC, landed DESC">
|
2018-11-13 06:44:03 +00:00
|
|
|
</vn-crud-model>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-auto-search
|
2019-12-20 06:55:00 +00:00
|
|
|
on-search="$ctrl.onSearch($params)">
|
2019-11-10 10:08:44 +00:00
|
|
|
</vn-auto-search>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
2019-12-20 06:55:00 +00:00
|
|
|
class="vn-mb-xl vn-w-xl">
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
|
|
|
<vn-th field="ref">Reference</vn-th>
|
|
|
|
<vn-th field="agencyFk">Agency</vn-th>
|
|
|
|
<vn-th field="warehouseOutFk">Warehouse Out</vn-th>
|
|
|
|
<vn-th field="shipped" center>Shipped</vn-th>
|
|
|
|
<vn-th field="isDelivered" center>Delivered</vn-th>
|
|
|
|
<vn-th field="warehouseInFk">Warehouse In</vn-th>
|
|
|
|
<vn-th field="landed" center>Landed</vn-th>
|
|
|
|
<vn-th field="isReceived" center>Received</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<a ng-repeat="travel in travels"
|
|
|
|
class="clickable vn-tr search-result"
|
|
|
|
ui-sref="travel.card.summary({id: {{::travel.id}}})">
|
|
|
|
<vn-td number>{{::travel.id}}</vn-td>
|
|
|
|
<vn-td expand>{{::travel.ref}}</vn-td>
|
2019-12-20 06:55:00 +00:00
|
|
|
<vn-td expand>{{::travel.agencyModeName}}</vn-td>
|
|
|
|
<vn-td expand>{{::travel.warehouseOutName}}</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td center>{{::travel.shipped | date:'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td><vn-check ng-model="travel.isDelivered" disabled="true"></vn-check></vn-td>
|
2019-12-20 06:55:00 +00:00
|
|
|
<vn-td expand>{{::travel.warehouseInName}}</vn-td>
|
2019-11-10 10:08:44 +00:00
|
|
|
<vn-td center>{{::travel.landed | date:'dd/MM/yyyy'}}</vn-td>
|
|
|
|
<vn-td center><vn-check ng-model="travel.isReceived" disabled="true"></vn-check></vn-td>
|
|
|
|
<vn-td>
|
|
|
|
<vn-icon-button
|
|
|
|
ng-click="$ctrl.preview($event, travel)"
|
|
|
|
vn-tooltip="Preview"
|
|
|
|
icon="desktop_windows">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</a>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-data-viewer>
|
2019-12-20 06:55:00 +00:00
|
|
|
</vn-card>
|
2019-10-26 23:30:01 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-travel-summary
|
|
|
|
travel="$ctrl.travelSelected">
|
|
|
|
</vn-travel-summary>
|
|
|
|
</vn-popup>
|
2019-12-09 11:15:19 +00:00
|
|
|
<a ui-sref="travel.create"
|
|
|
|
vn-tooltip="New travel"
|
|
|
|
vn-bind="+"
|
|
|
|
vn-acl="buyer"
|
|
|
|
fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
2019-09-05 11:06:40 +00:00
|
|
|
<vn-scroll-up></vn-scroll-up>
|