From a03a75132c78ce96b6366772190370800ce5e413 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 1 Jul 2021 22:29:56 +0000 Subject: [PATCH] --- ayanova/src/components/work-order-item-parts.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 2427077e..ae5cea77 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -498,7 +498,7 @@ export default { TODO: fetch current list of serials - [Route("api/v{version:apiVersion}/part")][HttpGet("serials/{id}")] + remove already selected serials from that list put into availableSerials @@ -508,7 +508,6 @@ export default { when done sb able to view current available serials not selected, quickly pick them off and then add en-masse */ - const partId = this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partId; @@ -516,8 +515,13 @@ export default { return; } let res = await window.$gz.api.get(`part/serials/${partId}`); - console.log(res); + if(res.error){ + //display info box error here, see recent code where did that forget at the moment because .... you know why :) + }else{ + console.log(res); this.serialDialog = true; + } + }, async addPartAssembly() { let res = await window.$gz.api.get(