mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #6734 from lasniscinote/gl_SCI_9789
(fix) Update of item table not done, stock modal entry [SCI-9789]
This commit is contained in:
commit
b7a67c2a60
3 changed files with 6 additions and 3 deletions
|
@ -92,7 +92,7 @@ export default {
|
|||
methods: {
|
||||
changeSelected(id) {
|
||||
this.selected = id;
|
||||
if (id) {
|
||||
if (id || id === null) {
|
||||
this.update(id);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
</template>
|
||||
</span>
|
||||
<span v-else >
|
||||
<template v-if="colVal.datetime">
|
||||
{{ colVal.datetime.formatted }}
|
||||
<template v-if="colVal.formatted">
|
||||
{{ colVal.formatted }}
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ viewPlaceholder }}
|
||||
|
|
|
@ -209,6 +209,9 @@
|
|||
},
|
||||
methods: {
|
||||
setOperation($event) {
|
||||
if ($event !== this.operation) {
|
||||
this.amount = null;
|
||||
}
|
||||
this.operation = $event;
|
||||
if ([2, 3].includes($event)) {
|
||||
this.unit = this.stockValue.unit;
|
||||
|
|
Loading…
Reference in a new issue