2020-09-17 18:12:52 +00:00
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Warehouses"
|
|
|
|
data="warehouses"
|
|
|
|
order="name">
|
|
|
|
</vn-crud-model>
|
2023-05-05 06:12:38 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-focus
|
2018-11-27 12:28:15 +00:00
|
|
|
vn-id="client"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Clients"
|
2018-11-27 12:28:15 +00:00
|
|
|
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-12-26 06:12:34 +00:00
|
|
|
ng-model="$ctrl.clientId"
|
2023-05-05 06:12:38 +00:00
|
|
|
vn-name="client"
|
2019-01-07 15:47:26 +00:00
|
|
|
order="id">
|
2023-05-05 06:12:38 +00:00
|
|
|
<tpl-item>
|
|
|
|
<div>{{::name}}</div>
|
|
|
|
<div class="text-secondary text-caption">#{{::id}}</div>
|
|
|
|
</tpl-item>
|
2018-11-27 12:28:15 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
2019-12-26 06:12:34 +00:00
|
|
|
disabled="!$ctrl.clientId"
|
|
|
|
url="{{ $ctrl.clientId ? 'Clients/'+ $ctrl.clientId +'/addresses' : null }}"
|
2018-11-27 12:28:15 +00:00
|
|
|
fields="['nickname', 'street', 'city']"
|
2022-06-17 14:42:59 +00:00
|
|
|
where="{isActive: true}"
|
2019-12-26 06:12:34 +00:00
|
|
|
ng-model="$ctrl.addressId"
|
2023-05-05 06:12:38 +00:00
|
|
|
vn-name="address"
|
2018-11-27 12:28:15 +00:00
|
|
|
show-field="nickname"
|
|
|
|
value-field="id"
|
|
|
|
label="Address">
|
2023-05-05 06:12:38 +00:00
|
|
|
<tpl-item>
|
|
|
|
<div>{{::nickname}}</div>
|
|
|
|
<div class="text-secondary text-caption">{{::street}}, {{::city}}</div>
|
|
|
|
</tpl-item>
|
2018-11-27 12:28:15 +00:00
|
|
|
</vn-autocomplete>
|
2019-01-16 07:52:56 +00:00
|
|
|
<vn-date-picker
|
2023-05-05 06:12:38 +00:00
|
|
|
label="Landed"
|
|
|
|
ng-model="$ctrl.landed"
|
|
|
|
vn-name="landed">
|
2018-11-27 12:28:15 +00:00
|
|
|
</vn-date-picker>
|
|
|
|
<vn-autocomplete
|
2019-12-26 06:12:34 +00:00
|
|
|
disabled="!$ctrl.warehouseId && (!$ctrl.clientId || !$ctrl.landed)"
|
|
|
|
ng-model="$ctrl.warehouseId"
|
2023-05-05 06:12:38 +00:00
|
|
|
vn-name="warehouse"
|
2020-09-17 18:12:52 +00:00
|
|
|
data="warehouses"
|
2018-11-27 12:28:15 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
label="Warehouse">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
2019-12-26 06:12:34 +00:00
|
|
|
disabled="!$ctrl.clientId || !$ctrl.landed || !$ctrl.warehouseId"
|
2021-02-10 06:58:11 +00:00
|
|
|
data="$ctrl.agencies"
|
2018-11-27 12:28:15 +00:00
|
|
|
label="Agency"
|
2019-03-14 09:43:14 +00:00
|
|
|
show-field="agencyMode"
|
2019-06-11 10:23:55 +00:00
|
|
|
value-field="agencyModeFk"
|
2023-05-05 06:12:38 +00:00
|
|
|
ng-model="$ctrl.agencyModeId"
|
|
|
|
vn-name="agencyMode">
|
|
|
|
</vn-autocomplete>
|