83 lines
3.0 KiB
HTML
83 lines
3.0 KiB
HTML
<vn-crud-model
|
|
url="/api/Zones"
|
|
include="{relation: 'warehouse'}"
|
|
data="zones"
|
|
order="name"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<form name="form">
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-horizontal>
|
|
<vn-autocomplete vn-one
|
|
vn-id="client"
|
|
url="/api/Clients"
|
|
label="Client"
|
|
show-field="name"
|
|
value-field="id"
|
|
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
|
|
field="$ctrl.clientId"
|
|
initial-data="$ctrl.clientId"
|
|
order="id">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete vn-one
|
|
data="$ctrl.addresses"
|
|
label="Address"
|
|
show-field="nickname"
|
|
value-field="id"
|
|
field="$ctrl.addressId"
|
|
order="isActive DESC">
|
|
<tpl-item ng-class="::{notActive: isActive === false}">
|
|
<span class="inactive" translate>{{::isActive ? '' : 'INACTIVE'}}</span> {{::nickname}}
|
|
<span ng-show="city || province || street">- {{::street}} - {{::city}} - {{::province.name}} - {{::agencyMode.name}}</span>
|
|
</tpl-item>
|
|
</vn-autocomplete>
|
|
<vn-autocomplete vn-one
|
|
url="/api/Warehouses"
|
|
label="Warehouse"
|
|
show-field="name"
|
|
value-field="id"
|
|
field="$ctrl.warehouseId">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-date-picker vn-one
|
|
label="Shipped"
|
|
model="$ctrl.shipped"
|
|
ini-options="{enableTime: true, dateFormat: 'd-m-Y h:i'}">
|
|
</vn-date-picker>
|
|
<vn-date-picker vn-one
|
|
label="Landed"
|
|
model="$ctrl.landed">
|
|
</vn-date-picker>
|
|
<vn-autocomplete vn-one
|
|
url="/api/Companies"
|
|
label="Company"
|
|
show-field="code"
|
|
value-field="id"
|
|
field="$ctrl.ticket.companyFk"
|
|
initial-data="$ctrl.ticket.companyFk">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
<vn-horizontal>
|
|
<vn-autocomplete vn-one
|
|
url="/api/AgencyModes/isActive"
|
|
label="Agency"
|
|
show-field="name"
|
|
value-field="id"
|
|
field="$ctrl.agencyModeId">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete vn-one
|
|
data="zones"
|
|
label="Zone"
|
|
show-field="name"
|
|
value-field="id"
|
|
field="$ctrl.zoneId"
|
|
vn-acl="productionBoss">
|
|
<tpl-item>
|
|
<span>{{::name}} - {{::warehouse.name}} - Max. {{::hour | dateTime: 'HH:mm'}} h.</span>
|
|
</tpl-item>
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
</form>
|