lxf 1 rok pred
rodič
commit
524446dee2

+ 7 - 7
src/views/shengde/product/management/batchModification.vue

@@ -242,9 +242,9 @@ export default {
   created() {
     categoryList({ categoryType: '3' }).then((res) => {
       this.packingFittings = this.packingFittings.concat(res.data.data)
-    })
-    categoryList({ categoryType: '2' }).then((res) => {
-      this.packingFittings = this.packingFittings.concat(res.data.data)
+      categoryList({ categoryType: '2' }).then((res) => {
+        this.packingFittings = this.packingFittings.concat(res.data.data)
+      })
     })
   },
   mounted() {
@@ -329,9 +329,9 @@ export default {
         return {
           bomColorName: item.bomColorName,
           specCode: item.bomColorspecCode,
-          bomId: item.bomColorId,
+          bomId: item.bomId,
           quantity: Number(item.singleQuantity),
-          id: item.bomId,
+          id: item.bomColorId,
           price: item.price,
           categoryId: item.categoryId,
         }
@@ -431,8 +431,8 @@ export default {
         {
           bomColorName: row.nameChinese,
           specCode: row.specCode,
-          id: data.id,
-          bomId: row.id,
+          id: row.id,
+          bomId: data.id,
           quantity: undefined,
           price: row.price,
         },