2019-12-09 11:15:19 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Travels"
|
2019-12-09 11:15:19 +00:00
|
|
|
data="$ctrl.travel"
|
2020-03-09 08:00:03 +00:00
|
|
|
insert-mode="true"
|
|
|
|
form="form">
|
2019-12-09 11:15:19 +00:00
|
|
|
</vn-watcher>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
label="Reference"
|
|
|
|
ng-model="$ctrl.travel.ref">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
2020-03-09 08:00:03 +00:00
|
|
|
label="Agency"
|
2019-12-09 11:15:19 +00:00
|
|
|
ng-model="$ctrl.travel.agencyModeFk"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="AgencyModes">
|
2019-12-09 11:15:19 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-date-picker
|
|
|
|
label="Shipped"
|
|
|
|
ng-model="$ctrl.travel.shipped">
|
|
|
|
</vn-date-picker>
|
|
|
|
<vn-date-picker
|
|
|
|
label="Landed"
|
|
|
|
ng-model="$ctrl.travel.landed">
|
|
|
|
</vn-date-picker>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete
|
2020-03-09 08:00:03 +00:00
|
|
|
label="Warehouse Out"
|
2019-12-09 11:15:19 +00:00
|
|
|
ng-model="$ctrl.travel.warehouseOutFk"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Warehouses">
|
2019-12-09 11:15:19 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete
|
2020-03-09 08:00:03 +00:00
|
|
|
label="Warehouse In"
|
2019-12-09 11:15:19 +00:00
|
|
|
ng-model="$ctrl.travel.warehouseInFk"
|
2020-03-09 08:00:03 +00:00
|
|
|
url="Warehouses">
|
2019-12-09 11:15:19 +00:00
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|