2022-03-15 08:36:48 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
url="SupplierAgencyTerms"
|
|
|
|
primary-key="agencyFk"
|
|
|
|
data="$ctrl.supplierAgencyTerm"
|
|
|
|
insert-mode="true"
|
|
|
|
form="form">
|
|
|
|
</vn-watcher>
|
|
|
|
<vn-crud-model
|
|
|
|
auto-load="true"
|
|
|
|
url="Agencies"
|
|
|
|
filter="$ctrl.filter"
|
2022-03-15 13:50:09 +00:00
|
|
|
data="$ctrl.agencies">
|
2022-03-15 08:36:48 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
|
|
|
<vn-card class="vn-pa-lg">
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-id="agency" vn-one
|
|
|
|
label="Agency"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.agencyFk"
|
2022-03-15 13:50:09 +00:00
|
|
|
data="$ctrl.agencies"
|
2022-03-15 08:36:48 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id"
|
|
|
|
rule>
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-input-number
|
|
|
|
type="number"
|
|
|
|
label="Minimum M3"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.minimumM3"
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number
|
|
|
|
type="number"
|
|
|
|
label="Package Price"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.packagePrice"
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
|
|
|
type="number"
|
|
|
|
label="Km Price"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.kmPrice"
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
|
|
|
type="number"
|
|
|
|
label="M3 Price"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.m3Price"
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-number
|
|
|
|
type="number"
|
|
|
|
label="Route Price"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.routePrice"
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
<vn-input-number
|
|
|
|
type="number"
|
|
|
|
label="Minimum Km"
|
|
|
|
ng-model="$ctrl.supplierAgencyTerm.minimumKm"
|
|
|
|
rule>
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
<vn-button
|
|
|
|
label="Cancel"
|
|
|
|
ui-sref="supplier.card.agencyTerm.index">
|
|
|
|
</vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</form>
|