2018-11-30 10:45:17 +00:00
|
|
|
<mg-ajax path="/order/api/Orders/{{patch.params.id}}/updateBasicData" options="vnPatch"></mg-ajax>
|
2019-02-06 13:56:36 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="address-model"
|
|
|
|
url="/api/Addresses"
|
|
|
|
data="address"
|
|
|
|
order="nickname"
|
|
|
|
autoload = "false">
|
|
|
|
</vn-crud-model>
|
2018-11-30 10:45:17 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.order"
|
|
|
|
form="form"
|
|
|
|
save="patch">
|
|
|
|
</vn-watcher>
|
2018-12-14 11:56:21 +00:00
|
|
|
<form name="form" ng-submit="watcher.submit()" compact>
|
2018-11-30 10:45:17 +00:00
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
url="/api/Clients"
|
|
|
|
label="Client"
|
2019-02-06 13:56:36 +00:00
|
|
|
search-function="{or: [{id: $search}, {name: {like: '%'+$search+'%'}}]}"
|
2018-11-30 10:45:17 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
2019-01-11 07:03:36 +00:00
|
|
|
field="$ctrl.order.clientFk"
|
2019-02-06 13:56:36 +00:00
|
|
|
selection="$ctrl.selection"
|
|
|
|
fields="['defaultAddressFk']">
|
|
|
|
<tpl-item>{{::id}}: {{::name}}</tpl-item>
|
2018-11-30 10:45:17 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
2019-02-06 13:56:36 +00:00
|
|
|
data="address"
|
|
|
|
label="Address"
|
|
|
|
search-function="{or: [{id: $search}, {nickname: {like: '%'+$search+'%'}}]}"
|
|
|
|
show-field="nickname"
|
2018-11-30 10:45:17 +00:00
|
|
|
value-field="id"
|
2019-02-06 13:56:36 +00:00
|
|
|
field="$ctrl.order.address_id">
|
|
|
|
<tpl-item>{{::nickname}}</tpl-item>
|
2018-11-30 10:45:17 +00:00
|
|
|
</vn-autocomplete>
|
2019-02-06 13:56:36 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2018-11-30 10:45:17 +00:00
|
|
|
<vn-date-picker
|
|
|
|
vn-one
|
|
|
|
label="Landed"
|
|
|
|
model="$ctrl.order.landed"
|
|
|
|
ini-options="{enableTime: false}">
|
|
|
|
</vn-date-picker>
|
2019-02-06 13:56:36 +00:00
|
|
|
<vn-autocomplete
|
|
|
|
vn-one
|
|
|
|
url="/api/AgencyModes"
|
|
|
|
label="Agency"
|
|
|
|
search-function="{or: [{id: $search}, {name: {like: '%'+$search+'%'}}]}"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
field="$ctrl.order.agency_id">
|
|
|
|
<tpl-item>{{::id}}: {{::name}}</tpl-item>
|
|
|
|
</vn-autocomplete>
|
2018-11-30 10:45:17 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textarea
|
|
|
|
vn-three
|
|
|
|
label="Observation"
|
|
|
|
field="$ctrl.order.note">
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
2019-01-07 15:53:34 +00:00
|
|
|
<vn-submit label="Save"></vn-submit>
|
2018-11-30 10:45:17 +00:00
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|