From fcc70c0c9e18d64b373abec5ee1bf03d868c7fc1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 1 Jul 2021 22:28:23 +0000 Subject: [PATCH] --- ayanova/src/components/work-order-item-parts.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 1ca19781..2427077e 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -493,7 +493,7 @@ export default { } }, methods: { - selectSerials() { + async selectSerials() { /* TODO: @@ -509,6 +509,14 @@ export default { */ + const partId = this.value.items[this.activeWoItemIndex].parts[ + this.activeItemIndex + ].partId; + if (!partId || partId == 0) { + return; + } + let res = await window.$gz.api.get(`part/serials/${partId}`); + console.log(res); this.serialDialog = true; }, async addPartAssembly() {