This commit is contained in:
2021-06-01 18:14:08 +00:00
parent 3f9696c95c
commit 77c4ec1fb9
12 changed files with 78 additions and 68 deletions

View File

@@ -5,7 +5,7 @@
<v-menu offset-y>
<template v-slot:activator="{ on, attrs }">
<div class="text-h6">
<v-icon large color="primary" class="mr-2"
<v-icon large :color="hasData ? 'primary' : null" class="mr-2"
>$ayiLuggageCart</v-icon
>
{{ $ay.t("WorkOrderItemOutsideServiceList") }}
@@ -37,7 +37,7 @@
</v-menu>
</v-col>
<template v-if="showTable">
<template v-if="hasData">
<!-- ############################################################### -->
<v-col cols="12" class="mb-10">
<v-data-table
@@ -59,8 +59,7 @@
>
</v-data-table>
</v-col>
</template>
<template v-if="activeItemIndex != null">
<v-btn
v-if="canDelete && isDeleted"
large
@@ -1025,10 +1024,8 @@ export default {
formCustomTemplateKey: function() {
return this.pvm.formCustomTemplateKey;
},
showTable: function() {
return (
this.value.items[this.activeWoItemIndex].outsideServices.length > 1
);
hasData: function() {
return this.activeItemIndex != null;
},
canAdd: function() {
return (