case 4036

This commit is contained in:
2021-11-24 18:42:38 +00:00
parent fded3c9308
commit 024c044b8a
2 changed files with 13 additions and 20 deletions

View File

@@ -936,4 +936,8 @@ https://www.ayanova.com/Downloads/v8/migrate140.7z
BUILD 140 CHANGES OF NOTE BUILD 140 CHANGES OF NOTE
- case 4033, 4034 see notes - case 4033, 4034 see notes
- case 4035 implemented
- case 4036 fixed

View File

@@ -44,29 +44,17 @@
<tbody> <tbody>
<!-- Note the use of partWarehouseId which is unique plus quantity, without that quantity Vue doesn't update the display of quantity if it's changed by the quanittyChanged method --> <!-- Note the use of partWarehouseId which is unique plus quantity, without that quantity Vue doesn't update the display of quantity if it's changed by the quanittyChanged method -->
<tr <tr v-for="(item, index) in obj" :key="index">
v-for="item in sortedList()"
:key="
item.partWarehouseId.toString() +
item.minimumQuantity.toString()
"
>
<td> <td>
{{ item.partWarehouseDisplay }} {{ item.partWarehouseDisplay }}
<template v-if="$vuetify.breakpoint.xs"> <template v-if="$vuetify.breakpoint.xs">
<div class="my-3"> <div class="my-3">
<v-icon class="ml-2" @click="openItem(item)">
$ayiEdit
</v-icon>
<v-icon class="ml-6" @click="removeItem(item)"> <v-icon class="ml-6" @click="removeItem(item)">
$ayiTrashAlt $ayiTrashAlt
</v-icon> </v-icon>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<v-icon class="ml-6" @click="openItem(item)">
$ayiEdit
</v-icon>
<v-icon class="ml-6" @click="removeItem(item)"> <v-icon class="ml-6" @click="removeItem(item)">
$ayiTrashAlt $ayiTrashAlt
</v-icon> </v-icon>
@@ -77,7 +65,8 @@
v-model="item.minimumQuantity" v-model="item.minimumQuantity"
:readonly="formState.readOnly" :readonly="formState.readOnly"
@input="quantityChanged(item)" @input="quantityChanged(item)"
></gz-decimal> >
</gz-decimal>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@@ -210,12 +199,12 @@ export default {
vm.obj.splice(index, 1); vm.obj.splice(index, 1);
vm.formState.dirty = true; vm.formState.dirty = true;
}, },
openItem: function(item) { // openItem: function(item) {
window.$gz.eventBus.$emit("openobject", { // window.$gz.eventBus.$emit("openobject", {
type: window.$gz.type.PartWarehouse, // type: window.$gz.type.PartWarehouse,
id: item.partWarehouseId // id: item.partWarehouseId
}); // });
}, // },
quantityChanged: function(item) { quantityChanged: function(item) {
const vm = this; const vm = this;
if (item.minimumQuantity == null || item.minimumQuantity < 1) { if (item.minimumQuantity == null || item.minimumQuantity < 1) {