This commit is contained in:
parent
7fa4eabf86
commit
14ebcf96c0
|
@ -119,7 +119,7 @@
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
ng-model="$ctrl.companyFk"
|
ng-model="$ctrl.companyFk"
|
||||||
on-change="$ctrl.recalcInvoiceDate($ctrl.companyFk)">
|
on-change="$ctrl.getInvoiceDate(value)">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
url="Printers"
|
url="Printers"
|
||||||
|
|
|
@ -14,11 +14,11 @@ class Controller extends Section {
|
||||||
this.$http.get('UserConfigs/getUserConfig')
|
this.$http.get('UserConfigs/getUserConfig')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.companyFk = res.data.companyFk;
|
this.companyFk = res.data.companyFk;
|
||||||
this.recalcInvoiceDate(this.companyFk);
|
this.getInvoiceDate(this.companyFk);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
recalcInvoiceDate(companyFk) {
|
getInvoiceDate(companyFk) {
|
||||||
const params = { companyFk: companyFk };
|
const params = { companyFk: companyFk };
|
||||||
this.fetchInvoiceDate(params);
|
this.fetchInvoiceDate(params);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue