changed behaviour

This commit is contained in:
TLRZ Seyfferth
2018-01-25 11:29:48 +01:00
parent e379ef8c29
commit cc4201f2b5
6 changed files with 115 additions and 19 deletions
+12 -11
View File
@@ -11,7 +11,7 @@
<link rel="manifest" href="manifest.json">
<link rel="icon" sizes="192x192" href="/favicons/android-chrome-192x192.png">
<link rel="apple-touch-icon" href="/favicons/android-chrome-192x192.png">
</head>
<body>
@@ -38,10 +38,14 @@
<div v-for="(a, index) in articles" class="card">
<div class="card-content row">
<span class="card-title">{{ a.name }}</span>
<div class="input-field inline col s12">
<div class="input-field inline col s8">
<input v-model="a.name" placeholder="Artikelname" class="validate" :id="'a_name_'+index">
<label :for="'a_name_'+index" class="active">Name</label>
</div>
<div class="input-field inline col s4">
<input v-model="a.short" placeholder="Kurzname" class="validate" :id="'a_short_'+index">
<label :for="'a_short_'+index" class="active">Kürzel</label>
</div>
<div class="input-field col s8">
<input v-model.number="a.content.size" placeholder="Gesamtinhalt" type="number" class="validate" step="0.01" :id="'a_csize_'+index">
<label :for="'a_csize_'+index" class="active">Gesamtinhalt</label>
@@ -74,9 +78,6 @@
<a class="" href="#">Artikel löschen</a>
</div>
</div>
<div slot="footer">
</div>
</div>
<div class="col s12" id="inventory" v-if="ready">
<div v-for="(a, index) in inventory.ug" class="card hoverable">
@@ -109,7 +110,7 @@
</div>
</div>
<div class="col s12" id="calc" v-if="ready">
<div class="row">
<div class="row pin-top">
<div class="col s12 m4 card darken-4 grey grey-text text-lighten-2">
<table class="card-content">
<tr v-for="item in bonned(bon)">
@@ -126,12 +127,12 @@
</div>
<div class="col s12 m8">
<div class="row">
<div class="col s4" v-for="a in bon">
<button class="waves-effect waves-light btn-large btn-flat col s12" @click="a.count++;">{{ a.name }}</button>
<div class="col s3" v-for="a in bon">
<button class="waves-effect waves-light btn-large btn-flat col s12" @click="a.count++;">{{ a.short }}</button>
</div>
</div>
<div class="row">
<div class="col s4">
<div class="col s3">
<button class="waves-effect waves-light btn-large orange col s12" @click="resetBon">Reset</button>
</div>
</div>
@@ -152,10 +153,10 @@
<a href="#" class="btn-floating tooltipped" data-position="left" @click="addArticle" data-tooltip="Artikel hinzufügen"><i class="material-icons">add</i></a>
</li>
<li v-if="view == 'inventur'">
<a href="#" class="btn-floating tooltipped" data-position="left" @click="storeArticles" data-tooltip="Artikelliste speichern"><i class="material-icons">save</i></a>
<a href="#" class="btn-floating tooltipped" data-position="left" @click="resetInventur" data-tooltip="Inventur zurücksetzen"><i class="material-icons">reset</i></a>
</li>
<li v-if="view == 'inventur'">
<a href="#" class="btn-floating tooltipped" data-position="left" @click="addArticle" data-tooltip="Artikel hinzufügen"><i class="material-icons">add</i></a>
<a href="#" class="btn-floating tooltipped" data-position="left" @click="exportInventur" data-tooltip="Inventur exportieren"><i class="material-icons">export</i></a>
</li>
</ul>
</div>