removed autoload for where/searchF
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-09-21 11:17:40 +02:00
parent aff6784662
commit ed905341b3
3 changed files with 6 additions and 29 deletions

View File

@ -14,7 +14,7 @@
<vn-crud-model <vn-crud-model
auto-load="true" auto-load="true"
url="Warehouses" url="Warehouses"
data="Warehouses" data="warehouses"
order="name" order="name"
vn-id="warehouse-model"> vn-id="warehouse-model">
</vn-crud-model> </vn-crud-model>
@ -22,7 +22,7 @@
<vn-card class="vn-pa-lg"> <vn-card class="vn-pa-lg">
<vn-horizontal ng-repeat="niche in niches track by $index"> <vn-horizontal ng-repeat="niche in niches track by $index">
<vn-autocomplete vn-one vn-focus <vn-autocomplete vn-one vn-focus
data="Warehouses" data="warehouses"
label="Warehouse" label="Warehouse"
show-field="name" show-field="name"
value-field="id" value-field="id"

View File

@ -4,24 +4,6 @@
order="name" order="name"
auto-load="true"> auto-load="true">
</vn-crud-model> </vn-crud-model>
<vn-crud-model
auto-load="true"
url="Warehouses"
url="warehouses"
order="name">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="Companies"
data="companies"
order="code">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="AgencyModes/isActive"
data="agencyModes"
order="name">
</vn-crud-model>
<form name="form"> <form name="form">
<vn-card class="vn-w-md vn-pa-lg"> <vn-card class="vn-w-md vn-pa-lg">
<vn-horizontal> <vn-horizontal>
@ -59,7 +41,7 @@
</append> </append>
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete vn-one <vn-autocomplete vn-one
url="warehouses" url="Warehouses"
label="Warehouse" label="Warehouse"
show-field="name" show-field="name"
value-field="id" value-field="id"
@ -69,7 +51,7 @@
<vn-horizontal> <vn-horizontal>
<vn-autocomplete <vn-autocomplete
vn-one vn-one
data="companies" url="Companies"
label="Company" label="Company"
show-field="code" show-field="code"
value-field="id" value-field="id"
@ -78,7 +60,7 @@
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete <vn-autocomplete
vn-one vn-one
data="agencyModes" url="AgencyModes/isActive"
label="Agency" label="Agency"
show-field="name" show-field="name"
value-field="id" value-field="id"

View File

@ -1,8 +1,3 @@
<vn-crud-model
auto-load="true"
url="AgencyModes/isActive"
data="activeAgencyModes">
</vn-crud-model>
<div class="vn-w-md"> <div class="vn-w-md">
<vn-zone-calendar <vn-zone-calendar
data="data" data="data"
@ -45,7 +40,7 @@
<vn-autocomplete <vn-autocomplete
label="{{$ctrl.deliveryMethodFk == 'delivery' ? 'Agency' : 'Warehouse'}}" label="{{$ctrl.deliveryMethodFk == 'delivery' ? 'Agency' : 'Warehouse'}}"
ng-model="params.agencyModeFk" ng-model="params.agencyModeFk"
data="activeAgencyModes" url="AgencyModes/isActive"
where="$ctrl.agencyFilter" where="$ctrl.agencyFilter"
vn-id="agencymode"> vn-id="agencymode">
</vn-autocomplete> </vn-autocomplete>