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

39 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2018-07-09 11:54:43 +00:00
<vn-autocomplete
vn-focus
vn-id="client"
url="Clients"
2018-07-09 11:54:43 +00:00
label="Client"
2019-01-28 09:04:08 +00:00
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
2018-07-09 11:54:43 +00:00
show-field="name"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.clientFk"
2023-05-05 06:12:38 +00:00
vn-name="client"
2019-01-11 07:03:36 +00:00
order="id">
2018-07-09 11:54:43 +00:00
<tpl-item>{{id}}: {{name}}</tpl-item>
</vn-autocomplete>
<vn-autocomplete
disabled="!$ctrl.clientFk"
url="{{ $ctrl.clientFk ? 'Clients/'+ $ctrl.clientFk +'/addresses' : null }}"
2018-10-18 07:24:20 +00:00
fields="['nickname', 'street', 'city']"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.addressFk"
2023-05-05 06:12:38 +00:00
vn-name="address"
2018-07-09 11:54:43 +00:00
show-field="nickname"
value-field="id"
label="Address">
<tpl-item>{{nickname}}: {{street}}, {{city}}</tpl-item>
</vn-autocomplete>
2023-05-05 06:12:38 +00:00
<vn-date-picker
label="Landed"
ng-model="$ctrl.landed"
vn-name="landed">
2018-07-09 11:54:43 +00:00
</vn-date-picker>
<vn-autocomplete
disabled="!$ctrl.clientFk || !$ctrl.landed"
2018-07-17 11:04:24 +00:00
data="$ctrl._availableAgencies"
2018-07-09 11:54:43 +00:00
label="Agency"
2019-03-13 15:09:00 +00:00
show-field="agencyMode"
value-field="agencyModeFk"
2023-05-05 06:12:38 +00:00
ng-model="$ctrl.order.agencyModeFk"
vn-name="agencyMode">
2018-07-09 11:54:43 +00:00
</vn-autocomplete>