This commit is contained in:
@@ -498,7 +498,7 @@ export default {
|
|||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
fetch current list of serials
|
fetch current list of serials
|
||||||
[Route("api/v{version:apiVersion}/part")][HttpGet("serials/{id}")]
|
|
||||||
remove already selected serials from that list
|
remove already selected serials from that list
|
||||||
put into availableSerials
|
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
|
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[
|
const partId = this.value.items[this.activeWoItemIndex].parts[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].partId;
|
].partId;
|
||||||
@@ -516,8 +515,13 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let res = await window.$gz.api.get(`part/serials/${partId}`);
|
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;
|
this.serialDialog = true;
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
async addPartAssembly() {
|
async addPartAssembly() {
|
||||||
let res = await window.$gz.api.get(
|
let res = await window.$gz.api.get(
|
||||||
|
|||||||
Reference in New Issue
Block a user