case 4036
This commit is contained in:
@@ -936,4 +936,8 @@ https://www.ayanova.com/Downloads/v8/migrate140.7z
|
||||
|
||||
BUILD 140 CHANGES OF NOTE
|
||||
|
||||
|
||||
- case 4033, 4034 see notes
|
||||
- case 4035 implemented
|
||||
- case 4036 fixed
|
||||
|
||||
|
||||
@@ -44,29 +44,17 @@
|
||||
|
||||
<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 -->
|
||||
<tr
|
||||
v-for="item in sortedList()"
|
||||
:key="
|
||||
item.partWarehouseId.toString() +
|
||||
item.minimumQuantity.toString()
|
||||
"
|
||||
>
|
||||
<tr v-for="(item, index) in obj" :key="index">
|
||||
<td>
|
||||
{{ item.partWarehouseDisplay }}
|
||||
<template v-if="$vuetify.breakpoint.xs">
|
||||
<div class="my-3">
|
||||
<v-icon class="ml-2" @click="openItem(item)">
|
||||
$ayiEdit
|
||||
</v-icon>
|
||||
<v-icon class="ml-6" @click="removeItem(item)">
|
||||
$ayiTrashAlt
|
||||
</v-icon>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon class="ml-6" @click="openItem(item)">
|
||||
$ayiEdit
|
||||
</v-icon>
|
||||
<v-icon class="ml-6" @click="removeItem(item)">
|
||||
$ayiTrashAlt
|
||||
</v-icon>
|
||||
@@ -77,7 +65,8 @@
|
||||
v-model="item.minimumQuantity"
|
||||
:readonly="formState.readOnly"
|
||||
@input="quantityChanged(item)"
|
||||
></gz-decimal>
|
||||
>
|
||||
</gz-decimal>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -210,12 +199,12 @@ export default {
|
||||
vm.obj.splice(index, 1);
|
||||
vm.formState.dirty = true;
|
||||
},
|
||||
openItem: function(item) {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: window.$gz.type.PartWarehouse,
|
||||
id: item.partWarehouseId
|
||||
});
|
||||
},
|
||||
// openItem: function(item) {
|
||||
// window.$gz.eventBus.$emit("openobject", {
|
||||
// type: window.$gz.type.PartWarehouse,
|
||||
// id: item.partWarehouseId
|
||||
// });
|
||||
// },
|
||||
quantityChanged: function(item) {
|
||||
const vm = this;
|
||||
if (item.minimumQuantity == null || item.minimumQuantity < 1) {
|
||||
|
||||
Reference in New Issue
Block a user