This commit is contained in:
2021-01-18 21:30:35 +00:00
parent 731a503fb4
commit ce4e2f16fa

View File

@@ -39,35 +39,38 @@
<th class="text-left">
{{ $ay.t("WorkOrderItemPartQuantity") }}
</th>
<th></th>
<th></th>
</tr>
</thead>
<!-- margin only if > xs and hide underline in qty field and onchange in qty if less than 1 make 1 -->
<tbody>
<tr v-for="item in sortedList" :key="item.partId">
<td>{{ item.partDisplay }}</td>
<td>
{{ item.partDisplay }}
<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-2" @click="openItem(item)">
$ayiEdit
</v-icon>
<v-icon class="ml-6" @click="removeItem(item)">
$ayiTrashAlt
</v-icon>
</template>
</td>
<td>
<gz-decimal
v-model="item.quantity"
:readonly="formState.readOnly"
></gz-decimal>
</td>
<td>
<v-icon
:small="$vuetify.breakpoint.xsOnly"
@click="openItem(item)"
>
$ayiEdit
</v-icon>
</td>
<td>
<v-icon
:small="$vuetify.breakpoint.xsOnly"
@click="removeItem(item)"
>
$ayiTrashAlt
</v-icon>
</td>
</tr>
</tbody>
</template>