salix/modules/travel/front/extra-community/index.html

130 lines
5.9 KiB
HTML
Raw Normal View History

2021-05-12 10:11:27 +00:00
<vn-crud-model
2020-11-11 11:34:07 +00:00
vn-id="model"
2020-11-13 08:30:40 +00:00
url="Travels/extraCommunityFilter"
2020-11-20 14:05:57 +00:00
data="travels"
order="landed ASC, shipped ASC, travelFk, loadPriority, agencyModeFk, evaNotes"
2021-05-12 10:11:27 +00:00
limit="20"
auto-load="true">
2020-11-11 11:34:07 +00:00
</vn-crud-model>
2020-11-13 08:30:40 +00:00
<vn-portal slot="topbar">
<vn-searchbar
vn-focus
2020-11-20 14:05:57 +00:00
panel="vn-extra-community-search-panel"
2021-01-19 12:06:10 +00:00
info="Search by travel id or reference"
placeholder="Search by extra community travel"
2020-11-20 14:05:57 +00:00
suggested-filter="$ctrl.defaultFilter"
filter="$ctrl.defaultFilter"
2020-11-13 08:30:40 +00:00
auto-state="false"
model="model">
</vn-searchbar>
</vn-portal>
2020-11-20 14:05:57 +00:00
<vn-data-viewer model="model" class="travel-list">
2021-01-07 13:21:17 +00:00
<vn-card>
2020-11-20 14:05:57 +00:00
<section class="vn-pa-md">
2021-01-08 09:16:38 +00:00
<vn-tool-bar class="vn-mb-md">
2021-07-02 12:35:24 +00:00
<vn-button disabled="!$ctrl.hasDateRange"
2021-01-08 09:16:38 +00:00
icon="picture_as_pdf"
ng-click="$ctrl.showReport()"
vn-tooltip="Open as PDF">
</vn-button>
</vn-tool-bar>
2021-01-07 13:21:17 +00:00
<vn-table>
2020-11-11 11:34:07 +00:00
<vn-thead>
2021-01-07 13:21:17 +00:00
<vn-tr>
2020-11-20 14:05:57 +00:00
<vn-th shrink>Id</vn-th>
<vn-th expand>Supplier</vn-th>
<vn-th expand>Freighter</vn-th>
<vn-th>Reference</vn-th>
<vn-th number>Packages</vn-th>
<vn-th number>Bl. KG</vn-th>
<vn-th number>Phy. KG</vn-th>
<vn-th number>Vol. KG</vn-th>
2021-01-07 13:21:17 +00:00
<vn-th expand translate-attr="{title: 'Warehouse Out'}">
Wh. Out
</vn-th>
2021-01-18 07:33:20 +00:00
<vn-th expand>W. Shipped</vn-th>
<vn-th expand translate-attr="{title: 'Warehouse In'}">
Wh. In
</vn-th>
2021-01-07 13:21:17 +00:00
<vn-th expand>W. Landed</vn-th>
2020-11-11 11:34:07 +00:00
</vn-tr>
</vn-thead>
2021-01-07 13:21:17 +00:00
<vn-tbody ng-repeat="travel in travels" class="vn-mb-md" vn-droppable="$ctrl.onDrop($event)" ng-attr-id="{{::travel.id}}">
2020-11-20 14:05:57 +00:00
<vn-tr class="header">
<vn-td>
<span class="link"
ng-click="travelDescriptor.show($event, travel.id)">
{{::travel.id}}
</span>
</vn-td>
<vn-td expand>{{::travel.agencyModeName}}</vn-td>
<vn-td expand>{{::travel.cargoSupplierNickname}}</vn-td>
2021-01-18 13:53:15 +00:00
<vn-td-editable name="reference" expand>
2020-11-20 14:05:57 +00:00
<text>{{travel.ref}}</text>
<field>
<vn-textfield class="dense" vn-focus
ng-model="travel.ref"
2021-01-07 13:21:17 +00:00
on-change="$ctrl.save(travel.id, {ref: value})">
2020-11-20 14:05:57 +00:00
</vn-textfield>
</field>
</vn-td-editable>
<vn-td number>{{::travel.stickers}}</vn-td>
2021-01-18 13:53:15 +00:00
<vn-td-editable name="lockedKg" expand style="text-align: right">
2021-01-07 13:21:17 +00:00
<text number>{{travel.kg}}</text>
<field>
<vn-input-number class="dense" vn-focus
ng-model="travel.kg"
on-change="$ctrl.save(travel.id, {kg: value})"
min="0">
</vn-input-number>
</field>
</vn-td-editable>
2020-11-20 14:05:57 +00:00
<vn-td number>{{::travel.loadedKg}}</vn-td>
<vn-td number>{{::travel.volumeKg}}</vn-td>
2021-01-07 13:21:17 +00:00
<vn-td expand>{{::travel.warehouseOutName}}</vn-td>
2021-01-18 07:33:20 +00:00
<vn-td expand>{{::travel.shipped | date: 'dd/MM/yyyy'}}</vn-td>
<vn-td expand>{{::travel.warehouseInName}}</vn-td>
2020-11-20 14:05:57 +00:00
<vn-td expand>{{::travel.landed | date: 'dd/MM/yyyy'}}</vn-td>
2020-11-11 11:34:07 +00:00
</vn-tr>
2020-11-20 14:05:57 +00:00
<a href="#" ng-repeat="entry in travel.entries" class="vn-tr" draggable
ng-attr-id="{{::entry.id}}"
ng-click="$event.preventDefault()">
<vn-td>
<span class="link"
ng-click="entryDescriptor.show($event, entry.id)">
{{::entry.id}}
</span>
</vn-td>
<vn-td>{{::entry.supplierName}}</vn-td>
<vn-td></vn-td>
<vn-td expand>{{::entry.ref}}</vn-td>
2021-01-08 09:16:38 +00:00
<vn-td number>{{::entry.stickers}}</vn-td>
2020-11-20 14:05:57 +00:00
<vn-td number></vn-td>
<vn-td number>{{::entry.loadedkg}}</vn-td>
<vn-td number>{{::entry.volumeKg}}</vn-td>
<vn-td>
2021-01-08 09:16:38 +00:00
<span ng-if="::entry.notes" vn-tooltip="{{::entry.notes}}">
2020-11-20 14:05:57 +00:00
{{::entry.notes}}
</span>
</vn-td>
<vn-td>
2021-01-08 09:16:38 +00:00
<span ng-if="::entry.evaNotes" vn-tooltip="{{::entry.evaNotes}}">
2020-11-20 14:05:57 +00:00
{{::entry.evaNotes}}
</span>
</vn-td>
<vn-td></vn-td>
<vn-td></vn-td>
</a>
2020-11-11 11:34:07 +00:00
</vn-tbody>
2020-11-20 14:05:57 +00:00
</vn-table>
2020-11-11 11:34:07 +00:00
</section>
</vn-card>
</vn-data-viewer>
2020-11-20 14:05:57 +00:00
<vn-travel-descriptor-popover
vn-id="travelDescriptor">
</vn-travel-descriptor-popover>
<vn-entry-descriptor-popover
vn-id="entryDescriptor">
</vn-entry-descriptor-popover>