Quellcode durchsuchen

[Backend] Documents > Factures : correctif formulaire création #755

refactoring
Guillaume Bourgeois vor 1 Jahr
Ursprung
Commit
c969f3a25e
2 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      backend/views/document/_form.php
  2. +9
    -1
      backend/web/js/vuejs/document-form.js

+ 1
- 1
backend/views/document/_form.php Datei anzeigen

@@ -77,7 +77,7 @@ use common\models\Producer;
[
'@change' => 'changeUser',
'v-model' => 'idUser',
'class' => 'select2'
'class' => 'select2 select2-document-form'
]
); ?>
<?php endif; ?>

+ 9
- 1
backend/web/js/vuejs/document-form.js Datei anzeigen

@@ -60,9 +60,10 @@ var app = new Vue({
methods: {
formatPrice: formatPrice,
init: function () {
var app = this;

if (this.getDocumentId()) {
var app = this;
axios.get(UrlManager.getBaseUrlAbsolute() + "document/ajax-init", {
params: {
idDocument: this.getDocumentId(),
@@ -86,6 +87,13 @@ var app = new Vue({
}
});
}
else {
$('.select2-document-form').on('select2:select', function (e) {
var idUser = e.params.data.id;
app.idUser = idUser;
app.changeUser();
});
}
},
getProductById: function(idProduct) {
var app = this;

Laden…
Abbrechen
Speichern