|
@@ -681,16 +681,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleSelectTwoBOM(data, index) {
|
|
|
- let list = this.form.colors[this.selectIndex].mountingsList.filter((item) => item.categoryId === data.categoryId)
|
|
|
- if (list && list.length > 0) {
|
|
|
- return this.msgInfo('该类型包材配件已添加')
|
|
|
- }
|
|
|
let row = data.bomColors[index]
|
|
|
let item = {
|
|
|
bomColorName: row.nameChinese,
|
|
|
id: data.id,
|
|
|
bomColorId: row.id,
|
|
|
- categoryId: data.categoryId,
|
|
|
quantity: '',
|
|
|
}
|
|
|
this.form.colors[this.selectIndex].mountingsList.push(item)
|