added auto-load to some combos
This commit is contained in:
parent
1d0e227ddc
commit
ea077e8d4a
|
@ -7,7 +7,8 @@
|
||||||
auto-save="true"
|
auto-save="true"
|
||||||
on-save="$ctrl.onSave()">
|
on-save="$ctrl.onSave()">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-crud-model auto-load="true"
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
url="ClaimDestinations"
|
url="ClaimDestinations"
|
||||||
data="claimDestinations">
|
data="claimDestinations">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
url="Claims/{{$ctrl.$params.id}}/updateClaim"
|
url="Claims/{{$ctrl.$params.id}}/updateClaim"
|
||||||
save="post">
|
save="post">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="ClaimStates"
|
||||||
|
data="claimStates">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -36,7 +41,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.claim.claimStateFk"
|
ng-model="$ctrl.claim.claimStateFk"
|
||||||
url="ClaimStates"
|
data="claimStates"
|
||||||
show-field="description"
|
show-field="description"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Claim state"
|
label="Claim state"
|
||||||
|
|
|
@ -8,12 +8,22 @@
|
||||||
form="form">
|
form="form">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
<vn-crud-model
|
<vn-crud-model
|
||||||
vn-id="model"
|
auto-load="true"
|
||||||
url="AddressObservations"
|
url="Provinces/location"
|
||||||
fields="['id', 'addressFk', 'observationTypeFk', 'description']"
|
data="provincesLocation"
|
||||||
link="{addressFk: $ctrl.$params.addressId}"
|
order="id">
|
||||||
data="observations"
|
</vn-crud-model>
|
||||||
auto-load="true">
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Incoterms"
|
||||||
|
data="incoterms"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="CustomsAgents"
|
||||||
|
data="customsAgents"
|
||||||
|
order="fiscalName">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
|
@ -79,7 +89,7 @@
|
||||||
<vn-autocomplete vn-id="province" vn-one
|
<vn-autocomplete vn-id="province" vn-one
|
||||||
label="Province"
|
label="Province"
|
||||||
ng-model="$ctrl.address.provinceId"
|
ng-model="$ctrl.address.provinceId"
|
||||||
url="Provinces/location"
|
data="provincesLocation"
|
||||||
fields="['id', 'name', 'countryFk']"
|
fields="['id', 'name', 'countryFk']"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
@ -112,14 +122,14 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
ng-model="$ctrl.address.incotermsId"
|
ng-model="$ctrl.address.incotermsId"
|
||||||
url="Incoterms"
|
data="incoterms"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="code"
|
value-field="code"
|
||||||
label="Incoterms">
|
label="Incoterms">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
ng-model="$ctrl.address.customsAgentId"
|
ng-model="$ctrl.address.customsAgentId"
|
||||||
url="CustomsAgents"
|
data="customsAgents"
|
||||||
show-field="fiscalName"
|
show-field="fiscalName"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Customs agent">
|
label="Customs agent">
|
||||||
|
|
|
@ -2,13 +2,25 @@
|
||||||
New payment
|
New payment
|
||||||
</tpl-title>
|
</tpl-title>
|
||||||
<tpl-body>
|
<tpl-body>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="banks"
|
||||||
|
data="banks"
|
||||||
|
order="bank">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Companies"
|
||||||
|
data="companies"
|
||||||
|
order="code">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-date-picker
|
<vn-date-picker
|
||||||
label="Date"
|
label="Date"
|
||||||
ng-model="$ctrl.receipt.payed">
|
ng-model="$ctrl.receipt.payed">
|
||||||
</vn-date-picker>
|
</vn-date-picker>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
url="Companies"
|
data="companies"
|
||||||
label="Company"
|
label="Company"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
@ -18,7 +30,7 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Bank"
|
label="Bank"
|
||||||
url="Banks"
|
data="banks"
|
||||||
show-field="bank"
|
show-field="bank"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
fields="['accountingTypeFk']"
|
fields="['accountingTypeFk']"
|
||||||
|
|
|
@ -10,13 +10,19 @@
|
||||||
filter="$ctrl.filter"
|
filter="$ctrl.filter"
|
||||||
data="$ctrl.clientRisks">
|
data="$ctrl.clientRisks">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Companies"
|
||||||
|
data="companies"
|
||||||
|
order="code">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-side-menu side="right">
|
<vn-side-menu side="right">
|
||||||
<div class="vn-pa-md">
|
<div class="vn-pa-md">
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
vn-id="company"
|
vn-id="company"
|
||||||
ng-model="$ctrl.companyId"
|
ng-model="$ctrl.companyId"
|
||||||
url="Companies"
|
data="companies"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Company">
|
label="Company">
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="ContactChannels"
|
||||||
|
data="contactChannels">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" vn-http-submit="watcher.submit()" class="vn-w-md">
|
<form name="form" vn-http-submit="watcher.submit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -60,7 +65,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.client.contactChannelFk"
|
ng-model="$ctrl.client.contactChannelFk"
|
||||||
url="ContactChannels"
|
data="contactChannels"
|
||||||
label="Channel">
|
label="Channel">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="PayMethods"
|
||||||
|
data="paymethods">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -13,7 +18,7 @@
|
||||||
label="Billing data"
|
label="Billing data"
|
||||||
vn-acl="salesAssistant"
|
vn-acl="salesAssistant"
|
||||||
ng-model="$ctrl.client.payMethodFk"
|
ng-model="$ctrl.client.payMethodFk"
|
||||||
url="PayMethods"
|
data="paymethods"
|
||||||
fields="['ibanRequired']"
|
fields="['ibanRequired']"
|
||||||
initial-data="$ctrl.client.payMethod">
|
initial-data="$ctrl.client.payMethod">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="post">
|
save="post">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Towns/location"
|
||||||
|
data="townLocations"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" vn-http-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" vn-http-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -77,7 +83,7 @@
|
||||||
label="City"
|
label="City"
|
||||||
ng-model="$ctrl.client.city"
|
ng-model="$ctrl.client.city"
|
||||||
selection="$ctrl.town"
|
selection="$ctrl.town"
|
||||||
url="Towns/location"
|
data="townsLocation"
|
||||||
fields="['id', 'name', 'provinceFk']"
|
fields="['id', 'name', 'provinceFk']"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="name">
|
value-field="name">
|
||||||
|
|
|
@ -3,6 +3,24 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Companies"
|
||||||
|
data="companies"
|
||||||
|
order="code">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="DmsTypes"
|
||||||
|
data="dmsTypes"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -21,7 +39,7 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Company"
|
label="Company"
|
||||||
ng-model="$ctrl.dms.companyId"
|
ng-model="$ctrl.dms.companyId"
|
||||||
url="Companies"
|
data="companies"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
@ -30,14 +48,14 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Type"
|
label="Type"
|
||||||
ng-model="$ctrl.dms.dmsTypeId"
|
ng-model="$ctrl.dms.dmsTypeId"
|
||||||
url="DmsTypes"
|
data="dmsTypes"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -6,6 +6,18 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Provinces/location"
|
||||||
|
data="provincesLocation"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Countries"
|
||||||
|
data="countries"
|
||||||
|
order="country">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -76,7 +88,7 @@
|
||||||
label="Province"
|
label="Province"
|
||||||
ng-model="$ctrl.client.provinceFk"
|
ng-model="$ctrl.client.provinceFk"
|
||||||
selection="$ctrl.province"
|
selection="$ctrl.province"
|
||||||
url="Provinces/location"
|
data="provincesLocation"
|
||||||
fields="['id', 'name', 'countryFk']"
|
fields="['id', 'name', 'countryFk']"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
@ -85,7 +97,7 @@
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-id="country" vn-one
|
<vn-autocomplete vn-id="country" vn-one
|
||||||
ng-model="$ctrl.client.countryFk"
|
ng-model="$ctrl.client.countryFk"
|
||||||
url="Countries"
|
data="countries"
|
||||||
show-field="country"
|
show-field="country"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Country"
|
label="Country"
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="post">
|
save="post">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="greugeTypes"
|
||||||
|
data="greugeTypes">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -32,7 +37,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.greuge.greugeTypeFk"
|
ng-model="$ctrl.greuge.greugeTypeFk"
|
||||||
url="greugeTypes"
|
data="greugeTypes"
|
||||||
label="Type"
|
label="Type"
|
||||||
rule>
|
rule>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
data="companiesData"
|
data="companiesData"
|
||||||
order="code">
|
order="code">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Samples/visible"
|
||||||
|
data="samplesVisible"
|
||||||
|
order="description">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-watcher
|
<vn-watcher
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.clientSample"
|
data="$ctrl.clientSample"
|
||||||
|
@ -24,7 +30,7 @@
|
||||||
ng-model="$ctrl.clientSample.typeFk"
|
ng-model="$ctrl.clientSample.typeFk"
|
||||||
model="ClientSample.typeFk"
|
model="ClientSample.typeFk"
|
||||||
fields="['code','hasCompany', 'hasPreview']"
|
fields="['code','hasCompany', 'hasPreview']"
|
||||||
url="Samples/visible"
|
data="samplesVisible"
|
||||||
show-field="description"
|
show-field="description"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Sample">
|
label="Sample">
|
||||||
|
|
|
@ -9,6 +9,13 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Origins"
|
||||||
|
data="originsData"
|
||||||
|
order="name"
|
||||||
|
vn-id="origin-model">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="watcher.submit()" ng-cloak class="vn-w-md">
|
<form name="form" ng-submit="watcher.submit()" ng-cloak class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -70,7 +77,7 @@
|
||||||
initial-data="$ctrl.item.expense">
|
initial-data="$ctrl.item.expense">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
url="Origins"
|
data="originsData"
|
||||||
label="Origin"
|
label="Origin"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -5,6 +5,13 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="post">
|
save="post">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Origins"
|
||||||
|
data="originsData"
|
||||||
|
order="name"
|
||||||
|
vn-id="origin-model">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -49,7 +56,7 @@
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
url="Origins"
|
data="originsData"
|
||||||
label="Origin"
|
label="Origin"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -5,13 +5,20 @@
|
||||||
data="sales"
|
data="sales"
|
||||||
auto-load="false">
|
auto-load="false">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="Warehouses"
|
||||||
|
order="name"
|
||||||
|
vn-id="warehouse-model">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-vertical>
|
<vn-vertical>
|
||||||
<vn-card class="vn-pa-lg vn-w-lg">
|
<vn-card class="vn-pa-lg vn-w-lg">
|
||||||
<vn-vertical>
|
<vn-vertical>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-focus
|
vn-focus
|
||||||
url="Warehouses"
|
data="Warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
initial-data="$ctrl.warehouseFk"
|
initial-data="$ctrl.warehouseFk"
|
||||||
|
|
|
@ -11,16 +11,23 @@
|
||||||
data="niches"
|
data="niches"
|
||||||
form="form">
|
form="form">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="Warehouses"
|
||||||
|
order="name"
|
||||||
|
vn-id="warehouse-model">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<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-autocomplete vn-one vn-focus
|
||||||
url="Warehouses"
|
data="Warehouses"
|
||||||
|
label="Warehouse"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
ng-model="niche.warehouseFk"
|
ng-model="niche.warehouseFk"
|
||||||
label="Warehouse"
|
vn-acl="buyer,replenisher">
|
||||||
vn-acl="buyer,replenisher" vn-one vn-focus>
|
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
vn-three
|
vn-three
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<mg-ajax path="Orders/{{patch.params.id}}/updateBasicData" options="vnPatch"></mg-ajax>
|
<mg-ajax path="Orders/{{patch.params.id}}/updateBasicData" options="vnPatch"></mg-ajax>
|
||||||
<vn-crud-model
|
<vn-crud-model
|
||||||
vn-id="address-model"
|
autoload="true"
|
||||||
url="Addresses"
|
url="Addresses"
|
||||||
data="address"
|
data="address"
|
||||||
order="nickname"
|
order="nickname"
|
||||||
autoload = "false">
|
vn-id="address-model">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<vn-watcher
|
<vn-watcher
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
|
|
|
@ -4,6 +4,24 @@
|
||||||
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>
|
||||||
|
@ -41,7 +59,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"
|
||||||
|
@ -51,7 +69,7 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
url="Companies"
|
data="companies"
|
||||||
label="Company"
|
label="Company"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
@ -60,7 +78,7 @@
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
url="AgencyModes/isActive"
|
data="agencyModes"
|
||||||
label="Agency"
|
label="Agency"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-autocomplete vn-focus
|
<vn-autocomplete vn-focus
|
||||||
vn-id="client"
|
vn-id="client"
|
||||||
url="Clients"
|
url="Clients"
|
||||||
|
@ -26,7 +32,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
disabled="!$ctrl.warehouseId && (!$ctrl.clientId || !$ctrl.landed)"
|
disabled="!$ctrl.warehouseId && (!$ctrl.clientId || !$ctrl.landed)"
|
||||||
ng-model="$ctrl.warehouseId"
|
ng-model="$ctrl.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Warehouse">
|
label="Warehouse">
|
||||||
|
|
|
@ -2,6 +2,24 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Companies"
|
||||||
|
data="companies"
|
||||||
|
order="code">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="DmsTypes"
|
||||||
|
data="dmsTypes"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -20,7 +38,7 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Company"
|
label="Company"
|
||||||
ng-model="$ctrl.dms.companyId"
|
ng-model="$ctrl.dms.companyId"
|
||||||
url="Companies"
|
data="companies"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
@ -29,14 +47,14 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Type"
|
label="Type"
|
||||||
ng-model="$ctrl.dms.dmsTypeId"
|
ng-model="$ctrl.dms.dmsTypeId"
|
||||||
url="DmsTypes"
|
data="dmsTypes"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="post">
|
save="post">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Clients/activeWorkersWithRole"
|
||||||
|
data="clientsActiveWorkersWithRole"
|
||||||
|
order="nickname">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-ma-md">
|
||||||
<div class="vn-w-md">
|
<div class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
|
@ -19,7 +25,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.ticketRequest.attenderFk"
|
ng-model="$ctrl.ticketRequest.attenderFk"
|
||||||
url="Clients/activeWorkersWithRole"
|
data="clientsActiveWorkersWithRole"
|
||||||
show-field="nickname"
|
show-field="nickname"
|
||||||
search-function="{firstName: $search}"
|
search-function="{firstName: $search}"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -5,6 +5,18 @@
|
||||||
data="$ctrl.services"
|
data="$ctrl.services"
|
||||||
auto-load="true">
|
auto-load="true">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="TicketServiceTypes"
|
||||||
|
data="ticketServiceTypes"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="TaxClasses"
|
||||||
|
data="taxClasses"
|
||||||
|
order="description">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-watcher
|
<vn-watcher
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.services">
|
data="$ctrl.services">
|
||||||
|
@ -13,7 +25,7 @@
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal ng-repeat="service in $ctrl.services track by $index">
|
<vn-horizontal ng-repeat="service in $ctrl.services track by $index">
|
||||||
<vn-autocomplete vn-two vn-focus
|
<vn-autocomplete vn-two vn-focus
|
||||||
url="TicketServiceTypes"
|
data="ticketServiceTypes"
|
||||||
label="Description"
|
label="Description"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
@ -42,7 +54,7 @@
|
||||||
step="0.01">
|
step="0.01">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
url="TaxClasses"
|
data="taxClasses"
|
||||||
label="Tax class"
|
label="Tax class"
|
||||||
show-field="description"
|
show-field="description"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -4,13 +4,18 @@
|
||||||
data="$ctrl.params"
|
data="$ctrl.params"
|
||||||
form="form">
|
form="form">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="States"
|
||||||
|
data="states">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.stateFk"
|
ng-model="$ctrl.stateFk"
|
||||||
url="States"
|
data="states"
|
||||||
label="State"
|
label="State"
|
||||||
vn-focus>
|
vn-focus>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -38,7 +44,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.travel.warehouseOutFk"
|
ng-model="$ctrl.travel.warehouseOutFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Warehouse Out">
|
label="Warehouse Out">
|
||||||
|
@ -46,7 +52,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.travel.warehouseInFk"
|
ng-model="$ctrl.travel.warehouseInFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Warehouse In">
|
label="Warehouse In">
|
||||||
|
|
|
@ -2,6 +2,24 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="DmsTypes"
|
||||||
|
data="dmsTypes"
|
||||||
|
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="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -45,7 +63,7 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Type"
|
label="Type"
|
||||||
ng-model="$ctrl.dms.dmsTypeId"
|
ng-model="$ctrl.dms.dmsTypeId"
|
||||||
url="DmsTypes"
|
data="dmsTypes"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
@ -54,14 +72,14 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Company"
|
label="Company"
|
||||||
ng-model="$ctrl.dms.companyId"
|
ng-model="$ctrl.dms.companyId"
|
||||||
url="Companies"
|
data="companies"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -5,6 +5,18 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="post">
|
save="post">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="AgencyModes/isActive"
|
||||||
|
data="activeAgencyModes"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
vn-http-submit="$ctrl.onSubmit()"
|
vn-http-submit="$ctrl.onSubmit()"
|
||||||
|
@ -23,7 +35,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.zone.warehouseFk"
|
ng-model="$ctrl.zone.warehouseFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
|
@ -32,7 +44,7 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.zone.agencyModeFk"
|
ng-model="$ctrl.zone.agencyModeFk"
|
||||||
url="AgencyModes/isActive"
|
data="activeAgencyModes"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Agency"
|
label="Agency"
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<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"
|
||||||
|
@ -40,7 +45,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"
|
||||||
url="AgencyModes/isActive"
|
data="activeAgencyModes"
|
||||||
where="$ctrl.agencyFilter"
|
where="$ctrl.agencyFilter"
|
||||||
vn-id="agencymode">
|
vn-id="agencymode">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -26,13 +26,19 @@
|
||||||
ng-click="$ctrl.onCreate()"
|
ng-click="$ctrl.onCreate()"
|
||||||
fixed-bottom-right>
|
fixed-bottom-right>
|
||||||
</vn-float-button>
|
</vn-float-button>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses"
|
||||||
|
order="name">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-dialog
|
<vn-dialog
|
||||||
vn-id="dialog"
|
vn-id="dialog"
|
||||||
on-accept="$ctrl.onSave()">
|
on-accept="$ctrl.onSave()">
|
||||||
<tpl-body>
|
<tpl-body>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
ng-model="$ctrl.selected.warehouseFk"
|
ng-model="$ctrl.selected.warehouseFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
label="Warehouse">
|
label="Warehouse">
|
||||||
|
|
Loading…
Reference in New Issue