2019-07-26 09:48:01 +00:00
|
|
|
<vn-crud-model
|
|
|
|
url="/api/Zones"
|
|
|
|
include="{relation: 'warehouse'}"
|
|
|
|
data="zones"
|
|
|
|
order="name"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
2018-04-18 07:47:05 +00:00
|
|
|
<form name="form">
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-04-04 11:56:16 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
2018-05-17 06:44:34 +00:00
|
|
|
vn-id="client"
|
2018-04-04 11:56:16 +00:00
|
|
|
url="/api/Clients"
|
|
|
|
label="Client"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-10-04 07:28:09 +00:00
|
|
|
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.clientId"
|
2019-07-26 09:48:01 +00:00
|
|
|
initial-data="$ctrl.clientId"
|
2019-01-11 07:03:36 +00:00
|
|
|
order="id">
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
2018-07-11 07:11:45 +00:00
|
|
|
data="$ctrl.addresses"
|
2018-04-04 11:56:16 +00:00
|
|
|
label="Address"
|
|
|
|
show-field="nickname"
|
2018-05-17 06:44:34 +00:00
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.addressId"
|
2019-02-05 10:25:47 +00:00
|
|
|
order="isActive DESC">
|
2019-10-15 14:19:35 +00:00
|
|
|
<tpl-item class="address" ng-class="::{inactive: !isActive}">
|
|
|
|
<span class="inactive" translate>{{::!isActive ? '(Inactive)' : ''}}</span>
|
|
|
|
{{::nickname}}
|
|
|
|
<span ng-show="city || province || street">
|
|
|
|
, {{::street}}, {{::city}}, {{::province.name}} - {{::agencyMode.name}}
|
|
|
|
</span>
|
2018-07-11 07:11:45 +00:00
|
|
|
</tpl-item>
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
2019-07-26 09:48:01 +00:00
|
|
|
url="/api/Warehouses"
|
|
|
|
label="Warehouse"
|
2018-04-04 11:56:16 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.warehouseId">
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2018-05-16 06:13:39 +00:00
|
|
|
label="Shipped"
|
2019-10-15 14:19:35 +00:00
|
|
|
ng-model="$ctrl.shipped">
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-date-picker>
|
2019-10-15 14:19:35 +00:00
|
|
|
<vn-input-time
|
|
|
|
vn-one
|
|
|
|
label="Shipped hour"
|
|
|
|
ng-model="$ctrl.shipped">
|
|
|
|
</vn-input-time>
|
2019-10-08 21:57:02 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2018-05-16 06:13:39 +00:00
|
|
|
label="Landed"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.landed">
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-date-picker>
|
2019-10-15 14:19:35 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2018-04-04 11:56:16 +00:00
|
|
|
url="/api/Companies"
|
|
|
|
label="Company"
|
|
|
|
show-field="code"
|
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.ticket.companyFk"
|
2018-04-04 11:56:16 +00:00
|
|
|
initial-data="$ctrl.ticket.companyFk">
|
|
|
|
</vn-autocomplete>
|
2019-10-15 14:19:35 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-07-26 09:48:01 +00:00
|
|
|
url="/api/AgencyModes/isActive"
|
|
|
|
label="Agency"
|
2018-05-25 09:40:04 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.agencyModeId">
|
2018-05-25 09:40:04 +00:00
|
|
|
</vn-autocomplete>
|
2019-10-15 14:19:35 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-07-26 09:48:01 +00:00
|
|
|
data="zones"
|
|
|
|
label="Zone"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zoneId"
|
2019-07-26 09:48:01 +00:00
|
|
|
vn-acl="productionBoss">
|
|
|
|
<tpl-item>
|
|
|
|
<span>{{::name}} - {{::warehouse.name}} - Max. {{::hour | dateTime: 'HH:mm'}} h.</span>
|
|
|
|
</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-card>
|
|
|
|
</form>
|