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

89 lines
3.1 KiB
HTML
Raw Normal View History

<vn-crud-model
url="/api/Zones"
include="{relation: 'warehouse'}"
data="zones"
order="name"
auto-load="true">
</vn-crud-model>
<form name="form">
2018-04-04 11:56:16 +00:00
<vn-card pad-large>
<vn-horizontal>
<vn-autocomplete vn-one
vn-id="client"
2018-04-04 11:56:16 +00:00
url="/api/Clients"
label="Client"
show-field="name"
value-field="id"
field="$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-02-05 10:25:47 +00:00
field="$ctrl.ticket.addressFk"
order="isActive DESC">
<tpl-item ng-class="::{notActive: isActive === false}">
<span class="inactive" translate>{{::isActive ? '' : 'INACTIVE'}}</span> {{::nickname}}
2019-02-05 10:44:08 +00:00
<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="/api/Warehouses"
label="Warehouse"
2018-04-04 11:56:16 +00:00
show-field="name"
value-field="id"
field="$ctrl.warehouseId">
2018-04-04 11:56:16 +00:00
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
2019-01-24 14:41:48 +00:00
<vn-date-picker vn-one
label="Shipped"
2018-08-16 11:12:18 +00:00
model="$ctrl.shipped"
ini-options="{enableTime: true, dateFormat: 'd-m-Y h:i'}">
2018-04-04 11:56:16 +00:00
</vn-date-picker>
2019-01-24 14:41:48 +00:00
<vn-date-picker vn-one
label="Landed"
model="$ctrl.landed">
2018-04-04 11:56:16 +00:00
</vn-date-picker>
<vn-autocomplete vn-one
url="/api/Companies"
label="Company"
show-field="code"
value-field="id"
field="$ctrl.ticket.companyFk"
initial-data="$ctrl.ticket.companyFk">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete vn-one
url="/api/AgencyModes/isActive"
label="Agency"
show-field="name"
value-field="id"
field="$ctrl.agencyModeId">
</vn-autocomplete>
<vn-autocomplete vn-one
data="zones"
label="Zone"
show-field="name"
value-field="id"
field="$ctrl.zoneId"
vn-acl="productionBoss">
<tpl-item>
<span>{{::name}} - {{::warehouse.name}} - Max. {{::hour | dateTime: 'HH:mm'}} h.</span>
</tpl-item>
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-check vn-one
label="Deleted"
field="$ctrl.ticket.isDeleted">
</vn-check>
</vn-horizontal>
2018-04-04 11:56:16 +00:00
</vn-card>
</form>