This commit is contained in:
2021-02-19 20:18:32 +00:00
parent c96c0cb811
commit 80ad2201b7

View File

@@ -241,13 +241,13 @@
<template v-slot:top> <template v-slot:top>
<span class="title">{{ $ay.t("PurchaseOrderItemList") }}</span> <span class="title">{{ $ay.t("PurchaseOrderItemList") }}</span>
</template> </template>
<!-- <template v-slot:[`item.actions`]="{ item }"> <template v-slot:[`item.actions`]="{ item }">
<v-btn icon :href="item.url" v-if="item.url"> <v-btn icon @click="editItem(item)">
<v-icon small class="mr-2"> <v-icon>
$ayiFileDownload $ayiEdit
</v-icon> </v-icon>
</v-btn> </v-btn>
</template> --> </template>
</v-data-table> </v-data-table>
</v-col> </v-col>
@@ -569,6 +569,10 @@ export default {
value: "displayRequestWorkorder" value: "displayRequestWorkorder"
}); });
} }
if (!vm.formState.readOnly) {
headers.push({ text: "", value: "actions" });
}
return headers; return headers;
}, },
itemList: function() { itemList: function() {
@@ -660,6 +664,7 @@ export default {
} }
}, },
methods: { methods: {
editItem: function(item) {},
canSave: function() { canSave: function() {
return this.formState.valid && this.formState.dirty; return this.formState.valid && this.formState.dirty;
}, },