This commit is contained in:
@@ -39,35 +39,38 @@
|
|||||||
<th class="text-left">
|
<th class="text-left">
|
||||||
{{ $ay.t("WorkOrderItemPartQuantity") }}
|
{{ $ay.t("WorkOrderItemPartQuantity") }}
|
||||||
</th>
|
</th>
|
||||||
<th></th>
|
|
||||||
<th></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<!-- margin only if > xs and hide underline in qty field and onchange in qty if less than 1 make 1 -->
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="item in sortedList" :key="item.partId">
|
<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>
|
<td>
|
||||||
<gz-decimal
|
<gz-decimal
|
||||||
v-model="item.quantity"
|
v-model="item.quantity"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
></gz-decimal>
|
></gz-decimal>
|
||||||
</td>
|
</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>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user