jingshuyong 10 сар өмнө
parent
commit
bd76e10e85

+ 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);