|
|
@@ -1140,7 +1140,13 @@
|
|
|
this.planId = data.id;
|
|
|
let params = { categoryId: data.categoryId };
|
|
|
const res = await listBomType(params);
|
|
|
- if (!res || res.length === 0) return;
|
|
|
+ if (!res || res.length === 0) {
|
|
|
+ this.bomListType = [];
|
|
|
+ this.formInline.bomType = '';
|
|
|
+ this.bomListV = [];
|
|
|
+ this.formInline.bomId = '';
|
|
|
+ return;
|
|
|
+ };
|
|
|
let bomMap = {
|
|
|
1: 'PBOM',
|
|
|
2: 'MBOM',
|