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(