This commit is contained in:
@@ -57,6 +57,12 @@
|
||||
disabled
|
||||
></v-simple-checkbox>
|
||||
</template>
|
||||
|
||||
<template v-slot:[`item.purchaseOrderViz`]="{ item }">
|
||||
<div class="subtitle-1" @click="openPO(item)">
|
||||
<a href="javascript:"> {{ item.purchaseOrderViz }}</a>
|
||||
</div>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-col>
|
||||
</template>
|
||||
@@ -142,39 +148,18 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// warehouseChange(newName) {
|
||||
// this.value.items[this.activeWoItemIndex].partRequests[
|
||||
// this.activeItemIndex
|
||||
// ].partWarehouseViz = newName;
|
||||
// },
|
||||
// partChange(newName) {
|
||||
// this.value.items[this.activeWoItemIndex].partRequests[
|
||||
// this.activeItemIndex
|
||||
// ].partViz = newName;
|
||||
// },
|
||||
// newItem() {
|
||||
// let newIndex = this.value.items[this.activeWoItemIndex].partRequests
|
||||
// .length;
|
||||
|
||||
// this.value.items[this.activeWoItemIndex].partRequests.push({
|
||||
// id: 0,
|
||||
// concurrency: 0,
|
||||
// userId: null,
|
||||
// description: null,
|
||||
// serials: null,
|
||||
// partId: null,
|
||||
// partWarehouseId: null,
|
||||
// quantity: 1,
|
||||
// received: null,
|
||||
// purchaseOrderItemId: null,
|
||||
// isDirty: true,
|
||||
// workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||
// uid: Date.now() //used for error tracking / display
|
||||
// });
|
||||
// this.$emit("change");
|
||||
// this.selectedRow = [{ index: newIndex }];
|
||||
// this.activeItemIndex = newIndex;
|
||||
// },
|
||||
openPO(item) {
|
||||
if (
|
||||
item != null &&
|
||||
item.purchaseOrderIdViz != null &&
|
||||
item.purchaseOrderIdViz != 0
|
||||
) {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: window.$gz.type.PurchaseOrder,
|
||||
id: item.purchaseOrderIdViz
|
||||
});
|
||||
}
|
||||
},
|
||||
unDeleteItem() {
|
||||
this.value.items[this.activeWoItemIndex].partRequests[
|
||||
this.activeItemIndex
|
||||
|
||||
Reference in New Issue
Block a user