2018-11-27 12:28:15 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-focus
|
|
|
|
vn-id="client"
|
|
|
|
url="/api/Clients"
|
|
|
|
label="Client"
|
2019-01-28 09:04:08 +00:00
|
|
|
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
|
2018-11-27 12:28:15 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-01-07 15:47:26 +00:00
|
|
|
field="$ctrl.clientFk"
|
|
|
|
order="id">
|
2018-11-27 12:28:15 +00:00
|
|
|
<tpl-item>{{id}}: {{name}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
disabled="!$ctrl.clientFk"
|
|
|
|
url="{{ $ctrl.clientFk ? '/api/Clients/'+ $ctrl.clientFk +'/addresses' : null }}"
|
|
|
|
fields="['nickname', 'street', 'city']"
|
|
|
|
field="$ctrl.addressFk"
|
|
|
|
show-field="nickname"
|
|
|
|
value-field="id"
|
|
|
|
label="Address">
|
|
|
|
<tpl-item>{{nickname}}: {{street}}, {{city}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
2019-01-16 07:52:56 +00:00
|
|
|
<vn-date-picker
|
2018-11-27 12:28:15 +00:00
|
|
|
label="Landed"
|
|
|
|
model="$ctrl.landed"
|
|
|
|
ini-options="{enableTime: false}">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-autocomplete
|
2019-01-25 10:58:50 +00:00
|
|
|
disabled="!$ctrl.warehouseFk && (!$ctrl.clientFk || !$ctrl.landed)"
|
2018-11-27 12:28:15 +00:00
|
|
|
field="$ctrl.warehouseFk"
|
|
|
|
url="/agency/api/Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Warehouse">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
disabled="!$ctrl.clientFk || !$ctrl.landed || !$ctrl.warehouseFk"
|
|
|
|
data="$ctrl._availableAgencies"
|
|
|
|
label="Agency"
|
2019-03-14 09:43:14 +00:00
|
|
|
show-field="agencyMode"
|
2019-06-11 10:23:55 +00:00
|
|
|
value-field="agencyModeFk"
|
2018-11-27 12:28:15 +00:00
|
|
|
field="$ctrl.ticket.agencyModeFk">
|
2019-06-11 10:23:55 +00:00
|
|
|
</vn-autocomplete>
|