2019-07-26 09:48:01 +00:00
|
|
|
<vn-crud-model
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Zones"
|
2019-07-26 09:48:01 +00:00
|
|
|
data="zones"
|
|
|
|
order="name"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
2018-04-18 07:47:05 +00:00
|
|
|
<form name="form">
|
2019-11-14 13:19:39 +00:00
|
|
|
<vn-card class="vn-w-md vn-pa-lg">
|
2018-04-04 11:56:16 +00:00
|
|
|
<vn-horizontal>
|
2020-09-23 12:13:44 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2018-05-17 06:44:34 +00:00
|
|
|
vn-id="client"
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients"
|
2018-04-04 11:56:16 +00:00
|
|
|
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">
|
2021-07-02 08:57:17 +00:00
|
|
|
<tpl-item>
|
|
|
|
#{{id}} - {{::name}}
|
|
|
|
</tpl-item>
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-autocomplete>
|
2021-06-18 13:54:33 +00:00
|
|
|
<vn-autocomplete vn-one
|
|
|
|
required="true"
|
|
|
|
url="Warehouses"
|
|
|
|
label="Warehouse"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
ng-model="$ctrl.warehouseId">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2020-09-23 12:13:44 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
required="true"
|
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>
|
2020-02-03 08:24:49 +00:00
|
|
|
<append>
|
|
|
|
<vn-icon-button
|
|
|
|
ui-sref="client.card.address.edit({id: $ctrl.clientId, addressId: $ctrl.addressId})"
|
|
|
|
icon="edit"
|
|
|
|
vn-tooltip="Edit address">
|
|
|
|
</vn-icon-button>
|
|
|
|
</append>
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-autocomplete>
|
2021-06-18 13:54:33 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Alias"
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2021-06-18 13:54:33 +00:00
|
|
|
ng-model="$ctrl.ticket.nickname">
|
|
|
|
</vn-textfield>
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-horizontal>
|
2019-10-15 14:19:35 +00:00
|
|
|
<vn-horizontal>
|
2020-09-23 12:13:44 +00:00
|
|
|
<vn-autocomplete
|
2019-10-15 14:19:35 +00:00
|
|
|
vn-one
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Companies"
|
2018-04-04 11:56:16 +00:00
|
|
|
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
|
2020-09-23 12:13:44 +00:00
|
|
|
vn-id="agencyMode"
|
2020-09-19 11:02:00 +00:00
|
|
|
url="AgencyModes/byWarehouse"
|
2019-07-26 09:48:01 +00:00
|
|
|
label="Agency"
|
2018-05-25 09:40:04 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2020-09-19 11:02:00 +00:00
|
|
|
ng-model="$ctrl.agencyModeId"
|
2020-09-23 09:21:25 +00:00
|
|
|
where-function="$ctrl.agencyModeWhere()">
|
2018-05-25 09:40:04 +00:00
|
|
|
</vn-autocomplete>
|
2019-10-15 14:19:35 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2020-09-22 05:38:20 +00:00
|
|
|
url="Zones/includingExpired"
|
2019-07-26 09:48:01 +00:00
|
|
|
label="Zone"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.zoneId"
|
2020-09-19 11:02:00 +00:00
|
|
|
vn-acl="productionBoss"
|
|
|
|
where-function="$ctrl.zoneWhere()">
|
2019-07-26 09:48:01 +00:00
|
|
|
<tpl-item>
|
2019-11-07 06:49:37 +00:00
|
|
|
<span>{{::name}} - Max. {{::hour | date: 'HH:mm'}} h.</span>
|
2019-07-26 09:48:01 +00:00
|
|
|
</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
2020-02-07 10:25:56 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2020-02-07 10:25:56 +00:00
|
|
|
label="Shipped"
|
|
|
|
ng-model="$ctrl.shipped">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-input-time
|
|
|
|
vn-one
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2020-02-07 10:25:56 +00:00
|
|
|
label="Shipped hour"
|
|
|
|
ng-model="$ctrl.shipped">
|
|
|
|
</vn-input-time>
|
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
2020-09-23 12:13:44 +00:00
|
|
|
required="true"
|
2020-02-07 10:25:56 +00:00
|
|
|
label="Landed"
|
|
|
|
ng-model="$ctrl.landed">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
2018-04-04 11:56:16 +00:00
|
|
|
</vn-card>
|
|
|
|
</form>
|