salix/modules/ticket/front/create/card.html

41 lines
1.2 KiB
HTML
Raw Normal View History

<vn-autocomplete vn-focus
2018-11-27 12:28:15 +00:00
vn-id="client"
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"
ng-model="$ctrl.clientId"
2019-01-07 15:47:26 +00:00
order="id">
2018-11-27 12:28:15 +00:00
<tpl-item>{{id}}: {{name}}</tpl-item>
</vn-autocomplete>
<vn-autocomplete
disabled="!$ctrl.clientId"
url="{{ $ctrl.clientId ? 'Clients/'+ $ctrl.clientId +'/addresses' : null }}"
2018-11-27 12:28:15 +00:00
fields="['nickname', 'street', 'city']"
ng-model="$ctrl.addressId"
2018-11-27 12:28:15 +00:00
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"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.landed">
2018-11-27 12:28:15 +00:00
</vn-date-picker>
<vn-autocomplete
disabled="!$ctrl.warehouseId && (!$ctrl.clientId || !$ctrl.landed)"
ng-model="$ctrl.warehouseId"
url="Warehouses"
2018-11-27 12:28:15 +00:00
show-field="name"
value-field="id"
label="Warehouse">
</vn-autocomplete>
<vn-autocomplete
disabled="!$ctrl.clientId || !$ctrl.landed || !$ctrl.warehouseId"
2018-11-27 12:28:15 +00:00
data="$ctrl._availableAgencies"
label="Agency"
2019-03-14 09:43:14 +00:00
show-field="agencyMode"
value-field="agencyModeFk"
ng-model="$ctrl.agencyModeId">
</vn-autocomplete>