salix/modules/ticket/front/basic-data/step-one/index.html

95 lines
3.2 KiB
HTML
Raw Normal View History

<vn-crud-model
url="Zones"
include="{relation: 'warehouse'}"
data="zones"
order="name"
auto-load="true">
</vn-crud-model>
<form name="form">
<vn-card class="vn-pa-lg">
2018-04-04 11:56:16 +00:00
<vn-horizontal>
<vn-autocomplete vn-one
vn-id="client"
url="Clients"
2018-04-04 11:56:16 +00:00
label="Client"
show-field="name"
value-field="id"
2019-10-04 07:28:09 +00:00
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.clientId"
initial-data="$ctrl.clientId"
2019-01-11 07:03:36 +00:00
order="id">
2018-04-04 11:56:16 +00:00
</vn-autocomplete>
<vn-autocomplete vn-one
data="$ctrl.addresses"
2018-04-04 11:56:16 +00:00
label="Address"
show-field="nickname"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.addressId"
2019-02-05 10:25:47 +00:00
order="isActive DESC">
2019-10-15 14:19:35 +00:00
<tpl-item class="address" ng-class="::{inactive: !isActive}">
<span class="inactive" translate>{{::!isActive ? '(Inactive)' : ''}}</span>
{{::nickname}}
<span ng-show="city || province || street">
, {{::street}}, {{::city}}, {{::province.name}} - {{::agencyMode.name}}
</span>
</tpl-item>
2018-04-04 11:56:16 +00:00
</vn-autocomplete>
<vn-autocomplete vn-one
url="Warehouses"
label="Warehouse"
2018-04-04 11:56:16 +00:00
show-field="name"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.warehouseId">
2018-04-04 11:56:16 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-date-picker
vn-one
label="Shipped"
2019-10-15 14:19:35 +00:00
ng-model="$ctrl.shipped">
2018-04-04 11:56:16 +00:00
</vn-date-picker>
2019-10-15 14:19:35 +00:00
<vn-input-time
vn-one
label="Shipped hour"
ng-model="$ctrl.shipped">
</vn-input-time>
<vn-date-picker
vn-one
label="Landed"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.landed">
2018-04-04 11:56:16 +00:00
</vn-date-picker>
2019-10-15 14:19:35 +00:00
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete
vn-one
url="Companies"
2018-04-04 11:56:16 +00:00
label="Company"
show-field="code"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.ticket.companyFk"
2018-04-04 11:56:16 +00:00
initial-data="$ctrl.ticket.companyFk">
</vn-autocomplete>
2019-10-15 14:19:35 +00:00
<vn-autocomplete
vn-one
url="AgencyModes/isActive"
label="Agency"
show-field="name"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.agencyModeId">
</vn-autocomplete>
2019-10-15 14:19:35 +00:00
<vn-autocomplete
vn-one
data="zones"
label="Zone"
show-field="name"
value-field="id"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.zoneId"
vn-acl="productionBoss">
<tpl-item>
<span>{{::name}} - {{::warehouse.name}} - Max. {{::hour | date: 'HH:mm'}} h.</span>
</tpl-item>
</vn-autocomplete>
</vn-horizontal>
2018-04-04 11:56:16 +00:00
</vn-card>
</form>