Просмотр исходного кода

去除SKU编辑:选择包材配件限制

lxf 1 год назад
Родитель
Сommit
d81b156319

+ 0 - 5
src/components/MakeProduct/ProductMaterial.vue

@@ -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)

+ 0 - 5
src/components/MakeProduct/groupSKU/ProductMaterial.vue

@@ -671,16 +671,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)

+ 0 - 5
src/components/ProductDetails/ProductMaterialOne.vue

@@ -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)

+ 0 - 5
src/views/shengde/product/management/batchModification.vue

@@ -391,17 +391,12 @@ export default {
           this.form.selectData = []
         }
       }
-      let list = this.form.selectData.filter((item) => item.categoryId === data.categoryId)
-      if (list && list.length > 0) {
-        return this.msgInfo('该类型包材配件已添加')
-      }
       let row = data.bomColors[index]
       let item = {
         bomColorName: row.nameChinese,
         specCode: row.specCode,
         id: data.id,
         bomId: row.id,
-        categoryId: data.categoryId,
         quantity: undefined,
         price: row.price,
       }