|
@@ -13,11 +13,12 @@
|
|
|
: 'EBOM'
|
|
: 'EBOM'
|
|
|
}}
|
|
}}
|
|
|
</div>
|
|
</div>
|
|
|
- <div> 编码:{{ this.form.code }} </div>
|
|
|
|
|
|
|
+ <div> BOM编码:{{ this.form.code }} </div>
|
|
|
<div> 名称:{{ this.form.name }} </div>
|
|
<div> 名称:{{ this.form.name }} </div>
|
|
|
- <div> 版本:V{{ this.form.versions }} </div>
|
|
|
|
|
|
|
+ <div> 编码:{{ this.form.categoryCode }} </div>
|
|
|
|
|
+ <div> 版本:V{{ this.form.versions }}.0 </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <BOMSearch @search="reload" :statusOpt="statusOpt" />
|
|
|
|
|
|
|
+ <!-- <BOMSearch @search="reload" :statusOpt="statusOpt" /> -->
|
|
|
|
|
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
ref="table"
|
|
@@ -250,7 +251,7 @@
|
|
|
],
|
|
],
|
|
|
statusOpt: {
|
|
statusOpt: {
|
|
|
'': '全部',
|
|
'': '全部',
|
|
|
- 0: '已停用',
|
|
|
|
|
|
|
+ 0: '草稿',
|
|
|
1: '已发布'
|
|
1: '已发布'
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
@@ -266,7 +267,8 @@
|
|
|
...where,
|
|
...where,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: -1,
|
|
size: -1,
|
|
|
- id: this.businessId
|
|
|
|
|
|
|
+ id: this.businessId,
|
|
|
|
|
+ isResourceBom: 1
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -278,9 +280,15 @@
|
|
|
handBomDetails(id) {
|
|
handBomDetails(id) {
|
|
|
if (id) {
|
|
if (id) {
|
|
|
getBomGetById(id).then((res) => {
|
|
getBomGetById(id).then((res) => {
|
|
|
- this.form = res;
|
|
|
|
|
- this.baseCount = res.baseCount;
|
|
|
|
|
- this.unit = res.category.measuringUnit;
|
|
|
|
|
|
|
+ console.log(res, '返回的数据12');
|
|
|
|
|
+ if (Object.keys(res).length != 0) {
|
|
|
|
|
+ this.form = res;
|
|
|
|
|
+ this.baseCount = res.baseCount;
|
|
|
|
|
+ this.unit = res.category.measuringUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+ // this.form = res;
|
|
|
|
|
+ // this.baseCount = res.baseCount;
|
|
|
|
|
+ // this.unit = res.category.measuringUnit;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|