jingshuyong преди 10 месеца
родител
ревизия
bd76e10e85
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/views/byProduct/components/addByProduct.vue

+ 2 - 2
src/views/byProduct/components/addByProduct.vue

@@ -196,12 +196,12 @@
 
       save() {
         let param = {
-          detailList: this.materialList[0].detailList,
+          detailList: this.materialList[0].detailList || [],
           ...this.productForm,
           categoryId: this.materialList[0].id,
           quantity: this.productWeight
         };
-        console.log(param);
+        console.log(param,'1111111111111111');
 
         disposeSave(param).then((res) => {
           this.$emit('close', true);