This commit is contained in:
2021-09-08 18:41:33 +00:00
parent d28b4d6497
commit edf32a0f47
2 changed files with 23 additions and 2 deletions

View File

@@ -245,6 +245,20 @@
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
>
<div ref="topform"></div>
<v-col
v-if="value.items[activeItemIndex].fromCSRId != null"
cols="12"
sm="6"
lg="4"
xl="3"
>
<v-btn text @click="openCSR()">
<v-icon>$ayiConciergeBell</v-icon>
<span class="text-h6 accent--text" @click="openCSR()"
>{{ $ay.t("CustomerServiceRequest") }}
</span></v-btn
>
</v-col>
<v-col
v-if="form().showMe(this, 'Items.WorkOrderItemSummary')"
cols="12"
@@ -917,6 +931,12 @@ export default {
}
},
methods: {
openCSR: function() {
window.$gz.eventBus.$emit("openobject", {
type: window.$gz.type.CustomerServiceRequest,
id: this.value.items[this.activeItemIndex].fromCSRId
});
},
async copyItemToWorkOrder() {
if (!this.copyItemWoNumber) {
return;